К основному содержанию
скилл CX Codex

context-master — скилл для Claude Code: планирование и экономия

Скилл для планирования сложных задач и многофайловых проектов. Заставляет агента сначала составить план, а потом писать файлы.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add JosiahSiegel/claude-plugin-marketplace --skill context-master -a claude-code
Открыть на GitHub

Что делает context-master

Скилл описывает пятишаговый порядок работы: остановиться, спланировать, объявить список файлов, создать их в правильном порядке, проверить ссылки. Для многофайлового проекта это значит, что общие зависимости вроде styles.css или схемы данных появляются раньше тех файлов, которые на них ссылаются. Переделывать потом не приходится.

Глубокий анализ выносится в отдельное пространство. В Claude CLI это делается через /agent deep-analyzer, и в основной контекст возвращается короткая сводка вместо длинной цепочки рассуждений. В веб-версии и через API тот же приём работает через артефакт. Автор оценивает выигрыш примерно в 23 раза по объёму контекста на таких задачах.

Основной SKILL.md намеренно короткий, подробности лежат в references/ и подгружаются по мере надобности. Скилл сам себя не активирует на одиночном файле без зависимостей — там он просто не нужен. Установка идёт через npx skills add, для GitHub Copilot есть отдельная команда gh skill install.

Какие задачи решает

  • спланировать порядок создания файлов в многофайловом проекте
  • удержать длинную сессию от расползания контекста
  • вынести архитектурное решение в отдельный анализ
  • разложить задачу из нескольких последовательных шагов
  • проверить, что все ссылки между файлами разрешаются

Примеры запросов агенту

  • Создай сайт-портфолио со страницами home, about, projects и contact
  • Помоги выбрать между двумя подходами к архитектуре проекта
  • Проведи рефакторинг этого модуля с изолированным анализом

Как установить context-master

1Через Skills CLI (Vercel)

npx skills add JosiahSiegel/claude-plugin-marketplace --skill context-master -a claude-code

2Вручную: положить файлы

~/.claude/skills/context-master/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/context-master/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Из того же набора11

tailwindcss-mobile-first Скилл для ИИ-агента, который подсказывает, как верстать адаптивные интерфейсы на Tailwind CSS v4 по принципу mobile-first. Пригодится, когда нужно разложить брейкпоинты, типографику и сетки по полочкам. CX Codex +1 2 100установок powershell-master Скилл для работы со скриптами PowerShell: подсказывает синтаксис cmdlet, модули PSGallery, шаблоны CI/CD и безопасность. Пригодится, когда агент пишет .ps1 или правит пайплайн. CX Codex +1 1 100установок docker-best-practices Скилл по Docker: подсказывает, как писать Dockerfile, выбирать базовый образ и настраивать контейнеры для продакшена. CX Codex +1 938установок git-master Скилл по Git для ИИ-агентов: подсказывает команды, страхует опасные операции и разбирает конфликты. Пригодится, когда агент лезет в историю репозитория. CX Codex +1 787установок tailwindcss-advanced-design-systems Скилл для сборки дизайн-системы на Tailwind v4: токены в @theme, цветовые шкалы, типографика, тени и тёмная тема. CX Codex +1 655установок docker-security-guide Скилл для ИИ-агента, который проверяет Docker-конфигурации на уязвимости и подсказывает, как закрыть дыры. CX Codex +1 595установок tailwindcss-responsive-darkmode Скилл по Tailwind CSS: адаптивная вёрстка, тёмная тема, переключение на лету и защита от вспышки нестилизованного контента. CX Codex +1 476установок tailwindcss-fundamentals-v4 Скилл по Tailwind CSS v4: установка, CSS-first настройка через @theme, миграция с v3 и новые утилиты. Пригодится, когда проект переезжает на v4. CX Codex +1 389установок

Похожие

context-engineering официальный Awesome Copilot Community Плагин помогает GitHub Copilot работать с нужным контекстом проекта. Подходит для планирования многофайловых изменений и рефакторинга. ★ 40 418звёзд репо planning-with-files zhaono1 Скилл ведёт план, заметки и результат задачи в markdown-файлах, а не в контексте. Пригодится на многошаговых задачах и ресёрче. CX Codex +1 1 200установок context-manager VoltAgent Community Организует общий контекст мультиагентного проекта в файлах: раскладывает состояние, решения и историю задач по понятной структуре. 10 638установок context-window-management sickn33 Скилл помогает управлять контекстным окном LLM: считать токены, сжимать историю и выбирать стратегию для длинных диалогов. CX Codex +1 1 600установок filesystem-context guanyang Скилл учит агента складывать контекст в файлы: черновики, выгрузки вывода инструментов, планы и передачу между субагентами. CX Codex +1 587установок cc-best-practices dboeckli Скилл-инструкция по работе с Claude: управление контекстом, режим планирования, проверка результата и разбор типичных ошибок. CX Codex +1 3 500установок

Рядом в теме «Настройка агента: память, контекст, субагенты»

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →

Вопросы о context-master

Как установить context-master в Claude?

Выполните npx skills add JosiahSiegel/claude-plugin-marketplace --skill context-master -a claude-code. Скилл окажется в ~/.claude/skills/context-master/SKILL.md.

Что делает context-master?

Задаёт порядок работы над сложными задачами: план до создания файлов, общие зависимости раньше зависимых файлов, проверка ссылок в конце. Ещё помогает выносить глубокий анализ в отдельный контекст.

На каких платформах работает context-master?

Claude, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode. Для каждой платформы своя команда установки, у GitHub Copilot это gh skill install JosiahSiegel/claude-plugin-marketplace context-master.

Исходный текст

SKILL.md · MIT
---
name: context-master
description: |
  Universal context management and planning system. PROACTIVELY activate for: (1) ANY complex task requiring planning, (2) Multi-file projects/websites/apps, (3) Architecture decisions, (4) Research tasks, (5) Refactoring, (6) Long coding sessions, (7) Tasks with 3+ sequential steps. Provides: optimal file creation order, context-efficient workflows, extended-thinking delegation (~23x context efficiency), passive deep-analysis architecture, progressive task decomposition. Environment-agnostic — works for Web, API, and Claude Code CLI.
---

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

```text
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 size | Without planning | With planning | Savings |
|---|---|---|---|
| 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

| File | Use when |
|---|---|
| `references/multi-file-planning.md` | Planning template, optimal-order patterns by project type, verification checklists, post-project reflection. |
| `references/universal-best-practices.md` | Need the rationale or examples for any of the 8 core principles. |
| `references/workflows.md` | Need a step-by-step procedure for a specific scenario (decision, feature, research, refactor). |
| `references/thinking-delegation.md` | Designing a deep-analysis delegation or writing the thinking prompt. |
| `references/anti-patterns.md` | Reviewing whether the current approach is wasting context. |
| `references/troubleshooting.md` | Session is drifting, slow, or producing too much explanation. |
| `references/claude-code-cli.md` | Running in Claude Code CLI and want subagent / CLAUDE.md tooling. |
| `references/agent-skills-integration-2025.md` | Combining skills with subagents in CLI. |
| `references/context_strategies.md` | Long-form strategy notes. |
| `references/subagent_patterns.md` | Subagent 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.

© JosiahSiegel · MIT · JosiahSiegel/claude-plugin-marketplace

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой