A Claude Code plugin for scaffolding, auditing, aligning, optimizing MCP tools, 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-engineering/context-setup:context-scaffold-- generate AGENTS.md from your project- Review the output and fill in
[bracket]placeholders with your knowledge /context-setup:context-audit-- verify structure and completeness/context-setup:context-mcp-- if you have MCP servers connected, get optimization guidance- Periodically:
/context-setup:context-alignfor drift detection,/context-setup:context-usagemid-session for token diagnostics
The plugin auto-updates when the source repo gets new commits. If your installed version seems stale (missing skills, old behavior):
-
Verify: check
~/.claude/plugins/cache/context-engineering/context-setup/. The directory name should be a git SHA (likedea82eb8999f), not a semver string (like1.0.0). If it's semver, you have the old cache format. -
Fix: remove the stale cache and marketplace clone, then reinstall:
rm -rf ~/.claude/plugins/marketplaces/context-engineering
rm -rf ~/.claude/plugins/cache/context-engineering/context-setup/Then: /plugin install context-setup@context-engineering
- Verify after reinstall: the cache directory should now be a git SHA, and all 6 skills should be available.
When no other installed plugin has a skill with the same name, Claude Code allows the short form -- /context-scaffold instead of /context-setup:context-scaffold. The full namespaced form always works.
Analyze 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.
Detect connected MCP servers across platforms, match them against known optimization templates, and generate MCP Tool Notes for your AGENTS.md. For servers without known templates, interactively discover optimization opportunities by inspecting tool registries and optionally making test calls with user confirmation.
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 examples/claude-config/ 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:context-scaffoldgenerates context files from project analysis/context-setup:context-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:context-mcpdetects MCP servers and generates optimization guidance/context-setup:context-upgradeguides transitions to higher complexity levels
context-align appears in both places. The examples/claude-config/ 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 examples/claude-config/ 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.