Agent skill
cook-hard
[Implementation] Thorough implementation with maximum verification
Install this agent skill to your Project
npx add-skill https://github.com/duc01226/EasyPlatform/tree/main/.claude/skills/cook-hard
SKILL.md
[IMPORTANT] Use
TaskCreateto break ALL work into small tasks BEFORE starting — including tasks for each file read. This prevents context loss from long files. For simple tasks, AI MUST ask user whether to skip.
Understand Code First — Search codebase for 3+ similar implementations BEFORE writing any code. Read existing files, validate assumptions with grep evidence, map dependencies via graph trace. Never invent new patterns when existing ones work. MUST READ
.claude/skills/shared/understand-code-first-protocol.mdfor full protocol and checklists.
docs/project-reference/domain-entities-reference.md— Domain entity catalog, relationships, cross-service sync (read when task involves business entities/models) (content auto-injected by hook — check for [Injected: ...] header before reading)docs/test-specs/— Test specifications by module (read existing TCs; generate/update test specs via/tdd-specafter implementation)
Plan Quality — Every plan phase MUST include
## Test Specificationssection with TC-{FEAT}-{NNN} format. Verify TC satisfaction per phase before marking complete. Plans must includestory_pointsandeffortin frontmatter. MUST READ.claude/skills/shared/plan-quality-protocol.mdfor full protocol and checklists.
Skill Variant: Variant of
/cook— thorough implementation with maximum verification.
Quick Summary
Goal: Implement features with deep research, comprehensive planning, and maximum quality verification.
Workflow:
- Research — Deep investigation with multiple researcher subagents
- Plan — Detailed plan with
/plan-hard, user approval required - Implement — Execute with full code review and SRE review
- Verify — Run all tests, review changes, update docs
Key Rules:
- Maximum thoroughness: research → plan → implement → review → test → docs
- User approval required at plan stage
- Break work into todo tasks; add final self-review task
Frontend/UI Context (if applicable)
When this task involves frontend or UI changes,
UI System Context — For frontend/UI/styling tasks, MUST READ these BEFORE implementing:
frontend-patterns-reference.md(component base classes, stores, forms),scss-styling-guide.md(BEM methodology, SCSS vars, responsive),design-system/README.md(design tokens, component inventory, icons). MUST READ.claude/skills/shared/ui-system-context.mdfor full protocol and checklists.
- Component patterns:
docs/project-reference/frontend-patterns-reference.md - Styling/BEM guide:
docs/project-reference/scss-styling-guide.md - Design system tokens:
docs/project-reference/design-system/README.md
Ultrathink to plan and implement these tasks with maximum verification:
Be skeptical. Apply critical thinking, sequential thinking. Every claim needs traced proof, confidence percentages (Idea should be more than 80%).
$ARGUMENTS
Mode: HARD - Extra research, detailed planning, mandatory reviews.
Workflow
1. Deep Research Phase
- Launch 2-3
researchersubagents in parallel covering:- Technical approach validation
- Edge cases and failure modes
- Security implications
- Performance considerations
- Use
/scout-extfor comprehensive codebase analysis - Generate research reports (max 150 lines each)
- External Memory: Write all research to
.ai/workspace/analysis/{task-name}.analysis.md. Re-read ENTIRE file before planning.
Graph-Assisted Investigation — When
.code-graph/graph.dbexists, MUST run at least ONE graph command on key files before concluding. Pattern: Grep finds files →trace --direction bothreveals full system flow → Grep verifies details. Useconnectionsfor 1-hop,callers_of/tests_forfor specific queries,batch-queryfor multiple files. MUST READ.claude/skills/shared/graph-assisted-investigation-protocol.mdfor full protocol and checklists. After implementing, runpython .claude/scripts/code_graph connections <file> --jsonon modified files to verify no related files need updates.
Graph-Trace Before Implementation
When graph DB is available, BEFORE writing code, trace to understand the blast radius:
python .claude/scripts/code_graph trace <file-to-modify> --direction both --json— see what calls this code AND what it triggerspython .claude/scripts/code_graph trace <file-to-modify> --direction downstream --json— see all downstream consumers- This prevents breaking implicit dependencies (bus message consumers, event handlers)
2. Comprehensive Planning
- Use
plannersubagent with all research reports - Create full plan directory with:
plan.md- Overview with risk assessmentphase-XX-*.md- Detailed phase files- Success criteria for each phase
- Rollback strategy
3. Verified Implementation
- Implement one phase at a time
- After each phase:
- Run type-check and compile
- Run relevant tests
- Self-review before proceeding
Batch Checkpoint (Large Plans)
For plans with 10+ tasks, execute in batches with human review:
- Execute batch — Complete next 3 tasks (or user-specified batch size)
- Report — Show what was implemented, verification output, any concerns
- Wait — Say "Ready for feedback" and STOP. Do NOT continue automatically.
- Apply feedback — Incorporate changes, then execute next batch
- Repeat until all tasks complete
4. Mandatory Testing
- Use
testersubagent for full test coverage - Write tests for:
- Happy path scenarios
- Edge cases from research
- Error handling paths
- NO mocks or fake data allowed
- Repeat until all tests pass
5. Mandatory Code Review
- Use
code-reviewersubagent - Address all critical and major findings
- Re-run tests after fixes
- Repeat until approved
6. Documentation Update
- Use
docs-managerto update relevant docs - Use
project-managerto update project status - Record any architectural decisions
7. Final Report
- Summary of all changes
- Test coverage metrics
- Security considerations addressed
- Unresolved questions (if any)
- Ask user to review and approve
When to Use
- Critical production features
- Security-sensitive changes
- Public API modifications
- Database schema changes
- Cross-service integrations
Quality Gates
| Gate | Criteria |
|---|---|
| Research | 2+ researcher reports |
| Planning | Full plan directory |
| Tests | All pass, no mocks |
| Review | 0 critical/major findings |
| Docs | Updated if needed |
Closing Reminders
- MUST break work into small todo tasks using
TaskCreateBEFORE starting - MUST search codebase for 3+ similar patterns before creating new code
- MUST cite
file:lineevidence for every claim (confidence >80% to act) - MUST add a final review todo task to verify work quality
- MUST validate decisions with user via
AskUserQuestion— never auto-decide MANDATORY IMPORTANT MUST READ the following files before starting: - MUST READ
.claude/skills/shared/understand-code-first-protocol.mdbefore starting - MUST READ
.claude/skills/shared/plan-quality-protocol.mdbefore starting - MUST READ
.claude/skills/shared/ui-system-context.mdbefore starting - MUST READ
.claude/skills/shared/graph-assisted-investigation-protocol.mdbefore starting
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
fix-parallel
[Implementation] Analyze & fix issues with parallel fullstack-developer agents
ask
[Utilities] Answer technical and architectural questions.
claude-code
[Utilities] Claude Code CLI setup, configuration, troubleshooting, and feature guidance. Triggers on claude code setup, hook not firing, MCP connection, context limit, skill creation, slash command setup.
workflow-deployment
[Workflow] Trigger Deployment & Infrastructure workflow — CI/CD pipelines, Docker, Kubernetes setup and deployment.
workflow-idea-to-pbi
[Workflow] Trigger Idea to PBI workflow — po/ba workflow: capture idea, refine to pbi, create stories, prioritize.
easy-claude-help
[Utilities] Configuration guide for the easy-claude framework — explain settings, guide users through configuring .ck.json.
Didn't find tool you were looking for?