Skill站外收录 @skilllib/skill-2117939930272414032
alignment-review
提供代码变更的双层审查能力,自动检测语法错误、调试残留和安全风险等机械问题,并结合设计原则文档与未决RFC提案,识别架构对齐性问题,支持在提交前、PR评审等场景中开展技术决策协同。
测试与安全 AI 技能
Skills.MD
# Alignment Review
Review code changes for alignment with OpenEnv principles using a two-tier model.
## Instructions
1. **Run automated checks first**:
- Execute `bash .claude/hooks/lint.sh` - capture lint issues
- Execute `bash .claude/hooks/check-debug.sh` - capture debug code
2. **Read alignment documents**:
- `.claude/docs/PRINCIPLES.md` - design principles
- `.claude/docs/INVARIANTS.md` - system invariants
3. **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
4. **Analyze changes** (use `git diff` or 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
```
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「alignment-review」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次