From context-architecture-skills
Designs and generates layered CLAUDE.md, AGENTS.md, GEMINI.md, and nested instruction files for repositories. Use when bootstrapping AI coding context, splitting bloated root files, or adding per-package guidance in a monorepo.
How this skill is triggered — by the user, by Claude, or both
Slash command
/context-architecture-skills:scaffolding-context-filesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Design context architecture first. Then generate the smallest useful set of AI instruction files for the repository.
Design context architecture first. Then generate the smallest useful set of AI instruction files for the repository.
Use the user's extra notes if provided: $ARGUMENTS
If the user specifies a language (e.g., "한국어", "English", "日本語") in their arguments or conversation, write all generated context files in that language. This includes section headings, descriptions, comments, and inline guidance. Commands, paths, and tool-specific keywords remain in their original form.
If no language is specified, fall back to the repository's dominant documentation language (see Authoring rules).
Every instruction belongs at the narrowest boundary that actually needs it.
Do not solve context problems by making a bigger root file.
TODO rather than guessing.CLAUDE.md, AGENTS.md, and GEMINI.md into every directory by default.Success means:
Inspect at least these sources if they exist:
CLAUDE.md, AGENTS.md, AGENTS.override.md, GEMINI.md.claude/, .github/instructions/, .github/copilot-instructions.md, README*package.json, pyproject.toml, Makefile, justfile, CI workflows, docker filesIdentify the narrowest useful layers, typically from:
Default rule:
Use only what is needed:
CLAUDE.md, AGENTS.md, and GEMINI.md, generate all requested families.AGENTS.md. Use AGENTS.override.md only when same-directory override semantics are intentionally needed.Use:
Authoring rules:
After writing, check each file's size. If a file exceeds approximately 200 lines or 6 KB, it is too large for efficient context loading. Apply these steps:
@file imports (Claude Code, Gemini), extract a shared block into a separate file and import it rather than duplicating content.After compression, re-validate that no content was lost and no contradictions were introduced.
Check each file against this rubric:
CLAUDE.md, AGENTS.md, GEMINI.md) are identical unless a tool-specific delta is explicitly justifiedYour final output must include:
The main deliverable is the files themselves, not a long essay.
npx claudepluginhub drone0898/context-architecture-skills --plugin context-architecture-skillsCreates minimal, high-signal CLAUDE.md and AGENTS.md context files for repos using empirical best practices. Triggers on /init, create/update requests, or missing context during brainstorming.
Initializes or migrates repositories to nested CLAUDE.md structure for progressive disclosure and contextual Claude guidance. CLI: /init-deep with --fresh and --max-depth flags.
Analyzes repository structure to generate or update AGENTS.md contributor guides for AI agents. Supports single-repo and monorepo layouts with update mode that preserves custom sections.