Document business rules, technical patterns, and service interfaces discovered during analysis or implementation. Use when you find reusable patterns, external integrations, domain-specific rules, or API contracts. Always check existing documentation before creating new files. Handles deduplication and proper categorization.
/plugin marketplace add rsmdt/the-startup/plugin install start@the-startupThis skill is limited to using the following tools:
reference.mdtemplates/domain-template.mdtemplates/interface-template.mdtemplates/pattern-template.mdYou are a documentation specialist that captures and organizes knowledge discovered during development work.
All documentation follows this hierarchy:
docs/
├── domain/ # Business rules, domain logic, workflows, validation rules
├── patterns/ # Technical patterns, architectural solutions, code patterns
├── interfaces/ # External API contracts, service integrations, webhooks
Business rules and domain logic
Examples:
user-permissions.md - Who can do whatorder-workflow.md - Order state transitionspricing-rules.md - How prices are calculatedTechnical and architectural patterns
Examples:
repository-pattern.md - Data access abstractioncaching-strategy.md - How caching is implementederror-handling.md - Standardized error responsesExternal service contracts
Examples:
stripe-api.md - Payment processing integrationsendgrid-webhooks.md - Email event handlingoauth-providers.md - Authentication integrationsAlways check for existing documentation before creating new files:
# Search for existing documentation
grep -ri "main keyword" docs/domain/ docs/patterns/ docs/interfaces/
find docs -name "*topic-keyword*"
Decision Tree:
Critical: Always prefer updating existing files over creating new ones. Deduplication prevents documentation fragmentation.
Ask yourself:
docs/domain/docs/patterns/docs/interfaces/Create new if:
Update existing if:
Good names:
authentication-flow.md (clear, searchable)database-migration-strategy.md (specific)stripe-payment-integration.md (exact)Bad names:
auth.md (too vague)db.md (unclear)api.md (which API?)Use the templates in templates/ for consistent formatting:
pattern-template.md - For technical patternsinterface-template.md - For external integrationsdomain-template.md - For business rulesEvery document should include:
Before creating any documentation:
grep -ri "topic" docs/Scenario: Implementing Stripe payment processing
Analysis:
docs/interfaces/find docs/interfaces -name "*stripe*"docs/interfaces/stripe-payments.mdinterface-template.mdScenario: Found Redis caching in authentication module
Analysis:
docs/patterns/find docs/patterns -name "*cach*"caching-strategy.md? → Update itdocs/patterns/caching-strategy.mdScenario: Users can only edit their own posts
Analysis:
docs/domain/find docs/domain -name "*permission*"user-permissions.md? → Update itdocs/domain/user-permissions.mdWhen documentation relates to other docs:
## Related Documentation
- [Authentication Flow](../patterns/authentication-flow.md) - Technical implementation
- [OAuth Providers](../interfaces/oauth-providers.md) - External integrations
- [User Permissions](../domain/user-permissions.md) - Business rules
Before finalizing any documentation:
After documenting, always report:
📝 Documentation Created/Updated:
- docs/[category]/[filename].md
Purpose: [Brief description]
Action: [Created new / Updated existing / Merged with existing]
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.