agentleFS
qwerfunchqwerfunch/cladding/skills/rollback/SKILL.md

rollback

Skill16 starsChanged 5 months agoMITView on GitHub

Record a rollback event and print the maintainer-runnable git command for the most recent checkpoint of a feature. Use when an implementation attempt failed, an autonomous drive loop hit RETRY_THRESHOLD, or the user wants to abandon the current attempt and restore the pre-checkpoint state. Activate only when the connected project contains spec.yaml or the user explicitly names Cladding; ignore ordinary requests in uninitialized projects.

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use audit, plan and 2 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.
  • OpenAISkill

    audit

    Audit or critique a product flow, journey, workflow, funnel, onboarding path, checkout path, settings path, screen, or multi-step product experience by capturing screenshots first, then reporting UX, design, and accessibility findings inline from that evidence. Use Figma only when the user explicitly asks for a board. Use when the user asks to audit, review, critique, inspect, assess, analyze, evaluate, or give feedback on a product experience.

    Also in 5 projects that use this

  • BlockSkill

    plan

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

    Also in 3 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

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

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    When the latest checkpoint has no gitHead (the project is not a git repo), the verb prints No git head pinned — restore spec.yaml manually …

    line 23
  2. Distinctive:

    After an attempt that ended with the gate stuck, failing repeatedly, or erroring out.

    line 33
  3. Distinctive:

    After a manual implementation attempt that introduced a regression you don't want to bisect.

    line 34
  4. Distinctive:

    Before retrying the same feature so the next attempt starts from a known-good HEAD instead of an in-progress mess.

    line 35

“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

Cladding rollback

Run clad rollback <featureId> from the project root. The verb is the partner of clad checkpoint (iron-law.md §2.5 Iron Law backbone Phase 1) — it stamps a feature_rolled_back event into .cladding/events.log.jsonl and prints the git checkout <sha> command the maintainer can run. Cladding does not run the checkout itself — the host's branch policy, dirty-working-tree state, or detached-HEAD concerns may demand a non-default strategy, so the decision stays with the maintainer.

  • -r, --reason <reason> — optional free-text reason recorded on the event payload. Useful for post-mortems and the Librarian's archival flow.
clad rollback F-001
clad rollback F-a3f9c2e1 --reason "specialist dispatched a regression on the L1 lint gate"

The output is a single Pulse line plus the restoration command:

✓ rollback · F-a3f9c2e1  target head=<sha12> ts=<iso>
Run: git checkout <sha40>

When the latest checkpoint has no gitHead (the project is not a git repo), the verb prints No git head pinned — restore spec.yaml manually from VCS history. instead.

Exit codes

  • 0 — rollback event stamped, restoration command printed.
  • 1 — no prior checkpoint exists for the feature; nothing to roll back to. Run clad checkpoint <featureId> next time before mutating.
  • 2 — feature id argument missing.

When to use

  • After an attempt that ended with the gate stuck, failing repeatedly, or erroring out.
  • After a manual implementation attempt that introduced a regression you don't want to bisect.
  • Before retrying the same feature so the next attempt starts from a known-good HEAD instead of an in-progress mess.

Pair with

clad checkpoint <featureId> — stamps the safety net rollback restores from. See skills/checkpoint/SKILL.md.

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.