agentleFS
ArvorCoArvorCo/Relentless/.claude/skills/analyze/SKILL.md

analyze

Skill98 starsChanged 10 months agoMITView on GitHub

Analyze consistency across spec, plan, tasks, and checklist. Use before implementation. Triggers on: analyze consistency, check artifacts, validate feature.

39 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ralplan, ultrawork and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • an8079Skill

    ralplan

    Also in 3 projects that use this

  • zephyrpersonalSkill

    ultrawork

    Obsessive task completion mode (Sisyphus Mode) - activates maximum intensity work with todo continuation enforcement

    Also in 3 projects that use this

  • DockerSkill

    write

    Write or edit reader-facing technical prose for immediate comprehension. Use for documentation, PR titles and descriptions, release notes, design documents, user-facing explanations, and substantive comments. Also use when asked to make writing clearer, more natural, less AI-generated, or easier to read. For documentation fixes, handles edits, formatting, self-review, and commits after research identifies what to change. Do not use for code-only tasks with no prose deliverable.

    Also in 4 projects that use this

  • ElliotJLTSkill

    pipeline

    Orchestration pattern for sequential, dependent tasks. When work must flow through stages where each stage depends on the previous (design → implement → test → review), structure as a pipeline with explicit handoffs. Each stage completes before the next begins.

    Also in 4 projects that use this

  • yunseo-kimSkill

    git-master

    MUST USE for ANY git operations. Atomic commits, rebase/squash, cherry-pick, worktree, reflog recovery, and history search (blame, bisect, log -S). STRONGLY RECOMMENDED: Use with task(category='quick', load_skills=['git-master'], ...) to save context. Triggers: 'commit', 'rebase', 'squash', 'cherry-pick', 'worktree', 'reflog', 'who wrote', 'when was X added', 'find the commit that'.

    Also in 3 projects that use this

  • aviz85Skill

    deep-interview

    Conduct deep adaptive interviews to extract and organize knowledge into structured files and folders. Use when user says "interview me about X", "deep interview", "extract my knowledge", "build knowledge base from interview", "ask me questions about X", or wants to systematically capture expertise on any topic through guided questioning.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 32 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read all feature artifacts

    line 35
  2. Distinctive:

    Check for consistency issues

    line 36
  3. Very specific:

    Verify that prd.json contains for EVERY story:

    line 81
  4. Distinctive:

    Verify that ALL THREE quality gates are present in acceptance criteria:

    line 96
  5. Distinctive:

    WARNING: Should fix before implementation

    line 147
  6. Very specific:

    Use the template at templates/analysis-report.md:

    line 162
  7. Distinctive:

    Update progress.txt with analysis results

    line 202
  8. Distinctive:

    Run before starting implementation

    line 215

“Common” is measured: kept by at least 6 in 10 of the 32 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Cross-Artifact Consistency Analyzer

Validate consistency across feature artifacts before implementation.


SpecKit Workflow

This skill is Step 5 of 6 in the Relentless workflow:

specify → plan → tasks → convert → analyze → implement

Prerequisites (ALL must exist):

  • spec.md - Feature specification
  • plan.md - Technical implementation plan
  • tasks.md - User stories and tasks
  • prd.json - Converted PRD with routing metadata (run convert first)
  • checklist.md - Quality validation checklist (recommended)

Purpose:

  • Validate consistency across ALL artifacts
  • Catch gaps before implementation begins
  • Ensure TDD and routing compliance
  • Verify quality gates are defined

The Job

  1. Read all feature artifacts
  2. Check for consistency issues
  3. Validate TDD compliance
  4. Validate routing metadata
  5. Validate quality gates
  6. Validate against constitution
  7. Generate analysis report

Files to Analyze

Required:

  • relentless/constitution.md
  • relentless/features/NNN-feature/spec.md
  • relentless/features/NNN-feature/plan.md
  • relentless/features/NNN-feature/tasks.md
  • relentless/features/NNN-feature/prd.json
  • relentless/features/NNN-feature/checklist.md

Optional:

  • relentless/features/NNN-feature/progress.txt

Validation Checks

1. Completeness

  • All functional requirements from spec have tasks
  • All tasks reference spec requirements
  • Plan addresses all spec requirements
  • Checklist covers all tasks

