Agent skill

Ddd Knowledge

by dykyi-roman in dykyi-roman/awesome-claude-code

DDD architecture knowledge base. An agent skill from dykyi-roman/awesome-claude-code.

MITAuto-check passedDevelopment

Install Ddd Knowledge

skills CLI
$ npx skills add dykyi-roman/awesome-claude-code --skill ddd-knowledge -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dykyi-roman/awesome-claude-code ddd-knowledge --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dykyi-roman/awesome-claude-code.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ddd-knowledge .claude/skills/ddd-knowledge && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ddd-knowledge
GitHub stars
103
Token cost
~1k tokens
SKILL.md length
278 words
Files
8 (incl. references, assets)
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

DDD architecture knowledge base. An agent skill from dykyi-roman/awesome-claude-code.

  • Tasks that involve Domain-driven design
  • SKILL.md covers Core Principles, Quick Checklists, Common Violations Quick… and PHP 8.4 DDD Patterns, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Ddd Knowledge is an agent skill from dykyi-roman/awesome-claude-code. DDD architecture knowledge base. Provides patterns, antipatterns, and PHP-specific guidelines for Domain-Driven Design audits.

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including reference files and assets (for example `assets/report-template.md`, `references/antipatterns.md` and `references/application-patterns.md`).

It sits in Development, covering Domain-driven design. It works with PHP. The repository describes itself as: PHP Architecture Toolkit for Claude Code (DDD, CQRS, Event Sourcing, Hexagonal, Clean Architecture, SOLID, GRASP, PSR, Design Patterns, Testing, Documentation, Code Review). The licence is MIT.

When your agent uses it

  • Tasks that involve Domain-driven design

Example prompts

  • “/ddd-knowledge”

What it can do on your machine

Read from SKILL.md and the folder at commit 7e1fea8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are php).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ddd Knowledge loads about 1k tokens when it runs, and up to ~16k if it reads all its reference files. Until then it costs about 35 tokens; SKILL.md has 278 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~35
When it runs · the whole SKILL.md, loaded when a task matches
~1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~16k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from dykyi-roman/awesome-claude-code at commit 7e1fea8, republished under its MIT licence (© dykyi-roman). 278 words, ~1,046 tokens.

Download SKILL.mdSave it as .claude/skills/ddd-knowledge/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
ddd-knowledge
description
DDD architecture knowledge base. Provides patterns, antipatterns, and PHP-specific guidelines for Domain-Driven Design audits.

DDD Knowledge Base

Quick reference for DDD architecture patterns and PHP implementation guidelines.

Core Principles

Layer Dependencies (Clean Architecture)
Presentation → Application → Domain ← Infrastructure
                    ↓
              Domain (center)

Rule: Dependencies point INWARD. Domain has ZERO external dependencies.

Layer Responsibilities
LayerContainsDepends On
DomainEntities, Value Objects, Aggregates, Domain Services, Repository Interfaces, Domain EventsNothing
ApplicationUse Cases, DTOs, Application ServicesDomain
InfrastructureRepository Implementations, External APIs, DB, Cache, QueueDomain, Application
PresentationControllers, Actions, Request/Response, CLIApplication

Quick Checklists

Domain Layer Checklist
  • No framework imports (Doctrine, Eloquent, Symfony)
  • Entities have behavior, not just data
  • Value Objects for domain concepts (Email, Money, Id)
  • Repository INTERFACES defined here
  • Enums for fixed value sets
  • Domain Events for side effects
  • No public function set*() methods
Application Layer Checklist
  • UseCases orchestrate, don't decide
  • DTOs for input/output
  • No business logic (if/switch on domain state)
  • Transaction boundaries here
  • No HTTP/CLI concerns
Infrastructure Layer Checklist
  • Implements Domain interfaces
  • No business logic in repositories
  • External service adapters
  • Caching, queuing implementations
Presentation Layer Checklist
  • Validates input
  • Maps to DTOs
  • Calls UseCase
  • Formats response
  • No business logic

Common Violations Quick Reference

