New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Planning and context management plugin that orders multi-file work before Claude Code writes any files.

version
2.2.5
GitHub stars
62
View on GitHub

What it does

  • Adds /plan-project, /verify-structure, /context-analysis, and /optimize-context commands plus a context-master skill
  • Covers file creation order, dependency-first planning, and cross-file reference checks after creation
  • Enforces a plan-before-create workflow for any task with 3+ related files or 5+ sequential steps
  • Designed for multi-file websites, full-stack apps, and long coding sessions, with Windows Git Bash notes included

Universal context management and planning. PROACTIVELY activate for: (1) complex multi-file tasks, (2) architecture decisions, (3) research, (4) refactoring, (5) long sessions, (6) any task with 3+ sequential steps. Provides: optimal file-creation order, extended-thinking delegation (23x context efficiency), token budgeting, recursive delegation, clear-and-verify workflows, progressive task decomposition. Saves 62% context on average.

Add marketplace

/plugin marketplace add JosiahSiegel/claude-plugin-marketplace

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install context-master@claude-plugin-marketplace

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Context Master

Universal context management and planning skill for complex tasks, long sessions, and multi-file projects. Works the same way whether you are in the Web app, the API, or Claude Code CLI; CLI-specific bonuses live in references/claude-code-cli.md.

This SKILL.md is intentionally short. Detailed material lives in references/ — load only what you need.

When to activate

Activate proactively whenever the request matches one of:

  • Multi-file project (3+ related files, websites, apps, APIs, doc sets).
  • Architecture or technology decision ("should we use X or Y", "which approach…").
  • Research / comparison / tradeoff analysis.
  • Refactoring or migration work.
  • Long coding session where context efficiency matters.
  • Any task with 3+ sequential steps or shared dependencies.

If the request is a single file with no dependencies, skip this skill.

The 5-step workflow (memorize this)

For any multi-file project — websites, apps, APIs, documentation sets — run these five steps in order:

  1. STOP — do not create any files yet.
  2. PLAN — use extended thinking or a planning document (both equally valid; see references/multi-file-planning.md).
  3. ANNOUNCE — state the file list and creation order to the user.
  4. CREATE — write files in optimal order (foundations before dependents).
  5. VERIFY — check that every reference resolves; fix issues before declaring done.

Worked example (portfolio website)

User: "Create a portfolio with home, about, projects, and contact pages."

Step 1 STOP    -- do not start with index.html.
Step 2 PLAN    -- "Think hard about architecture: 5 files needed,
                  styles.css is the shared dependency."
Step 3 ANNOUNCE -- "I'll create:
                  1. styles.css       (shared styling)
                  2. index.html       (references styles.css)
                  3. about.html
                  4. projects.html
                  5. contact.html"
Step 4 CREATE   -- write files in that order.
Step 5 VERIFY   -- every HTML file links styles.css; navigation resolves.

Result: no refactor, no re-export, no broken links.

The full template, optimal-order patterns by project type (website / React / backend API / etc.), and verification checklists are in references/multi-file-planning.md.

Core principles (one line each)

  1. Plan before you write — extended thinking or planning doc, never both skipped.
  2. Foundations first — shared dependencies (CSS, config, base classes, schemas) precede dependents.
  3. Delegate deep analysis to isolated contexts — subagents (CLI) or thinking artifacts (Web/API) keep the main thread clean.
  4. Phase boundaries — name each phase ("Phase 1 complete; moving to Phase 2: …") so context doesn't blur.
  5. Artifacts over inline content — long code or docs live in artifacts/files, not chat history.
  6. Progressive disclosure — ask for one slice at a time; don't batch unrelated steps.
  7. Signal resets — say "setting aside the previous approach…" when changing direction.
  8. Reflect after large projects — was it planned? Did references break? Use the post-project checklist in references/multi-file-planning.md.

Full rationale and examples for every principle: references/universal-best-practices.md.

Token-savings rule of thumb

Project sizeWithout planningWith planningSavings
Small (3-4 files)~6,000 tokens~2,500 tokens~58%
Medium (7-8 files)~12,000 tokens~4,500 tokens~63%
Large (20+ files)~35,000 tokens~12,000 tokens~66%

A 200K-token context window holds roughly 16-17 medium projects with planning, 7-8 without — a 2.1x effective increase. Numbers and methodology in references/multi-file-planning.md.

Passive deep-thinking architecture

The single most powerful pattern for context efficiency: route deep reasoning into an isolated space and return a short summary to the main thread.

  • Claude Code CLI: /agent deep-analyzer "Ultrathink about [decision]" — ~5K tokens of reasoning happens out-of-band; main context receives a ~200-token summary (~23x efficiency).
  • Web / API: "Create a deep-analysis artifact and ultrathink about [decision]" — same idea, artifact instead of subagent.

