ワンクリックで
review-changes
Reviews uncommitted git changes for errors, inconsistencies, and problems. Use before committing to catch issues.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Reviews uncommitted git changes for errors, inconsistencies, and problems. Use before committing to catch issues.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Critique book prose in the author's voice using patterns learned from his own git edit history (not a hand-written rubric). Use when asked to "voice-check", "punch up", "make this sound like me / like Vonnegut / like Cunk", or to review whether a passage is too pompous / cute / self-aware. Catches what the regex scanner (voice-check.py, ~1.4% of real edits) misses.
Review and improve QMD chapter writing quality by replacing boring/consultant text with Wishonia's deadpan alien voice, consolidating redundancy, and reducing word count. Use when asked to fix voice, make content funnier, remove jargon, or enforce the book's writing style.
Spawns parallel agents to review all paperback QMD files. Reads variable-resolved previews, flags judgment-required issues with REVIEW comments.
Automated book maintenance. Runs health checks, prioritizes work, and systematically fixes issues. Use when you want Codex to autonomously improve the book.
Check GitHub Actions workflow status, diagnose failures, fetch logs, and fix common build issues. Use when builds fail, deploys break, or you need to investigate CI/CD problems.
Critically analyze a calculated parameter for academic rigor. Checks methodology, identifies weaknesses, suggests improvements for economist audiences.
| name | review-changes |
| description | Reviews uncommitted git changes for errors, inconsistencies, and problems. Use before committing to catch issues. |
| allowed-tools | all |
Reviews all uncommitted git changes (staged + unstaged + untracked) for errors and inconsistencies before committing.
This is a review-only skill. Do NOT auto-fix anything. Present findings and let the user decide what to fix.
cd E:\code\obsidian\websites\disease-eradication-plan
# Staged changes
git diff --cached --name-status
# Unstaged changes
git diff --name-status
# Untracked files
git status --porcelain
Also run git diff and git diff --cached (without --name-status) to see the actual line-level changes for review.
Group every changed file into one of these categories:
| Category | File Patterns |
|---|---|
| Parameters | dih_models/parameters.py |
| Variables YAML | _variables.yml |
| QMD content | knowledge/**/*.qmd, index.qmd |
| Quarto config | _quarto*.yml, _book.yml |
| Project config | CLAUDE.md, OUTLINE.md, todo.md |
| Python scripts | scripts/**/*.py |
| TypeScript scripts | scripts/**/*.ts |
| Generated figures | knowledge/figures/*.qmd |
| Generated analysis | _analysis/*, assets/js/parameters-calculations-citations.ts, dih_models/reference_ids.py |
| Assets | assets/**/* |
| Other | Everything else |
dih_models/parameters.py)SCOPE_METRIC_MODIFIERS convention (all caps, underscores)unit, descriptionunit reads naturally in prose (not "count")source_type is set correctly: "external", "calculated", or "definition"distribution="fixed"519 for millions)_variables.yml)parameters.py was also changed, check: were variables regenerated?
_variables.yml for new parameters_variables.yml didn't, flag as error: "Variables not regenerated after parameter changes"For each changed QMD, read the diff and check:
{{< var NAME >}} must exist in _variables.yml. Grep to verify.[text](../path/to/file.qmd) must point to existing files--- used as em-dashes (the project bans em-dashes){{< var >}} inside $$ blocks (Quarto variables don't work there).qmd not .html[{{< var x >}}](url) is wrong (variables have built-in links)@citation_key should exist in references.bib_latex variable already provides_quarto*.yml, _book.yml)CLAUDE.md, OUTLINE.md)sys.stdout.reconfigure(encoding='utf-8') on Windows)python -c "import ast; ast.parse(open('FILE').read())"try/except blocks (project rule: let errors crash loudly)parameters.py changed, were these regenerated too?For every deleted file (D in git status), check:
git show HEAD:path/to/file and assess whether the information was moved elsewhere or truly removed. Flag substantive content deletion without replacement as a warning.parameters.py, check whether the analysis they supported was also removed or restructured. Flag orphaned analysis sections that reference deleted parameters.For large line removals within modified files (visible in git diff), check:
dih_models/parameters.py)Check the full file (not just the diff) for parameters that overlap or could be merged:
# Find all parameter names
grep -n "^[A-Z_]* = Parameter(" dih_models/parameters.py
Look for:
GLOBAL_WAR_COST vs GLOBAL_ANNUAL_WAR_TOTAL_COST)Flag duplicates as warning with both parameter names and their values.
references.bib)Check for duplicate or near-duplicate BibTeX entries:
# Find all citation keys
grep -n "^@" references.bib
Look for:
Flag duplicates as warning with both entry keys and what they share.
parameters.py should have a corresponding entry in _variables.yml{{< var NAME >}} in QMD diffs should reference an existing variableparameters.py, grep all QMD files for its variable name@key references in QMD should have matching entries in references.bibPresent findings as a numbered checklist grouped by severity:
## Review of Uncommitted Changes
### Files Changed
- X modified, Y added, Z deleted
### Errors (must fix before commit)
1. [ ] description of error -- file:line
2. [ ] description of error -- file:line
### Warnings (should probably fix)
3. [ ] description of warning -- file:line
4. [ ] description of warning -- file:line
### Info (consider reviewing)
5. [ ] description -- file:line
### Auto-generated files
- Regenerated: yes/no (list which ones)
### Summary
X errors, Y warnings, Z info items
After presenting the report, use AskUserQuestion to ask:
"Which items would you like me to fix? Select by number, or choose 'All errors', 'All errors + warnings', or 'None (just commit)'."
Options:
If the user selects items to fix, enter plan mode and create a fix plan covering only the selected items. Present the plan for approval before making any changes.
Severity guide:
| Severity | Criteria |
|---|---|
| Error | Will break render, wrong values, missing references, syntax errors, duplicates |
| Warning | Style violations, potential inconsistencies, missing regeneration, content loss |
| Info | Suggestions, minor style notes, things to double-check |
_quarto-*.yml). These fields use hardcoded numbers instead of {{< var >}} references intentionally. Quarto variables don't render in YAML metadata consumed by search engines, social previews, and PDF front matter. The yaml_sync_utils.py script auto-syncs these values from _variables.yml, so they stay current without manual maintenance.core.autocrlf handles normalization. Ignore CRLF/LF warnings in git diff output.parameters.py and references.bib, not just diffs.