ViolationWhere to LookSeverity
use Doctrine\\ in DomainDomain/*.phpCritical
use Illuminate\\ in DomainDomain/*.phpCritical
use Infrastructure\\ in DomainDomain/*.phpCritical
Only getters/setters in EntityDomain/Entity/*.phpWarning
=== 'pending' magic stringsAny PHP fileWarning
public function set*()Domain/Entity/*.phpWarning
Business logic in ControllerPresentation/*.phpWarning
Business logic in RepositoryInfrastructure/*.phpWarning

PHP 8.4 DDD Patterns

Value Object
php
final readonly class Email
{
    public function __construct(
        public string $value
    ) {
        if (!filter_var($value, FILTER_VALIDATE_EMAIL)) {
            throw new InvalidArgumentException('Invalid email');
        }
    }

    public function equals(self $other): bool
    {
        return $this->value === $other->value;
    }
}
Entity with Behavior
php
final class Order
{
    private OrderStatus $status;

    public function __construct(
        private readonly OrderId $id,
        private readonly CustomerId $customerId
    ) {
        $this->status = OrderStatus::Pending;
    }

    public function confirm(): void
    {
        if (!$this->status->canTransitionTo(OrderStatus::Confirmed)) {
            throw new DomainException('Cannot confirm order');
        }
        $this->status = OrderStatus::Confirmed;
    }
}
Repository Interface
php
// Domain/Repository/OrderRepositoryInterface.php
interface OrderRepositoryInterface
{
    public function findById(OrderId $id): ?Order;
    public function save(Order $order): void;
}

References

For detailed information, load these reference files:

  • references/layer-architecture.md — Detailed layer rules and boundaries
  • references/domain-patterns.md — Entity, VO, Aggregate, Repository patterns
  • references/application-patterns.md — UseCase, DTO, Command/Query patterns
  • references/antipatterns.md — Common violations with detection patterns
  • references/php-specific.md — PHP 8.4 specific implementations

Assets

  • assets/report-template.md — Structured audit report template

© dykyi-roman, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (references, assets) in skills/ddd-knowledge of dykyi-roman/awesome-claude-code.

  • SKILL.md
  • assets/report-template.md
  • references/antipatterns.md
  • references/application-patterns.md
  • references/domain-patterns.md
  • references/generation-examples.md
  • references/layer-architecture.md
  • references/php-specific.md

Open the folder on GitHubat commit 7e1fea8

Compare with similar skills

Ddd Knowledge next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ddd Knowledge compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ddd Knowledge this skilldykyi-roman/awesome-claude-code103—~1kAutomated safety check: PassMIT
Clean Architecturegiuseppe-trisciuoglio/developer-kit356—~4.2kAutomated safety check: NotesMIT
Laravel Clean ArchitectureHoangNguyen0403/agent-skills-standard571—~913Automated safety check: PassMIT
WooCommerce Code Reviewwoocommerce/woocommerce11k3 repos~1.1kAutomated safety check: PassCustom licence
Domain Modelingfossasia/eventyay-interpretation1.6k31 repos~821Automated safety check: PassApache-2.0
Skill Doli Code ReviewDolibarr/dolibarr7.7k1 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Clean Architecture

    giuseppe-trisciuoglio/developer-kit

    Provides implementation patterns for Clean Architecture, Hexagonal Architecture (Ports & Adapters), and Domain-Driven Design in PHP 8.3+ with Symfony 7.x.

    356 GitHub stars~4.2k tokensUpdated 29 days ago
    DevelopmentAuto-check: notes
  • Laravel Clean Architecture

    HoangNguyen0403/agent-skills-standard

    Implement Domain-Driven Design with typed DTOs, repository interfaces, and single-responsibility Action classes in Laravel.

    571 GitHub stars~913 tokensUpdated today
    Backend & APIsAuto-check passed
  • WooCommerce Code Review

    woocommerce/woocommerce

    Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.

    11k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Domain Modeling

    fossasia/eventyay-interpretation

    Build and sharpen a project's domain model. An agent skill from fossasia/eventyay-interpretation.

    1.6k GitHub starsUsed in 31 repos~821 tokens
    DevelopmentAuto-check passed
  • Skill Doli Code Review

    Dolibarr/dolibarr

    Reviews Dolibarr PHP code for compliance with coding standards and security best practices, and fixes identified issues.

    7.7k GitHub starsUsed in 1 repo~1.1k tokens
    DevelopmentAuto-check passed
  • Apply the repository's architecture policy to code changes by generating a bounded context package, checking module and layer boundaries, and reporting baseline-aware violations.

    7.6k GitHub stars~1.2k tokensUpdated 10 days ago
    DevelopmentAuto-check passed

More from dykyi-roman/awesome-claude-code

All 11 skills in this repo
  • Grasp Knowledge

    dykyi-roman/awesome-claude-code

    GRASP principles knowledge base for PHP 8.4 projects. An agent skill from dykyi-roman/awesome-claude-code.

    103 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Psr Autoloading Knowledge

    dykyi-roman/awesome-claude-code

    PSR-4 autoloading standard knowledge base for PHP 8.4 projects.

    103 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Psr Coding Style Knowledge

    dykyi-roman/awesome-claude-code

    PSR-1 and PSR-12 coding standards knowledge base for PHP 8.4 projects.

    103 GitHub stars~2.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Psr Overview Knowledge

    dykyi-roman/awesome-claude-code

    PHP Standards Recommendations (PSR) overview knowledge base.

    103 GitHub stars~2.7k tokensUpdated 1 mo ago
    Auto-check passed
  • Solid Knowledge

    dykyi-roman/awesome-claude-code

    SOLID principles knowledge base for PHP 8.4 projects. An agent skill from dykyi-roman/awesome-claude-code.

    103 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Claude Code Knowledge

    dykyi-roman/awesome-claude-code

    Comprehensive knowledge base for Claude Code formats, patterns, and configuration.

    103 GitHub stars~4k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Categories

Questions about Ddd Knowledge

What does Ddd Knowledge do?

DDD architecture knowledge base. An agent skill from dykyi-roman/awesome-claude-code. Ddd Knowledge is an agent skill from dykyi-roman/awesome-claude-code. DDD architecture knowledge base.

When should I use Ddd Knowledge?

Ddd Knowledge fits situations like: tasks that involve Domain-driven design.

How do I install Ddd Knowledge in Claude Code?

Run `npx skills add dykyi-roman/awesome-claude-code --skill ddd-knowledge -a claude-code`. Or copy the skill folder (skills/ddd-knowledge in dykyi-roman/awesome-claude-code) into .claude/skills/ddd-knowledge in your project. Claude Code loads it when a task matches its description.

How do I install Ddd Knowledge in Codex?

Run `npx skills add dykyi-roman/awesome-claude-code --skill ddd-knowledge -a codex`. Or copy the skill folder (skills/ddd-knowledge in dykyi-roman/awesome-claude-code) into .agents/skills/ddd-knowledge in your project. Codex loads it when a task matches its description.

Can I use Ddd Knowledge in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dykyi-roman/awesome-claude-code --skill ddd-knowledge -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ddd-knowledge, .gemini/skills/ddd-knowledge, .github/skills/ddd-knowledge and .opencode/skills/ddd-knowledge in your project.

What does Ddd Knowledge need to run?

SKILL.md names no scripts, command-line tools or credentials: Ddd Knowledge is instructions for the agent only.

Does Ddd Knowledge access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Ddd Knowledge safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Ddd Knowledge use?

Ddd Knowledge is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ddd Knowledge use?

About 1k tokens (SKILL.md is roughly 4.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 15k tokens, read only when the agent opens those files.

What are the alternatives to Ddd Knowledge?

Skills that share tags, products or a category with Ddd Knowledge: Clean Architecture (giuseppe-trisciuoglio/developer-kit, 356 stars), Laravel Clean Architecture (HoangNguyen0403/agent-skills-standard, 571 stars), WooCommerce Code Review (woocommerce/woocommerce, 11k stars) and Domain Modeling (fossasia/eventyay-interpretation, 1.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ddd Knowledge?

dykyi-roman (a GitHub user) maintains it in dykyi-roman/awesome-claude-code, which has 103 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on August 16, 2026.

Source: dykyi-roman/awesome-claude-code on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.