commit-work
技能(Skill):提交工作(Commit Work)
目的 (Purpose)
产出易于审查、安全交付的 git commit:仅包含预期变更、提交粒度合理、消息清楚说明做了什么 + 为什么。本技能与 AI Cortex 的 INDEX 同步约束集成,提交涉及 skills/ 目录变更时会校验 INDEX.md 是否已更新。
核心目标(Core Objective)
首要目标:生成一个或多个 git 提交,其中包含清晰的消息、逻辑范围和经过验证的质量,可供推送。
成功标准(必须满足所有要求):
- ✅ 已审查的更改:在暂存之前运行“git diff”,在每次提交之前运行“git diff --cached”
- ✅ 逻辑范围:每次提交仅包含相关更改;不相关的更改分为单独的提交
- ✅ 常规提交格式:所有提交消息均遵循
type(scope):summary格式,正文清晰 - ✅ 质量验证:运行适当的测试、lint 或构建命令并且所有检查均已通过
- ✅ 无敏感数据:不包含秘密、令牌、调试代码或意外更改
More from nesnilnehc/ai-cortex
review-codebase
Review given file/dir/repo for current-state code organization: module boundaries, design patterns, cross-module dependencies, tech debt, and interface stability. Scope-only atomic skill; output is a findings list.
106review-vue
Review Vue 3 code for Composition API, reactivity, components, state (Pinia), routing, and performance. Framework-only atomic skill; output is a findings list.
94review-diff
Review only git diff for impact, regression, correctness, compatibility, and side effects. Scope-only atomic skill; output is a findings list for aggregation.
91review-java
Review Java code for language and runtime conventions: concurrency, exceptions, try-with-resources, API versioning, collections and Streams, NIO, and testability. Language-only atomic skill; output is a findings list.
84review-architecture
Review code for architecture: module and layer boundaries, dependency direction, single responsibility, cyclic dependencies, interface stability, and coupling. Cognitive-only atomic skill; output is a findings list.
83review-security
Review code for security: injection, sensitive data, auth, dependencies, config, and crypto. Atomic skill; output is a findings list.
74