agentleFS
jircdevjircdev/crew-plugin/skills/execution/SKILL.md

execution

Skill1 starsChanged 35 days agoMITView on GitHub

The execution craft, loadable by ANY role (and by the main agent) that is about to change code — implementing a feature, fixing a defect, refactoring, migrating data or a schema. Owns HOW a change is made and proven: classify the work, scale the procedure to its risk, finish with evidence anyone can check; never the domain decisions inside it. Load BEFORE the first code edit; triggers on 'implement', 'fix', 'bug', 'refactor', 'migrate', 'add support for', 'make it work', 'implementá', 'corregí', 'arreglá', 'refactorizá', 'migrá', 'agregá'.

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use review.

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.
  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 2

    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:

    Find the cause: Follow the wrong value back to where it is produced and fix it there.

    line 30
  2. Very specific:

    Design what the change needs: Follow the structure that already exists.

    line 40
  3. Very specific:

    Run the commands the project declares under testing.

    line 61
  4. Distinctive:

    No coverage percentage replaces this.

    line 63

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

Execution — the change craft

A change is done when the behavior it promised is proven, the behavior it did not touch still works, and someone else can check both. This craft is the procedure that gets there. It carries method only: how this project builds and tests comes from what it declares — the stack specifications under stack in crew.json, the commands under testing, the rules in AGENTS.md. Where nothing is declared, say so in the evidence seal and use the role's general craft.

1. Before the first edit

  1. Classify the work. One question decides it: does any observable behavior change?

    • No → refactor.
    • Yes, back to what was intended → defect.
    • Yes, something new → feature.
    • The shape of persisted data changes → migration, on top of whichever of the above applies.

    A request that mixes kinds is split: a refactor that makes a feature simpler goes first, as its own step, never folded into the feature.

  2. Load the context. The work item's acceptance criteria, the stack specification declared for the area, the testing commands, the project's own rules.
  3. Size the risk. The procedure has two weights:
    • Standard — the default.
    • Elevated — the change touches a security trigger of the session baseline (authentication, authorization, untrusted input, personal data, external calls, secrets), money or any calculation people rely on, the shape of persisted data, a contract other code consumes, or deletes anything. Elevated adds four things: consult security-compliance when a security trigger is involved; write the tests for the rejections and abuse cases before the implementation; review the diff against every criterion before declaring done; state how the change is undone.
  4. Run the suite once before changing anything. Whatever is red before you started is reported as such, and never blamed on the change or hidden by it.

2. Procedures

Defect

  1. Reproduce. Turn the report into a test that fails at the lowest level that shows it, and watch it fail for the reported reason. A defect that cannot be reproduced is reported back with what was tried; it is never "fixed" blind.
  2. Find the cause. Follow the wrong value back to where it is produced and fix it there. Then look for the same pattern elsewhere: a defect is often a family.
  3. Fix with the smallest change that removes the cause.
  4. Verify. The new test passes, the whole suite is green.
  5. Report the cause, the fix and the name of the regression test.

This is test-driven development applied where it pays most: the failing test comes first and stays as the guard.

Feature

  1. Criteria. Write the observable behaviors the request implies, including the rejections it never mentions: invalid input, missing permission, data of another tenant, empty and limit values. When an ambiguity changes the implementation, ask one question; otherwise take the reading consistent with the project's rules and state it.
  2. Design what the change needs. Follow the structure that already exists. Consult the owning role when the change crosses a boundary: system-architect across modules, data-architect for schema, ux-architect for anything a user sees.
  3. Implement in small steps, each one leaving the suite green. Write the test first when the behavior is clear; when it is still being discovered, the test follows in the same step, never in a later one.
  4. One test per criterion, plus one per rejection.
  5. Validate each criterion against its test, then run the suite.

Refactor

  1. Pin the behavior. Confirm tests cover what will move. Where they do not, add characterization tests that capture the current output before touching the structure.
  2. Change the structure in small steps, suite green after each. A defect found on the way is noted and fixed afterwards as a defect, in its own step.
  3. Verify that the same tests pass and that no assertion changed in the diff.

Migration

  1. Plan the way back first: a reverse step, a backup, or a forward fix that is written down. The schema decision belongs to data-architect.
  2. Rehearse on a copy with realistic rows, including the awkward ones: empty values, duplicates, legacy formats. A copy is a database the human identified as one; when it is unclear which database a connection reaches, ask before running anything.
  3. Verify the data: counts and invariants before and after, and a second run that changes nothing.
  4. Destructive steps go last, after verification.
  5. Real data waits for the human's yes. Applying the migration to production, or to any data that is not the rehearsal copy, needs the human's explicit confirmation in the conversation, after you name the target and the effect.

3. Evidence of done

  • Run the commands the project declares under testing. With receipts declared, run them through /crew:check so the result is recorded.
  • Report in four parts: what changed; which criterion each test proves; what ran and with what result; what stayed unverified and why.
  • No coverage percentage replaces this. The question is which behaviors are protected, and the report answers it by name.

4. Anti-patterns

  • Fixing the symptom where it shows instead of the cause where it is produced.
  • Editing a test's expectation to make it pass when no criterion changed.
  • A refactor and a behavior change in the same step.
  • Declaring done from reading the code, or saying "tests pass" for a suite that did not run.
  • Taking a convention from what is popular instead of from the project's stack specification.

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.

Reviews can't be read right now.

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.