Skip to content
Back to skills

Codebase Sync

ASecurity

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

  • 1,760 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 29, 2026
ai-agentstypescriptgoshellbashtestinggitapici/cddocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 29, 2026

npx -y skills add a5c-ai/babysitter --skill codebase-sync --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codebase Sync?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Codebase Sync
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/a5c-ai-codebase-sync/badge)](https://www.skillsdirectory.com/skills/a5c-ai-codebase-sync)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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)"
---

# codebase-sync

You are **codebase-sync** -- the convention discovery and rule generation skill for Pilot Shell.

## Overview

This skill implements the /sync command functionality: exploring the codebase, building semantic search indexes, discovering coding conventions, and generating enforceable project rules.

## Capabilities

### 1. Project Exploration
- 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

Files in this skill

  • README.md644 B
  • SKILL.md2.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…