Agent skill

Codebase Sync

by majiayu000 in majiayu000/claude-skill-registry

Convention discovery and rule generation from codebase analysis.

MITAuto-check: notesDevelopment

Install Codebase Sync

skills CLI
$ npx skills add majiayu000/claude-skill-registry --skill codebase-sync -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install majiayu000/claude-skill-registry codebase-sync --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/majiayu000/claude-skill-registry.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/analysis/codebase-sync .claude/skills/codebase-sync && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
codebase-sync
GitHub stars
666
Used in
1 other repo
Token cost
~585 tokens
SKILL.md length
168 words
Files
2
Skills in repo
971
Repo updated
First seen
Licence
MIT

At a glance

Convention discovery and rule generation from codebase analysis.

  • Works in 4 steps: Project Exploration → Semantic Index Building → Convention Discovery → …
  • Tasks that involve Codebase onboarding
  • SKILL.md covers Overview, Capabilities, Rule Categories and Output Artifacts
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Codebase Sync is an agent skill from majiayu000/claude-skill-registry. Convention discovery and rule generation from codebase analysis. Scans project structure, builds search indexes, identifies patterns, and generates enforceable rules.

Its SKILL.md is about 590 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `metadata.json`).

It sits in Development, covering Codebase onboarding. The repository describes itself as: Searchable Claude Code skills catalog with source-linked guides and generated registry artifacts. The licence is MIT.

When your agent uses it

  • Tasks that involve Codebase onboarding

Example prompts

  • “/codebase-sync”

Requirements

  • Pre-approved tools (allowed-tools): Bash(*), Read, Write, Edit, Glob, Grep

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Project Exploration
  2. Semantic Index Building
  3. Convention Discovery
  4. Rule Generation

What it can do on your machine

Read from SKILL.md and the folder at commit 000116a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(*)
    • Read
    • Write
    • Edit
    • Glob
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Codebase Sync loads about 585 tokens when it runs. Until then it costs about 45 tokens; SKILL.md has 168 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~45
When it runs · the whole SKILL.md, loaded when a task matches
~585

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash(*), Read, Write, Edit, Glob, Grep

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from majiayu000/claude-skill-registry at commit 000116a, republished under its MIT licence (© majiayu000). 168 words, ~585 tokens.

Download SKILL.mdSave it as .claude/skills/codebase-sync/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
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
metadata.version
1.0.0
metadata.category
pilot-shell-sync
metadata.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

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

© majiayu000, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/analysis/codebase-sync of majiayu000/claude-skill-registry.

  • SKILL.md
  • metadata.json

Open the folder on GitHubat commit 000116a

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in majiayu000/claude-skill-registry, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Codebase Sync next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Codebase Sync compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Codebase Sync this skillmajiayu000/claude-skill-registry6661 repos~585Automated safety check: NotesMIT
Codebase Knowledge Graph Q&AEgonex-AI/Understand-Anything85k1 repos~1.2kAutomated safety check: PassMIT
Understand ExplainEgonex-AI/Understand-Anything85k1 repos~1.3kAutomated safety check: PassMIT
Repomix Codebase Exploreryamadashy/repomix29k1 repos~2.7kAutomated safety check: PassMIT
Project Onboarding Guide from Knowledge GraphEgonex-AI/Understand-Anything85k—~1.2kAutomated safety check: PassMIT
Deepwiki Rssopaco/deepwiki-rs3.1k—~748Automated safety check: PassMIT

Similar skills

  • Codebase Knowledge Graph Q&A

    Egonex-AI/Understand-Anything

    Answers questions about a codebase by searching a prebuilt knowledge graph of its files, functions, classes and dependencies, not by rereading every source file.

    85k GitHub starsUsed in 1 repo~1.2k tokens
    DevelopmentAuto-check passed
  • Understand Explain

    Egonex-AI/Understand-Anything

    Gives an in-depth explanation of one file, function or module by reading the project's knowledge graph and checking that the graph is still fresh.

    85k GitHub starsUsed in 1 repo~1.3k tokens
    DevelopmentAuto-check passed
  • Repomix Codebase Explorer

    yamadashy/repomix

    Packs a local or remote repository into a single AI-friendly file with the Repomix CLI, then reads and searches that output to explain structure, find patterns or report metrics.

    29k GitHub starsUsed in 1 repo~2.7k tokens
    DevelopmentAuto-check passed
  • Writes an onboarding guide for new team members from a project's existing knowledge graph, after checking that the graph still matches the current commit.

    85k GitHub stars~1.2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Deepwiki Rs

    sopaco/deepwiki-rs

    AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation.

    3.1k GitHub stars~748 tokensUpdated 23 days ago
    DevelopmentAuto-check passed
  • GitDiagram Repository Overview

    ahmedkhaleel2004/gitdiagram

    Explains the architecture of a public GitHub repository through GitDiagram: how the code is organized, the main components with paths, and a Mermaid diagram.

    18k GitHub stars~427 tokensUpdated today
    DevelopmentAuto-check passed

