agentleFS
chatgptprojectschatgptprojects/clear-code/claude-code-skills/SKILL.md

claude-code-dev

Skill2.1k starsChanged 7 months agoMITView on GitHub

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.

4 other projects use a version of this.

Trending

Quiet since April.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 1 mentionMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the chatgptprojects/clear-code repository that our weekly crawl found: only 2 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

The file

Files
SKILL.md

Claude Code Development Style Guide

This 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.

Summary

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.

Detailed Guides (Resource Files)

Each 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.

#TopicFileSummary
01Project Overview01-project-overview.mdTech stack, build system, runtime environment, key dependencies
02Directory Structure02-directory-structure.mdFull src/ layout, file organization patterns, where things go
03Import Conventions03-import-conventions.md.js extensions, import type, lodash cherry-picks, feature flags, cycle breaking
04Naming Conventions04-naming-conventions.mdcamelCase/PascalCase/UPPER_SNAKE rules, file naming, safety names
05TypeScript Patterns05-typescript-patterns.mdBranded types, discriminated unions, as const, satisfies, Zod schemas, generics
06Commenting Style06-commenting-style.mdJSDoc, why-not-what philosophy, PR references, section headers, lint suppression
07Error Handling07-error-handling.mdCustom error classes, utility functions, graceful degradation, catch conventions
08Function Patterns08-function-patterns.mdbuildTool() factory, memoize, async generators, guard clauses, fire-and-forget
09Tool Architecture09-tool-architecture.mdTool directory structure, buildTool() API, schemas, permissions, UI rendering
10Command Architecture10-command-architecture.mdCommand types, index.ts pattern, lazy loading, registration
11State Management11-state-management.mdModule-level state, getter/setter, AppState threading, cleanup registry
12Testing Conventions12-testing-conventions.mdReset helpers, NODE_ENV guards, test-only exports, deterministic sorting
13Formatting Rules13-formatting-rules.mdNo semicolons, single quotes, trailing commas, indentation, expression style
14Quick References14-quick-references.mdStep-by-step checklists for adding tools, commands, utils, and types

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.