MUST load this skill when creating focused prompts in .cattoolkit/prompts/ and multi-stage chains in .cattoolkit/metaprompt/. Create, audit, and maintain all types of prompts including standalone prompts and meta-prompts for AI-to-AI workflows.
Creates and maintains structured prompts in `.cattoolkit/prompts/` and multi-stage AI-to-AI workflow chains in `.cattoolkit/metaprompt/`. Uses XML/Markdown hybrid patterns for complex cognition tasks and pure Markdown for simple workflows.
/plugin marketplace add Git-Fg/thecattoolkit/plugin install sys-core@cattoolkitThis skill inherits all available tools. When active, it can use any tool Claude has access to.
assets/templates/do-metaprompt.mdassets/templates/plan-metaprompt.mdassets/templates/refine-metaprompt.mdassets/templates/research-metaprompt.mdassets/templates/single-prompt.mdexamples/001-code-review.mdexamples/002-summarizer.mdexamples/003-analyzer.mdreferences/do-patterns.mdreferences/intelligence-rules.mdreferences/metadata-guidelines.mdreferences/optimization-guide.mdreferences/plan-patterns.mdreferences/prompt-types.mdreferences/question-bank.mdreferences/refine-patterns.mdreferences/research-patterns.mdreferences/research-pitfalls.mdreferences/single-prompt-templates.mdreferences/summary-template.mdCreate effective prompts for both direct execution and multi-stage AI-to-AI workflows. This skill handles standalone prompts and meta-prompts (chains where outputs from one prompt become inputs for the next).
Standalone prompts for direct execution by users or agents.
Multi-stage prompt chains for Claude-to-Claude communication where outputs feed into subsequent prompts.
.cattoolkit/prompts/
├── {number}-{name}.md # The prompt file
└── SUMMARY.md # Summary of created prompt
.cattoolkit/metaprompt/
├── {number}-{topic}-{purpose}/
│ ├── {number}-{topic}-{purpose}.md # The prompt file
│ ├── {topic}-{purpose}.md # Output file (for Research/Plan)
│ ├── completed/ # Archive after running
│ └── SUMMARY.md # Required: executive summary
Auto-increment from existing prompts:
# Single prompts
find .cattoolkit/prompts -name "*.md" | wc -l
# Meta-prompts
find .cattoolkit/metaprompt -type d -name "*-*" | wc -l
For AI Agents, use simplified patterns designed for structuring AI cognition:
| Pattern | Tags | When to Use |
|---|---|---|
| Pure Markdown | 0 | Default for simple, linear workflows |
| Hybrid XML/Markdown | 1-5 | For structuring AI cognition, state tracking, safety constraints |
Choose Pure Markdown if ALL are true:
Choose Hybrid XML/Markdown if ANY are true:
Available Tags (max 3-5):
| Tag | Purpose | Use When |
|---|---|---|
<intent_analysis> | Analyze context to determine appropriate approach | AI needs to route based on task analysis |
<routing> | Decision tables mapping context to workflows | Natural language logic for AI to route between paths |
<workflow> | Enforce step sequences | Order matters, steps cannot be skipped |
<state> | Track multi-phase context | Multi-phase execution with continuity |
<context> | Separate data from instructions | Large data blocks that could confuse |
<constraints> | Safety boundaries | NEVER/MUST NOT rules critical to safety |
Note: <intake> is deprecated. Use <intent_analysis> instead for analyzing context.
Critical Rules:
<output_format> for chain integration@ syntaxPrompt templates in assets/templates/:
assets/templates/single-prompt.md - Standalone analysis/generation promptassets/templates/research-metaprompt.md - Multi-phase research chain promptassets/templates/plan-metaprompt.md - Structured planning promptassets/templates/do-metaprompt.md - Execution workflow promptassets/templates/refine-metaprompt.md - Iteration and improvement promptWHY: Templates ensure prompts follow consistent XML/Markdown hybrid structure and include quality checks.
references/prompt-types.md - Detailed type guidancereferences/single-prompt-templates.md - Template patternsreferences/optimization-guide.md - Quality improvementreferences/research-patterns.md - Research prompt structurereferences/research-pitfalls.md - Common research mistakes to avoidreferences/plan-patterns.md - Plan prompt structurereferences/do-patterns.md - Do prompt structurereferences/refine-patterns.md - Refine prompt structurereferences/metadata-guidelines.md - YAML frontmatter requirementsreferences/summary-template.md - SUMMARY.md structurereferences/intelligence-rules.md - Prompt complexity guidelinesreferences/question-bank.md - Clarification questions for requirements gatheringThis 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 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 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.