agentsclimarketplace

Task analyzer

Skill shinpr/ai-coding-project-boilerplate/.claude/skills-en/task-analyzer

Agentic coding TypeScript boilerplate for Claude Code: sub-agent workflows with built-in quality checks and context engineering.

Install
npx -y skills add shinpr/ai-coding-project-boilerplate --skill task-analyzer

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Classifies task intent, change risk, and execution scale, then selects skills from the project skills index. Use when starting work, routing a task, estimating scope, or selecting skills.

SKILL.md

8.2 KB, as published. Nobody here has run it

Task Analyzer

Provides metacognitive task analysis and skill selection guidance.

Skills Index

See skills-index.yaml for available skills metadata.

Task Analysis Process

1. Understand Task Essence

Identify the fundamental purpose beyond surface-level work:

Surface WorkFundamental 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:

  • What problem are we really solving?
  • What is the expected outcome?
  • What could go wrong if we approach this superficially?

2. Estimate Task Scale

File count is one signal, not the deciding rule. Evaluate every axis below and select the highest scale triggered by any observed axis.

AxisSmallMediumLarge
Estimated files1-23-56+
Observable outcomesOne behaviorMultiple related behaviorsMultiple independently verifiable outcomes
Contracts/dataNo public contract or persisted-data changeBackward-compatible contract changeBreaking contract, schema migration, or persisted-data migration
BoundariesOne local module/componentMultiple modules in one layerCross-layer, cross-service, or external-system boundary
Decision riskExisting pattern applies directlyOne bounded technical decisionArchitecture, security, compliance, or irreversible operational decision

Record which axis determined the final scale. A high file count caused only by mechanical generated-file updates may be reduced when the repository workflow proves the change has one behavior and one verification path; record that evidence in scaleRationale.

Scale affects skill priority:

  • Larger scale → process/documentation skills more important
  • Smaller scale → implementation skills more focused

3. Identify Task Type

TypeCharacteristicsKey Skills
implementationNew code or user-visible behaviorcoding-standards, typescript-testing
fixDefect or regression resolutioncoding-standards, typescript-testing
refactoringBehavior-preserving structure improvementcoding-standards, implementation-approach
designArchitecture or contract decisionsdocumentation-criteria, implementation-approach
qualityTesting, review, verificationtypescript-testing, integration-e2e-testing
documentationPRD, ADR, Design Doc, UI Spec, plan, or instruction contentdocumentation-criteria
investigationEvidence gathering without implementationproject-context plus the domain skill selected from the index
migrationData, schema, API, dependency, or runtime transitionimplementation-approach, documentation-criteria
operationsEnvironment, deployment, or runtime operationtechnical-spec plus the domain skill selected from the index
securitySecurity design or reviewcoding-standards plus the implementation-domain skill
skillSkill creation, prompt-quality review, or skill metadata changeskill-optimization, llm-friendly-context

When multiple types apply, return the primary type that owns the requested outcome and list the remaining values in secondaryTypes.

4. Tag-Based Skill Matching

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-standards (implementation, security)
  - typescript-testing (testing)
  - typescript-rules (implementation)

5. Implicit Relationships

Consider hidden dependencies:

Task InvolvesAlso Include
Error handlingdebugging, testing
New featuresdesign, implementation, documentation
Performanceprofiling, optimization, testing
Frontendtypescript-rules, typescript-testing
API/Integrationintegration-e2e-testing

Output Format

Return structured analysis with skill metadata from skills-index.yaml:

taskAnalysis:
  essence: <string>  # Fundamental purpose identified
  type: <implementation|fix|refactoring|design|quality|documentation|investigation|migration|operations|security|skill>
  secondaryTypes: [<task-type>, ...]
  scale: <small|medium|large>
  estimatedFiles: <number>
  scaleRationale:
    decidingAxis: <files|outcomes|contracts-data|boundaries|decision-risk>
    evidence: <string>
  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
    # Pass through metadata from skills-index.yaml
    tags: [...]
    typical-use: <string>
    size: <small|medium|large>
    sections: [...]  # All sections from yaml, unfiltered

Note: Section selection (choosing which sections are relevant) is done separately after reading the actual SKILL.md files.

Process Gates

  1. Intent gate: Proceed to scale estimation when essence, primary type, and any secondaryTypes are recorded. If the requested outcome is ambiguous, record the exact outcome decision required.
  2. Scale gate: Proceed to skill matching when every scale axis has observed, inferred, or unknown evidence and scaleRationale names the deciding axis.
  3. Selection gate: Finalize when every selected skill exists in skills-index.yaml, has a reason tied to the task, and its metadata is copied without invention.

If estimated file count or a material contract/boundary decision is unknown, classify it as unknown. Use the highest scale supported by observed evidence; when an unknown could raise the scale and changes the required workflow, stop and request the exact repository evidence or user decision needed.

Skill Selection Priority

  1. Essential - Directly related to task type
  2. Quality - Testing and quality assurance
  3. Process - Workflow and documentation
  4. Supplementary - Additional constraints or evidence directly tied to the task

Metacognitive Question Design

Generate only questions whose answers can change intent classification, scale, selected skills, a hard constraint, or verification. Return no question when repository evidence already resolves those decisions. For every question, record the decision it controls.

Task TypeQuestion Focus
ImplementationDesign validity, edge cases, performance
FixRoot cause (5 Whys), impact scope, regression testing
RefactoringCurrent problems, target state, phased plan
DesignRequirement clarity, future extensibility, trade-offs
DocumentationAudience, source of truth, approval/consumer contract
InvestigationClaim to resolve, evidence boundary, stopping condition
MigrationCompatibility window, data/contract transition, rollback
OperationsTarget environment, authorization boundary, recovery evidence
SecurityTrust boundary, protected asset, threat/acceptance source
SkillTriggering intent, standalone context, output consumer

Warning Patterns

Detect and flag these patterns:

PatternWarningMitigation
One step contains multiple independently verifiable outcomesTransition and rollback riskSplit at observable verification boundaries
A behavior change has no test or named runnable verificationRegression evidence is missingAdd the cheapest check that observes the changed contract
A proposed fix has no observed causal link to the failureRoot cause remains inferredRecord reproduction evidence and the first causal boundary before selecting the fix
Medium/Large implementation lacks its scale-required planning artifactScope and dependency contract is missingCreate the required artifact before implementation routing

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.