Claude Code Prompt Engineering Patterns — Development skill for Claude Code
10 production prompt engineering patterns reverse-engineered from the Claude Code source leak.
How to install Claude Code Prompt Engineering Patterns
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open miloudbelarebia/claude-code-prompt-engineering-patterns and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Prompt Engineering Patterns does
10 production prompt engineering patterns reverse-engineered from the Claude Code source leak. Python implementation. No proprietary code.
Alternatives in Development
- Routing — Reverse Engineering Skill Routing Matrix 29.6k ★
- Generic Extract Skill — You are an Autonomous 3D Technical Artist Agent 14.1k ★
- Native Feel Skill — An Agent Skill for designing cross-platform desktop apps that feel native — distilled from Raycast's 2.0 deep 1.9k ★
README
Claude Code Prompt Engineering Patterns
Reverse-engineered from the Claude Code source leak (March 31, 2026). 10 production patterns documented and implemented in Python.
What Happened
On March 31, 2026, Anthropic accidentally leaked the **entire source code** of Claude Code (512,000 lines of TypeScript) through a misconfigured npm package. Before the DMCA takedowns, I analyzed their prompt engineering architecture and extracted **10 production patterns** that any developer can use.
This repo does **NOT** contain any Anthropic code. It documents the **techniques and patterns** with original Python implementations.
The 10 Patterns
SYSTEM PROMPT ARCHITECTURE (how Claude Code builds its prompt)
================================================================
┌──────────────────────────────────────────────────────────────┐
│ Pattern 1: MODULAR PROMPT │
│ ┌────────────────────────────────────────────────────────┐ │
│ │ Identity Section │ │
│ │ "You are an AI coding assistant..." │ │
│ ├────────────────────────────────────────────────────────┤ │
│ │ Pattern 3: SECURITY GUARDRAILS │ │
│ │ One paragraph that controls all cyber boundaries │ │
│ ├────────────────────────────────────────────────────────┤ │
│ │ Pattern 2: CONDITIONAL BEHAVIOR │ │
│ │ if user == "internal":
Related Skills
Claude Code
Claude Code Source - Buildable Research Fork. Reverse-engineered build system, runnable with Bun.
Open Claude In Chrome
Claude in Chrome, reverse-engineered and open-source. No domain blocklist. Any Chromium browser. Same 18 MCP t
Revula
A fully functional and production-grade reverse engineering MCP Server
Animation Reverse Engineering
Claude Code skill: reverse-engineer any motion reference into production animation code via frame-level dissec
Open Claude Code
Nightly Claude Code CLI Decompile — Reverse Engineered & Rebuilt
FileMaker XMLsnippet Claude Skill
Reverse-engineered specification of FileMaker's undocumented script XML paste behaviour, including a fully ver
Related Agents
Engineering Backend Developer
Expert Python backend developer specializing in FastAPI, Pydantic, async patterns, and production-grade API se
AI SDK Expert
Expert in Vercel AI SDK v5 handling streaming, model integration, tool calling, hooks, state management, edge
Design Scanner
Extract the design system a codebase already ships — tokens, type scale, spacing, motion, and a reverse-engine