agentleFS
mmjclaytonmmjclayton/agent-sop/.agents/skills/update-sop/SKILL.md

update-sop

Skill4 starsChanged 2 months agoMITView on GitHub

Close an Agent SOP session with tests, review evidence, Backlog updates, validators and a resume record.

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

    Update Backlog tags and review citations in place.

    line 19
  2. Very specific:

    Run scripts/refresh-priorities.sh, scripts/archive-backlog.sh and scripts/detect-trackers.sh where installed.

    line 20
  3. Very specific:

    Run scripts/validate-state-transitions.sh normally, with --check-drift, and with --check-replication.

    line 23
  4. Distinctive:

    Write substantive decisions/gotchas, refresh in-flight state, write a session record under docs/recent-work, and refresh the rollup.

    line 26
  5. Distinctive:

    Commit only files belonging to the task when authorized by the workflow.

    line 31
  6. Very specific:

    If this session holds a worktree writer claim, release it with the installed sop-worktree-claim.sh release <session-id> after recording the …

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Confirm Backlog.md and docs/sop/claude-agent-sop.md exist. Read the shared SOP's session-end section and docs/sop/codex.md. Preserve the user's task scope.

  1. Resolve the agent ID and resume path with scripts/resolve-resume-path.sh. Establish this session's actual diff from git history, in-flight work and the previous record. Do not assume the entire branch is this session.
  2. Determine project type with the installed Codex sop-project-type.sh or the project's scripts/hooks/sop-project-type.sh. Run the real existing suites. Missing runners are reported, not recorded as a pass.
  3. Apply the shared SOP review triggers. When ship-sop auto-mode applies, use the ship skill once and cite its report. Otherwise use an isolated read-only reviewer as described in docs/sop/codex.md. Include uncommitted changes in a temporary review snapshot when needed. Missing evidence blocks shipping.
  4. Update Backlog tags and review citations in place; preserve all items. Run scripts/refresh-priorities.sh, scripts/archive-backlog.sh and scripts/detect-trackers.sh where installed. A missing required script is an installation gap to report and repair with update-agent-sop.
  5. Run scripts/validate-state-transitions.sh normally, with --check-drift, and with --check-replication. For Codex checks set AGENT_SOP_RUNTIME=codex. Resolve failures; never manufacture a pass or mark unfinished work shipped.
  6. Write substantive decisions/gotchas, refresh in-flight state, write a session record under docs/recent-work, and refresh the rollup. Overwrite the resolved resume snapshot with what changed, what's next and blockers. Preserve the shared legacy memory location; never guess a path. Project state stays in these project files; do not copy it into a runtime's global memory store.
  7. Commit only files belonging to the task when authorized by the workflow; respect an explicit request to leave changes uncommitted. Summarize changes, test/review results and any remaining work. Publication requires its own user authorization; closing the session does not imply sending messages.

If this session holds a worktree writer claim, release it with the installed sop-worktree-claim.sh release <session-id> after recording the handoff. Only the coordinating session writes shared close-out records.

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.