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

refine

Skill1 starsChanged 4 months agoMITView on GitHub

Update an existing 4ds spec — locate it, confirm what's changing with the user, discuss, then edit it in place. Explicit-invocation only.

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use addskill, advocate and 10 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.
  • ryanportfolioSkill

    addskill

    Create, import, update, or install repository or personal skills; includes runtime ownership, resources, and discovery validation.

    Also in 3 projects that use this

  • ryanportfolioSkill

    advocate

    Use only when the user explicitly invokes $advocate to challenge a change just made before it lands. Do not trigger from natural-language requests.

    Also in 3 projects that use this

  • +10 more from ryanportfolio

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 2

    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. Very specific:

    If a spec name was given as $ARGUMENTS (the same name shown in the spec's own Spec Name: line, and the filename minus .md), look for …

    line 12
  2. Distinctive:

    Read the whole file. Don't assume its contents from memory or from the spec name alone.

    line 20
  3. Distinctive:

    Before changing anything, confirm explicitly with the user what is changing — which section(s), and roughly what the new content should say.

    line 25
  4. Very specific:

    Do not edit the file yourself.

    line 44
  5. Very specific:

    When the agent returns, relay its report: confirm the edit landed, and surface anything it flagged as Unknown — verify or couldn't ground.

    line 63

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

You are running the 4ds refine workflow on an existing spec.

Phase 1 — Locate the spec

If a spec name was given as $ARGUMENTS (the same name shown in the spec's own **Spec Name:** line, and the filename minus .md), look for specs/<spec-name>.md. If it doesn't exist, say so and offer to list existing specs. If no spec name was given, list specs/*.md and ask the user which one.

Phase 2 — Read it

Read the whole file. Don't assume its contents from memory or from the spec name alone.

Phase 3 — Confirm the change

Before changing anything, confirm explicitly with the user what is changing — which section(s), and roughly what the new content should say. This is its own yes/no-style confirmation; do not edit until you have it. This applies to any kind of change, including changing a task's Status (including to Done — see note below) or editing the checklist.

Note: reassigning who owns a task is not this skill's job — that's Delegation, and it happens exclusively via /4ds:delegate. If the user wants to change an Owner while refining, point them there instead of handling it here.

Phase 4 — Discuss

Have a real conversation about the change (Description) — don't just take the first thing the user says as final if it's underspecified; ask follow-ups the way you would in /4ds:brainstorm.

Phase 5 — Edit the file (via spec-writer)

Do not edit the file yourself. Compile what changed into a brief and use the Agent tool to invoke the 4ds:spec-writer subagent with:

MODE: edit
TARGET_PATH: specs/<spec-name>.md
What changed and why: <summary from the conversation>
Sections affected: <list>
New content for each affected section: <content>
New Status value (if any): <value, or omit>
REVISION_HISTORY_ENTRY: <today's date> | <one-line summary of the change> | <you, or "Claude on behalf of <user>" as appropriate>

Important: you may pass Done as the new Status value here ONLY when the user has explicitly and directly told you, in this conversation, that the work is done and they want the status set to Done. Never infer this yourself, and never propose it unprompted — that judgment call is the user's alone, per the 4ds plugin's core principle.

When the agent returns, relay its report: confirm the edit landed, and surface anything it flagged as Unknown — verify or couldn't ground.

Phase 6 — Never mark ready-to-ship

Regardless of what changed, never characterize the spec as "ready to ship," "safe," "complete," or similar on your own initiative. If the user says it themselves, you may reflect that back as their statement, but it's never something you assert.

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.