AGENT SKILL

rr-status

暂无简介

License 许可
MIT
最近更新
2026-11-14
Stars
★ 3
Forks
0

02 资源文件 1

03 SKILL.md 正文

/rr-status $ARGUMENTS

Read-only. Resolve the install root, run the script and print its output verbatim, as a code block — no summary, no table, no commentary before it:

for AI_HOME in "${CLAUDE_CONFIG_DIR:-$HOME/.claude}" "${CODEX_HOME:-$HOME/.codex}"; do
  [ -f "$AI_HOME/skills/rr-status/status.py" ] && break
done
python3 -I "$AI_HOME/skills/rr-status/status.py" --root "$PWD"

After the output, at most one line, and only when a line asks for it:

  • root: is an ancestor of this repository, or $HOME: that .ai/ arms the guards for every repository below it. Say so.
  • schema: … — behind: point at /rr-setup --update.
  • questions: N pending with N > 0: the task is halted until they are answered — /rr-build shows them. The count can lag an [Answer]: line the human filled in the file; state.py handoff --print re-reads the file.
  • gate: requested: the approve command /rr-ship printed is run by the human in their own terminal, or by you only if they picked it in the dialog (verbatim, once).

Exit 1 with root: none means no .ai/ governs this directory: /rr-setup sets one up.

--cost

With --cost and nothing else, add --cost to the status.py call: the task's token report follows the status lines. With any other usage flag, run the bundled report instead — never re-derive the parsing from transcripts:

R="python3 $AI_HOME/skills/usage-report/usage-report.py"
$R                        # current project, every runtime that has transcripts
$R --all | --today        # all projects on this machine | the current UTC day
$R --session <prefix>     # one session (Claude) or thread (Codex) id prefix
$R --provider auto|claude|codex|both [--root <dir>]
$R --task <task-id> [--project DIR]   # one task, from its journal's window
$R --budgets              # the installed plans' budget tables
$R --no-cache             # ignore the parse cache for this run

It prints per-model tokens (input, output, cache write, cache read), a per-runtime split when both have data, per-day, per-session and per-project cost, the subagent share and a total. Relay the numbers asked for; do not dump the table unless asked.

Say these whenever you quote it:

  • --task brackets the task by its journal (task_started to task_closed, UTC): the window includes anything else the session did in those minutes. It prints the mode when the journal has one, else the tier, and the plan's budget for it — reported, never enforced.
  • The dollar column is an estimate from token counts. Subscription plans are not billed per token; a provider whose table in prices.json has rates_verified: false gets an ESTIMATE note. Compare runtimes by tokens.
  • DAY is the UTC date; CALLS counts API responses. Codex's input includes the cached part, so the script subtracts it; IN is fresh input in both runtimes.
  • Cache read and write are usually most of the cost: that is context length, not model choice.

Local transcripts only (~/.claude/projects/**/*.jsonl, ~/.codex/sessions/**/rollout-*.jsonl); sessions from other machines are not visible. The parse cache is ~/.cache/riskrails/usage-report.json (USAGE_REPORT_CACHE=<path> moves it, empty turns it off); delete it if you suspect it, and --no-cache tells within one run whether it was the cache.

04 同仓库更多 Skills

vanssata
vanssata/claude-agentic-sdlc-module

sylius-fixtures

Load the Sylius fixture suite into the local database

★ 3
vanssata
vanssata/claude-agentic-sdlc-module

deploy-staging

Deploy the current branch to staging and smoke-test the checkout. Use on "deploy to staging".

★ 3
vanssata
vanssata/claude-agentic-sdlc-module

rr-spec

Turn a rough idea into one file, docs/sdlc/specs/<slug>.md — an `## Intent` section (problem, outcome, affected users and systems, constraints, decisions taken) from a short one-question-at-a-time brainstorm recorded through state.py, then requirements and design from the architect agent on the STRONG tier, checked against the project's constitution, instruction files, skills and ADRs, ending with explicitly flagged concerns (especially contradicting policies). Accepts an existing docs/sdlc/intent/<slug>.md instead of the brainstorm. Use when starting a feature, "write the spec", "let's define what we want", "design this", before any plan or code.

★ 3
vanssata
vanssata/claude-agentic-sdlc-module

rr-ship

Close the task — state.py close measures the two facts (a green whole-suite verify on the tree as it is now; every changed file inside the task's files), applies the mode table and either archives the task or, in full mode, requests the human's approval and prints the exact approve command for their own terminal. Writes the commit message body and suggests the commit; never merges or deploys, and commits, pushes or approves only as the command the human picked in the dialog, verbatim, once. Use on "/rr-ship", "close the task", "ship it", "ready for approval", after /rr-build or /rr-review.

★ 3
vanssata
vanssata/claude-agentic-sdlc-module

rr-setup

暂无简介

★ 3
vanssata
vanssata/claude-agentic-sdlc-module

rr-review

One adversarial review of the task's change, at the tier its mode sets — BALANCED in guarded, STRONG in full, security-focused when the domain axis is 2, and in light only when close reports a red fact. A fresh ai-reviewer reads the diff with bounded inputs, returns FINDINGS and a VERDICT, and state.py records them; in-scope BLOCKER and HIGH findings are fixed as one batch, closed by a green verify or one scoped re-review. The pass past the budget is the human's. Use on "/rr-review", "review this", after /rr-build in guarded or full mode, or when close says a review is required.

★ 3