control-session-orchestrator
Control-plane workflow for coordinating multi-agent, multi-session project work from a single Codex, GitHub Copilot, or agent-app control session. Use this skill whenever the user asks to orchestrate agents, create or steer worker sessions, run a workflow-like effort, fan out audits/research/migrations, coordinate parallel implementation streams, monitor other project sessions, or compare this control-session pattern to Claude Code dynamic workflows. This skill is especially relevant when the current session can spawn persistent project sessions and those sessions can spawn their own subagents, creating a two-level orchestration hierarchy.
What this skill does
# Control Session Orchestrator
Use the current session as the control plane for project work that is too broad, risky, or
stateful for one conversation. The control session owns intent, decomposition, routing, status,
verification, and consolidation. Worker sessions own scoped execution. Worker subagents are local
implementation/research/audit helpers inside each worker session.
## Mental model
```
User
-> Control session (strategy, dispatch, tracking, integration)
-> Worker project session A (persistent branch/workstream)
-> Subagents for research, implementation, review, tests
-> Worker project session B (persistent branch/workstream)
-> Subagents for local fan-out
-> Verifier/reviewer session (optional independent gate)
```
This is similar to dynamic workflows, but the orchestration is human-readable and session-native
instead of a runtime script. Use it when persistence, branches, PRs, human steering, or cross-session
continuity matter more than fully automated fan-out.
A code runtime gets reliability for free (validated results, barriers, budgets, dedup, resume). A
prompt-driven control plane only gets it if you make state machine-checkable. Two contracts do that
without a runtime: a required **worker result block** and a durable **control-state manifest** (see
[Machine-checkable contracts](#machine-checkable-contracts)). Everything else in this skill keys off
those two artifacts — without them, "is this worker done and passing?" is a guess, not a field read.
## Supported control apps
This skill is app-agnostic. First discover which orchestration tools are available in the current
session, then adapt the same control workflow to that surface.
| Capability | Codex app | GitHub Copilot app | Fallback |
|---|---|---|---|
| Find worker sessions | List/search project threads | List/search app sessions | Ask user for target session links/IDs |
| Create persistent workstreams | Create or reuse Codex threads/worktrees when available | Create or reuse Copilot app sessions/workspaces when available | Use local subagents only |
| Steer an existing workstream | Send a follow-up prompt to the thread | Send a follow-up prompt to the session | Ask user to paste the prompt into the worker |
| Local fan-out | Spawn subagents from this session or ask workers to spawn their own | Use Copilot's available agent/session tools | Keep work local |
| Tracking | Thread titles, pins, branches, PRs, canvas nodes, compact status tables | Session names, branches, PRs, issues, canvas nodes, compact status tables | Markdown status table |
Do not assume the GitHub Copilot or Codex tool names. Use the tools exposed in the current
environment, and say which control surface is active before dispatching workers.
## When to use
Use this skill for:
- Codebase-wide audits, migrations, or parity checks
- Parallel investigation across modules, services, features, or PRs
- Work that benefits from independent implementer and verifier sessions
- Large features where design, implementation, testing, and review should be split
- Project-control prompts like "coordinate agents", "spin up sessions", "run a workflow",
"make workers handle this", "monitor the other sessions", or "act as control"
- Situations where worker sessions may themselves use subagents for local research, coding, or review
Do not use it for a simple one-file fix, a quick answer, or a task where a single local subagent is
enough. Orchestration has overhead; spend it only when coordination reduces risk or increases
throughput.
## Machine-checkable contracts
These are the session-native analog of a runtime's typed results and durable run state. They stay
human-readable, but they are **required**, not advisory — the control session parses them instead of
re-reading prose.
### Worker result block
Every worker MUST end its report with a fenced ` ```json ` block tagged `control-result`. The control
session reads this block (never the surrounding prose) to update state, dedup, and decide routing.
```json control-result
{
"worker_id": "auth-api",
"wave_id": "w1",
"unit_key": "service/auth",
"scope": "src/auth/** — refresh-token rotation",
"status": "complete",
"files_changed": ["src/auth/rotate.ts"],
"verification": { "command": "pnpm test auth", "result": "pass", "evidence": "42 passed" },
"subagents_used": "2 — one research, one test author",
"risks": ["rotation interacts with logout; covered by test"],
"next_step": "ready for review session",
"report_ref": "thread/PR/path to the full report"
}
```
The block must be **strict JSON** (no comments/trailing commas) so it parses. `status` is one of
`complete | blocked | needs-decision | failed`; `verification.result` is one of `pass | fail | not-run`.
### Control-state manifest
One durable artifact that **is** the source of truth for the mission — a pinned control thread, a
tracking-issue body, a canvas node, or a committed `control/state.json`. Re-read and update it every
turn; keep the conversation for decisions, not state. One row per **unit** (unit-keyed, so the same
unit is never dispatched twice — this is the dedup ledger).
```json
{
"mission": "MCP tool parity audit",
"non_goals": ["no behavior changes"],
"success_criteria": ["every tool present in server, HTTP, SDK, docs or flagged"],
"budget": { "max_concurrent_workers": 5, "max_total_workers": 25, "spawned": 0, "in_flight": 0 },
"convergence": { "rule": "single-pass", "k_empty": 2, "empty_streak": 0, "target": null, "current": 0 },
"workers": [
{
"unit_key": "surface/http",
"worker_id": "http-audit",
"session_ref": "thread-or-session id/link",
"scope": "HTTP API surface",
"branch_or_pr": "—",
"status": "pending",
"wave_id": "w1",
"last_update": "ISO-8601",
"evidence_ref": "report_ref from the result block",
"verification": "not-run",
"blocker": null
}
],
"decisions": [],
"open_followups": []
}
```
Rules:
- **Worker status** (what a worker self-reports in its result block): `complete | blocked |
needs-decision | failed`.
- **Manifest unit status** (the superset the control session maintains): `pending | dispatched |
needs-decision | blocked | stalled | complete | failed | dropped`. Worker-reported values are a
subset of these, so setting a unit's status from a worker block (Step 5) is always valid.
- **Terminal** states — a unit is closed — are `complete | failed | dropped`. Everything else is
non-terminal and must be resolved, or explicitly converted to `dropped` with a reason, before the
mission closes (Step 8).
- `budget.in_flight` is the number of rows currently `dispatched`. Increment `spawned` and `in_flight`
on dispatch; decrement `in_flight` when a unit leaves `dispatched`; recompute it from the rows on
rehydrate.
- `convergence.rule` is one of `single-pass | loop-until-dry | loop-until-budget |
accumulate-to-target`. `k_empty`/`empty_streak` are used only by `loop-until-dry`; `target`/`current`
only by `accumulate-to-target` (`target` = the count or coverage goal, `current` = progress so far).
- dropped/failed units MUST carry a reason in `open_followups`.
This manifest is what a fresh control session rehydrates from (Step 0).
## Control workflow
### 0. Rehydrate (resume an in-flight mission)
On session start, look for an existing control-state manifest for this mission. If one exists:
- Load it; treat it as the source of truth.
- Re-attach to workers by `session_ref` and reconcile each worker's *real* status (read the thread/PR)
before any new dispatch.
- Recompute `budget.in_flight` from the rows still marked `dispatched`.
- Do NOT re-dispatch a unit whose status is `dispatched` or `complete` — route a follow-up instead.
If no manifest exists, this is a new mission — create one during Step 1.
### 1. Frame the mission
Before spawning anything, capture (and write into the manifest):
- Objective and nonRelated in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.