skills
Portable coding-agent setup: skills, always-on rules, review personas and
hooks, packaged as one plugin, jz, in a marketplace that Claude Code and
Codex both read. Add the marketplace on any machine and the agents behave the
same.
A skill loads when you type its command, /jz:verify or /jz:pr, or when
the brief that starts a session names it. A plain request such as "commit"
does not load one on its own, which is why a hook denies a commit, push or
PR create until pr is loaded. The rules, the personas and the hooks load
with the plugin.
Install
Requirements: bash, git and python3 on the machine that runs the hooks,
and an authenticated gh for the skills that push, open or review pull
requests.
Claude Code
In a session:
/plugin marketplace add yeojz/skills
/plugin install jz@yeojz-skills
Or from a shell:
claude plugin marketplace add yeojz/skills
claude plugin install jz@yeojz-skills
Start a new session so the rules and hooks load. Claude Code leaves
auto-update off for third-party marketplaces, so to pick up new commits run
claude plugin marketplace update yeojz-skills and then claude plugin update jz@yeojz-skills,
or turn auto-update on for the marketplace under
/plugin.
Settings for long runs
A plugin cannot change your settings, so these go in your own
~/.claude/settings.json. They are optional; without them a long
coordinate, factory or handsfree session still continues after a
compaction, it only grows larger first.
{ "autoCompactWindow": 200000 }
| Setting | Effect |
|---|
autoCompactWindow | Compacts the session once its context reaches this many tokens, from 100000 to 1000000. /autocompact 200k sets it from inside a session, for the current model |
idleCompaction | Compacts a large conversation while it sits idle, which is the quiet moment between turns. On by default; leave it on |
CLAUDE_CODE_AUTO_COMPACT_WINDOW, an environment variable | The same window for a cloud environment or a script, where there is no settings file of yours. It wins over the setting |
Compacting early is safe here because a run's state is on disk: see
Hooks.
Codex
codex plugin marketplace add yeojz/skills
codex plugin add jz@yeojz-skills
Then start a new session. codex plugin marketplace upgrade refreshes the
snapshot after new commits. On Codex CLI 0.164.0 the skills load as
jz:<name>. Codex runs a plugin's hooks only after you trust them once, from
/hooks in an interactive session; until then the rules do not arrive at
session start, and make-agents-md.sh below writes them into the
repository's AGENTS.md instead.
Use it
A first session
Open a session in a project. The house rules arrive at session start as a
block headed "House rules from the jz plugin", with the project's own
CLAUDE.md, AGENTS.md and CONTRIBUTING.md surfaced beside them. Then:
- Settle what to build.
/jz:grill interviews the plan until nothing is
assumed and, in spec mode, writes a spec of requirements and steps.
/jz:criteria then writes acceptance criteria for each requirement, seen failing before
anything is built. /jz:review in audit mode reads the repo without editing it and
writes a plan file under docs/plans/, which is never committed.
- Build it.
/jz:implement builds a spec step or a plan item, running its
criteria before, during and after, writing tests first.
/jz:debug takes a bug cause first.
- Prove it.
/jz:verify runs the repo's own scripts and ends in a
Verification block with a behaviour row. Without that block nothing is
done.
- Ship it.
/jz:pr, with the mode in the request: "commit" stops at the
commit, "commit and push" at the push, "commit, push and open a draft PR"
at the draft, and "... and mark ready" runs through to ready. The body is
written from the diff. A commit or push typed before the skill is loaded
is denied, with the call that unblocks it.
- Review it.
/jz:review on a branch or a PR number; "check the PR comments"
sweeps the unresolved threads.
- After the merge, "PR 12 merged, clean up" runs the
pr cleanup: the tip
checks, the branch and worktree removal, and the main checkout brought
level with the remote.
A spec's steps run through /jz:coordinate from a session in the target
repository. It starts one worker session per step and one reviewer per PR,
reports one line per PR at merge-ready, and leaves the merge to you. Its
unit script holds the run's state and checks each report and review from
files, so the session can run for a long time and pick up after a
compaction from one command.
Two more ways to run a spec, for when you would rather not be in the loop: