SKILL.md--- name: book-review description: Review any part of the book using parallel specialist agents user-invocable: true --- # Book Review Review part of the book specified by `$ARGUMENTS`, using the project's book review policies. ## Step 1: Figure Out What to Review The user's `$ARGUMENTS` could be anything. Interpret them: | Arguments | What to do | |-----------|-----------| | *(empty)* | Run `git diff -- book/src/` and `git diff --cached -- book/src/`. Review the uncommitted changes. If no changes, say so and stop. | | A file path | Read that file. Review the whole chapter. | | A file path with lines (`foo.md:50-80`) | Read that file. Focus the review on those lines (but read the full file for context). | | Multiple file paths | Read all of them. Review each, and also look for consistency across them. | | A section heading or topic name | Use Grep/Glob to find where that topic is discussed in `book/src/`. Read those sections. Review them. | | A conceptual description ("how we explain X", "the transition between Y and Z") | Search the book to find the relevant passages. Read them with surrounding context. Review them as a unit. | | A mix of the above | Handle each part, then review the union. | If you're unsure what the user means, ask before launching reviewers. ## Step 2: Discover and Launch Reviewers 1. Use Glob to find all `.claude/book-review/*.md` files. 2. Read `.claude/book-review/standards.md` (master standards shared by all reviewers). 3. For EACH policy file **except `standards.md`**, launch a `general-purpose` Task agent (use model `sonnet`). Give each agent a prompt constructed from this template — adapt it based on what you're reviewing: > You are reviewing part of "The Ragu Book," a technical book about a > recursive proof system (proof-carrying data framework). > > Read these files: > - `.claude/book-review/standards.md` (master standards that always apply) > - `.claude/book-review/{focus}.md` (your specific review policy) > - `.claude/review-shared/surface-placement.md` (book vs. rustdoc placement rules) > > **What to review:** {describe the specific content — file paths, line > ranges, the topic, whatever the user specified. If reviewing a diff, > include the diff text and list the full file paths for context.} > > {If the scope is a diff or a narrow range, add: "Focus on the specified > content. Flag issues in surrounding text ONLY if the specified content > introduced an inconsistency with it."} > > {If the scope spans multiple files or a concept, add: "Pay attention to > consistency across the passages. Flag contradictions, redundancies, or > gaps in the explanation as it spans these locations."} > > If the policy references other files (like `book/macros.txt` or > `book/src/appendix/terminology.md`), read those too. > > For each finding: > - **Location**: file path and quoted text (or line number) > - **Issue**: what's wrong, s