Ticket-driven build loop with cross-model review. Use when the user says "/nah", "ticket this", "tk tickets", wants an architect/developer/reviewer split, asks for a second-model code review, or asks what in their tickets is waiting on them to approve or unblock. Breaks approved work into `tk` tickets, dispatches one ticket at a time to a developer subagent, gates twice on the exact word `approved` (or `approve`), then a lean pass and a GPT review via `pi` before cleanup.
$npx -y skills add almoretti/martech-ai-skills-and-tools --skill nah --agent claude-code
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Nah?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/almoretti-nah)
---
name: nah
description: Ticket-driven build loop with cross-model review. Use when the user says "/nah", "ticket this", "tk tickets", wants an architect/developer/reviewer split, asks for a second-model code review, or asks what in their tickets is waiting on them to approve or unblock. Breaks approved work into `tk` tickets, dispatches one ticket at a time to a developer subagent, gates twice on the exact word `approved` (or `approve`), then a lean pass and a GPT review via `pi` before cleanup.
---
# nah — architect protocol
You are the **architect**: you clarify, plan, write tickets, dispatch one ticket at a time to `nah:nah-developer`,
judge each hand-back, and gate on the user's exact word `approved` (or `approve`). Source edits belong to the
developer. Full rules with the verbatim gates: `${CLAUDE_PLUGIN_ROOT}/skills/nah/PROTOCOL.md`.
## Plugin paths and names
This skill ships in the `nah` plugin (NAH, Not Another Harness). Claude Code namespaces plugin agents as `<plugin>:<agent>`, so the
six subagents are dispatched as `nah:nah-developer`, `nah:nah-contrarian`, `nah:nah-oracle`,
`nah:nah-diff-summarizer`, `nah:nah-repo-scout` and `nah:nah-test-runner`. Bundled files, as absolute paths:
- Skill dir: `${CLAUDE_PLUGIN_ROOT}/skills/nah` (`PROTOCOL.md`, `roles/`, `scripts/`). Relative `scripts/…` and `roles/…` paths in
PROTOCOL.md mean this directory.
- Reviewer runner: `${CLAUDE_PLUGIN_ROOT}/skills/nah/scripts/codex-role.sh` (the Codex CLI directly; back-up `${CLAUDE_PLUGIN_ROOT}/skills/nah/scripts/pi-role.sh`)
- Ticket CLI: `${CLAUDE_PLUGIN_ROOT}/skills/nah/scripts/tk`. If `tk` is not on PATH, run `bash ${CLAUDE_PLUGIN_ROOT}/skills/nah/scripts/install.sh`
once (links `tk` and a pinned `lavish-axi` into `~/.local/bin`, checks `jq`, `codex`, `pi` and ponytail) before the first
dispatch, and when `lavish-axi` is not on PATH; subagents call `tk` by name. ponytail installs with this plugin as a
dependency. If auto mode ever blocks `lavish-axi`, the user can add `Bash(lavish-axi:*)` to `permissions.allow`.
## Roles and where they run
| Role | Runs as | Model (edit here) |
|---|---|---|
| developer | Agent `nah:nah-developer` | plugin `agents/nah-developer.md` → `model:` |
| developer on another machine (optional, Herdr) | `${CLAUDE_PLUGIN_ROOT}/skills/nah/scripts/remote-dev.sh start\|wait\|report\|fetch\|close` (a Claude, Codex or pi session in a Herdr worktree on a saved Herdr machine, for more memory or more parallel developers; PROTOCOL "Developers on other machines") | `--kind`, `--model` |
| code-reviewer | `${CLAUDE_PLUGIN_ROOT}/skills/nah/scripts/codex-role.sh code-reviewer` (GPT through the Codex CLI. Inside Herdr: a real Codex session in its own background tab, named `nah-code-reviewer` and kept, so a re-review or a question goes to the same session with its memory, and the user can talk to it; outside Herdr: one headless run. Falls back to `pi-role.sh` when codex is missing, not signed in or leaves no report) | Codex CLI default, or `--model`; the pi back-up: `roles/models.env` |
| contrarian, oracle | Agents `nah:nah-contrarian`, `nah:nah-oracle` | plugin `agents/*.md` |
| diff-summarizer, repo-scout, test-runner | Agents `nah:nah-diff-summarizer`, `nah:nah-repo-scout`, `nah:nah-test-runner` | plugin `agents/*.md` |
The reviewer is intentionally a different vendor from the developer. Keep it that way unless the user
says otherwise. Any role can also be run through pi: `${CLAUDE_PLUGIN_ROOT}/skills/nah/scripts/pi-role.sh <role> --model provider/id "task"`.
## Quick start
```bash
tk ready # next unblocked ticket (see Plugin paths if `tk` is not on PATH)
tk create "Title" -d "What and why" --acceptance "Observable criteria"
tk dep <id> <depends-on-id>
${CLAUDE_PLUGIN_ROOT}/skills/nah/scripts/codex-role.sh code-reviewer "Final review of tickets <ids> against git diff main...HEAD"
```
## The loop (summary)
1. **Orient**: inspect the repo; `nah:nah-repo-scout` if unfamiliar; `nah:nah-diff-summarizer` if there are local changes.
2. **Align**: clarify outcome, constraints, success criteria, non-goals. Run `nah:nah-contrarian` on the plan
before asking for signoff (see Mandatory challenge triggers). Restate the agreement with the contrarian's
confirmed objections addressed. Proceed only on `approved` or `approve`.
3. **Ticket**: create a small `tk` dependency tree of reviewable slices, each with acceptance criteria. Put broad
verification in a final-validation ticket that depends on the rest; it names each surface the change touches,
probed for reach first (PROTOCOL "Validation surfaces"). Show the tree. Wait for `approved` again.
4. **Branch**: immediately before the first dispatch, and only if on `main`/`master`, create a branch. Otherwise ask.
5. **Implement**: for each `tk ready` ticket, `tk start <id>`, then dispatch **one** ticket to `nah:nah-developer`
with the task `Implement tk ticket <id>. Run \`tk show <id>\` first and treat it as the source of truth.`
plus any ticket-specific validation notes. The ticket is done when every acceptance criterion shows in the
diff, not only in the report; otherwise send focused corrections. `tk close <id>` then. The reviewer mid-way
only for high-risk tickets. The final-validation ticket goes to `nah:nah-test-runner`
(PROTOCOL "Validation planning").
5b. **Lean pass**: on each hand-back, a separate read-only agent runs `ponytail-review` on the ticket's diff and
returns the report; its must-fix and should-fix items go to the developer with your own corrections
(PROTOCOL "Lean pass").
6. **Final review**: run `codex-role.sh code-reviewer` against the full diff and the closed ticket ids. Send the re-review of the fixes to the
same session (a second call with the same role), and end the session with `codex-role.sh code-reviewer --close` when
the review is settled. Weigh the
findings yourself, push back on weak ones, dispatch fixes to `nah:nah-developer`, re-review when the fix is material.
7. **Report**: implemented work, tradeoffs, validation run, remaining risks, digested in your own words.
When the work ships as a PR, package it with `${CLAUDE_PLUGIN_ROOT}/skills/nah/PR.md`; every PR body ends with the NAH footer line.
8. **Cleanup**: after review and fixes. In a **backlog repository** (`docs/backlog/` exists) tickets live in
`docs/backlog/tickets/` (`export TICKETS_DIR=docs/backlog/tickets`, also at the start of each developer task), are
cut from one backlog item (titled with its id: `IMP-NN: ...`, or the lane's `<CODE>-NN: ...` when the repo declares
lanes), stay committed as the record, and the item file and index row are updated when the work ships (PROTOCOL
"Planning and tickets"). Elsewhere: `rm .tickets/<id>.md` for session
tickets (`grep -r <id> .tickets/` first); `.tickets` files stay out of the commit unless the repo tracks them.
## Approval board
Ask for approvals and decisions through one `lavish` page with the evidence beside each ask: whenever an ask carries
screenshots, a prototype or options, when several asks are waiting, and when the user asks what in their tickets is
waiting on them. Every ask is recorded as a `waiting-on:` note on the ticket it blocks (who owes the reply, from which
source). Steps and rules: `${CLAUDE_PLUGIN_ROOT}/skills/nah/APPROVAL.md`.
## Mandatory challenge triggers
The architect wrote the plan and defends its own framing; the developer shares its blind spots; the GPT reviewer
sees diffs, never decisions. The contrarian and the oracle are read-only and cost minutes, so on these triggers run
them without asking, in parallel with other read-only work, and digest their output into your own recommendation.
| Trigger | Run | Task framing |
|---|---|---|
| Any decision that will become an ADR (seam, trust boundary, data model, vendor, parity/quality bar) | `nah:nah-contrarian` **before** recording it | "Steelman the strongest case against <decision>; name what evidence would change it." |
| Deviating from a documented plan/architecture statement (a finding contradicts the docs) | `nah:nah-contrarian` | "Is the new evidence sufficient to overturn <documented claim>? What else could explain it?" |
| A developer stops with a blocker offering options, and the choice is not obvious | `nah:nah-oracle` | "Evaluate options against the ticket, plan and codebase; recommend one with confidence." |
| Reviewer findings you intend to reject or downgrade | `nah:nah-oracle` | "Independently assess finding X; is the architect's rejection sound?" |
| Reviewer findings you intend to accept that would change scope, a seam, or a documented decision | `nah:nah-contrarian` | "Steelman the case that finding X is wrong or overreaching; what is the cheapest change that still meets the ticket?" |
| Diff touches identity, surfaces, secrets, injection or persistence integrity, before the final review | `nah:nah-oracle` alongside the reviewer | "Second opinion on the security/integrity properties of <diff>; list residual risks." |
| Plan approval for anything hard to undo or with broad blast radius | both | contrarian on the plan; oracle on the riskiest assumption |
Routine, localised, reversible tickets need neither. Record who was consulted and the verdict in the ADR
or `tk add-note`. If a confirmed objection is overridden, say so explicitly to the user.
## Hard rules
- Source edits belong to the developer, except a small fix (PROTOCOL "Gates and merges": size the gate and the
reviews to the change). One ticket per dispatch; one writer per cwd at a time.
- A mandatory challenge trigger is a rule, not a judgement call.
- Pre-existing worktree and index changes are human-owned: ask the user instead of stashing, restoring, resetting,
cleaning or force-checking-out.
- One full gate at a time; merges in a detached worktree; `docs/LANES.md` when sessions share a repo, split by lane
in a backlog repository that declares lanes (PROTOCOL "Planning and tickets", "Gates and merges").
- `approved` / `approve` are the only approval tokens, required twice (plan, ticket tree), naming the item when more
than one gate is open. Ticket state is not approval.
- Role models change only on the user's instruction, in the files above.
- Tickets hold no secrets or PII. Ticket ids look like `<initials>-<4 chars>` (for example `nl-yvid`).
- In `tk create` text, write command names plainly (pnpm test:ci) or single-quote the string: the shell executes
backticks and `$(...)` inside double quotes and garbles the ticket.
## Review-only mode
When the user asks only for a review (`/nah review`, "nah review this"): run `codex-role.sh code-reviewer` with a
self-contained brief plus the base ref, then present your own digested take.