architect — GitHub Copilot CLI¶
Do the expensive planning once — deep-plan a complex task and write an execution kit (PLAN.md + TASKS.md with model-pinned, self-contained briefs) under tasks/kits/<slug>/ for the execute driver to dispatch on cheaper models. Use when the user says "architect this", "plan this big task", or asks for an execution kit.
- Source: copilot/.github/skills/architect/SKILL.md
- Also available on: Claude Code, OpenAI Codex CLI
In practice¶
What it does¶
Same idea as Claude's architect skill — spend the expensive planning once, on the
strongest tier, then hand a cheaper tier a kit it can execute task by task — but the
mechanics here are Copilot-specific: kits live at tasks/kits/<slug>/, and
bin/copilot_execute.py actually PARSES TASKS.md, so the task skeleton's punctuation is
load-bearing, not just tidy formatting.
When to reach for it¶
- A task big enough that one wrong early call would compound across many later steps.
- Before running
/executeon anything with more than a task or two. - You want a kit a mid-tier model can run without re-deciding what the top tier already settled.
- Not for execution — this skill writes the kit and stops;
/executeruns it.
Worked example¶
### T1 — Short title
- status: pending
- model: <model-id>
- depends: (none)
- independent: yes
**Brief.** The self-contained brief text.
**Acceptance.** The checkable criteria.
**Verify.**
```bash
python3 -m unittest discover -s tests -p 'test_something.py'
```
Before handing off, self-check:
python3 bin/copilot_execute.py status --kit tasks/kits/<slug> — every task should list
with its status and no parse error, because a drifting task block makes the kit
undispatchable, not just untidy.
Failure modes & fallbacks¶
- A verify command would invoke the real Copilot CLI. Never write one that does —
dispatch loops are
/execute's job, and a live call spends real AI Credits. - A tier looks wrong for the work. Re-derive it from
copilot_pricing.py models, never from memory — the roster changes underneath a remembered pin. - The literal
{{POLYTROPOS_ROOT}}text appears on the card. The bundle isn't installed — runpython3 bin/harness_select.py install --harness copilot, then/skills reload.
Cost & safety¶
Planning is the expensive part, by design — spending frontier-tier judgment once so
execution runs cheap afterward is the whole premise of this skill. Doing that planning is
a real, paid dispatch: either this session switches to the frontier tier itself, or the
whole job goes to copilot --agent architect, whose frontmatter pin runs it there.
Reading the pricing data (models, prefs) and the self-check (copilot_execute.py
status) before handing off cost nothing; use tier words only, never a specific model id,
when writing a kit's own task pins.
Related¶
- execute — runs the kit this skill writes.
- budget — a cheaper dispatch ladder for the kit
/executeruns. - Parity matrix — the Claude sibling this mirrors, and where the mechanics differ.
The skill card — what the model reads¶
This is the SKILL.md body the model reads, transformed for this page: the source's own leading title, if it had one, is removed; every remaining heading is demoted one level to nest under this section; and relative links are rewritten to site or GitHub URLs. ${CLAUDE_PLUGIN_ROOT} and {{POLYTROPOS_ROOT}} are install-time path variables, left intact exactly as the model sees them. The unmodified original is copilot/.github/skills/architect/SKILL.md.
You do the expensive meta-work once. Given a complex task, you produce a durable execution kit that a cheaper model can carry out task-by-task at near-frontier quality. You plan and write the kit; you do not implement it.
What you produce¶
A kit at tasks/kits/<slug>/ with two files (a third, NOTES.md, is owned by the execute
driver — do not create it):
PLAN.md— the durable thinking: the goal, plus a concrete, checkable definition of "done"; constraints and an explicit out-of-scope fence (what NOT to build); architecture decisions, each with its rationale; risks and tripwires the implementers must avoid.TASKS.md— ordered work under## Phase Nheadings. Each task carriesid,title,status,model, and adepends:/independent:marking, a SELF-CONTAINED brief (an implementer sees only this brief — pin every fact it needs), concrete acceptance criteria, and a runnable verify command usable from the repo root.
Status vocabulary¶
Every task's status is exactly one of pending | in-progress | done | blocked. New tasks
start pending.
TASKS.md task grammar (machine-parsed — copy this skeleton exactly)¶
bin/copilot_execute.py PARSES TASKS.md — prose that drifts from this grammar makes the kit
undispatchable. Reproduce this skeleton for every task; the punctuation is load-bearing:
### T1 — Short title
- status: pending
- model: <model-id>
- depends: (none)
- independent: yes
**Brief.** The self-contained brief text.
**Acceptance.** The checkable criteria.
**Verify.**
```bash
python3 -m unittest discover -s tests -p 'test_something.py'
```
Parser facts (exact): the task heading is ### <id> — <title> with a spaced em dash; field
lines start - status: / - model: / - depends: / - independent: with BARE values — no
backticks, no prose (depends: lists task IDS like T1, T2, never names); the brief follows
the literal marker **Brief.**, acceptance follows **Acceptance.**, and the verify command
is the first ``bash fence after the literal markerVerify.. Phase headings are## Phase N —
Self-check before handing off — run
python3 {{POLYTROPOS_ROOT}}/bin/copilot_execute.py status --kit tasks/kits/<slug>
and confirm every task lists with its status and no parse error; a kit that fails this check
crashes the execute driver mid-run.
Pin every task's model from the data, never from memory¶
Read the roster from data/pricing.copilot.json — do not invent model ids. Prefer the cost
engine:
python3 {{POLYTROPOS_ROOT}}/bin/copilot_pricing.py models— the roster with tiers.python3 {{POLYTROPOS_ROOT}}/bin/copilot_pricing.py est <PROFILE> <MODEL_OR_TIER>— the cost of a candidate for a task-size profile.
Pin by tier to the work:
- cheap — trivial, mechanical tasks (pinned verbatim copies, formatting, simple lookups).
- mid — the default lane: day-to-day coding, tests, docs, routine refactors.
- strong — the hard ones: multi-file features, tricky debugging, review, architecture.
- frontier — reserve for work a strong-tier model would genuinely fail; say why it earns the frontier tier when you use it.
Default a task to the mid tier unless it is clearly trivial (cheap) or clearly hard (strong).
Verify commands¶
Each task's verify command must be runnable from the repo root and must prove the acceptance
criteria mechanically. Verify commands must never invoke the real copilot CLI — dispatch
loops are the execute driver's job, not the verifier's, and a live dispatch spends real AI
Credits.
Model honesty¶
This skill carries no model: pin — planning quality tracks the model actually driving this
session, not a label. Before architecting anything nontrivial, either switch the session to
the frontier tier first (/model; find the frontier row via
python3 {{POLYTROPOS_ROOT}}/bin/copilot_pricing.py models --json — never name it from
memory), or hand the whole job to copilot --agent architect, whose frontmatter pin carries
the frontier model for you.
Hand off¶
Report the slug, the phase/task breakdown, and each task's model pin with a one-line
rationale. Execution belongs to /execute, not this skill — write the kit, then stop.
User model prefs (pins & excludes)¶
The user can pin which model a tier resolves to, or exclude models from consideration —
via the gitignored prefs file (prefs/copilot.json at the optimizer repo root) or the
driver's per-run flags. Check what is active before recommending anything:
python3 {{POLYTROPOS_ROOT}}/bin/copilot_pricing.py prefs
Honor it: never recommend an excluded model — if the natural pick is excluded, say so and
name the next candidate from the prefs output's tier resolution. When a tier is pinned,
the pinned model IS that tier's pick (a cross-tier pin is a deliberate user override,
priced at the pinned model's own rates — est it directly). Pins or excludes the user
states in the prompt count the same as the file. Write every kit task's model: pin
consistent with the active prefs — never an excluded id; where a tier is called for, use
that tier's resolved id from the prefs output.
Same-named agent¶
For persona-isolated runs — a separate dispatch that should carry its own model pin
instead of this session's model — use the architect custom agent: pick it in the /agent
picker, or run copilot --agent architect -p "<task>". This skill and that agent are the
same capability on two surfaces; the agent's frontmatter carries the model pin, this skill
runs on whatever model the session already uses.
Installed?¶
If the literal {{POLYTROPOS_ROOT}} text is still visible above, the bundle is not
installed — tell the user to run python3 bin/harness_select.py install --harness copilot
(then /skills reload picks the skills up in-session).
Optional context travel¶
When an explicit repository/kit/assignment and authorized startup config are supplied, use the native context-travel skill and read {{POLYTROPOS_ROOT}}/docs/CONTEXT-TRAVEL-SURFACES.md on demand for a bounded planning brief. Treat missing, stale, partial, or refused context as advisory; retain this workflow's authoritative sources, policy, pricing, permission, and mandatory verification rules. If no authorized context transport is available, continue this workflow and report context unavailable.