More from majiayu000/claude-skill-registry

All 971 skills in this repo
  • Deep Research

    majiayu000/claude-skill-registry

    Multi-source deep research using firecrawl and exa MCPs. An agent skill from majiayu000/claude-skill-registry.

    666 GitHub starsUsed in 6 repos~1.1k tokens
    Auto-check passed
  • Exa Search

    majiayu000/claude-skill-registry

    Neural search via Exa MCP for web, code, and company research.

    666 GitHub starsUsed in 5 repos~856 tokens
    Auto-check passed
  • Fal AI Media

    majiayu000/claude-skill-registry

    Unified media generation via fal.ai MCP — image, video, and audio.

    666 GitHub starsUsed in 5 repos~1.7k tokens
    Auto-check passed
  • Bgpt Paper Search

    majiayu000/claude-skill-registry

    Search scientific papers and retrieve structured experimental data extracted from full-text studies via the BGPT MCP server.

    666 GitHub starsUsed in 4 repos~619 tokens
    Auto-check: notes
  • Bio Alignment Pairwise

    majiayu000/claude-skill-registry

    Perform pairwise sequence alignment using Biopython Bio.Align.PairwiseAligner.

    666 GitHub starsUsed in 4 repos~1.7k tokens
    Auto-check passed
  • Open Notebook

    majiayu000/claude-skill-registry

    Self-hosted, open-source alternative to Google NotebookLM for AI-powered research and document analysis.

    666 GitHub starsUsed in 4 repos~2.4k tokens
    Auto-check passed

Categories

Questions about Codebase Sync

What does Codebase Sync do?

Convention discovery and rule generation from codebase analysis. Codebase Sync is an agent skill from majiayu000/claude-skill-registry. Convention discovery and rule generation from codebase analysis.

When should I use Codebase Sync?

Codebase Sync fits situations like: tasks that involve Codebase onboarding.

How do I install Codebase Sync in Claude Code?

Run `npx skills add majiayu000/claude-skill-registry --skill codebase-sync -a claude-code`. Or copy the skill folder (skills/analysis/codebase-sync in majiayu000/claude-skill-registry) into .claude/skills/codebase-sync in your project. Claude Code loads it when a task matches its description.

How do I install Codebase Sync in Codex?

Run `npx skills add majiayu000/claude-skill-registry --skill codebase-sync -a codex`. Or copy the skill folder (skills/analysis/codebase-sync in majiayu000/claude-skill-registry) into .agents/skills/codebase-sync in your project. Codex loads it when a task matches its description.

Can I use Codebase Sync in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add majiayu000/claude-skill-registry --skill codebase-sync -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/codebase-sync, .gemini/skills/codebase-sync, .github/skills/codebase-sync and .opencode/skills/codebase-sync in your project.

What does Codebase Sync need to run?

SKILL.md names no scripts, command-line tools or credentials: Codebase Sync is instructions for the agent only. Its frontmatter pre-approves these tools: Bash(*), Read, Write, Edit, Glob, Grep.

Does Codebase Sync access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Codebase Sync safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Codebase Sync use?

Codebase Sync is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Codebase Sync use?

About 585 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Codebase Sync?

Skills that share tags, products or a category with Codebase Sync: Codebase Knowledge Graph Q&A (Egonex-AI/Understand-Anything, 85k stars), Understand Explain (Egonex-AI/Understand-Anything, 85k stars), Repomix Codebase Explorer (yamadashy/repomix, 29k stars) and Project Onboarding Guide from Knowledge Graph (Egonex-AI/Understand-Anything, 85k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Codebase Sync?

majiayu000 (a GitHub user) maintains it in majiayu000/claude-skill-registry, which has 666 GitHub stars. The repository holds 971 skills in this directory. The repository was last updated on October 7, 2026.

Source: majiayu000/claude-skill-registry on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.