ClaudeCodeMod

All shelves / Marketplaces

ShulkwiSEC/claude-code-internal-architecture

ShulkwiSEC/claude-code-internal-architecture · 0 stars · 1 plugin

Marketplace

Install

In Claude Code
/plugin marketplace add ShulkwiSEC/claude-code-internal-architecture

Run inside Claude Code, then install plugins from it. Check the repo's README before you run it.

Open the repo

Plugins 1

After adding the marketplace, install one with /plugin install <name>@claude-code-internal-architecture-marketplace.

  1. 1claude-code-internal-architectureGives Claude deep, accurate knowledge of Claude Code's own internal architecture so it can explain, plan, and architect Claude Code harnesses and workflows correctly./plugin install claude-code-internal-architecture@claude-code-internal-architecture-marketplacev1.0.0productivity

Files

README.md

claude-code-internal-architecture

Gives Claude Code accurate, mechanism-level knowledge of its own internals — so it stops guessing about nesting limits, precedence order, hook events, and cache behavior, and can actually design harnesses on top of itself.

Claude Code knows a lot about the world, but surprisingly little about the exact, current mechanics of the tool it's running inside — the depth-5 subagent cap, the settings precedence order, what each of the ~30 hook events actually fires on, how the plugin version cache trips people up, why bypassPermissions still prompts for some things. Ask it to design an agent team or debug a hook and it'll often produce something plausible-sounding but subtly wrong.

This plugin fixes that with one skill, claude-code-internal-architecture, built entirely from Claude Code's own official reference documentation: a lean SKILL.md hub plus ten deep-dive reference files covering the agent loop, context/caching, tools/permissions/sandboxing, subagents/agent teams, skills/memory, hooks, MCP, plugins/marketplaces, the CLI/settings hierarchy, the Agent SDK, and dynamic workflows.

Install

/plugin marketplace add ShulkwiSEC/claude-code-internal-architecture
/plugin install claude-code-internal-architecture@claude-code-internal-architecture-marketplace

Or locally, for development:

/plugin marketplace add ./claude-code-internal-architecture-pluggin
/plugin install claude-code-internal-architecture@claude-code-internal-architecture-marketplace

Update later with:

/plugin marketplace update claude-code-internal-architecture-marketplace
/plugin update claude-code-internal-architecture@claude-code-internal-architecture-marketplace

What's in it

The skill triggers automatically whenever a task touches Claude Code's own mechanics — designing a subagent tree, writing a hook, debugging a permission denial, building a plugin, deciding between a skill and a subagent for some behavior. It can also be invoked directly for a quick lookup.

skills/claude-code-internal-architecture/
├── SKILL.md                          # hub: mental model, reference index, load-bearing facts, design checklist
└── references/
    ├── agent-loop-and-context.md     # turn mechanics, compaction, prompt caching, checkpointing, fast mode
    ├── tools-and-permissions.md      # full tool inventory, permission rules/modes, sandboxing, advisor
    ├── subagents-and-teams.md        # frontmatter schema, depth cap, spawn budget, agent teams, worktrees
    ├── skills-and-memory.md          # progressive disclosure, triggering, CLAUDE.md precedence, auto memory
    ├── hooks.md                      # every lifecycle event, handler types, exit-code semantics
    ├── mcp.md                        # transports, tool naming, tool search, managed MCP
    ├── plugins-and-marketplaces.md   # plugin.json/marketplace.json schemas, versioning, the plugin cache
    ├── cli-and-settings.md           # CLI flags, settings precedence, env vars, sessions
    ├── sdk-and-workflows.md          # Agent SDK, custom tools, dynamic workflows
    └── sessions-and-surfaces.md      # glossary, surfaces, scheduling mechanisms, remote control

SKILL.md stays under ~150 lines on purpose — it's the always-loaded-on-trigger layer. The reference files (~230–660 lines each, with a table of contents past ~300 lines) are the "read only when actually needed" layer, following the same progressive-disclosure principle the skill teaches.

Sourcing and accuracy

Every reference file was built by fetching Claude Code's own current documentation (code.claude.com/docs) and synthesizing it — not written from memory. Docs drift as Claude Code ships new versions; this plugin is a snapshot, not a live feed. Re-run the research pass periodically (or whenever something in here looks stale) rather than treating it as permanently authoritative.

Keeping this up to date

This repo carries its own maintainer tooling in .claude/agents/ — project-scoped subagents (they load automatically when you open this repo in Claude Code, and are not shipped as part of the plugin itself) that turn "keep the skill current" into a repeatable pipeline instead of a from-scratch research session every time:

  1. feature-scout — checks Claude Code's changelog/what's-new pages and official docs for anything new or changed since the reference files were last touched.
  2. reference-writer — researches one topic cluster from official sources and writes/updates the matching references/*.md file in this skill's house style.
  3. skill-reviewer — QAs a reference-file change: line-count/TOC discipline, factual spot-check, leak-scan for anything that shouldn't be in a public repo, consistency with SKILL.md's index.
  4. plugin-packager — handles release mechanics: claude plugin validate --strict, a correct version bump (see the versioning trap in references/plugins-and-marketplaces.md), and the CHANGELOG.md entry.

See the repo-root CLAUDE.md for the full workflow and editing conventions.

License

MIT — see LICENSE.

Facts

Kind
Marketplace
Repo
ShulkwiSEC/claude-code-internal-architecture
Group
Uncategorized
Stars
0
Marketplace name
claude-code-internal-architecture-marketplace
Owner
shulkwisec
License
MIT
Created
2026-07-19
Last push
2026-07-19
Plugins
1

More on this shelf

  1. 1obra/superpowersobra/superpowersAn agentic skills framework & software development methodology that works.297.9k
  2. 2affaan-m/everything-claude-codeaffaan-m/ECCThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.277.5k
  3. 3anthropics/skillsanthropics/skillsPublic repository for Agent Skills180.6k
  4. 4f/prompts.chatf/prompts.chatf.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.172.7k
  5. 5anthropics/claude-codeanthropics/claude-codeClaude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.150.3k
  6. 6nextlevelbuilder/ui-ux-pro-max-skillnextlevelbuilder/ui-ux-pro-max-skillAn AI skill that provides design intelligence for building professional UI/UX across multiple platforms.135k