AgentSkillsCN

cook

以智能意图识别为核心,端到端地实现功能开发。支持自然语言输入或规划路径,自动路由至合适的执行流程(快速、自动、并行、代码驱动)。

SKILL.md
--- frontmatter
name: cook
description: Implement features end-to-end with smart intent detection. Accepts natural language or plan paths. Auto-routes to appropriate workflow (fast, auto, parallel, code).
version: 2.0.0

Cook - Smart Feature Implementation

End-to-end implementation with automatic workflow detection.

Principles: YAGNI, KISS, DRY | Token efficiency | Concise reports

Usage

code
/cook <natural language task OR plan path>

Optional flags: --fast, --parallel, --no-test, --auto

Smart Intent Detection

Input PatternDetected ModeBehavior
Path to plan.md or phase-*.mdcodeExecute existing plan
Contains "fast", "quick"fastSkip research, scout→plan→code
Contains "trust me", "auto"autoAuto-approve all steps
Lists 3+ features OR "parallel"parallelMulti-agent execution
Contains "no test", "skip test"no-testSkip testing step
DefaultinteractiveFull workflow with user input

See references/intent-detection.md for detection logic.

Workflow Overview

code
[Intent Detection] → [Research?] → [Plan] → [Implement] → [Test?] → [Review] → [Finalize]
ModeResearchTestingReviewAll Phases
interactiveUser approvalOne at a time
autoAuto if score≥9.5All at once
fastSimplifiedOne at a time
parallelOptionalUser approvalParallel groups
no-testUser approvalOne at a time
codeUser approvalPer plan

Step Output Format

code
✓ Step [N]: [Brief status] - [Key metrics]

Blocking Gates

  • Testing: 100% pass required (unless no-test mode)
  • Review: User approval OR auto-approve (score≥9.5, 0 critical)
  • Finalize: project-manager AND docs-manager must complete

Required Subagents

PhaseSubagent
Researchresearcher (parallel, optional in fast)
Scoutscout
Planplanner
UI Workui-ux-designer
Testingtester, debugger
Reviewcode-reviewer
Finalizeproject-manager, docs-manager, git-manager

References

  • references/intent-detection.md - Detection rules and routing logic
  • references/workflow-steps.md - Detailed step definitions for all modes
  • references/review-cycle.md - Interactive and auto review processes
  • references/subagent-patterns.md - Subagent invocation patterns