agentleFS
flegarsflegars/greenlyt/skills/spec/SKILL.md

spec

Skill0 starsChanged 21 days agoMITView on GitHub

Writes and stores the spec of a change before any greenlyt implementation (numbered, verifiable acceptance criteria, in/out of scope, grounded in the codebase), then gets it approved by the user. Also updates a spec after a failed /greenlyt:run. Trigger on /greenlyt:spec, "write the greenlyt spec", "spec this need for greenlyt", "update the spec <slug>".

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use backprop, ios-clean 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.
  • JuliusBrusseeSkill

    backprop

    Bug → spec protocol. When a bug is found or a test fails, trace the cause, decide whether a new §V invariant would catch recurrence, append to §B. This is the one non-obvious thing SDD does that plan-then-execute doesn't. Triggers on test failure, bug report, post-mortem, or explicit user ask.

    Also in 4 projects that use this

  • Saqlain-811Skill

    ios-clean

    Remove the DebugBridge SPM package and all #if DEBUG wiring from an iOS app. (gstack)

    Also in 5 projects that use this

  • Saqlain-811Skill

    ios-fix

    Autonomous iOS bug fixer. (gstack)

    Also in 5 projects that use this

  • bastosSkill

    ios-design-review

    Review iOS app UI/UX design quality using Apple's design principles and the Liquid Glass-era design language from WWDC25/26. Use when asked for a design review, UX critique, visual design assessment, or evaluation of an app's interface quality, design intent, alignment with the new Apple design system, or usability. Triggers: "design review", "UX review", "visual design critique", "review the UI", "does this design work", "evaluate this interface", "design feedback", "Liquid Glass review".

    Also in 5 projects that use this

  • timurgaleevSkill

    document-generate

    Generate missing docs for a feature, module or project as tutorials, how-tos, reference and explanation.

    Also in 6 projects that use this

  • ShreyRaviSkill

    plan-tune

    Self-tuning question sensitivity + developer psychographic for gstack (v1: observational). Review which AskUserQuestion prompts fire across gstack skills, set per-question preferences (never-ask / always-ask / ask-only-for-one-way), inspect the dual-track profile (what you declared vs what your behavior suggests), and enable/disable question tuning. Conversational interface — no CLI syntax required.

    Also in 7 projects that use this

  • +2 more from Saqlain-811

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 170 edited versions we read keep these.

  • 3

    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:

    Read docsDir from the config ("${CLAUDE_PLUGIN_ROOT}/bin/greenlyt" config .docsDir, default docs/greenlyt).

    line 14
  2. Distinctive:

    Before writing, explore the codebase: where the feature fits, the current behavior, the conventions and existing tests.

    line 23
  3. Distinctive:

    Ask the questions needed to remove ambiguity, one at a time, starting with the one that changes the outcome most.

    line 27
  4. Distinctive:

    No blocking open question remains at approval.

    line 35
  5. Very specific:

    Write <docsDir>/specs/<slug>.md and show it to the user.

    line 38
  6. Very specific:

    Ask explicitly: "Do you approve this spec?".

    line 42

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

/greenlyt:spec

Produces the spec that will be the loop's fixed reference: the test writer derives the tests from it, the developer implements it, and the reviewers use it to judge and to spot deviations. A vague spec makes a loop that never converges: precision here is the priority.

1. Preconditions

  • .greenlyt/config.json exists. Otherwise, point to /greenlyt:init and stop.
  • Read docsDir from the config ("${CLAUDE_PLUGIN_ROOT}/bin/greenlyt" config .docsDir, default docs/greenlyt). Specs live in <docsDir>/specs/<slug>.md.

2. Mode

  • Argument = slug of an existing spec → update mode. Read the spec and, if any, the latest failure report <docsDir>/runs/*-<slug>.md: its "Open questions" are the starting point.
  • Otherwise → create mode. Propose a short kebab-case slug (e.g. csv-export) and check it does not exist yet.

3. Grounding in the code

Before writing, explore the codebase: where the feature fits, the current behavior, the conventions and existing tests. Read the repository's CLAUDE.md if there is one. Assume nothing you have not read.

4. Clarification

Ask the questions needed to remove ambiguity, one at a time, starting with the one that changes the outcome most. In update mode, start with the open questions from the failure report.

5. Writing

Fill in templates/spec.md (in this skill's folder). Requirements:

  • Each criterion is numbered AC-n and phrased so that it can be verified by an automated test (input, action, observable result).
  • The out of scope section is explicit: it is what lets the reviewers qualify a deviation or a regression.
  • No blocking open question remains at approval.
  • The Status: draft line stays as is until the user approves.

Write <docsDir>/specs/<slug>.md and show it to the user.

6. Approval

Ask explicitly: "Do you approve this spec?". Iterate on the feedback. Only after explicit approval, replace the line with Status: approved. Do not commit: /greenlyt:run commits the spec as the first commit of the work branch, unless the project ignores it.

Point to the next step: /greenlyt:run <slug>.

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.