Task Execution with Metacognitive Analysis
Task: $ARGUMENTS
Mandatory Execution Process
Step 1: Rule Selection via rule-advisor (REQUIRED)
Execute rule-advisor to analyze the task and select appropriate rules for: $ARGUMENTS
Provide context about current situation and prerequisites when invoking.
Step 2: Utilize rule-advisor Output
After receiving rule-advisor's JSON response, proceed with:
-
Understand Task Essence (from
taskEssence)- 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
pastFailurePatterns)- Apply countermeasures for known failure patterns
- Use suggested alternative approaches
-
Execute First Action (from
firstActionGuidance)- 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
taskEssencein task descriptions - Apply
firstActionGuidanceto first task - Restructure tasks considering
warningPatterns - Set appropriate priorities
Step 4: Execute Implementation
Proceed with task execution following:
- Selected rules from rule-advisor
- Task structure (managed via TaskCreate/TaskUpdate)
- Quality standards from applicable rules
Important Notes
- Execute rule-advisor first: Mandatory metacognitive step before implementation
- Update tasks after rule-advisor: Reflect insights in task structure using TaskUpdate
- Follow firstActionGuidance: Start with recommended action
- Monitor warningPatterns: Watch for failure patterns throughout execution