com um clique
review
Review all pending changes against repo conventions before committing
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Review all pending changes against repo conventions before committing
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Mark files as human-reviewed with specific validation types
Harvest and locally merge changes from a paude container session. Use when pulling agent work from paude, running paude harvest, merging session commits, importing submodule changes from a container, or fixing failed harvest/submodule fetch.
Start a paude container session for fire-and-forget agent work. Use when creating a paude session, delegating a task to paude, running work in an isolated container, setting up a paude worktree, or launching pi/claude/gemini in podman.
Write a task spec file for a paude container agent. Use when delegating work to paude, preparing a paude prompt-file, writing fire-and-forget agent tasks, or scoping submodule work for harvest.
Diagnose a running or stalled paude container session. Use when paude seems stuck, harvest returned empty, checking paude status, debugging 403 proxy blocks, or deciding wait vs harvest vs reset.
Create or update a project BRIEF.md — scaffolds planning structure for work that crosses the 5-file / multi-session threshold
| name | review |
| description | Review all pending changes against repo conventions before committing |
| allowed-tools | Shell Read Glob Grep |
This command is read-only. It reports findings and asks for confirmation before any commit proceeds.
- Repo conventions: `.cursor/rules/repo-structure.mdc` - Cross-linking and registry rules: `.cursor/rules/cross-linking.md` - Review frontmatter: `rules/review-tracking.md` - Current changes: `git status` - Staged diff: `git diff --cached --stat` - Unstaged diff: `git diff --stat` - Untracked files: `git ls-files --others --exclude-standard` 1. **Inventory changes** — List all new, modified, and deleted files from git status. Group by: new files, modified files, deleted files.Placement check — For each new file, verify it belongs in its directory per the repo-structure rule:
{product}/ directory?research/{topic}/?docs/?README coverage — For each new directory, check it has a README.md. For each new file in an existing directory, check the directory's README is updated to mention it (if the README maintains a contents list).
Cross-reference and registry check — For new content, verify the registries from .cursor/rules/cross-linking.md are updated:
docs/: is it in the track README.md and docs/README.md cross-track list?library/: is it in library/README.md enriched entries table AND library/catalog.md?research/README.md?.agents/skills/: auto-discovered by all clients, no registry update needed..planning/: is it in .cursorrules planning section?.prompts/ and listed in .cursorrules?docs.redhat.com): Apply rules/red-hat-docs-links.md. Flag /latest/ URLs without chapter/section title in link text; flag slug-only link text; note when only /latest/ was checked and redirects were not followed to final URL.Content quality — For each new or modified file:
submodules/zanshin-pi-extension/kit/AGILE-ARTIFACT-DISCIPLINE.md.sh, .bash): verify strict mode header present — #!/usr/bin/env bash + set -euo pipefail. Flag missing headers as "Missing shell strict mode". Exception: scripts with a comment explaining why strict mode is intentionally omitted are fine..env, *secret*, *credential*, *password*, *token* patterns in content)Biographical/voice check — For new or modified files in docs/, scan for content that speaks in the author's voice or makes biographical claims. Flag lines containing:
Present flagged lines with their file and line number under a "Biographical Content — Needs voice-approved" section. This is the highest-priority review item — readers will attribute these statements to the author. This is NOT a blocker, but it must be visible.
Review staleness check — For each modified file (not new), read its frontmatter. If it contains review: status: reviewed, flag it prominently:
file.md was reviewed on DATE but is being modified in this commit. The author needs to re-read the changes."at: SHA, include the diff command: "Run git diff SHA..HEAD -- file.md to see what changed since last review."Review frontmatter check — For each new markdown file under docs/ or devops/, verify YAML frontmatter includes a review: block with status: (typically unreviewed on creation). See rules/review-tracking.md for the canonical format.
file.md"description:, tags:) but no review:, flag as missing — merge into existing frontmatter, do not add a second fence/validate <path> read after you've reviewed these files"/validate <path> voice-approved after reviewing the biographical content"AI disclosure footer check — For each new markdown file under docs/ or devops/, check that it includes the standard AI disclosure footer:
AI-DISCLOSURE.mdAI-DISCLOSURE.md depends on file depth (e.g., ../../ for files two levels below repo root)file.md — new markdown file without standard footer"Backlog alignment — Read BACKLOG.md and check if the work being committed relates to a tracked item. If not, note it (not a blocker, just a reminder).
Present findings as a structured report:
## Pre-Commit Review
### Changes Summary
- N new files, M modified, D deleted
### Stale Reviews (re-read needed)
- [ ] `file.md` — reviewed DATE, modified in this commit → `git diff SHA..HEAD -- file.md`
(or: No reviewed files modified.)
### Biographical Content — Needs `voice-approved`
- [ ] `file.md` line N: "quote of biographical claim"
(or: No biographical content detected in changed files.)
### Issues Found
- [ ] [severity] Description — suggested fix
### Verified
- File placement: OK / issues
- README coverage: OK / issues
- Cross-references: OK / issues
- External URLs: N verified / M broken or unverified
- Content quality: OK / issues
- Artifact discipline (TAGRI/JBGE): OK / N flags
- Secrets scan: OK / issues
- Biographical scan: N lines flagged / clean
- Stale reviews: N reviewed files modified (re-read needed) / none
- Review frontmatter: OK / N new files missing `review:` block
- AI disclosure footer: OK / N new files missing footer
- Backlog alignment: tracked / untracked
### Blind Spots to Consider
- [work type] — [what was assumed but not verified]
- [work type] — [observation]
(or: No blind spots identified — change is mechanical with no conditional logic, variable inputs, or audience assumptions.)
Classify by dominant change type and apply the relevant questions:
| Work type | Signals in diff | Ask |
|---|---|---|
| Template / config | .yaml in templates/, Helm charts, Jinja | What data shapes were assumed? Which weren't rendered against? What optional or runtime-injected fields were not tested absent? |
| Documentation | .md in docs/, research/, essays | Who was written for? Who will also read this and find it confusing or misleading? |
| Framework / convention | .cursor/rules/, .agents/skills/, CLAUDE.md, .cursorrules | What inherits this convention? Are all downstream consumers consistent? |
| Feature addition | New functions, new template blocks, new flags | What happens at the edges — empty input, disabled flag, wrong type, missing field? |
| Refactor / deletion | Removed files, renamed paths, deleted blocks | What referenced the removed thing? Is anything broken silently? |
| Mixed | Multiple types above | Apply 1 question from each dominant type |
Produce observations as a new report section:
### Blind Spots to Consider
- [work type] — [what was assumed but not verified] — e.g., "Template: groups entries tested as strings; object-shape entries (with targetRevision) not rendered separately"
- [work type] — [observation] — e.g., "Documentation: written for engineers already familiar with ArgoCD; a first-time reader has no context for what a hub is"
- [work type] — [observation] — e.g., "Deletion: option-b-applicationset.yaml removed; checked docs/ for references but not .planning/ files"
This section is never skipped. If the change is purely mechanical and no blind spots are apparent, say so explicitly: "No blind spots identified — change is mechanical with no conditional logic, variable inputs, or audience assumptions."
docs/, research/, or essay-type content, add 1-3 brief adversarial observations on the claims the content makes. These are not blockers — they surface things the author should have considered:### Content Assumptions to Challenge
- [observation] — e.g., "The central claim in section 3 is asserted without evidence"
- [observation] — e.g., "This contradicts the framing in docs/ai-engineering/the-shift.md section 6"
- [observation] — e.g., "The example assumes a single-region deployment"
Skip this section for non-content changes (config files, tooling, scaffolding, templates). This is only useful for prose that makes claims.
docs/ or .planning/, check for framing drift:.planning/*/BRIEF.md) for any planning project connected to the changed files### Brief Alignment
- [project]: Content aligns with brief scope.
OR
- [project]: This essay narrows focus to [X] but the brief says the scope includes [Y]. Update the brief or broaden the essay.
OR
- [project]: The style guide says [convention] but this content [violates it].
Skip for changes that don't touch docs or planning files. If no .planning/ project is connected to the changed files, skip.
### Recommendation
[READY TO COMMIT / FIX ISSUES FIRST]
If issues are found, ask: "Want me to fix these before committing? Reply with numbers or 'all'."
If clean, ask: "Ready to commit. Want me to proceed?"
<success_criteria>
review: frontmatter flagged as stale reviewsdocs/ and devops/ markdown files checked for review: frontmatterdocs/ and devops/ markdown files checked for AI disclosure footer