Claude Skill MartBrowse skillsWhat is a Skill?
Back to list

Claude Code Repository Conventions Guide

A reference skill that feeds Claude the architecture, naming rules, and tool/command patterns of the Claude Code CLI codebase.

Dev & CodingAdvanced3,2133,644AI score 6/10Last updated: Apr 22, 2026

What it does

A single-file reference skill that captures the background knowledge needed to work inside the Claude Code CLI repository (TypeScript, ~1,900 files / 512k+ lines).

  • Tables mapping 30+ directories under src/ (commands, tools, components, services, coordinator, memdir, ...)
  • Startup sequence main.tsxentrypoints/init.tsentrypoints/cli.tsx plus core files (QueryEngine.ts, Tool.ts, tools.ts)
  • Code templates for defining tools with buildTool() and the three command types: PromptCommand / LocalCommand / LocalJSXCommand
  • Permission system (default / plan / bypassPermissions / auto), wildcard rules like Bash(git *), and checkPermissions() expectations
  • Ink + React UI structure, AppState store, bun:bundle feature flags, naming/import conventions, and config file locations

Who it's for

  • Developers modifying the Claude Code CLI or a fork/similar large TypeScript CLI
  • Anyone studying a real-world architecture built on Ink (React for CLI) + Bun + Zod
  • Engineers designing agent tools, slash commands, or permission layers who want a reference template

Examples

  1. "Add a /changelog slash command" → Claude follows the PromptCommand pattern, sets allowedTools, and registers it in commands.ts.
  2. "Create a tool that deletes files" → uses the buildTool template and never skips checkPermissions() / isReadOnly(), validating input with Zod.
  3. "How should experimental features be hidden?" → explains gating via feature('PROACTIVE') from bun:bundle or env-var checks.

· · · Install guide · · ·

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on Claude Skill Mart.
Copy the Skill.m folder from the GitHub repo codeaashu/claude-code into my ~/.claude/skills/claude-code-skill/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/codeaashu/claude-code.git /tmp/cc-skill && mkdir -p ~/.claude/skills/claude-code-skill && cp /tmp/cc-skill/Skill.md ~/.claude/skills/claude-code-skill/SKILL.md

This is a third-party skill. Check the source repository before installing.

  1. Open your terminal.
  2. Clone the repo into a temp folder: git clone https://github.com/codeaashu/claude-code.git /tmp/cc-skill
  3. Create the skill folder: mkdir -p ~/.claude/skills/claude-code-skill
  4. Copy the skill file: cp /tmp/cc-skill/Skill.md ~/.claude/skills/claude-code-skill/SKILL.md
  5. Confirm the --- front matter at the top has name and description (without them the skill won't load).
  6. Restart Claude Code and run /skills to verify it appears.
  7. While working in that codebase, ask things like "add a new tool following the repo conventions" to trigger the skill.
View source on GitHubLicense: NOASSERTION