recipe-task
GitHub指导Agent通过rule-advisor进行元认知分析,选择规则并规划任务,随后利用TaskCreate/Update管理执行流程,确保遵循最佳实践与历史经验。
Trigger Scenarios
Install
npx skills add shinpr/claude-code-workflows --skill recipe-task -g -y
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. Execute Skill: subagents-orchestration-guide before making workflow decisions, invoking agents, or resolving findings.
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:
-
Understand Task Essence (from
taskAnalysis.essence)- Focus on fundamental purpose, not surface-level work
- Distinguish between "quick fix" vs "proper solution"
-
Follow Selected Rules (from
selectedRules)- Execute each selected skill by its
skillname and read it completely - Apply the named sections in the context of the complete skill
- Execute each selected skill by its
-
Recognize Past Failures (from
metaCognitiveGuidance.pastFailures)- Apply countermeasures for known failure patterns
- Use suggested alternative approaches
-
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.essencein task descriptions - Apply
metaCognitiveGuidance.firstStepto 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.firstStepaction 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 from the selected skills and sections named by rule-advisor
- Monitor warningPatterns flags throughout execution and adjust approach when triggered
Version History
-
0d96a63
Current 2026-08-05 22:03
优化了步骤2中对选定规则的处理方式,强调完整阅读技能上下文而非仅回顾章节;截断文本已恢复完整。
-
51b7dbc
2026-08-05 01:44
新增在触发该Skill前需先执行llm-friendly-context和subagents-orchestration-guide的强制要求。
-
d439b50
2026-07-31 02:51
将rule-advisor的subagent_type从'dev-workflows'更新为'dev-workflows-frontend';优化任务列表初始化描述,将固定任务改为动态映射规则与验证完成。
- 66e3b29 2026-07-05 11:58


