Claude-code-workflows recipe-task
Execute tasks following appropriate rules with rule-advisor metacognition
install
source · Clone the upstream repo
git clone https://github.com/shinpr/claude-code-workflows
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/shinpr/claude-code-workflows "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/recipe-task" ~/.claude/skills/shinpr-claude-code-workflows-recipe-task && rm -rf "$T"
manifest:
skills/recipe-task/SKILL.mdsource content
Task Execution with Metacognitive Analysis
Task: $ARGUMENTS
Mandatory Execution Process
Step 1: Rule Selection via rule-advisor (REQUIRED)
Invoke rule-advisor using Agent tool:
: "dev-workflows:rule-advisor"subagent_type
: "Rule selection"description
: "Task: $ARGUMENTS. Select appropriate rules and perform metacognitive analysis."prompt
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- Review each selected rule section
- Apply concrete procedures and guidelines
-
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. Always include: first "Confirm skill constraints", final "Verify skill fidelity".
Break down the task based on rule-advisor's guidance:
- Reflect
in task descriptionstaskAnalysis.essence - Apply
to first taskmetaCognitiveGuidance.firstStep - Restructure tasks considering
warningPatterns - Set priorities based on dependency order and warningPatterns severity
Step 4: Execute Implementation
Proceed with task execution following:
- Start with
action from rule-advisormetaCognitiveGuidance.firstStep - 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