task-analyzer

GitHub

分析任务本质,从技能目录中匹配最小必要执行技能和元认知防护规则。根据代码证据(如缺陷、重构、前端)选择治理、风控或补充类技能,生成执行指导、潜在陷阱及关键问题,确保所选技能能切实改变验证或风险处理流程。

dev-workflows-frontend/skills/task-analyzer/SKILL.md shinpr/claude-code-workflows

Trigger Scenarios

需要确定任务核心目标和执行策略时 面对复杂任务需拆解并匹配最小必要技能集时 需要识别潜在风险和制定初步行动计划时

Install

npx skills add shinpr/claude-code-workflows --skill task-analyzer -g -y
More Options

Non-standard path

npx skills add https://github.com/shinpr/claude-code-workflows/tree/main/dev-workflows-frontend/skills/task-analyzer -g -y

Use without installing

npx skills use shinpr/claude-code-workflows@task-analyzer

指定 Agent (Claude Code)

npx skills add shinpr/claude-code-workflows --skill task-analyzer -a claude-code -g -y

安装 repo 全部 skill

npx skills add shinpr/claude-code-workflows --all -g -y

预览 repo 内 skill

npx skills add shinpr/claude-code-workflows --list

SKILL.md

Frontmatter
{
    "name": "task-analyzer",
    "description": "Selects the smallest set of task-execution skills and metacognitive safeguards for standalone task and diagnosis workflows."
}

Task Analyzer

Use skills-index.yaml as the available skill catalog. Documentation routing and workflow Structural Scale belong to documentation-criteria, not this skill.

Process

1. Identify Task Essence

State the observable purpose beyond the surface operation. Preserve an explicitly invoked recipe or governing artifact as the entry point.

2. Match Skills to Task Evidence

Extract task-evidence tags and match them to the catalog. Add a skill only when its rules change the requested action, verification, or handling of a concrete risk.

Task evidence Consider
Observed defect or failure ai-development-guide, testing-principles
Code implementation or refactoring coding-principles, testing-principles
Requested design artifact documentation-criteria
Multiple credible implementation strategies requiring cost comparison implementation-approach
Observable cross-boundary behavior that cannot be proven more cheaply integration-e2e-testing
React or TypeScript frontend code typescript-rules and applicable frontend testing rules

Select in this order:

  1. governing: defines the requested output or selected workflow.
  2. risk-control: changes proof or handling of an activated failure mode.
  3. supplementary: resolves a concrete remaining risk.

3. Generate Execution Guidance

Generate only warnings and questions that can change skill selection, verification, escalation, or the first action. Prefer the smallest evidence-gathering action that can establish the target or cause.

Task analysis does not own Structural Scale, file-count estimation, documentation requirements, approval gates, implementation phases, or subagent topology.

Output

taskAnalysis:
  essence: <fundamental purpose>
  extractedTags: [<task evidence tag>]
selectedRules:
  - skill: <skill name from skills-index.yaml>
    priority: <governing|risk-control|supplementary>
    reason: <how it changes execution or verification>
    sections: [<relevant section name>]
metaCognitiveGuidance:
  taskEssence: <fundamental purpose>
  pastFailures: [<applicable known failure pattern>]
  potentialPitfalls: [<task-specific risk>]
  firstStep:
    action: <smallest evidence-gathering or execution action>
    rationale: <why it comes first>
metaCognitiveQuestions: [<question that can change the approach>]
warningPatterns:
  - pattern: <applicable warning>
    mitigation: <proportionate response>

Return skill names and relevant section names. The consumer loads the named skills; filesystem paths, catalog metadata, and skill bodies remain at their source.

Completion Check

  • Task essence, tags, and first action are tied to the current request.
  • Every selected skill changes execution, verification, or a concrete risk response.
  • The selected set is the smallest sufficient set.
  • Questions and warnings are task-specific and proportionate.
  • Structural Scale and workflow routing remain with their owning process.

