agentleFS
febradc-githubfebradc-github/4ds/skills/code/SKILL.md

code

Skill1 starsChanged 4 months agoMITView on GitHub

Internal coding-dispatch process for a task already delegated to Claude and classified as Coding-type. Not user-invocable — read and followed by 4ds:delegate, never run directly by the user.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use test, plan and 1 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.
  • Microsoft AzureSkill

    test

    Also in 4 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 4 projects that use this

  • AWSSkill

    tdd

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    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, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the task's description is vague, or its relationship to other tasks (e.g.

    line 21
  2. Very specific:

    Use the Agent tool to invoke the 4ds:coder subagent.

    line 28
  3. Very specific:

    Use the Agent tool to invoke 4ds:spec-writer with MODE: cell-update to set that task's Status to the value above, and append one Revision …

    line 68
  4. Very specific:

    Never set Status to Done from this flow — that judgment belongs to the user (typically after they've looked at the diff, possibly via …

    line 74

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

4ds Code (internal process, not a user command)

4ds:delegate reads and follows this file when a task has just been (or already was) assigned to Claude and classified as Coding-type. By the time you're reading this, the spec, the task, and the Owner check are already resolved by delegate — don't re-resolve them, and don't invoke this process for anything delegate hasn't already confirmed is Claude's and coding-shaped.

Step 1 — Resolve ambiguity before dispatch

The coder agent is one-shot and can't ask follow-up questions, so resolve anything unclear about scope now, in conversation, before invoking it:

  • If the task's description is vague, or its relationship to other tasks (e.g. an unfinished prerequisite task) is unclear, ask the user.
  • Explicitly confirm the scope with the user before dispatching: state plainly what you're about to have Claude implement, and get a go-ahead.

Step 2 — Invoke the coder agent

Use the Agent tool to invoke the 4ds:coder subagent. It runs with isolation: worktree (set in its own frontmatter), meaning it works in a freshly created git worktree on its own branch — never directly in the user's current working directory. This is deliberate: it means a coder run never collides with the user's own uncommitted edits, with another concurrent delegation, or with a teammate's work on the same repo, since everyone keeps their own working tree.

Spec: specs/<spec-name>.md
Task: <the exact task text/row>
Clarifications gathered: <anything resolved in Step 1, or "none needed">
Instruction: implement ONLY this task.

Step 3 — Invoke the process-reviewer agent (always, automatically)

This is not optional and not something to ask the user about — Process Discernment runs every time a coding agent finishes, the same way it's not optional for writer. Use the Agent tool to invoke the 4ds:process-reviewer subagent with:

Specialist report: <the coder agent's full report from Step 2>
Spec: specs/<spec-name>.md
Task: <the exact task text/row>
Branch/worktree: <the branch name and worktree path from Step 2>

Save its returned report to outputs/<spec-name>-task-<#>-process-review.md (or outputs/<spec-name>-process-review.md for a single-task spec) using the Write tool — you have that tool available; process-reviewer does not.

Step 4 — Update the spec from the reports

Determine an outcome from the coder's report:

  • completed with no blockers → new Status: Completed — pending review
  • partially completed or blocked → new Status: Blocked

Use the Agent tool to invoke 4ds:spec-writer with MODE: cell-update to set that task's Status to the value above, and append one Revision History row summarizing the outcome (files changed, blockers if any, the worktree branch name, and the process-review output path) so all of it is traceable later even after this conversation ends.

Never set Status to Done from this flow — that judgment belongs to the user (typically after they've looked at the diff, possibly via 4ds:discern, and confirmed via 4ds:refine).

Step 5 — Report to the user

Relay the coder's report in full (files changed, tests, deviations, blockers, unrelated issues noticed but not fixed), then the process-reviewer's report (or at least its Summary plus anything notable per category) and its saved path, and mention the spec's Task Status was updated. Be explicit that the change lives on its own branch in its own worktree, not in the user's current working directory — give them the branch name and worktree path, and a plain way to look at it, e.g. git diff <base>...<branch> from their normal working directory, or cd <worktree-path> to poke around directly. Point out they (or a teammate) will need to merge it into their own branch when they're satisfied with it — this process never merges on its own.

Suggest /4ds:discern <spec-name> <branch> as a natural next step if they want a Product Discernment pass (the code-reviewer agent, checking the artifact itself) over the change before deciding it's done — Process Discernment just ran automatically above, but Product Discernment is still on-demand. This suggestion belongs in whatever skill invoked this process (usually delegate), as part of its own hand-off to the user.

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.