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

implement

Skill98 starsChanged 10 months agoMITView on GitHub

Execute implementation workflow phase by phase. Use after analysis passes. Triggers on: start implementation, implement feature, begin coding.

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-ts-deep-modules, ask-matt and 9 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.
  • loulanyueSkill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 17 projects that use this

  • AWSSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 36 projects that use this

  • AWSSkill

    to-spec

    Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed.

    Also in 75 projects that use this

  • qwlabsSkill

    claude-handoff

    Hand the current conversation off to a fresh background agent that picks up the work immediately.

    Also in 18 projects that use this

  • RoentekSkill

    loop-me

    Grill me about specs for the workflows I want to build, within this workspace.

    Also in 22 projects that use this

  • RoentekSkill

    writing-beats

    Writing, exploit — assemble raw material into a journey of beats, grounding each term before a beat leans on it.

    Also in 18 projects that use this

  • +5 more from aws

The file

Show its rules and text

We split this skill into the rules it gives an agent

27 rules. 0 are common, 17 are distinctive, and 10 are very specific to this project.

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 17

    Distinctive

    This author's own choices. Worth a look.

  • 10

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Read progress.txt: - Check learnings from previous iterations

    line 43
  2. Very specific:

    Review artifacts: - Ensure spec.md, plan.md, tasks.md, prd.json, checklist.md exist

    line 44
  3. Very specific:

    Verify Analysis Passed: - Run /relentless.analyze if not already done

    line 45
  4. Very specific:

    Check Branch: - Verify you're on the correct branch from PRD branchName

    line 47
  5. Distinctive:

    Before marking ANY story as complete, ALL quality checks must pass.

    line 53
  6. Very specific:

    If the current story has research: true in prd.json and no research file exists yet:

    line 109
  7. Distinctive:

    Do NOT implement: - only research and document

    line 118
  8. Very specific:

    Read prd.json to find the next story where passes: false

    line 128
  9. Very specific:

    Check dependencies are met (dependent stories have passes: true)

    line 129
  10. Distinctive:

    Read the story's acceptance criteria

    line 130
  11. Distinctive:

    Check routing metadata (complexity, model assigned)

    line 131
  12. Distinctive:

    Follow the TDD workflow above for each acceptance criterion.

    line 140
  13. Distinctive:

    After completing each story, these files MUST be updated:

    line 226
  14. Distinctive:

    Follow dependency order strictly

    line 250
  15. Very specific:

    After completing a user story, check if ALL stories have passes: true.

    line 261
  16. Distinctive:

    Skipping TDD: - Never implement without tests first

    line 274
  17. Distinctive:

    Large commits: - Keep commits focused and atomic

    line 276
  18. Distinctive:

    Missing typecheck: - Always run typecheck before commit

    line 277
  19. Distinctive:

    Ignoring progress.txt: - Read learnings from previous iterations

    line 278
  20. Very specific:

    Not checking queue: - Always check .queue.txt for user input

    line 279
  21. Very specific:

    Skipping analysis: - Run /relentless.analyze before implementing

    line 280
  22. Distinctive:

    Ignoring routing metadata: - Check story complexity and model assignment

    line 281
  23. Distinctive:

    Never skip TDD - tests come FIRST

    line 289
  24. Distinctive:

    Never skip quality checks

    line 290
  25. Distinctive:

    Commit after each story

    line 291
  26. Distinctive:

    Update ALL tracking files

    line 292
  27. Very specific:

    Check .queue.txt for mid-run input

    line 293

“Common” is measured: kept by at least 6 in 10 of the 175 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

Implementation Workflow Executor

Guide systematic implementation of features using TDD and quality-first approach.

Note: This skill uses generic placeholders. Adapt commands and paths to your project:

  • Quality commands: Check your package.json, Makefile, or build config
  • File paths: Adjust based on your project structure
  • Examples show common conventions - your project may differ

SpecKit Workflow

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

specify → plan → tasks → convert → analyze → implement

Prerequisites:

  • spec.md - Feature specification
  • plan.md - Technical implementation plan
  • tasks.md - User stories with acceptance criteria
  • prd.json - Converted PRD with routing metadata
  • checklist.md - Quality validation checklist
  • Analysis must PASS (run /relentless.analyze first)

The Job

Implement user stories one at a time, following strict TDD and updating all tracking files.


Before You Start

  1. Read the Constitution - Review your project's constitution (if exists) for governance principles
  2. Read prompt.md - Review workflow guidelines (if exists)
  3. Read progress.txt - Check learnings from previous iterations
  4. Review artifacts - Ensure spec.md, plan.md, tasks.md, prd.json, checklist.md exist
  5. Verify Analysis Passed - Run /relentless.analyze if not already done
  6. Identify Quality Commands - Find your project's typecheck, lint, and test commands
  7. Check Branch - Verify you're on the correct branch from PRD branchName

CRITICAL: Quality Gates (Non-Negotiable)

Before marking ANY story as complete, ALL quality checks must pass.

Find your project's commands (examples for different ecosystems):

