alignment-review
Checks code changes for bugs and alignment with internal system principles and open RFCs.
Install
mkdir -p .claude/skills/alignment-review && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/8347" && unzip -o skill.zip -d .claude/skills/alignment-review && rm skill.zipInstalls to .claude/skills/alignment-review
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Review code changes for bugs and alignment with OpenEnv principles and RFCs. Use when reviewing PRs, checking code before commit, or when asked to review changes. Implements two-tier review model.Key capabilities
- →Run automated linting checks
- →Check for debug code
- →Identify mechanical issues in code
- →Flag alignment concerns with project principles
- →Flag conflicts with open RFCs
How it works
This skill reviews code changes using a two-tier model, first running automated checks for linting and debug code, then analyzing changes against OpenEnv principles and RFCs.
Inputs & outputs
When to use alignment-review
- →Review pull requests for code quality
- →Validate code against project invariants
- →Check for conflicts with pending RFCs
- →Identify security issues or debug code before commit
About this skill
Alignment Review
Review code changes for alignment with OpenEnv principles using a two-tier model.
Instructions
-
Run automated checks first:
- Execute
bash .claude/hooks/lint.sh- capture lint issues - Execute
bash .claude/hooks/check-debug.sh- capture debug code
- Execute
-
Read alignment documents:
.claude/docs/PRINCIPLES.md- design principles.claude/docs/INVARIANTS.md- system invariants
-
Read open RFCs:
- Scan
rfcs/directory for all RFC files - Note the status of each RFC (Draft, In Review, Accepted, Implemented)
- Pay special attention to Draft and In Review RFCs - these represent active design discussions
- Scan
-
Analyze changes (use
git diffor provided diff):- Identify mechanical issues (Tier 1)
- Flag alignment concerns (Tier 2)
- Flag conflicts with open RFCs (Tier 2)
Tier 1: Uncontentious Issues (Fix Immediately)
These are issues to fix without human input:
- Lint failures from hook output
- Debug code from hook output (print statements, breakpoints)
- Uninitialized variables, type errors
- Missing imports, syntax errors
- Security issues (credential exposure, injection vulnerabilities)
Tier 2: Alignment Discussion Points
For each potential alignment concern, format as:
**ALIGNMENT FLAG**: [Brief description]
- **Principle/RFC at stake**: [Which principle from PRINCIPLES.md or RFC number]
- **The concern**: [What seems misaligned or in conflict]
- **Suggested reviewer**: @darktex [pull actual reviewers based on authors of the specific line of PRINCIPLES.md and INVARIANTS.md using git blame, and/or authors of conflicting RFCs]
Examples of Tier 2 Issues
Principle conflicts:
- Adding external reward computation (violates "rewards in environment")
- Client importing server code (violates client-server separation)
- New API that differs from Gymnasium pattern
RFC conflicts (flag even for Draft/In Review RFCs):
- Change conflicts with design proposed in an open RFC
- Change pre-empts a decision being discussed in an RFC
- Change implements something differently than an RFC proposes
- Change affects an area covered by an RFC under review
Why flag RFC conflicts? Even if an RFC isn't finalized, flagging conflicts helps focus design discussions. The change might be correct and the RFC might need updating, or vice versa - either way, the team should discuss.
Output Format
## Alignment Review Report
### Automated Checks
- Lint: [PASS/FAIL] - [summary]
- Debug code: [CLEAN/FOUND] - [details]
### Open RFCs Context
[List any RFCs in Draft or In Review status that might be relevant to these changes]
### Tier 1: Fixes Required
- [ ] path/file.py:123 - [issue description]
- [ ] path/file.py:456 - [issue description]
### Tier 2: Alignment Discussion
#### Principle Conflicts
[ALIGNMENT FLAGS for principle violations, or "None identified"]
#### RFC Conflicts
[ALIGNMENT FLAGS for RFC conflicts, or "None identified"]
### Summary
- X mechanical issues to fix
- Y alignment points for human review
- Z RFC conflicts to discuss
When not to use it
- →When reviewing code that does not adhere to OpenEnv principles or RFCs
- →When only a superficial code review is needed
- →When automated checks are not applicable
Limitations
- →Requires `.claude/hooks/lint.sh` and `.claude/hooks/check-debug.sh` scripts to be present
- →Relies on `.claude/docs/PRINCIPLES.md` and `.claude/docs/INVARIANTS.md` for design principles
- →Requires `rfcs/` directory for open RFCs
How it compares
This skill automates initial code checks and categorizes issues into immediate fixes and discussion points based on project principles and RFCs, unlike a purely manual code review.
Compared to similar skills
alignment-review side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| alignment-review (this skill) | 0 | 7mo | No flags | Intermediate |
| github-code-review | 13 | 2mo | Review | Advanced |
| reviewing-code | 21 | 8mo | No flags | Intermediate |
| reviewing-nextjs-16-patterns | 11 | 8mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by meta-pytorch
View all by meta-pytorch →You might also like
github-code-review
ruvnet
Comprehensive GitHub code review with AI-powered swarm coordination
reviewing-code
CaptainCrouton89
Systematically evaluate code changes for security, correctness, performance, and spec alignment. Use when reviewing PRs, assessing code quality, or verifying implementation against requirements.
reviewing-nextjs-16-patterns
djankies
Review code for Next.js 16 compliance - security patterns, caching, breaking changes. Use when reviewing Next.js code, preparing for migration, or auditing for violations.
cookbook-audit
anthropics
Audit an Anthropic Cookbook notebook based on a rubric. Use whenever a notebook review or audit is requested.
pr-review
pytorch
Review PyTorch pull requests for code quality, test coverage, security, and backward compatibility. Use when reviewing PRs, when asked to review code changes, or when the user mentions "review PR", "code review", or "check this PR".
find-bugs
davila7
Find bugs, security vulnerabilities, and code quality issues in local branch changes. Use when asked to review changes, find bugs, security review, or audit code on the current branch.