Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

context-setup

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.

Install

/plugin marketplace add fending/context-engineering
/plugin install context-setup@context-engineering

Skills

/context-setup:scaffold

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.

/context-setup:audit

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).

/context-setup:context-align

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.

/context-setup:context-usage

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.

/context-setup:upgrade

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.

How This Differs from .claude-example Skills

The .claude-example/ directory in the parent repo provides operational skills that consume and enforce existing context files:

  • /onboard discovers and summarizes what context exists
  • /scope-check validates tasks against boundary rules

This plugin creates, evaluates, and aligns the context files themselves:

  • /context-setup:scaffold generates context files from project analysis
  • /context-setup:audit checks structural completeness and best practices
  • /context-setup:context-align checks whether context files match the codebase
  • /context-setup:context-usage reports on session-level context consumption
  • /context-setup:upgrade guides 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.

Learning the Patterns

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.