codebase-sync
Convention discovery and rule generation from codebase analysis. Scans project structure, builds search indexes, identifies patterns, and generates enforceable rules.
来源信息
- 仓库
- a5c-ai/babysitter
- 最近来源活动
- 2026年6月1日 07:46
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 1,832
- 分支
- 113
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
文件资源管理器
2 个文件正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- codebase-sync
- description
- Convention discovery and rule generation from codebase analysis. Scans project structure, builds search indexes, identifies patterns, and generates enforceable rules.
- allowed-tools
- Bash(*) Read Write Edit Glob Grep
- metadata
- {"author":"babysitter-sdk","version":"1.0.0","category":"pilot-shell-sync","attribution":"Adapted from Pilot Shell by Max Ritter (https://github.com/maxritter/pilot-shell)"}
- graph
- {"domains":["domain:software-engineering"],"skillAreas":["skill-area:agentic-loops","skill-area:orchestration-loop"],"workflows":["workflow:feature-development"],"topics":["topic:developer-experience"],"roles":["role:tech-lead","role:backend-engineer"]}
- Scan directory structure for project type identification
- Detect language, framework, package manager
- Identify build tools, CI/CD config, test framework
- Map high-level architecture (monorepo, microservices, etc.)
### 2. Semantic Index Building
Four parallel index domains:
- **Code Index**: Source files with exports, purposes, dependencies
- **Test Index**: Test files with cases, fixtures, patterns
- **Config Index**: Configuration files with parsed rules
- **API Index**: Public interfaces, types, data models
### 3. Convention Discovery
- Code style patterns (naming, structure, organization)
- Error handling conventions
- Testing conventions (naming, structure, assertions)
- Git commit message conventions
- Documentation standards
- Language-conditional standards
### 4. Rule Generation
Convert conventions into enforceable rules:
```json
{
"id": "ts-no-any",
"category": "coding-standards",
"description": "Avoid 'any' type; use 'unknown' and narrow",
"severity": "error",
"autoFixable": false,
"language": "typescript"
}
```
## Rule Categories
| Category | Examples |
|----------|---------|
| **core** | task-and-workflow, testing, verification |
| **dev-practices** | development-practices, context-management |
| **tools** | research-tools, cli-tools |
| **coding-standards** | Language-specific rules (conditional) |
## Output Artifacts
- `artifacts/CONVENTIONS.md` -- Discovered conventions
- `artifacts/SEARCH-INDEX.json` -- Semantic search index
- `artifacts/RULES.md` -- Generated project rules
在 GitHub 查看