2. TDD Compliance Validation (MANDATORY)

Verify that:

  • Every story in tasks.md has test acceptance criteria
  • Test specifications exist in plan.md
  • Checklist includes test validation items
  • No stories marked "tests optional"
  • Given/When/Then format used in acceptance criteria

Flag as CRITICAL if TDD requirements are missing.

3. Routing Metadata Validation (MANDATORY)

Verify that prd.json contains for EVERY story:

  • routing.complexity - simple/medium/complex/expert
  • routing.harness - claude/gemini/codex/opencode/amp/droid
  • routing.model - specific model name
  • routing.mode - free/cheap/good/genius
  • routing.estimatedCost - cost in USD

Also verify:

  • Routing preference in spec.md matches prd.json routing mode
  • Complexity classifications are reasonable for story scope

Flag as CRITICAL if routing metadata is missing.

4. Quality Gates Validation (MANDATORY)

Verify that ALL THREE quality gates are present in acceptance criteria:

  • Typecheck requirement (bun run typecheck passes with 0 errors)
  • Lint requirement (bun run lint passes with 0 errors AND 0 warnings)
  • Test requirement (bun test passes)

Flag as CRITICAL if any quality gate is missing.

5. Constitution Compliance

  • Plan follows MUST rules
  • Tasks include required quality checks
  • Testing requirements met
  • Security requirements addressed
  • No any types planned

6. Dependency Consistency

  • Task dependencies are valid (no circular refs)
  • Referenced dependencies exist
  • Dependency order makes sense

7. Scope Consistency

  • Plan doesn't include out-of-scope items
  • Tasks match plan scope
  • No scope creep in checklist

8. Data Model Consistency

  • Entities mentioned in spec are in plan
  • Plan data models match spec requirements
  • Tasks create required entities

9. API Consistency

  • Endpoints in plan match spec scenarios
  • Tasks implement all planned endpoints
  • Checklist validates all endpoints

10. Testing Coverage

  • Each task has test acceptance criteria
  • Checklist includes test validation
  • Test types match constitution requirements

Issue Severity

CRITICAL: Blocks implementation - MUST fix before proceeding

  • Constitution MUST rule violations
  • Missing TDD requirements
  • Missing routing metadata in prd.json
  • Missing quality gate requirements
  • Circular dependencies
  • Missing required artifacts

WARNING: Should fix before implementation

  • Incomplete coverage of requirements
  • Ambiguous acceptance criteria
  • Missing test criteria for some stories
  • Routing preference mismatch (spec vs prd.json)

INFO: Nice to have

  • Style inconsistencies
  • Minor gaps in checklist
  • Optimization opportunities

Report Format

Use the template at templates/analysis-report.md:

# Consistency Analysis Report

**Feature:** [feature-name]
**Date:** [date]
**Status:** [PASS | FAIL | WARNINGS]

## Summary

| Category | Status | Issues |
|----------|--------|--------|
| Completeness | ✅/❌ | [count] |
| TDD Compliance | ✅/❌ | [count] |
| Routing Validation | ✅/❌ | [count] |
| Quality Gates | ✅/❌ | [count] |
| Constitution | ✅/❌ | [count] |
| Dependencies | ✅/❌ | [count] |

## Critical Issues

### CRIT-001: [Issue Title]
**Location:** [file]
**Details:** [description]
**Fix:** [required action]

## Recommendations

1. [Action item 1]
2. [Action item 2]

**Next Step:** /relentless.implement (if PASS) or fix issues (if FAIL)

Output

  1. Save analysis report to relentless/features/NNN-feature/analysis-report.md
  2. Update progress.txt with analysis results
  3. Report:
    • Overall status: PASS/FAIL/WARNINGS
    • Critical issues count
    • TDD compliance: PASS/FAIL
    • Routing validation: PASS/FAIL
    • Quality gates: PASS/FAIL
    • Next step: /relentless.implement or fix issues

Notes

  • Run before starting implementation
  • Constitution compliance is non-negotiable
  • TDD compliance is non-negotiable
  • Routing metadata is required for all stories
  • Quality gates (typecheck, lint, test) are mandatory
  • Fix critical issues immediately
  • Warnings can sometimes be deferred
  • Re-run after making fixes

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.