Version History

  • 0d96a63 Current 2026-08-05 22:03

    重构:基于证据收敛设计决策,简化流程,移除规模估算逻辑。

  • 56ab6c1 2026-07-19 22:42

    重构提示词执行指南;细化大型任务的技能优先级逻辑,区分架构影响与非实现类任务的策略要求;优化小型任务的选择限制说明。

  • 66e3b29 2026-07-05 11:58

Same Skill Collection

dev-skills/skills/ai-development-guide/SKILL.md
dev-skills/skills/coding-principles/SKILL.md
dev-skills/skills/documentation-criteria/SKILL.md
dev-skills/skills/external-resource-context/SKILL.md
dev-skills/skills/frontend-ai-guide/SKILL.md
dev-skills/skills/implementation-approach/SKILL.md
dev-skills/skills/integration-e2e-testing/SKILL.md
dev-skills/skills/llm-friendly-context/SKILL.md
dev-skills/skills/requirement-convergence/SKILL.md
dev-skills/skills/test-implement/SKILL.md
dev-skills/skills/testing-principles/SKILL.md
dev-skills/skills/typescript-rules/SKILL.md
dev-workflows-frontend/skills/ai-development-guide/SKILL.md
dev-workflows-frontend/skills/coding-principles/SKILL.md
dev-workflows-frontend/skills/documentation-criteria/SKILL.md
dev-workflows-frontend/skills/external-resource-context/SKILL.md
dev-workflows-frontend/skills/frontend-ai-guide/SKILL.md
dev-workflows-frontend/skills/implementation-approach/SKILL.md
dev-workflows-frontend/skills/integration-e2e-testing/SKILL.md
dev-workflows-frontend/skills/llm-friendly-context/SKILL.md
dev-workflows-frontend/skills/recipe-diagnose/SKILL.md
dev-workflows-frontend/skills/recipe-front-adjust/SKILL.md
dev-workflows-frontend/skills/recipe-front-build/SKILL.md
dev-workflows-frontend/skills/recipe-front-design/SKILL.md
dev-workflows-frontend/skills/recipe-front-plan/SKILL.md
dev-workflows-frontend/skills/recipe-front-review/SKILL.md
dev-workflows-frontend/skills/recipe-task/SKILL.md
dev-workflows-frontend/skills/recipe-update-doc/SKILL.md
dev-workflows-frontend/skills/requirement-convergence/SKILL.md
dev-workflows-frontend/skills/subagents-orchestration-guide/SKILL.md
dev-workflows-frontend/skills/test-implement/SKILL.md
dev-workflows-frontend/skills/testing-principles/SKILL.md
dev-workflows-frontend/skills/typescript-rules/SKILL.md
dev-workflows-fullstack/skills/ai-development-guide/SKILL.md
dev-workflows-fullstack/skills/coding-principles/SKILL.md
dev-workflows-fullstack/skills/documentation-criteria/SKILL.md
dev-workflows-fullstack/skills/external-resource-context/SKILL.md
dev-workflows-fullstack/skills/frontend-ai-guide/SKILL.md
dev-workflows-fullstack/skills/implementation-approach/SKILL.md
dev-workflows-fullstack/skills/integration-e2e-testing/SKILL.md
dev-workflows-fullstack/skills/llm-friendly-context/SKILL.md
dev-workflows-fullstack/skills/recipe-add-integration-tests/SKILL.md
dev-workflows-fullstack/skills/recipe-build/SKILL.md
dev-workflows-fullstack/skills/recipe-design/SKILL.md
dev-workflows-fullstack/skills/recipe-diagnose/SKILL.md
dev-workflows-fullstack/skills/recipe-front-adjust/SKILL.md
dev-workflows-fullstack/skills/recipe-front-build/SKILL.md
dev-workflows-fullstack/skills/recipe-front-design/SKILL.md
dev-workflows-fullstack/skills/recipe-front-plan/SKILL.md

Metadata

Files
0
Version
4a931f4
Hash
e791d3c7
Indexed
2026-07-05 11:58

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 06:23
浙ICP备14020137号-1 $Carte des visiteurs$