# JavaScript/TypeScript (npm/yarn/bun/pnpm):
npm run typecheck && npm run lint && npm test

# Python:
mypy . && ruff check . && pytest

# Go:
go build ./... && golangci-lint run && go test ./...

# Rust:
cargo check && cargo clippy && cargo test

Requirements:

  • Typecheck: 0 errors
  • Lint: 0 errors AND 0 warnings
  • Tests: All pass

If ANY check fails, DO NOT mark the story as complete. Fix the issues first.


TDD Workflow (MANDATORY)

For EVERY story, follow strict Test-Driven Development:

Step 1: Write Failing Tests First (RED)

# Create test file if needed
# Write tests that define expected behavior
# Run your test command - tests MUST fail initially

Step 2: Implement Minimum Code (GREEN)

# Write only enough code to pass tests
# Run tests - they MUST pass now

Step 3: Refactor

# Clean up while keeping tests green
# Run tests - they MUST still pass

Do NOT skip TDD. Tests are contracts that validate your implementation.


Research Phase (if story has research: true)

If the current story has research: true in prd.json and no research file exists yet:

  1. Explore the codebase - Find relevant files, patterns, and dependencies
  2. Document findings in relentless/features/<feature>/research/<story-id>.md:
    • Existing patterns that should be followed
    • Files that will likely need modification
    • Dependencies and integration points
    • Potential gotchas or edge cases
    • Recommended implementation approach
  3. Do NOT implement - only research and document
  4. Save your findings to the research file and end your turn

Per-Story Implementation Flow

For each story (in dependency order):

1. Identify the Story

  • Read prd.json to find the next story where passes: false
  • Check dependencies are met (dependent stories have passes: true)
  • Read the story's acceptance criteria
  • Check routing metadata (complexity, model assigned)

2. Find Relevant Checklist Items

  • Open checklist.md
  • Find items tagged with [US-XXX] for this story
  • Note any governance/compliance items
  • Ensure Quality Gates and TDD items are included

3. Implement with TDD

Follow the TDD workflow above for each acceptance criterion.

4. Update tasks.md

As you complete each criterion:

# Change from:
- [ ] Criterion text

# To:
- [x] Criterion text

5. Update checklist.md

For each verified checklist item:

# Change from:
- [ ] CHK-XXX [US-001] Description

# To:
- [x] CHK-XXX [US-001] Description

6. Run Quality Checks

# Run your project's quality commands
# All must pass with 0 errors/warnings

7. Commit Changes

git add -A
git commit -m "feat: US-XXX - Story Title"

8. Update prd.json

Set the story's passes field to true:

{
  "id": "US-001",
  "title": "...",
  "passes": true,  // <- Change from false to true
  ...
}

9. Update progress.txt

Append progress entry:

## [Date] - US-XXX: Story Title

**Implemented:**
- What was built
- Key decisions made

**Files Changed:**
- path/to/file (new/modified)

**Tests Added:**
- path/to/test.file

**Learnings:**
- Patterns discovered
- Gotchas encountered

**Constitution Compliance:**
- [list principles followed]

---

Check for Queued Prompts

Between iterations, check .queue.txt for user input:

# If .queue.txt exists, read and process it
# Acknowledge in progress.txt
# Process in FIFO order

File Update Summary

After completing each story, these files MUST be updated:

FileUpdate
tasks.mdCheck off - [x] completed acceptance criteria
checklist.mdCheck off - [x] verified checklist items
prd.jsonSet "passes": true for the story
progress.txtAppend progress entry with learnings

Implementation Phases

Phase 0: Setup

  • Infrastructure, tooling, configuration
  • Usually US-001 type stories

Phase 1: Foundation

  • Data models, types, schemas
  • Base utilities and helpers
  • Core infrastructure

Phase 2: User Stories

  • Feature implementation
  • Follow dependency order strictly

Phase 3: Polish

  • E2E tests
  • Documentation
  • Performance optimization

Stop Condition

After completing a user story, check if ALL stories have passes: true.

If ALL stories are complete and passing, output:

<promise>COMPLETE</promise>

If there are still stories with passes: false, end your response normally (another iteration will pick up the next story).


Common Pitfalls to Avoid

  1. Skipping TDD - Never implement without tests first
  2. Suppressing lints - Fix issues properly, don't disable rules
  3. Large commits - Keep commits focused and atomic
  4. Missing typecheck - Always run typecheck before commit
  5. Ignoring progress.txt - Read learnings from previous iterations
  6. Not checking queue - Always check .queue.txt for user input
  7. Skipping analysis - Run /relentless.analyze before implementing
  8. Ignoring routing metadata - Check story complexity and model assignment

Notes

  • Work on ONE story at a time
  • Follow dependency order strictly
  • Never skip TDD - tests come FIRST
  • Never skip quality checks
  • Commit after each story
  • Update ALL tracking files
  • Check .queue.txt for mid-run input
  • This is a guided workflow for systematic implementation
  • Adapt all commands and paths to your project's specific setup

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.