Agent Workflows
A short delivery loop for coding agents, plus a few specialist skills, packaged as one plugin for Claude Code and
Codex. The plugin is content only: no hooks, MCP servers, daemons or injected AGENTS.md/CLAUDE.md.
Skills
delivery-loop: cut a change to done lines and a size budget, build the smallest version, run a blind size check,
then at most three review rounds. Loads on ordinary coding tasks.
simplify-diff: find the smallest correct version of an overgrown diff; the method behind the size check.
best-practice-research: answer version-sensitive or external-standard questions from primary sources.
design-product-identity: design and ship a product logo or app-icon family.
service-dashboard-design: lay out and check an operational dashboard for a live service, with sourced rules.
macos-resource-triage: find what is making a Mac hot or slow.
Workflows (Claude Code)
converge-pr: runs the delivery loop's size check and review rounds on one open PR with fresh agents (Codex Sol
and Opus reviewers, a separate fixer, closure checks and arbiters). It stops at three rounds. On every ending after
its start-up checks, hand-backs and failures included, it writes a Review section into the PR body (size check, each
round's findings, what it fixed, what remains, what it did not count, bots, rounds used, and Clean head: with the
ready head SHA or none yet) and returns it as review;
if that write fails it hands back, and the caller saves review in the body. Rounds never resume: a run reads the
rounds used from the PR body and hands back a PR that already used any, or a failed start-up (fetch, jq), with the
body untouched, so a saved count is never overwritten. Before it reports ready, it waits up to 7 minutes for each review
bot to report on the final head, and lists any that did not, with the reason; a silent bot does not block. It then fixes, rejects or lists each open bot thread, handing back a P0/P1 one; with replyBots it
also replies and resolves it. Needs the codex CLI, gh and jq.
Principles
- Cut before code: at most five done lines and a size budget. Only the owner settles product decisions.
- A PR under review takes no new behavior; new decisions become new PRs.
- Review is capped at three rounds. A P2 fix may only change, narrow or delete code.
- Review bots are advisory. Repo rules add gates, device checks and rollout.
- Skills stay short and do not restate what the host already does well.
Install
Codex:
codex plugin marketplace add HashimTheArab/agent-workflows
codex plugin add engineering-workflows@hashim-workflows
Claude Code:
claude plugin marketplace add HashimTheArab/agent-workflows
claude plugin install engineering-workflows@hashim-workflows
Start a new session (or run /reload-plugins in Claude Code) after installing.
AGENTS.md block
The hard rules live once, between the agents-block markers in
delivery-loop/SKILL.md. Repos that opt in carry a
copy so every agent sees them even when the plugin is not loaded. A maintainer writes and checks the copies:
python3 scripts/agents_block.py sync path/to/AGENTS.md # write or replace the block; appends it if absent
python3 scripts/agents_block.py check path/to/AGENTS.md # exit 1 if missing, hand-edited or behind the source
python3 scripts/agents_block.py status [path ...] # print the source hash and each file's state
Symlinked AGENTS.md files are followed and text outside the markers is left alone. The copy starts with a
source: agent-workflows <sha> sha256:<hash> line. A consumer repo can catch hand edits in CI without this repo:
sed -n '/^<!-- agents-block:start -->$/,/^<!-- agents-block:end -->$/p' AGENTS.md | sed '1,2d;$d' | shasum -a 256
and compare the result with the recorded hash.
A repo keeps its copy current by running .github/actions/agents-block-sync
on a schedule, pinned by commit SHA. The repo must allow GitHub Actions to create pull requests.
Review record check
.github/workflows/review-record.yml is a reusable workflow a repo calls on
pull_request (opened, synchronize, reopened, edited, ready_for_review), pinned by commit SHA, with contents: read
and pull-requests: read. It fails unless the PR body's Clean head: line covers the current head, plain merges of
commits already on both the default branch and the PR's target included. So a stacked PR that merges its unreviewed
parent branch turns red, and so does a PR into another long-lived branch that takes updates from that branch. The rules
are in scripts/review_record.py.
macOS jobs