agentleFS
SuckzooSuckzoo/skills/do-that-shit/SKILL.md

do-that-shit

Skill1 starsChanged 9 months agoMITView on GitHub

Execute implementation work following a pre-made plan. Reads specs, decisions, and todos from ~/tmp/dora-plans/, then spawns agents to implement. Use after plan-that-shit has created the plan files.

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. About 0 are common, 10 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If argument provided, use $ARGUMENTS as the ticket number

    line 15
  2. Very specific:

    Check directory name from pwd

    line 17
  3. Distinctive:

    If still unclear, ask the user

    line 18
  4. Distinctive:

    Read all plan and progress files:

    line 28
  5. Very specific:

    If files don't exist, inform user and suggest running /plan-that-shit first.

    line 34
  6. Very specific:

    Use the Task tool to spawn an agent with max_turns: 50 and the following prompt structure.

    line 49
  7. Distinctive:

    Do NOT EVER USE Sonnet nor Haiku.

    line 51
  8. Distinctive:

    When the agent finishes, evaluate the result based on its report (which is obviously HANDOFF.md):

    line 173
  9. Very specific:

    Read {plan_files_dir}/HANDOFF.md — if it's missing or unchanged from before the agent ran, the agent failed to save progress.

    line 176
  10. Distinctive:

    Run git diff --name-only to see what files the agent actually changed

    line 177
  11. Very specific:

    Read {plan_files_dir}/TODO.md to check if at least that was updated

    line 178
  12. Distinctive:

    If TODO.md was also not updated, reconstruct progress from git diff --name-only and update TODO.md yourself

    line 179
  13. Distinctive:

    Write a minimal HANDOFF.md yourself based on the git diff (e.g., "Agent completed work on files X, Y, Z but failed to write handoff.

    line 180
  14. Very specific:

    Read {plan_files_dir}/BLOCKED.md if the agent indicates it was blocked

    line 187
  15. Very specific:

    Delete or clear {plan_files_dir}/BLOCKED.md

    line 191
  16. Distinctive:

    If there's a decision made in the previous step(which is resolving BLOCKED.md), note the issue/question and its resolution/decision.

    line 196
  17. Distinctive:

    Ask user: "Agent completed X items and saved progress.

    line 204
  18. Distinctive:

    If yes, go back to Step 3 (assess state and spawn new agent)

    line 205

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “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

Do That Shit

Execute a pre-planned implementation by spawning agents that work through the TODO list.

Step 1: Identify Ticket Number

Determine the ticket/branch identifier:

  1. If argument provided, use $ARGUMENTS as the ticket number
  2. Otherwise, check git branch: git branch --show-current
  3. Check directory name from pwd
  4. If still unclear, ask the user

Extract identifiers like VES-965, ves-965, DORA-123, or branch names.

Step 2: Load Plan Files

Determine the plan files directory path: ~/tmp/dora-plans/{ticket-number}/

Expand to absolute path (e.g., /Users/suckzoo/tmp/dora-plans/ves-965/) - you will need this for the agent prompt.

Read all plan and progress files:

  • SPEC.md - Technical specification and requirements
  • TODO.md - Implementation checklist with phases
  • DECISIONS.md - Key decisions and rationale (if exists)
  • HANDOFF.md - Brief summary of the latest agent's work.

If files don't exist, inform user and suggest running /plan-that-shit first.

Save the absolute directory path - you will pass it to the agent in Step 4.

Step 3: Assess Current State

Review TODO.md to determine:

  • Which items are already checked off [x]
  • Any WIP notes indicating partial progress
  • The next uncompleted phase/item to work on

Summarize briefly: "Resuming from Phase X, item Y" or "Starting fresh from Phase 1"

Step 4: Spawn Execution Agent

Use the Task tool to spawn an agent with max_turns: 50 and the following prompt structure.

Do NOT EVER USE Sonnet nor Haiku. Prefer Opus usage.

IMPORTANT: Replace {plan_files_dir} with the actual absolute path (e.g., /Users/suckzoo/tmp/dora-plans/ves-965).

You are implementing ticket {ticket-number}. Work through the TODO list autonomously.

## CRITICAL: Plan File Locations

You MUST update these files to track your progress. Use these EXACT paths:

| File | Path | Purpose |
|------|------|---------|
| TODO.md | {plan_files_dir}/TODO.md | Track completed/pending items - UPDATE THIS |
| SPEC.md | {plan_files_dir}/SPEC.md | Reference only (read-only) |
| DECISIONS.md | {plan_files_dir}/DECISIONS.md | Record decisions - CREATE if missing |
| BLOCKED.md | {plan_files_dir}/BLOCKED.md | Write here when blocked and need clarification |
| HANDOFF.md | {plan_files_dir}/HANDOFF.md | Write the summary of your work when you terminate - A MUST-DO ITEM |

**FIRST ACTION**: Before doing ANY implementation work, use the Read tool to verify you can access `{plan_files_dir}/TODO.md`. If you cannot read this file, STOP and report the error.

---

## Specifications
{contents of SPEC.md}

## Current TODO List
{contents of TODO.md}

## Decisions Made So Far
{contents of DECISIONS.md, if exists, otherwise "No decisions recorded yet."}

## Previous Agent's Handoff Message
{contents of HANDOFF.md, if exists, otherwise "No handoff message exists."}

---

## Your Instructions

1. **IMPORTANT: You CANNOT use AskUserQuestion**. If you need clarification or a decision, you must:
   - Save your current progress to `{plan_files_dir}/TODO.md`
   - Create or update `{plan_files_dir}/BLOCKED.md` with:
     - What you were trying to do
     - The specific question or clarification needed
     - Any context the orchestrator needs to help
   - **MANDATORY** End your job. You MUST terminate your job.
   - The orchestrator will handle the question and spawn a new agent with the answer

2. **MANDATORY: Update TODO.md AND HANDOFF.md after EVERY phase**:
   - BEFORE starting work on a new phase, update `{plan_files_dir}/TODO.md` to mark the previous phase's items as complete
   - ALSO update `{plan_files_dir}/HANDOFF.md` with a running summary of what you've done so far and what's next
   - This is NOT optional. Do NOT proceed to the next phase without updating BOTH files first
   - Mark completed items: `[x]`
   - Add WIP notes for partial work: `<!-- WIP: description of partial state -->`
   - Example workflow:
     - Complete Phase 1 work
     - Edit `{plan_files_dir}/TODO.md` to mark Phase 1 items as `[x]`
     - Edit `{plan_files_dir}/HANDOFF.md` with current progress summary
     - **MANDATORY** End your job. You MUST terminate your job.
   - **WHY**: Agents frequently get cut off at the turn limit without a chance to write final files. By updating HANDOFF.md after every phase, progress is never lost even if you're terminated unexpectedly.

4. **Turn counting (max 50 turns)**:
   - You have a hard limit of 50 turns before being stopped automatically
   - **Count your turns**: Start at turn 1. Each time you respond with tool calls, increment your count. Track this mentally (e.g., "Turn 12: implementing X...")
   - **From turn 35 onwards**: Prioritize saving progress. After completing your current unit of work, update TODO.md and HANDOFF.md immediately.
   - **From turn 40 onwards**: Stop new work. Use remaining turns ONLY to update plan files and terminate:
     - **MANDATORY** End your job. You MUST terminate your job.

5. **MANDATORY: When the user rejects your tool call**:
   - If the fix is obvious from their rejection message, apply the fix and retry
   - If the rejection reason is UNCLEAR or you don't know how to proceed:
     - Do NOT guess or retry blindly
     - Save your progress to `{plan_files_dir}/TODO.md` with WIP notes
     - Create/update `{plan_files_dir}/BLOCKED.md` with:
       ```markdown
       ## Blocked: Tool Rejection
       **Tool**: {which tool was rejected}
       **Action attempted**: {what you were trying to do}
       **Rejection message**: {the rejection message}
       **Question for user**: {what you need clarified to proceed}
       **Context**: {any relevant context}
       ```
     - Return immediately to the orchestrator with this information
     - **MANDATORY** End your job. You MUST terminate your job.

6. **CRITICALLY MANDATORY: Whenever you terminate your job, before you terminate**:
   - Update `{plan_files_dir}/TODO.md` with current progress and WIP notes
   - Update `{plan_files_dir}/DECISIONS.md` with any new decisions made
   - If blocked, update `{plan_files_dir}/BLOCKED.md`
   - Write a handoff summary to `${plan_files_dir}/HANDOFF.md`, So the orchestrator can spawn a fresh agent to continue
   - After these, terminate yourself. Die.

---

## ⛔ FINAL CHECKPOINT — DO NOT SKIP

Before your VERY LAST tool call (the one after which you will return your final message), you MUST have completed ALL of the following file updates. If any are missing, do them NOW before terminating:

| # | File | Action | How to verify |
|---|------|--------|---------------|
| 1 | `{plan_files_dir}/TODO.md` | Mark completed items `[x]`, add WIP notes for partial work | Read the file back and confirm it reflects actual git changes |
| 2 | `{plan_files_dir}/DECISIONS.md` | Record any new decisions | Create file if it doesn't exist |
| 3 | `{plan_files_dir}/HANDOFF.md` | Write summary of what you did and what's next | Must exist and be non-empty |
| 4 | `{plan_files_dir}/BLOCKED.md` | Write if blocked, skip if not | Only if you're stopping due to a blocker |

**Your work is NOT considered done until these files are updated. Code changes without file updates will be treated as lost progress.**

---

**REMEMBER**: The TODO.md file at `{plan_files_dir}/TODO.md` is your checkpoint system. If you don't update it, progress cannot be tracked or resumed. Treat updates as MANDATORY, not optional.

**REMEMBER 2**: Rethink before you act: every turn, check if you must terminate or not. And DO NOT FORGET the INSTRUCTION 6 and the FINAL CHECKPOINT above.

---

Start from: {current state assessment}

Step 5: Handle Agent Return

IMPORTANT: As the orchestrator, minimize your own token usage. Do NOT manually verify work (running tests, checking git status, reading files to confirm changes). Trust the agent's report or spawn another agent to verify if needed.

When the agent finishes, evaluate the result based on its report (which is obviously HANDOFF.md):

First, verify agent updated its plan files:

  1. Read {plan_files_dir}/HANDOFF.md — if it's missing or unchanged from before the agent ran, the agent failed to save progress. In that case:
    • Run git diff --name-only to see what files the agent actually changed
    • Read {plan_files_dir}/TODO.md to check if at least that was updated
    • If TODO.md was also not updated, reconstruct progress from git diff --name-only and update TODO.md yourself
    • Write a minimal HANDOFF.md yourself based on the git diff (e.g., "Agent completed work on files X, Y, Z but failed to write handoff. TODO.md updated by orchestrator.")
  2. Quick-check {plan_files_dir}/TODO.md — compare checked-off items against git diff --name-only. If TODO.md doesn't reflect the actual code changes, update it yourself before pushing.

Then, push current changes with /push-that-shit:

  1. You MUST USE the /push-that-shit skill.

IMPORTANT: check if blocked and needs clarification:

  1. Read {plan_files_dir}/BLOCKED.md if the agent indicates it was blocked
  2. Present the question/issue to the user using AskUserQuestion
  3. Once user responds:
    • Record the decision in {plan_files_dir}/DECISIONS.md
    • Delete or clear {plan_files_dir}/BLOCKED.md
    • Go back to Step 3 (assess state and spawn new agent with the clarification)

Then, update progress in the corresponding linear ticket:

  1. By reading ${plan_files_dir}/HANDOFF.md, ${plan_files_dir}/TODO.md update progress by making a comment on the ticket.
  2. If there's a decision made in the previous step(which is resolving BLOCKED.md), note the issue/question and its resolution/decision.

If every TODO item is completed:

  1. Report the agent's summary to the user
  2. Suggest next steps (tests, PR, /push-that-shit done, etc.)

If there's something not done:

  1. Summarize what the agent reported as accomplished
  2. Ask user: "Agent completed X items and saved progress. Continue with a new agent?"
  3. If yes, go back to Step 3 (assess state and spawn new agent)

File Update Conventions

TODO.md Updates

## Phase 1: Schema Changes
- [x] Add new field to User model
- [x] Create migration
- [ ] Update indexes <!-- WIP: index created, needs testing -->

## Phase 2: API Layer
- [ ] Add endpoint handler

DECISIONS.md Updates

## During Implementation

### Caching Strategy (2024-01-15)
**Context**: Needed to decide TTL for user preferences cache
**Decision**: 5 minute TTL with stale-while-revalidate
**Rationale**: Balances freshness with reduced DB load

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.