agentleFS
jmolzjmolz/m0lz.01/.agents/skills/source-command-execute/SKILL.md

source-command-execute

Skill0 starsChanged 6 months agoMITView on GitHub

Implement a feature from a plan file

  • Reads credentials

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 10 are distinctive, and 5 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.

  • 5

    Very specific

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

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

    Use this skill when the user asks to run the migrated source command execute.

    line 8
  2. Very specific:

    Read the entire plan at: {user-provided arguments}

    line 17
  3. Distinctive:

    Read the ENTIRE plan before writing any code.

    line 23
  4. Distinctive:

    All tasks and their dependency order

    line 25
  5. Very specific:

    All feature execution happens in an isolated git worktree.

    line 37
  6. Distinctive:

    Verify: after each file change:

    line 83
  7. Distinctive:

    If it fails: read the error, fix the root cause, re-run

    line 100
  8. Distinctive:

    Only proceed to the next level when the current one passes

    line 101
  9. Distinctive:

    If the plan includes E2E or manual validation steps:

    line 107
  10. Very specific:

    If the plan contains a ## Contract section, prompt the user to run adversarial evaluation:

    line 153
  11. Very specific:

    Do not run /evaluate automatically — the user may want to do manual testing first.

    line 165
  12. Distinctive:

    Follow project conventions from AGENTS.md at all times

    line 171
  13. Distinctive:

    If a task is ambiguous, use existing codebase patterns as guidance

    line 172
  14. Distinctive:

    If you must deviate from the plan, document why

    line 173
  15. Distinctive:

    Never skip validation steps

    line 174

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

source-command-execute

Use this skill when the user asks to run the migrated source command execute. Original argument hint: <path-to-plan.md>.

Command Template

Execute: Implement from Plan

Plan File

Read the entire plan at: {user-provided arguments}


Step 1: Read and Understand

Read the ENTIRE plan before writing any code. Understand:

  • All tasks and their dependency order
  • Files to create vs modify
  • Validation commands to run
  • Testing strategy and expected outcomes
  • Environment requirements

Do NOT start implementing until you have the full picture.


Step 2: Set Up Worktree

All feature execution happens in an isolated git worktree. Check the plan's ## Worktree section for the branch name and path.

git branch --show-current
git worktree list

If NOT already in the correct worktree, create one:

# From the main repo directory
git worktree add {worktree-path} -b {branch-name}
cd {worktree-path}

If a worktree already exists for this feature (e.g., resuming work), navigate to it:

cd {worktree-path}

Verify Preconditions

git status
git branch --show-current

Check:

  • You are in the worktree directory, on the feature branch
  • Working tree is clean (or only has expected changes)
  • Any required env vars are set (check .env or .env.example)
  • Dependencies are installed (run the install command — worktrees share node_modules but may need setup)

Step 3: Execute Tasks in Order

Work through each task sequentially, respecting dependency ordering.

For each task:

  1. Read the target file(s) before modifying — never edit blind
  2. Read any "Must-Read Files" referenced in the plan
  3. Implement the change following project patterns from AGENTS.md
  4. Verify after each file change:
    • Syntax is correct
    • Imports resolve
    • Types check (if applicable)
    • No obvious regressions

Fix errors immediately — do not accumulate them.


Step 4: Run Validation (per plan)

Execute ALL validation commands from the plan in the specified order.

For each level:

  1. Run the command
  2. If it fails: read the error, fix the root cause, re-run
  3. Only proceed to the next level when the current one passes

Step 5: End-to-End Testing

If the plan includes E2E or manual validation steps:

  1. Start the application
  2. Walk through every user journey described
  3. Verify expected outcomes
  4. Document any deviations

Step 6: Completion Report

## Execution Report: {Feature Name}

### Tasks Completed

- [x] Task 1: {description} — {files changed}
- [x] Task 2: {description} — {files changed}

### Files Created

- `path/to/file` — {purpose}

### Files Modified

- `path/to/file` — {what changed}

### Validation Results

- Lint: PASS / FAIL
- Types: PASS / FAIL
- Unit tests: PASS / FAIL ({N} passed)
- Integration: PASS / FAIL
- E2E: PASS / FAIL

### Manual Verification

{What was tested manually and results}

### Notes

{Any deviations from plan, unexpected findings, follow-up work}

Step 7: Contract Evaluation

If the plan contains a ## Contract section, prompt the user to run adversarial evaluation:

Implementation complete. This plan has a Tier {N} contract with {X} criteria.

Next step: /evaluate {path-to-plan.md}

This will spawn a fresh evaluator sub-agent that grades the implementation
against the contract criteria. The evaluator does NOT see this conversation —
only the contract, code diff, and AGENTS.md.

Do not run /evaluate automatically — the user may want to do manual testing first.


Rules

  • Follow project conventions from AGENTS.md at all times
  • If a task is ambiguous, use existing codebase patterns as guidance
  • If you must deviate from the plan, document why
  • Never skip validation steps
  • Fix failing tests by fixing implementation, not by weakening tests

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.