Plugin Creation Workflow
Guide the user through creating a complete, high-quality Claude Code plugin from initial concept to tested implementation. Follow a systematic approach: understand requirements, design components, clarify details, implement following best practices, validate, and test.
Core Principles
- Ask clarifying questions: Identify all ambiguities about plugin purpose, triggering, scope, and components. Ask specific, concrete questions rather than making assumptions. Wait for user answers before proceeding with implementation.
- Load relevant skills: Use the Skill tool to load plugin-dev skills when needed (plugin-structure, hook-development, agent-development, etc.)
- Use specialized agents: Leverage agent-creator, plugin-validator, and skill-reviewer agents for AI-assisted development
- Follow best practices: Apply patterns from plugin-dev's own implementation
- Progressive disclosure: Create lean skills with references/examples
- Use TodoWrite: Track all progress throughout all phases
Initial request: $ARGUMENTS
Phase 1: Discovery
Goal: Understand what plugin needs to be built and what problem it solves
Actions:
- Create todo list with all 7 phases
- If plugin purpose is clear from arguments:
- Summarize understanding
- Identify plugin type (integration, workflow, analysis, toolkit, etc.)
- If plugin purpose is unclear, ask user:
- What problem does this plugin solve?
- Who will use it and when?
- What should it do?
- Any similar plugins to reference?
- Summarize understanding and confirm with user before proceeding
Output: Clear statement of plugin purpose and target users
Phase 2: Component Planning
Goal: Determine what plugin components are needed
MUST load plugin-structure skill using Skill tool before this phase.
Actions:
- Load plugin-structure skill to understand component types
- Analyze plugin requirements and determine needed components:
- Skills: Does it need specialized knowledge? (hooks API, MCP patterns, etc.)
- Commands: User-initiated actions? (deploy, configure, analyze)
- Agents: Autonomous tasks? (validation, generation, analysis)
- Hooks: Event-driven automation? (validation, notifications)
- MCP: External service integration? (databases, APIs)
- Settings: User configuration? (.local.md files)
- For each component type needed, identify:
- How many of each type
- What each one does
- Rough triggering/usage patterns
- Present component plan to user as table:
| Component Type | Count | Purpose |
|----------------|-------|---------|
| Skills | 2 | Hook patterns, MCP usage |
| Commands | 3 | Deploy, configure, validate |
| Agents | 1 | Autonomous validation |
| Hooks | 0 | Not needed |
| MCP | 1 | Database integration |
- Get user confirmation or adjustments
Output: Confirmed list of components to create
Phase 3: Detailed Design & Clarifying Questions
Goal: Specify each component in detail and resolve all ambiguities
CRITICAL: This is one of the most important phases. DO NOT SKIP.
Actions:
For each component in the plan, identify underspecified aspects:
- Skills: What triggers them? What knowledge do they provide? How detailed?
- Commands: What arguments? What tools? Interactive or automated?
- Agents: When to trigger (proactive/reactive)? What tools? Output format?
- Hooks: Which events? Prompt or command based? Validation criteria?
- MCP: What server type? Authentication? Which tools?
- Settings: What fields? Required vs optional? Defaults?
Present all questions to user in organized sections (one section per component type)
Wait for answers before proceeding to implementation
If user says "whatever you think is best", provide specific recommendations and get explicit confirmation
Example questions for a skill:
- What specific user queries should trigger this skill?
- Should it include utility scripts? What functionality?
- How detailed should the core SKILL.md be vs references/?
- Any real-world examples to include?
Example questions for an agent:
- Should this agent trigger proactively after certain actions, or only when explicitly requested?
- What tools does it need (Read, Write, Bash, etc.)?
- What should the output format be?
- Any specific quality standards to enforce?
Output: Detailed specification for each component
Phase 4: Plugin Structure Creation
Goal: Create plugin directory structure and manifest
Actions:
- Determine plugin name (kebab-case, descriptive)
- Choose plugin location:
- Ask user: "Where should I create the plugin?"
- Offer options: current directory, ../new-plugin-name, custom path
- Create directory structure using bash:
mkdir -p plugin-name/.claude-plugin
mkdir -p plugin-name/skills # if needed
mkdir -p plugin-name/commands # if needed
mkdir -p plugin-name/agents # if needed
mkdir -p plugin-name/hooks # if needed
- Create plugin.json manifest using Write tool:
{
"name": "plugin-name",
"version": "0.1.0",
"description": "[brief description]",
"author": {
"name": "[author from user or default]",
"email": "[email or default]"
}
}
- Create README.md template
- Create .gitignore if needed (for .claude/*.local.md, etc.)
- Initialize git repo if creating new directory
Output: Plugin directory structure created and ready for components
Phase 5: Component Implementation
Goal: Create each component following best practices
LOAD RELEVANT SKILLS before implementing each component type:
- Skills: Load skill-development skill
- Commands: Load command-development skill
- Agents: Load agent-development skill
- Hooks: Load hook-development skill
- MCP: Load mcp-integration skill
- Settings: Load plugin-settings skill
Actions for each component:
For Skills:
- Load skill-development skill using Skill tool
- For each skill:
- Ask user for concrete usage examples (or use from Phase 3)
- Plan resources (scripts/, references/, examples/)
- Create skill directory structure
- Write SKILL.md with:
- Third-person description with specific trigger phrases
- Lean body (1,500-2,000 words) in imperative form
- References to supporting files
- Create reference files for detailed content
- Create example files for working code
- Create utility scripts if needed
- Use skill-reviewer agent to validate each skill
For Commands:
- Load command-development skill using Skill tool
- For each command:
- Write command markdown with frontmatter
- Include clear description and argument-hint
- Specify allowed-tools (minimal necessary)
- Write instructions FOR Claude (not TO user)
- Provide usage examples and tips
- Reference relevant skills if applicable
For Agents:
- Load agent-development skill using Skill tool
- For each agent, use agent-creator agent:
- Provide description of what agent should do
- Agent-creator generates: identifier, whenToUse with examples, systemPrompt
- Create agent markdown file with frontmatter and system prompt
- Add appropriate model, color, and tools
- Validate with validate-agent.sh script
For Hooks:
- Load hook-development skill using Skill tool
- For each hook:
- Create hooks/hooks.json with hook configuration
- Prefer prompt-based hooks for complex logic
- Use ${CLAUDE_PLUGIN_ROOT} for portability
- Create hook scripts if needed (in examples/ not scripts/)
- Test with validate-hook-schema.sh and test-hook.sh utilities
For MCP:
- Load mcp-integration skill using Skill tool
- Create .mcp.json configuration with:
- Server type (stdio for local, SSE for hosted)
- Command and args (with ${CLAUDE_PLUGIN_ROOT})
- extensionToLanguage mapping if LSP
- Environment variables as needed
- Document required env vars in README
- Provide setup instructions
For Settings:
- Load plugin-settings skill using Skill tool
- Create settings template in README
- Create example .claude/plugin-name.local.md file (as documentation)
- Implement settings reading in hooks/commands as needed
- Add to .gitignore:
.claude/*.local.md
Progress tracking: Update todos as each component is completed
Output: All plugin components implemented
Phase 6: Validation & Quality Check
Goal: Ensure plugin meets quality standards and works correctly
Actions:
Run plugin-validator agent:
- Use plugin-validator agent to comprehensively validate plugin
- Check: manifest, structure, naming, components, security
- Review validation report
Fix critical issues:
- Address any critical errors from validation
- Fix any warnings that indicate real problems
Review with skill-reviewer (if plugin has skills):
- For each skill, use skill-reviewer agent
- Check description quality, progressive disclosure, writing style
- Apply recommendations
Test agent triggering (if plugin has agents):
- For each agent, verify blocks are clear
- Check triggering conditions are specific
- Run validate-agent.sh on agent files
Test hook configuration (if plugin has hooks):
- Run validate-hook-schema.sh on hooks/hooks.json
- Test hook scripts with test-hook.sh
- Verify ${CLAUDE_PLUGIN_ROOT} usage
Present findings:
- Summary of validation results
- Any remaining issues
- Overall quality assessment
Ask user: "Validation complete. Issues found: [count critical], [count warnings]. Would you like me to fix them now, or proceed to testing?"
Output: Plugin validated and ready for testing
Phase 7: Testing & Verification
Goal: Test that plugin works correctly in Claude Code
Actions:
Installation instructions:
Verification checklist for user to perform:
Testing recommendations:
- For skills: Ask questions using trigger phrases from descriptions
- For commands: Run
/plugin-name:command-name with various arguments
- For agents: Create scenarios matching agent examples
- For hooks: Use
claude --debug to see hook execution
- For MCP: Use
/mcp to verify servers and tools
Ask user: "I've prepared the plugin for testing. Would you like me to guide you through testing each component, or do you want to test it yourself?"
If user wants guidance, walk through testing each component with specific test cases
Output: Plugin tested and verified working
Phase 8: Documentation & Next Steps
Goal: Ensure plugin is well-documented and ready for distribution
Actions:
Verify README completeness:
- Check README has: overview, features, installation, prerequisites, usage
- For MCP plugins: Document required environment variables
- For hook plugins: Explain hook activation
- For settings: Provide configuration templates
Add marketplace entry (if publishing):
- Show user how to add to marketplace.json
- Help draft marketplace description
- Suggest category and tags
Create summary:
- Mark all todos complete
- List what was created:
- Plugin name and purpose
- Components created (X skills, Y commands, Z agents, etc.)
- Key files and their purposes
- Total file count and structure
- Next steps:
- Testing recommendations
- Publishing to marketplace (if desired)
- Iteration based on usage
Suggest improvements (optional):
- Additional components that could enhance plugin
- Integration opportunities
- Testing strategies
Output: Complete, documented plugin ready for use or publication
Important Notes
Throughout All Phases
- Use TodoWrite to track progress at every phase
- Load skills with Skill tool when working on specific component types
- Use specialized agents (agent-creator, plugin-validator, skill-reviewer)
- Ask for user confirmation at key decision points
- Follow plugin-dev's own patterns as reference examples
- Apply best practices:
- Third-person descriptions for skills
- Imperative form in skill bodies
- Commands written FOR Claude
- Strong trigger phrases
- ${CLAUDE_PLUGIN_ROOT} for portability
- Progressive disclosure
- Security-first (HTTPS, no hardcoded credentials)
Key Decision Points (Wait for User)
- After Phase 1: Confirm plugin purpose
- After Phase 2: Approve component plan
- After Phase 3: Proceed to implementation
- After Phase 6: Fix issues or proceed
- After Phase 7: Continue to documentation
Skills to Load by Phase
- Phase 2: plugin-structure
- Phase 5: skill-development, command-development, agent-development, hook-development, mcp-integration, plugin-settings (as needed)
- Phase 6: (agents will use skills automatically)
Quality Standards
Every component must meet these standards:
- ✅ Follows plugin-dev's proven patterns
- ✅ Uses correct naming conventions
- ✅ Has strong trigger conditions (skills/agents)
- ✅ Includes working examples
- ✅ Properly documented
- ✅ Validated with utilities
- ✅ Tested in Claude Code
Example Workflow
User Request
"Create a plugin for managing database migrations"
Phase 1: Discovery
- Understand: Migration management, database schema versioning
- Confirm: User wants to create, run, rollback migrations
Phase 2: Component Planning
- Skills: 1 (migration best practices)
- Commands: 3 (create-migration, run-migrations, rollback)
- Agents: 1 (migration-validator)
- MCP: 1 (database connection)
Phase 3: Clarifying Questions
- Which databases? (PostgreSQL, MySQL, etc.)
- Migration file format? (SQL, code-based?)
- Should agent validate before applying?
- What MCP tools needed? (query, execute, schema)
Phase 4-8: Implementation, Validation, Testing, Documentation
Begin with Phase 1: Discovery
1---2name: 1305-create-plugin-b6c0c2313description: Guided end-to-end plugin creation workflow with component design, implementation, and validation4---56# Plugin Creation Workflow78Guide the user through creating a complete, high-quality Claude Code plugin from initial concept to tested implementation. Follow a systematic approach: understand requirements, design components, clarify details, implement following best practices, validate, and test.910## Core Principles1112- **Ask clarifying questions**: Identify all ambiguities about plugin purpose, triggering, scope, and components. Ask specific, concrete questions rather than making assumptions. Wait for user answers before proceeding with implementation.13- **Load relevant skills**: Use the Skill tool to load plugin-dev skills when needed (plugin-structure, hook-development, agent-development, etc.)14- **Use specialized agents**: Leverage agent-creator, plugin-validator, and skill-reviewer agents for AI-assisted development15- **Follow best practices**: Apply patterns from plugin-dev's own implementation16- **Progressive disclosure**: Create lean skills with references/examples17- **Use TodoWrite**: Track all progress throughout all phases1819**Initial request:** $ARGUMENTS2021---2223## Phase 1: Discovery2425**Goal**: Understand what plugin needs to be built and what problem it solves2627**Actions**:281. Create todo list with all 7 phases292. If plugin purpose is clear from arguments:30 - Summarize understanding31 - Identify plugin type (integration, workflow, analysis, toolkit, etc.)323. If plugin purpose is unclear, ask user:33 - What problem does this plugin solve?34 - Who will use it and when?35 - What should it do?36 - Any similar plugins to reference?374. Summarize understanding and confirm with user before proceeding3839**Output**: Clear statement of plugin purpose and target users4041---4243## Phase 2: Component Planning4445**Goal**: Determine what plugin components are needed4647**MUST load plugin-structure skill** using Skill tool before this phase.4849**Actions**:501. Load plugin-structure skill to understand component types512. Analyze plugin requirements and determine needed components:52 - **Skills**: Does it need specialized knowledge? (hooks API, MCP patterns, etc.)53 - **Commands**: User-initiated actions? (deploy, configure, analyze)54 - **Agents**: Autonomous tasks? (validation, generation, analysis)55 - **Hooks**: Event-driven automation? (validation, notifications)56 - **MCP**: External service integration? (databases, APIs)57 - **Settings**: User configuration? (.local.md files)583. For each component type needed, identify:59 - How many of each type60 - What each one does61 - Rough triggering/usage patterns624. Present component plan to user as table:63 ```64 | Component Type | Count | Purpose |65 |----------------|-------|---------|66 | Skills | 2 | Hook patterns, MCP usage |67 | Commands | 3 | Deploy, configure, validate |68 | Agents | 1 | Autonomous validation |69 | Hooks | 0 | Not needed |70 | MCP | 1 | Database integration |71 ```725. Get user confirmation or adjustments7374**Output**: Confirmed list of components to create7576---7778## Phase 3: Detailed Design & Clarifying Questions7980**Goal**: Specify each component in detail and resolve all ambiguities8182**CRITICAL**: This is one of the most important phases. DO NOT SKIP.8384**Actions**:851. For each component in the plan, identify underspecified aspects:86 - **Skills**: What triggers them? What knowledge do they provide? How detailed?87 - **Commands**: What arguments? What tools? Interactive or automated?88 - **Agents**: When to trigger (proactive/reactive)? What tools? Output format?89 - **Hooks**: Which events? Prompt or command based? Validation criteria?90 - **MCP**: What server type? Authentication? Which tools?91 - **Settings**: What fields? Required vs optional? Defaults?92932. **Present all questions to user in organized sections** (one section per component type)94953. **Wait for answers before proceeding to implementation**96974. If user says "whatever you think is best", provide specific recommendations and get explicit confirmation9899**Example questions for a skill**:100- What specific user queries should trigger this skill?101- Should it include utility scripts? What functionality?102- How detailed should the core SKILL.md be vs references/?103- Any real-world examples to include?104105**Example questions for an agent**:106- Should this agent trigger proactively after certain actions, or only when explicitly requested?107- What tools does it need (Read, Write, Bash, etc.)?108- What should the output format be?109- Any specific quality standards to enforce?110111**Output**: Detailed specification for each component112113---114115## Phase 4: Plugin Structure Creation116117**Goal**: Create plugin directory structure and manifest118119**Actions**:1201. Determine plugin name (kebab-case, descriptive)1212. Choose plugin location:122 - Ask user: "Where should I create the plugin?"123 - Offer options: current directory, ../new-plugin-name, custom path1243. Create directory structure using bash:125 ```bash126 mkdir -p plugin-name/.claude-plugin127 mkdir -p plugin-name/skills # if needed128 mkdir -p plugin-name/commands # if needed129 mkdir -p plugin-name/agents # if needed130 mkdir -p plugin-name/hooks # if needed131 ```1324. Create plugin.json manifest using Write tool:133 ```json134 {135 "name": "plugin-name",136 "version": "0.1.0",137 "description": "[brief description]",138 "author": {139 "name": "[author from user or default]",140 "email": "[email or default]"141 }142 }143 ```1445. Create README.md template1456. Create .gitignore if needed (for .claude/*.local.md, etc.)1467. Initialize git repo if creating new directory147148**Output**: Plugin directory structure created and ready for components149150---151152## Phase 5: Component Implementation153154**Goal**: Create each component following best practices155156**LOAD RELEVANT SKILLS** before implementing each component type:157- Skills: Load skill-development skill158- Commands: Load command-development skill159- Agents: Load agent-development skill160- Hooks: Load hook-development skill161- MCP: Load mcp-integration skill162- Settings: Load plugin-settings skill163164**Actions for each component**:165166### For Skills:1671. Load skill-development skill using Skill tool1682. For each skill:169 - Ask user for concrete usage examples (or use from Phase 3)170 - Plan resources (scripts/, references/, examples/)171 - Create skill directory structure172 - Write SKILL.md with:173 - Third-person description with specific trigger phrases174 - Lean body (1,500-2,000 words) in imperative form175 - References to supporting files176 - Create reference files for detailed content177 - Create example files for working code178 - Create utility scripts if needed1793. Use skill-reviewer agent to validate each skill180181### For Commands:1821. Load command-development skill using Skill tool1832. For each command:184 - Write command markdown with frontmatter185 - Include clear description and argument-hint186 - Specify allowed-tools (minimal necessary)187 - Write instructions FOR Claude (not TO user)188 - Provide usage examples and tips189 - Reference relevant skills if applicable190191### For Agents:1921. Load agent-development skill using Skill tool1932. For each agent, use agent-creator agent:194 - Provide description of what agent should do195 - Agent-creator generates: identifier, whenToUse with examples, systemPrompt196 - Create agent markdown file with frontmatter and system prompt197 - Add appropriate model, color, and tools198 - Validate with validate-agent.sh script199200### For Hooks:2011. Load hook-development skill using Skill tool2022. For each hook:203 - Create hooks/hooks.json with hook configuration204 - Prefer prompt-based hooks for complex logic205 - Use ${CLAUDE_PLUGIN_ROOT} for portability206 - Create hook scripts if needed (in examples/ not scripts/)207 - Test with validate-hook-schema.sh and test-hook.sh utilities208209### For MCP:2101. Load mcp-integration skill using Skill tool2112. Create .mcp.json configuration with:212 - Server type (stdio for local, SSE for hosted)213 - Command and args (with ${CLAUDE_PLUGIN_ROOT})214 - extensionToLanguage mapping if LSP215 - Environment variables as needed2163. Document required env vars in README2174. Provide setup instructions218219### For Settings:2201. Load plugin-settings skill using Skill tool2212. Create settings template in README2223. Create example .claude/plugin-name.local.md file (as documentation)2234. Implement settings reading in hooks/commands as needed2245. Add to .gitignore: `.claude/*.local.md`225226**Progress tracking**: Update todos as each component is completed227228**Output**: All plugin components implemented229230---231232## Phase 6: Validation & Quality Check233234**Goal**: Ensure plugin meets quality standards and works correctly235236**Actions**:2371. **Run plugin-validator agent**:238 - Use plugin-validator agent to comprehensively validate plugin239 - Check: manifest, structure, naming, components, security240 - Review validation report2412422. **Fix critical issues**:243 - Address any critical errors from validation244 - Fix any warnings that indicate real problems2452463. **Review with skill-reviewer** (if plugin has skills):247 - For each skill, use skill-reviewer agent248 - Check description quality, progressive disclosure, writing style249 - Apply recommendations2502514. **Test agent triggering** (if plugin has agents):252 - For each agent, verify <example> blocks are clear253 - Check triggering conditions are specific254 - Run validate-agent.sh on agent files2552565. **Test hook configuration** (if plugin has hooks):257 - Run validate-hook-schema.sh on hooks/hooks.json258 - Test hook scripts with test-hook.sh259 - Verify ${CLAUDE_PLUGIN_ROOT} usage2602616. **Present findings**:262 - Summary of validation results263 - Any remaining issues264 - Overall quality assessment2652667. **Ask user**: "Validation complete. Issues found: [count critical], [count warnings]. Would you like me to fix them now, or proceed to testing?"267268**Output**: Plugin validated and ready for testing269270---271272## Phase 7: Testing & Verification273274**Goal**: Test that plugin works correctly in Claude Code275276**Actions**:2771. **Installation instructions**:278 - Show user how to test locally:279 ```bash280 cc --plugin-dir /path/to/plugin-name281 ```282 - Or copy to `.claude-plugin/` for project testing2832842. **Verification checklist** for user to perform:285 - [ ] Skills load when triggered (ask questions with trigger phrases)286 - [ ] Commands appear in `/help` and execute correctly287 - [ ] Agents trigger on appropriate scenarios288 - [ ] Hooks activate on events (if applicable)289 - [ ] MCP servers connect (if applicable)290 - [ ] Settings files work (if applicable)2912923. **Testing recommendations**:293 - For skills: Ask questions using trigger phrases from descriptions294 - For commands: Run `/plugin-name:command-name` with various arguments295 - For agents: Create scenarios matching agent examples296 - For hooks: Use `claude --debug` to see hook execution297 - For MCP: Use `/mcp` to verify servers and tools2982994. **Ask user**: "I've prepared the plugin for testing. Would you like me to guide you through testing each component, or do you want to test it yourself?"3003015. **If user wants guidance**, walk through testing each component with specific test cases302303**Output**: Plugin tested and verified working304305---306307## Phase 8: Documentation & Next Steps308309**Goal**: Ensure plugin is well-documented and ready for distribution310311**Actions**:3121. **Verify README completeness**:313 - Check README has: overview, features, installation, prerequisites, usage314 - For MCP plugins: Document required environment variables315 - For hook plugins: Explain hook activation316 - For settings: Provide configuration templates3173182. **Add marketplace entry** (if publishing):319 - Show user how to add to marketplace.json320 - Help draft marketplace description321 - Suggest category and tags3223233. **Create summary**:324 - Mark all todos complete325 - List what was created:326 - Plugin name and purpose327 - Components created (X skills, Y commands, Z agents, etc.)328 - Key files and their purposes329 - Total file count and structure330 - Next steps:331 - Testing recommendations332 - Publishing to marketplace (if desired)333 - Iteration based on usage3343354. **Suggest improvements** (optional):336 - Additional components that could enhance plugin337 - Integration opportunities338 - Testing strategies339340**Output**: Complete, documented plugin ready for use or publication341342---343344## Important Notes345346### Throughout All Phases347348- **Use TodoWrite** to track progress at every phase349- **Load skills with Skill tool** when working on specific component types350- **Use specialized agents** (agent-creator, plugin-validator, skill-reviewer)351- **Ask for user confirmation** at key decision points352- **Follow plugin-dev's own patterns** as reference examples353- **Apply best practices**:354 - Third-person descriptions for skills355 - Imperative form in skill bodies356 - Commands written FOR Claude357 - Strong trigger phrases358 - ${CLAUDE_PLUGIN_ROOT} for portability359 - Progressive disclosure360 - Security-first (HTTPS, no hardcoded credentials)361362### Key Decision Points (Wait for User)3633641. After Phase 1: Confirm plugin purpose3652. After Phase 2: Approve component plan3663. After Phase 3: Proceed to implementation3674. After Phase 6: Fix issues or proceed3685. After Phase 7: Continue to documentation369370### Skills to Load by Phase371372- **Phase 2**: plugin-structure373- **Phase 5**: skill-development, command-development, agent-development, hook-development, mcp-integration, plugin-settings (as needed)374- **Phase 6**: (agents will use skills automatically)375376### Quality Standards377378Every component must meet these standards:379- ✅ Follows plugin-dev's proven patterns380- ✅ Uses correct naming conventions381- ✅ Has strong trigger conditions (skills/agents)382- ✅ Includes working examples383- ✅ Properly documented384- ✅ Validated with utilities385- ✅ Tested in Claude Code386387---388389## Example Workflow390391### User Request392"Create a plugin for managing database migrations"393394### Phase 1: Discovery395- Understand: Migration management, database schema versioning396- Confirm: User wants to create, run, rollback migrations397398### Phase 2: Component Planning399- Skills: 1 (migration best practices)400- Commands: 3 (create-migration, run-migrations, rollback)401- Agents: 1 (migration-validator)402- MCP: 1 (database connection)403404### Phase 3: Clarifying Questions405- Which databases? (PostgreSQL, MySQL, etc.)406- Migration file format? (SQL, code-based?)407- Should agent validate before applying?408- What MCP tools needed? (query, execute, schema)409410### Phase 4-8: Implementation, Validation, Testing, Documentation411412---413414**Begin with Phase 1: Discovery**