OpenParable
Skip to content
← Back to skills

Codebase Sync

Development
codebase-sync

Codebase Sync is an Agent Skill for development published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Convention discovery and rule generation from codebase analysis. Scans project structure, builds search indexes, identifies patterns, and generates enforceable rules.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/methodologies/pilot-shell/skills/codebase-sync/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/codebase-sync, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

  • 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:

{
  "id": "ts-no-any",
  "category": "coding-standards",
  "description": "Avoid 'any' type; use 'unknown' and narrow",
  "severity": "error",
  "autoFixable": false,
  "language": "typescript"
}

Rule Categories

CategoryExamples
coretask-and-workflow, testing, verification
dev-practicesdevelopment-practices, context-management
toolsresearch-tools, cli-tools
coding-standardsLanguage-specific rules (conditional)

Output Artifacts

  • artifacts/CONVENTIONS.md -- Discovered conventions
  • artifacts/SEARCH-INDEX.json -- Semantic search index
  • artifacts/RULES.md -- Generated project rules