/idea-to-code:write-design-patternfrom idea-to-code
Writes design pattern catalog entries with structured sections for problem, structure, testing strategies, and principles. Useful for documenting reusable patterns after refactoring.
Ships in idea-to-code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create or update a pattern entry in design-pattern-catalog/<category>/<pattern-name>.md.
Determine category and name — use AskUserQuestion if not clear from context. Use kebab-case for the pattern name. Category examples: commands, testing, architecture.
Read existing entries — check design-pattern-catalog/ for existing entries to maintain consistency in structure and tone.
Write the entry — design-pattern-catalog/<category>/<pattern-name>.md with these sections:
# Pattern Name## ProblemState the general principle, not a specific symptom. 1-2 sentences. Specific examples belong in later sections.
## Structure or ## ExampleChoose the appropriate section based on the pattern type:
Use ## Structure for patterns that define collaborating elements (e.g., Command + Assembler):
A table of key elements, their files, and responsibilities. Lead each row with the key element, not the filename.
| Key Element | File | Responsibility |
|---|---|---|
| ... | ... | ... |
### Reference implementation (within Structure)Bullet list of symbols and their files. Format: SymbolName in path/to/file.py. No line numbers — they're too unstable.
Use ## Example for patterns about code organization or refactoring, with ### Before and ### After subsections showing the concrete change.
## Testing Strategies (when applicable)One subsection per strategy. Each starts with What is tested: naming the specific element under test. Include example references as path/to/test_file.py — test_function_name.
## When to ApplyBullet list of conditions where the pattern is appropriate.
## Key PrinciplesBullet list of bold-titled principles. These are the memorable takeaways.
path/to/file — symbol_name format for referencesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
design-patterns, catalog, documentation, refactoring, code-architecture
npx claudepluginhub humansintheloop-dev/humansintheloop-dev-workflow-and-tools --plugin idea-to-code24 skills in this plugin
/apply-design-patternsConsult the design pattern catalog before implementing or refactoring code./ask-a-friendWhen stuck on a problem, formulate a well-structured question and copy it to the clipboard for pasting into ChatGPT. Claude should use this skill when debugging efforts stall or when an outside perspective would help./brainstorm-ideaUse when refining an idea in an idea directory through questions and answers and classifying it./commit-guidelinesProvides a pre-commit checklist and commit message formatting standards for this project. Claude should use this skill when creating git commits to ensure messages follow project conventions, including proper co-authorship attribution and concise formatting./create-planUse when creating a steel-thread implementation plan for an idea from its idea, discussion and spec files./debugging-ci-failuresGuidelines for watching CI builds and diagnosing failures. Claude should use this skill when watching a CI build or investigating why a CI build failed.Other plugins' skills for the same job