A Claude Code plugin for scaffolding, auditing, aligning, and upgrading context engineering files. Generates AGENTS.md files, context directories, and cascading structures based on your project's actual stack and complexity.
/plugin marketplace add fending/context-engineering
/plugin install context-setup@context-engineeringAnalyze your project and generate the right context files pre-populated with discovered information. Detects tech stack, framework, directory structure, and existing context. Recommends a complexity level (minimal, full single file, or cascading with context directory) and generates the corresponding files.
Evaluate your existing context structure for completeness and best practices. Checks whether your context complexity matches your project complexity, whether required sections are present, whether format conventions are followed, and whether structural issues exist (duplicated subdirectory files, empty context directory files, cascading contradictions).
Cross-reference your context files against the actual codebase to find drift. Checks tech stack references against dependencies, directory paths against the filesystem, build commands against actual scripts, skill relevance against the current stack, and cascading contradictions across context levels.
Quick diagnostic of context consumption from Bash tool calls in the current session. Reports verbose commands, repeated invocations, and already-concise commands. Points to /context-setup:context-audit for specific optimization recommendations when opportunities are found. Works only with pre-compression session history.
Guide a transition from your current context level to the next one. Preserves existing content while adding missing sections (minimal to full), extracting content into a context directory (full to cascading), or describing the skills and hooks layers you can add on top.
The .claude-example/ directory in the parent repo provides operational skills that consume and enforce existing context files:
/onboarddiscovers and summarizes what context exists/scope-checkvalidates tasks against boundary rules
This plugin creates, evaluates, and aligns the context files themselves:
/context-setup:scaffoldgenerates context files from project analysis/context-setup:auditchecks structural completeness and best practices/context-setup:context-alignchecks whether context files match the codebase/context-setup:context-usagereports on session-level context consumption/context-setup:upgradeguides transitions to higher complexity levels
context-align appears in both places. The .claude-example/ copy is part of a complete working .claude/ configuration for users who copy the whole directory. The plugin version means users who only install the plugin also get drift detection without needing to copy files separately.
Use this plugin to set up and maintain your context structure. Use the .claude-example/ skills to operate within it day-to-day.
This plugin generates context files based on patterns documented in the context-engineering repo. For the theory behind the structures, read the repo's examples and the companion article: Rethinking Team Topologies for AI-Augmented Development.