一键导入
task-analyzer
Performs task analysis and skill selection. Use when: determining task complexity, selecting appropriate skills, or estimating work scale.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Performs task analysis and skill selection. Use when: determining task complexity, selecting appropriate skills, or estimating work scale.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Anti-pattern detection, root-cause discipline, quality check workflow, and implementation completeness assurance. Use when: fixing bugs, reviewing code quality, refactoring, making technical decisions, or performing quality assurance.
Language-agnostic coding standards for maintainability, readability, and quality. Use when: implementing features, refactoring code, reviewing code quality, or writing functions.
Documentation creation criteria for PRD, ADR, Design Doc, UI Spec, and Work Plan with templates. Use when: creating or reviewing technical documents, determining which documents are required, or following document templates.
Implementation strategy selection framework with meta-cognitive approach. Use when: planning implementation strategy, selecting between vertical/horizontal slicing, or defining verification criteria for tasks.
Integration and E2E test design principles, value-based selection, test skeleton specification, and review criteria. Use when: designing integration tests, E2E tests, generating test skeletons, or reviewing test quality.
Guides subagent coordination through implementation workflows. Use when: orchestrating multiple agents, managing workflow phases, determining autonomous execution mode, or coordinating recipe execution.
| name | task-analyzer |
| description | Performs task analysis and skill selection. Use when: determining task complexity, selecting appropriate skills, or estimating work scale. |
Provides task analysis and skill selection guidance.
See skills-index.yaml for available skills 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 |
Key Questions [MUST answer before proceeding]:
| 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:
| Type | Characteristics | Key Skills |
|---|---|---|
| Implementation | New code, features | coding-rules, testing |
| Fix | Bug resolution | ai-development-guide, testing |
| Refactoring | Structure improvement | coding-rules, ai-development-guide |
| Design | Architecture decisions | documentation-criteria, implementation-approach |
| Quality | Testing, review | testing, integration-e2e-testing |
Extract relevant tags from task description and match against skills-index.yaml:
Task: "Implement user authentication with tests"
Extracted tags: [implementation, testing, security]
Matched skills:
- coding-rules (implementation, security)
- testing (testing)
- ai-development-guide (implementation)
Consider hidden dependencies:
| Task Involves | Also Include |
|---|---|
| Error handling | debugging, testing |
| New features | design, implementation, documentation |
| Performance | profiling, optimization, testing |
| Frontend | coding-rules/references/typescript.md, testing/references/typescript.md |
| API/Integration | integration-e2e-testing |
Return structured analysis with skill metadata from skills-index.yaml:
taskAnalysis:
essence: <string> # Fundamental purpose identified
type: <implementation|fix|refactoring|design|quality>
scale: <small|medium|large>
estimatedFiles: <number>
tags: [<string>, ...] # Extracted from task description
selectedSkills:
- skill: <skill-name> # From skills-index.yaml
priority: <high|medium|low>
reason: <string> # Why this skill was selected
tags: [...]
typical-use: <string>
size: <small|medium|large>
sections: [...] # Full section list from yaml
references: [...] # Full reference file list from yaml when present
Note: Section and reference selection (choosing which sections or reference files are relevant) is done after reading the actual SKILL.md files. For output-format templates, read only the reference files matching the document type being created or reviewed.
Generate 3-5 questions according to task nature:
| Task Type | Question Focus |
|---|---|
| Implementation | Design validity, edge cases, performance |
| Fix | Root cause (5 Whys), impact scope, regression testing |
| Refactoring | Current problems, target state, phased plan |
| Design | Requirement clarity, future extensibility, trade-offs |
Detect and flag these patterns IMMEDIATELY:
| Pattern | Warning | REQUIRED Action |
|---|---|---|
| Large change at once | High risk | MUST split into phases |
| Implementation without tests | Quality risk | MUST follow TDD |
| Immediate fix on error | Root cause missed | MUST pause and analyze with 5 Whys |
| Coding without plan | Scope creep | MUST plan first |
ENFORCEMENT: Detecting ANY warning pattern requires IMMEDIATE corrective action
| Decision | Criteria |
|---|---|
| Need documentation? | Check documentation-criteria decision matrix |
| Which implementation approach? | Check implementation-approach phases |
| How to test? | Check testing + integration-e2e-testing |
| Code quality concerns? | Check ai-development-guide anti-patterns |
| Frontend specific? | Check coding-rules/references/typescript.md |