AGENT SKILL

scan

Orients an agent in this repo once per session: reads every skill and governing doc in full, checks what they claim against the filesystem, and reports what governs this repo and where CLAUDE.md has drifted. Use only when the user types /scan.

License 许可
MIT
最近更新
2026-10-29
Stars
★ 0
Forks
0

01 前言 Front Matter

name
scan
agent
general-purpose
context
fork
background
false
description
Orients an agent in this repo once per session: reads every skill and governing doc in full, checks what they claim against the filesystem, and reports what governs this repo and where CLAUDE.md has drifted. Use only when the user types /scan.
allowed-tools
Bash(bash scripts/agent/*) Bash(bash scripts/git/*)
disable-model-invocation
true

03 SKILL.md 正文

Scan — orient, then stop

CLAUDE.md is a claim about this repo, and nothing checks it: a skill lands without a row, a gate is renamed, a doc keeps naming a file that moved. /scan reads the map, checks it against the filesystem, and reports. It writes nothing, plans nothing and edits nothing. Step 4 is what earns the command: a new session runs the drift check for you (session-check.sh full), a resume only the cheap part; this skill is the full read plus the drift script. It runs in a forked context so the read never lands in the working conversation — only the report does.

If a future edit strips step 4, delete this skill. Without the drift check /scan is a recitation of a file the agent already has.

/scan is not /task

/scan once per session; /task at the start of each change; /finalize at the end. /scan says what governs this repo; /task says what governs this change. /scan never classifies a request, never produces a plan and never opens a file under src/. If you find yourself writing steps, stop: that is /task.

1. Place yourself

git rev-parse --show-toplevel && git status -sb && git log --oneline -5

Note the branch and whether the tree is dirty; uncommitted work you did not make is the user's, and you do not touch it.

2. Read everything that governs this repo

A deliberate, expensive read — you are invoked to know the rules. State how many lines it covered.

  1. CLAUDE.md.
  2. Every skill in .claude/skills/, end to end. Where a doc and a skill disagree, the skill wins.
  3. docs/README.md, then every document it lists, starting with docs/GATES.md.

3. Read the facts no doc can hold current

cat scripts/agent/agent.conf
cat .nvmrc
grep -E '"(@therewardstore/[a-z-]+|react|typescript)":' package.json

4. Check the map against the territory

bash scripts/agent/drift-check.sh

Every check is a function in that script; it prints one line per mismatch as <check> → <file:line>. Report its lines and add no check of your own: a check that is not in the script does not exist here. A new check goes through /task, into the script, together with the doc fix that makes it pass. Fix nothing — a fix is a change, and a change goes through /task.

5. Report in this shape, then stop

Twenty lines at most. Verdict first; each drift line is where → what is wrong → the fix; no paragraph per skill, no restating docs, no Note:. Lines of 120 characters or fewer.

## /scan — <repo> @ <branch> · <sha> · <n> dirty · <n> checks · read <n> files
✓ No drift — the docs match the repo | ✖ <n> drifts — the docs disagree with the repo
  <file>:<line>  <what the doc says, and what the repo has> → <the fix>
What governs this repo
  Stack   <one line from step 3>
  Skills  <n> — <names>
  Gates   <the commands in agent.conf, one line>
  No skill yet: <modules>                  (omit when none)
Next
  /task fix the <n> drifted docs above     (with no drift: /task <your change>)

Stop conditions

Stop after the report. Do not begin a task, do not fix drift, do not invoke another command.

Related

CLAUDE.md · docs/README.md · task — the per-change flow this hands off to · finalize — the end-of-task check

04 同仓库更多 Skills

therewardstore
therewardstore/applaudiq-embed-capacitor

task

Builds one change to this repo: reads the skills that govern it, plans as much as the work type needs (hotfix: none; change: printed; new: approved first), does the work and runs the gates at the plan's risk. Runs inside /flow for every request, or when the user types /task <request>.

★ 0
therewardstore
therewardstore/applaudiq-embed-capacitor

review

Reviews a diff or a pull request line by line against this repo's rules and prints findings a reviewer would leave as comments, split into Must fix and Worth a look. Never edits, commits or approves. Use when the user types /review [<range> | <PR number>].

★ 0
therewardstore
therewardstore/applaudiq-embed-capacitor

handoff

Writes the QA test plan for a finished change — what changed for the user, where to look, and the test cases — into the tracked change record, in a tester's words with no code, and comments it on the ticket. Use when /flow reaches it, or when the user types /handoff after /finalize said ready.

★ 0
therewardstore
therewardstore/applaudiq-embed-capacitor

flow

Carries any request in this repo from the first message to a pull request: decides where the work belongs and which type it is, settles the ticket and branch, runs /task, asks the developer before any commit, runs the second check, /handoff and ship.sh, and ends with what the developer does next. Use for every request when TASK_MODE=auto, or when the user types /flow <request>.

★ 0
therewardstore
therewardstore/applaudiq-embed-capacitor

finalize

Judges a change from exit codes only: stage 1 on the proposed commit before the commit question, stage 2 on the committed sha, or the branch range. Never fixes, commits, pushes or asks. Runs when /flow reaches it, or when the user types /finalize.

★ 0
therewardstore
therewardstore/applaudiq-embed-capacitor

task

暂无简介

★ 0