huggingface/alignment-review
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.
npx skills add https://github.com/huggingface/OpenEnv --skill alignment-review
Review code changes for alignment with OpenEnv principles using a two-tier model.
bash .claude/hooks/lint.sh - capture lint issuesbash .claude/hooks/check-debug.sh - capture debug code.claude/docs/PRINCIPLES.md - design principles.claude/docs/INVARIANTS.md - system invariantsrfcs/ directory for all RFC filesgit diff or provided diff):These are issues to fix without human input:
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]
Principle conflicts:
RFC conflicts (flag even for Draft/In Review RFCs):
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.
## 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
Take huggingface/alignment-review from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.