Performs metacognitive task analysis and skill selection. Use when determining task complexity, selecting appropriate skills, or estimating work scale. Returns skills with confidence scores and metadata.
Identify the fundamental purpose beyond surface-level work:
Surface Work
Fundamental Purpose
"Fix this bug"
Problem solving, root cause analysis
"Implement this feature"
Feature addition, value delivery
"Refactor this code"
Quality improvement, maintainability
"Update this file"
Change management, consistency
Action: Map the user request to one row in the Surface Work → Fundamental Purpose table above. If no row matches, state the fundamental purpose explicitly before proceeding.
2. Estimate Task Scale
Scale
File Count
Indicators
Small
1-2
Single function/component change
Medium
3-5
Multiple related components
Large
6+
Cross-cutting concerns, architecture impact
Scale affects skill priority:
Scale >= Large → include documentation-criteria and implementation-approach in selectedSkills with priority high
Scale = Small → limit selectedSkills to task-type essential skills only (max 3)
3. Identify Task Type
Type
Characteristics
Key Skills
Implementation
New code, features
coding-principles, testing-principles
Fix
Bug resolution
ai-development-guide, testing-principles
Refactoring
Structure improvement
coding-principles, ai-development-guide
Design
Architecture decisions
documentation-criteria, implementation-approach
Quality
Testing, review
testing-principles, integration-e2e-testing
4. Tag-Based Skill Matching
Extract relevant tags from task description and match against skills-index.yaml: