tidy-repo
技能 (Skill):整仓整理
目的 (Purpose)
在单次运行中,扫描仓库(或指定范围)的目录结构,识别结构性问题——错放文件、命名不一致、空目录、过期制品、重复条目——并输出一份带优先级的整理报告,指导人工或自动清理。在 apply-safe 模式下,可直接执行安全、可逆的操作。
核心目标 (Core Objective)
治理目标:生成一份仓库整理报告,其中 (1) 以标准格式列出所有结构问题及建议操作,(2) 按影响和代价排序,给出具体的清理步骤,(3) 可选地在 apply-safe 模式下执行并记录操作日志。
成功标准(必须满足所有要求):
- ✅ 范围已确定:明确扫描根路径和排除列表(
.git、node_modules、.venv等) - ✅ 问题已枚举:所有发现以标准格式输出(位置、类别、严重性、标题、描述、建议)
- ✅ 优先级已排序:按影响(高|中|低)和操作代价(小|中|大)排序
- ✅ 清理计划可操作:每步包含具体路径、操作类型、完成条件
- ✅ 安全边界已遵守:
report-only模式不修改任何文件;apply-safe仅执行可逆操作
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