Triggers, anti-patterns, and ready-made prompts: references/thinking-delegation.md.

Common workflows (pointers only)

Each of these has a step-by-step procedure in references/workflows.md:

  • Workflow 0 — Multi-file website/project creation (the default — same 5 steps above with extra detail).
  • Workflow 1 — Complex decision-making (architecture, tech choice).
  • Workflow 2 — Complex feature development (analysis → design → implement → test → integrate).
  • Workflow 3 — Research and technology evaluation.
  • Workflow 4 — Code generation and iteration via artifacts.
  • Workflow 5 — Refactoring with isolated analysis.

Anti-patterns (avoid these)

Quick list — examples and fixes in references/anti-patterns.md:

  1. Creating files before planning — wastes context on refactors.
  2. Asking for everything at once — overloads context and produces shallow output.
  3. Inlining long code/docs in chat — bloats history; use artifacts/files.
  4. Letting deep reasoning happen in main thread — costs ~5K tokens that could be ~200.
  5. No phase boundaries — context blurs across unrelated subtasks.

Troubleshooting

When sessions drift (responses unfocused, conversations getting too long, code regenerating instead of editing, extended thinking not engaging), see references/troubleshooting.md for a symptom → remedy table covering Web/API and CLI separately.

Claude Code CLI bonuses

If you are running in Claude Code CLI, you also get:

  • /clear, /compact, /continue — built-in context controls.
  • /agent <name> — delegate to an isolated subagent.
  • CLAUDE.md — persistent project memory.
  • Helper scripts for generating CLAUDE.md and subagent definitions.

Details, script invocations, and the deep-analysis delegation patterns: references/claude-code-cli.md.

Skill–subagent integration patterns (when both are available) live in references/agent-skills-integration-2025.md. Long-form context strategies and subagent prompt patterns: references/context_strategies.md and references/subagent_patterns.md.

Reference map

FileUse when
references/multi-file-planning.mdPlanning template, optimal-order patterns by project type, verification checklists, post-project reflection.
references/universal-best-practices.mdNeed the rationale or examples for any of the 8 core principles.
references/workflows.mdNeed a step-by-step procedure for a specific scenario (decision, feature, research, refactor).
references/thinking-delegation.mdDesigning a deep-analysis delegation or writing the thinking prompt.
references/anti-patterns.mdReviewing whether the current approach is wasting context.
references/troubleshooting.mdSession is drifting, slow, or producing too much explanation.
references/claude-code-cli.mdRunning in Claude Code CLI and want subagent / CLAUDE.md tooling.
references/agent-skills-integration-2025.mdCombining skills with subagents in CLI.
references/context_strategies.mdLong-form strategy notes.
references/subagent_patterns.mdSubagent prompt patterns.

Success indicators

  • You announced the plan before creating any file.
  • Foundation files (CSS, config, schemas) were written before dependents.
  • No reference broke on first run; no refactor was needed.
  • Deep reasoning happened in a subagent or artifact, not the main thread.
  • Phases were named as you crossed them.

If any of those failed, walk back through references/anti-patterns.md and references/multi-file-planning.md post-project section before the next task.

Readme

Context Master Plugin

Optimal planning and context management for multi-file projects, website creation, and complex coding tasks. Full cross-platform support including Windows with Git Bash.

Overview

Context Master helps Claude Code work more efficiently on multi-file projects by:

  • Planning optimal file creation order before implementation
  • Preventing redundant work through dependency-aware architecture
  • Saving context tokens (62% reduction on average)
  • Providing extended thinking delegation patterns
  • Verifying project structures automatically
  • Supporting Windows/Git Bash workflows with path conversion guidance

Quick Start

When to Use

Context Master activates automatically for:

  • Creating 3+ related files (HTML, CSS, JS, docs, etc.)
  • Building complete websites or web applications
  • Multi-file code projects (APIs, full-stack apps, libraries)
  • Tasks requiring 5+ sequential steps
  • Architecture or design planning before implementation

Basic Workflow

For ANY multi-file project, follow these 5 steps:

1. STOP - Don't create files yet
2. PLAN - Use /plan-project command
3. ANNOUNCE - Tell user your file creation order
4. CREATE - Make files in optimal order (dependencies first)
5. VERIFY - Use /verify-structure to check all references work

Installation

Option 1: GitHub Marketplace (Recommended for All Platforms)

  1. Add this marketplace:

    /plugin marketplace add JosiahSiegel/claude-plugin-marketplace
    
  2. Install the plugin:

    /plugin install context-master@claude-plugin-marketplace
    

