recipe-task

GitHub

该技能通过调用rule-advisor进行元认知分析,辅助Agent选择规则、识别潜在失败模式并规划任务。它指导Agent在执行前理解任务本质,利用TaskCreate创建结构化的任务列表,并依据推荐的第一步和警告模式执行实施,确保高质量交付。

dev-workflows-frontend/skills/recipe-task/SKILL.md shinpr/claude-code-workflows

触发场景

需要执行复杂任务时 希望遵循特定开发规范或最佳实践时 需要结构化分解任务步骤时

安装

npx skills add shinpr/claude-code-workflows --skill recipe-task -g -y
更多选项

非标准路径

npx skills add https://github.com/shinpr/claude-code-workflows/tree/main/dev-workflows-frontend/skills/recipe-task -g -y

不安装直接使用

npx skills use shinpr/claude-code-workflows@recipe-task

指定 Agent (Claude Code)

npx skills add shinpr/claude-code-workflows --skill recipe-task -a claude-code -g -y

安装 repo 全部 skill

npx skills add shinpr/claude-code-workflows --all -g -y

预览 repo 内 skill

npx skills add shinpr/claude-code-workflows --list

SKILL.md

Frontmatter
{
    "name": "recipe-task",
    "description": "Execute tasks following appropriate rules with rule-advisor metacognition",
    "disable-model-invocation": true
}

Execute Skill: llm-friendly-context before writing Agent prompts, handoffs, or generated artifacts.

Task Execution with Metacognitive Analysis

Task: $ARGUMENTS

Mandatory Execution Process

Step 1: Rule Selection via rule-advisor (REQUIRED)

Invoke rule-advisor using Agent tool:

  • subagent_type: "dev-workflows-frontend:rule-advisor"
  • description: "Rule selection"
  • prompt: "Task: $ARGUMENTS. Select appropriate rules and perform metacognitive analysis."

Step 2: Utilize rule-advisor Output

After receiving rule-advisor's JSON response, proceed with:

  1. Understand Task Essence (from taskAnalysis.essence)

    • Focus on fundamental purpose, not surface-level work
    • Distinguish between "quick fix" vs "proper solution"
  2. Follow Selected Rules (from selectedRules)

    • Review each selected rule section
    • Apply concrete procedures and guidelines
  3. Recognize Past Failures (from metaCognitiveGuidance.pastFailures)

    • Apply countermeasures for known failure patterns
    • Use suggested alternative approaches
  4. Execute First Action (from metaCognitiveGuidance.firstStep)

    • Start with recommended action
    • Use suggested tools first

Step 3: Create Task List with TaskCreate

Register work steps using TaskCreate. Use "Select and map applicable rules" as the first task and "Verify selected rules and report completion" as the final task.

Break down the task based on rule-advisor's guidance:

  • Reflect taskAnalysis.essence in task descriptions
  • Apply metaCognitiveGuidance.firstStep to first task
  • Restructure tasks considering warningPatterns
  • Set priorities based on dependency order and warningPatterns severity
  • Update each task with TaskUpdate as execution progresses

Step 4: Execute Implementation

Proceed with task execution following:

  • Start with metaCognitiveGuidance.firstStep action from rule-advisor
  • Update task structure with TaskUpdate to reflect rule-advisor insights
  • Selected rules from rule-advisor
  • Task structure (managed via TaskCreate/TaskUpdate)
  • Quality standards defined in the selectedRules output from rule-advisor
  • Monitor warningPatterns flags throughout execution and adjust approach when triggered

版本历史

  • d439b50 当前 2026-07-31 02:51

    将rule-advisor的subagent_type从'dev-workflows'更新为'dev-workflows-frontend';优化任务列表初始化描述,将固定任务改为动态映射规则与验证完成。

  • 66e3b29 2026-07-05 11:58

同 Skill 集合

dev-skills/skills/ai-development-guide/SKILL.md
dev-skills/skills/coding-principles/SKILL.md
dev-skills/skills/documentation-criteria/SKILL.md
dev-skills/skills/external-resource-context/SKILL.md
dev-skills/skills/frontend-ai-guide/SKILL.md
dev-skills/skills/implementation-approach/SKILL.md
dev-skills/skills/integration-e2e-testing/SKILL.md
dev-skills/skills/llm-friendly-context/SKILL.md
dev-skills/skills/test-implement/SKILL.md
dev-skills/skills/testing-principles/SKILL.md
dev-skills/skills/typescript-rules/SKILL.md
dev-workflows-frontend/skills/ai-development-guide/SKILL.md
dev-workflows-frontend/skills/coding-principles/SKILL.md
dev-workflows-frontend/skills/documentation-criteria/SKILL.md
dev-workflows-frontend/skills/external-resource-context/SKILL.md
dev-workflows-frontend/skills/frontend-ai-guide/SKILL.md
dev-workflows-frontend/skills/implementation-approach/SKILL.md
dev-workflows-frontend/skills/integration-e2e-testing/SKILL.md
dev-workflows-frontend/skills/llm-friendly-context/SKILL.md
dev-workflows-frontend/skills/recipe-diagnose/SKILL.md
dev-workflows-frontend/skills/recipe-front-adjust/SKILL.md
dev-workflows-frontend/skills/recipe-front-build/SKILL.md
dev-workflows-frontend/skills/recipe-front-design/SKILL.md
dev-workflows-frontend/skills/recipe-front-plan/SKILL.md
dev-workflows-frontend/skills/recipe-front-review/SKILL.md
dev-workflows-frontend/skills/recipe-update-doc/SKILL.md
dev-workflows-frontend/skills/subagents-orchestration-guide/SKILL.md
dev-workflows-frontend/skills/task-analyzer/SKILL.md
dev-workflows-frontend/skills/test-implement/SKILL.md
dev-workflows-frontend/skills/testing-principles/SKILL.md
dev-workflows-frontend/skills/typescript-rules/SKILL.md
dev-workflows-fullstack/skills/ai-development-guide/SKILL.md
dev-workflows-fullstack/skills/coding-principles/SKILL.md
dev-workflows-fullstack/skills/documentation-criteria/SKILL.md
dev-workflows-fullstack/skills/external-resource-context/SKILL.md
dev-workflows-fullstack/skills/frontend-ai-guide/SKILL.md
dev-workflows-fullstack/skills/implementation-approach/SKILL.md
dev-workflows-fullstack/skills/integration-e2e-testing/SKILL.md
dev-workflows-fullstack/skills/llm-friendly-context/SKILL.md
dev-workflows-fullstack/skills/recipe-add-integration-tests/SKILL.md
dev-workflows-fullstack/skills/recipe-build/SKILL.md
dev-workflows-fullstack/skills/recipe-design/SKILL.md
dev-workflows-fullstack/skills/recipe-diagnose/SKILL.md
dev-workflows-fullstack/skills/recipe-front-adjust/SKILL.md
dev-workflows-fullstack/skills/recipe-front-build/SKILL.md
dev-workflows-fullstack/skills/recipe-front-design/SKILL.md
dev-workflows-fullstack/skills/recipe-front-plan/SKILL.md
dev-workflows-fullstack/skills/recipe-front-review/SKILL.md
dev-workflows-fullstack/skills/recipe-fullstack-build/SKILL.md

元信息

文件数
0
版本
d439b50
Hash
20977fd7
收录时间
2026-07-05 11:58

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-01 04:54
浙ICP备14020137号-1 $访客地图$