agentleFS
samwelmungasamwelmunga/jenga-npm/.agents/skills/j-redo/SKILL.md

j.redo

Skill0 starsChanged 22 days agoApache-2.0View on GitHub

Redo parts or entire previous implementations identified by a commit SHA or an Epic/Story number (e.g. E01, E02_S03). Expects an identifier and a description of what to redo and why. Use when the user wants to revisit, rework, or rewrite previously completed work, including updating all affected documentation.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If either part is missing, ask the user to provide it before proceeding.

    line 37
  2. Very specific:

    Run git --no-pager log --stat -1 <SHA> to retrieve the commit message and changed files.

    line 43
  3. Very specific:

    Run git --no-pager show <SHA> to inspect the full diff.

    line 44
  4. Very specific:

    Read the matching file under $(bash "$([ -f scripts/board_resolver.sh ] && echo scripts/board_resolver.sh || echo …

    line 47
  5. Very specific:

    Use git --no-pager log --all --oneline --grep="<epic or story title>" to locate related commits and their diffs.

    line 48
  6. Distinctive:

    Wait for user approval before executing unless the user explicitly told you to go ahead.

    line 71

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Redo — Rework a Previous Implementation

skills/j-redo/ is the canonical, hand-edited directory for this skill, per CLAUDE.md's "The Canonical Naming Contract" (the E50 reopening of 2026-09-09, which promoted skills/j-redo/ from generated twin to sole canonical form). The j- prefix is there for collision safety — a real directory under a distinct name, so a host tool shipping its own same-named built-in command cannot shadow it (Claude Code's native skill resolution is a literal-string, directory-name-based match; see project/documentation/skill-authoring.md's "Invocation Convention").

⚠️ scripts/generate-j-alias.sh was retired by E50_S14 and no longer exists — there is nothing to run. This file was previously generated from a bare skills/redo/SKILL.md source; E50_S15 deleted that directory. This file is now the sole canonical, hand-edited source for this skill — edit it directly.

Input Format

/redo <identifier> <description>
  • identifier — One of:
    • A git commit SHA (full or short, e.g. a1b2c3f)
    • An Epic number (e.g. E01)
    • A Story number (e.g. E02_S03)
  • description — What should be redone and, if relevant, why, how, or to what end.

If either part is missing, ask the user to provide it before proceeding.

Instructions

1. Resolve the identifier

Commit SHA:

  • Run git --no-pager log --stat -1 <SHA> to retrieve the commit message and changed files.
  • Run git --no-pager show <SHA> to inspect the full diff.

Epic / Story number:

  • Read the matching file under $(bash "$([ -f scripts/board_resolver.sh ] && echo scripts/board_resolver.sh || echo node_modules/@jenga-ai/agent/scripts/board_resolver.sh)")epics/ or $(bash "$([ -f scripts/board_resolver.sh ] && echo scripts/board_resolver.sh || echo node_modules/@jenga-ai/agent/scripts/board_resolver.sh)")stories/ to understand the scope.
  • Use git --no-pager log --all --oneline --grep="<epic or story title>" to locate related commits and their diffs.

Collect the list of files originally changed and the original intent of the implementation.

2. Assess scope

Compare the user's redo description against the original implementation to determine:

  • Which files need to change.
  • Whether the redo is a partial revision (some files/logic) or a full rewrite.
  • Which tests cover the affected code.
  • Which documentation files reference the affected code or feature (check project/, documentation/, project/documentation/, README.md, WARP.md).

Summarise scope findings to the user in a brief list before continuing.

3. Plan the redo

Populate skills/j-todo/assets/todo_handoff_template.md with the following pre-collected context:

  • Mission title: a short name for the redo work
  • Goal / objective: the redo objective — what is changing and the desired outcome
  • Affected files or scope: code, tests, and documentation files identified in step 2
  • Intended approach: step-by-step changes
  • Epic/Story linkage: the identifier resolved in step 1 (e.g. E02_S03), or None if a commit SHA

Then invoke the /todo skill with the populated template. Since the template fields are pre-filled, /todo should skip any questions already answered.

Wait for user approval before executing unless the user explicitly told you to go ahead.

Examples

  • /redo a1b2c3f Rewrite the auth middleware to use JWT instead of session tokens
  • /redo E02_S03 Replace the REST endpoints with GraphQL — the client team needs a flexible query interface
  • /redo E01 Redo the entire onboarding epic using the new design-system components

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.