Option 2: Local Installation (Mac/Linux)

# Extract to plugins directory
unzip context-master.zip -d ~/.local/share/claude/plugins/

Windows Users

Important: Use GitHub marketplace installation method (Option 1) for best compatibility. Local installation may encounter path conversion issues with Git Bash.

If you encounter path-related issues:

  • See WINDOWS_GIT_BASH_GUIDE.md for troubleshooting
  • Consider upgrading Claude Code to v1.0.72+
  • Ensure Git Bash is properly configured

Features

Commands

/plan-project

Plan optimal file creation order for multi-file projects before implementation.

Token Savings: ~5,000 tokens (62% reduction) per multi-file project

/verify-structure

Verify multi-file project structure and cross-file references after creation.

Checks:

  • File paths are correct (cross-platform compatible)
  • CSS/JS references load properly
  • Navigation between pages works
  • Cross-file dependencies resolve
  • Consistency across files
/context-analysis

Analyze context usage and suggest optimization strategies for ongoing session.

/optimize-context

Real-time context optimization for ongoing sessions with metrics and recommendations.

Skills

context-master

Comprehensive knowledge about:

  • Multi-file project planning workflows
  • Optimal file creation order principles
  • Context-efficient patterns and strategies
  • Extended thinking delegation architecture
  • CLI-specific tooling (for Claude Code users)
  • Windows/Git Bash path compatibility

Token Savings

Real-World Impact

Small Project (3-4 files) - Portfolio Website

  • Without planning: ~6,000 tokens
  • With planning: ~2,500 tokens
  • Savings: ~3,500 tokens (58%)

Medium Project (7-8 files) - Multi-page App

  • Without planning: ~12,000 tokens
  • With planning: ~4,500 tokens
  • Savings: ~7,500 tokens (63%)

Large Project (20+ files) - Full Application

  • Without planning: ~35,000 tokens
  • With planning: ~12,000 tokens
  • Savings: ~23,000 tokens (66%)

Platform Support

Cross-Platform Compatibility

Context Master works identically on:

  • macOS - Full support, no path issues
  • Linux - Full support, no path issues
  • Windows with Git Bash - Full support with path conversion guidance
  • Windows with PowerShell/CMD - Full support

Windows/Git Bash Specific Notes

Context Master fully supports Windows development with Git Bash. Understanding automatic path conversion helps optimize workflows:

Automatic Path Conversion:

  • Git Bash converts Unix-style paths to Windows paths automatically
  • This usually works transparently with Context Master
  • See WINDOWS_GIT_BASH_GUIDE.md for advanced scenarios

Known Issues (mostly resolved in Claude Code v1.0.72+):

  • Path conversion failure in snapshot operations
  • Drive letter duplication errors
  • Spaces in paths

Workarounds:

  • Use GitHub marketplace installation
  • Upgrade Claude Code to v1.0.72+
  • See WINDOWS_GIT_BASH_GUIDE.md for detailed troubleshooting

Best Practices

Always Plan Before Creating Files

  • Use /plan-project for any 3+ file task
  • Identify shared dependencies first
  • Create foundation files before dependents
  • Announce your plan to the user

Verify After Creation

  • Use /verify-structure to catch errors early
  • Check all file paths and references
  • Ensure navigation and imports work

Optimize Context Throughout Session

  • Use /context-analysis periodically
  • Create artifacts for code and documents
  • Break complex tasks into phases

Troubleshooting

Plugin Not Loading

  • Check plugin.json syntax
  • Windows users: Use GitHub marketplace instead
  • Run with --debug flag for details

Commands Not Showing

  • Verify commands directory contains .md files
  • Reload plugins: claude --reload-plugins

Windows/Git Bash Issues

  • Check WINDOWS_GIT_BASH_GUIDE.md for detailed solutions
  • Verify Git Bash installation
  • Check environment variables

Documentation

  • SKILL.md - Comprehensive skill documentation
  • WINDOWS_GIT_BASH_GUIDE.md - Windows/Git Bash compatibility guide
  • commands/ - Individual command documentation

License

MIT


Get Started: Install the plugin and try /plan-project on your next multi-file task!

Windows Users: See WINDOWS_GIT_BASH_GUIDE.md for Git Bash compatibility notes.

Details

Marketplace
JosiahSiegel/claude-plugin-marketplace
Source
plugins/context-master
Author
Josiah Siegel
Category
Community
Keywords
planning, context, strategy, workflow, thinking, decision, research, refactoring, optimization, session, windows, git-bash, cross-platform
Listed since
Apr 7, 2026

More from JosiahSiegel/claude-plugin-marketplace

All 43

Similar to context-master

More Agent Workflow & Planning