Tooluck logoTooluck
SKILL.md

claude-code-dev

Agent skill fromLeanmcp/gateway-skills

How to develop, modify, and extend the Claude Code codebase following its established programming style, patterns, and conventions. Use this skill whenever working on the claude-code source — adding tools, commands, utils, components, types, hooks, services, or fixing bugs. Also use when the user asks about claude-code architecture, coding standards, file organization, or wants to understand how the codebase works. This skill ensures all contributions match the existing codebase style exactly.

How to install claude-code-dev

install claude-code-dev
# install the gateway-skills pack with the skills CLI
npx skills add Leanmcp/gateway-skills

# or add only this skill to Claude Code: copy the folder

claude-code-skills/

# into

~/.claude/skills/claude-code-skills/ (all projects)

.claude/skills/claude-code-skills/ (one project)

claude-code-skills/SKILL.md

MITFull file
1# Claude Code Development Style Guide
2
3This skill captures the programming style, patterns, and conventions used in the Claude Code codebase (`@anthropic-ai/claude-code`). Each topic below links to a dedicated deep-dive document with comprehensive examples and rules extracted from the actual source.
4
5## Summary
6
7**Claude Code** is an ESM TypeScript Node.js CLI application using Ink (React for terminals) for its UI, esbuild for transpilation, and Bun internally for feature flags and dead code elimination. Key stack: TypeScript, Zod v4, lodash-es, React/Ink, esbuild.
8
9## Detailed Guides (Resource Files)
10
11Each topic below is covered in depth in its own resource file within this skill's directory. Read the relevant file before working on that area of the codebase.
12
13| # | Topic | File | Summary |
14|---|---|---|---|
15| 01 | **Project Overview** | `01-project-overview.md` | Tech stack, build system, runtime environment, key dependencies |
16| 02 | **Directory Structure** | `02-directory-structure.md` | Full `src/` layout, file organization patterns, where things go |
17| 03 | **Import Conventions** | `03-import-conventions.md` | `.js` extensions, `import type`, lodash cherry-picks, feature flags, cycle breaking |
18| 04 | **Naming Conventions** | `04-naming-conventions.md` | camelCase/PascalCase/UPPER_SNAKE rules, file naming, safety names |
19| 05 | **TypeScript Patterns** | `05-typescript-patterns.md` | Branded types, discriminated unions, `as const`, `satisfies`, Zod schemas, generics |
20…

Excerpt shown under the repository's MIT license.

More skills in gateway-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates