con un clic
autospec-analyze
Analyze cross-artifact consistency and quality in YAML format.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Analyze cross-artifact consistency and quality in YAML format.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Generate YAML feature specification from natural language description.
Generate YAML task breakdown from implementation plan.
Generate YAML checklist for feature quality validation.
Identify underspecified areas in YAML spec and encode clarifications back into the spec.
Generate or update project constitution in YAML format.
Execute the implementation plan by processing tasks defined in tasks.yaml.
| name | autospec-analyze |
| description | Analyze cross-artifact consistency and quality in YAML format. |
This Agent Skill is generated from autospec.analyze. When the user invokes "$autospec-analyze" or "/autospec.analyze", load and follow these instructions directly. Treat the text after the skill or command name as "$ARGUMENTS". Do not route back through "autospec analyze"; this skill is the prompt for the stage.
Project specs directory: ./specs
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Identify inconsistencies, duplications, ambiguities, and underspecified items across the core artifacts (spec, plan, tasks) before implementation. This command MUST run only after $autospec-tasks has successfully produced a complete tasks file.
STRICTLY READ-ONLY: Do not modify any files. Output a structured analysis YAML file. Offer an optional remediation plan (user must explicitly approve before any follow-up editing commands would be invoked manually).
Constitution Authority: The project constitution (.autospec/constitution.yaml or AGENTS.md, falling back to agent-specific file like CLAUDE.md) is non-negotiable within this analysis scope. Constitution conflicts are automatically CRITICAL and require adjustment of the spec, plan, or tasks.
The following paths have been pre-computed and are available for use:
{{.FeatureDir}}{{.FeatureSpec}}Load only the minimal necessary context from each artifact:
From spec.yaml:
From plan.yaml:
From tasks.yaml:
From constitution:
.autospec/constitution.yaml or AGENTS.md (falling back to agent-specific file like CLAUDE.md) for principle validationCreate internal representations (do not include raw artifacts in output):
Focus on high-signal findings. Limit to 50 findings total; aggregate remainder in overflow summary.
<placeholder>, etc.)Use this heuristic to prioritize findings:
analysis:
branch: "<current git branch>"
timestamp: "<ISO 8601 timestamp>"
spec_path: "<relative path to spec file>"
plan_path: "<relative path to plan file>"
tasks_path: "<relative path to tasks file>"
constitution_path: "<path to constitution or 'Not found'>"
findings:
- id: "DUP-001"
category: "duplication"
severity: "HIGH"
location: "spec.yaml:requirements.functional[2]"
summary: "Two similar requirements for user login"
details: "FR-002 and FR-005 both describe user authentication flow"
recommendation: "Merge into single requirement; keep clearer phrasing"
- id: "AMB-001"
category: "ambiguity"
severity: "MEDIUM"
location: "spec.yaml:requirements.non_functional[0]"
summary: "Vague performance requirement"
details: "'Fast response time' lacks specific threshold"
recommendation: "Quantify with specific metric (e.g., '<200ms p95')"
- id: "COV-001"
category: "coverage"
severity: "HIGH"
location: "spec.yaml:requirements.functional[3]"
summary: "FR-004 has no corresponding task"
details: "Password reset requirement not covered in tasks.yaml"
recommendation: "Add task in User Story phase for FR-004 implementation"
- id: "CON-001"
category: "constitution"
severity: "CRITICAL"
location: "tasks.yaml:phases[2].tasks[0]"
summary: "Missing test task before implementation"
details: "Constitution requires test-first development"
recommendation: "Add test task before implementation task T011"
- id: "INC-001"
category: "inconsistency"
severity: "MEDIUM"
location: "plan.yaml:data_model vs spec.yaml:key_entities"
summary: "Entity naming mismatch"
details: "'User' in spec but 'Account' in plan data model"
recommendation: "Standardize naming across artifacts"
coverage:
requirements:
- id: "FR-001"
has_task: true
task_ids: ["T010", "T011"]
notes: ""
- id: "FR-002"
has_task: false
task_ids: []
notes: "COVERAGE GAP"
user_stories:
- id: "US-001"
tasks_count: 5
coverage_status: "complete"
- id: "US-002"
tasks_count: 0
coverage_status: "missing"
constitution_alignment:
status: "PASS" # or "FAIL" if any CRITICAL constitution issues
violations:
- principle: "Test-First Development"
status: "VIOLATION"
details: "3 implementation tasks lack preceding test tasks"
unmapped_tasks:
- task_id: "T015"
title: "Refactor logging"
issue: "No corresponding requirement or story"
metrics:
total_requirements: <number>
total_tasks: <number>
coverage_percentage: <number> # requirements with >=1 task
ambiguity_count: <number>
duplication_count: <number>
critical_issues: <number>
high_issues: <number>
medium_issues: <number>
low_issues: <number>
summary:
overall_status: "<PASS|WARN|FAIL>"
blocking_issues: <number of CRITICAL issues>
actionable_improvements: <number of HIGH/MEDIUM issues>
ready_for_implementation: <true|false>
_meta:
version: "1.0.0"
generator: "autospec"
generator_version: "<AUTOSPEC_VERSION from step 1>"
created: "<CREATED_DATE from step 1>"
artifact_type: "analysis"
{{.FeatureDir}}/analysis.yamlautospec artifact {{.FeatureDir}}/analysis.yaml
At end of analysis, output a concise summary:
Ask the user: "Would you like me to suggest concrete remediation edits for the top N issues?" (Do NOT apply them automatically.)
analysis.yaml)