No slash command · from claude-code-dev
Detects reusable patterns, best practices, and automation opportunities during implementation. Recognizes repetitive structures and generalizable solutions to capture as skills.
Ships in claude-code-dev. 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.
Recognize and note reusable patterns during implementation for potential contribution to Product Forge.
When working on projects, Claude often implements patterns that could benefit the broader Product Forge ecosystem. This skill helps identify those patterns so they can be captured by the feedback hooks and potentially become new skills, commands, or templates.
Implementations that follow consistent, reusable structures:
Multi-step processes that could be automated:
Settings and configurations that are commonly needed:
Note patterns when you observe:
Only patterns worth capturing should be:
| Criterion | Description |
|---|---|
| Reusable | Applies to multiple projects or contexts |
| Non-trivial | More than simple one-liners or obvious code |
| Generalizable | Not too specific to one codebase |
| Documented | Can be explained clearly to others |
| Tested | Validated in at least one real project |
# Consistent factory for test fixtures
class UserFactory:
@classmethod
def create(cls, **overrides):
defaults = {"name": "Test User", "email": "[email protected]"}
defaults.update(overrides)
return User.objects.create(**defaults)
Why it's a good pattern: Reusable across Django projects, reduces test boilerplate, follows established factory pattern.
# Consistent API response format
def api_response(data=None, error=None, status=200):
return {
"success": error is None,
"data": data,
"error": error,
"timestamp": datetime.now().isoformat()
}
Why it's a good pattern: Standardizes API responses, easy to implement, improves API consistency.
# Standard Python project pre-commit
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
hooks:
- id: mypy
Why it's a good pattern: Common Python setup, enforces code quality, easy to adapt.
# Only works for this exact database schema
def get_acme_corp_users_with_subscription():
return User.objects.filter(company="ACME", has_subscription=True)
Problem: Too specific to one project/company.
# Just basic Python
def add_numbers(a, b):
return a + b
Problem: Doesn't provide enough value to warrant a pattern.
# Missing error handling and edge cases
def parse_config(path):
return json.load(open(path))
Problem: Not production-ready, would need significant expansion.
When you recognize a valuable pattern:
The Stop hook's Haiku analysis will detect patterns based on:
Captured patterns may become:
| Destination | When |
|---|---|
| Skill | Knowledge/guidelines that Claude applies |
| Command | User-invoked action or wizard |
| Template | Scaffolding for new projects/files |
| Agent | Specialized automated workflow |
/sync-feedback to review captured patternsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jpoutrin/product-forge --plugin claude-code-dev17 skills in this plugin
/create-agentCreate a new Claude Code agent with proper YAML frontmatter structure. Use when the user wants to add a specialized agent to a plugin. Handles agent file creation with name, description, tools, model selection, and color configuration.Other plugins' skills for the same job