@rasensio/aidlc-content 2.37.0 → 2.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,25 @@
1
+ platform: copilot
2
+ # No native question picker AIDLC can name for every Copilot client, so the
3
+ # numbered-prose fallback is the mechanism (bring-back-copilot design C2, gain 5).
4
+ questions:
5
+ mechanism: null
6
+ directive: >-
7
+ Ask in numbered prose in the message: the one-line what it is with its
8
+ example, then the interrogative on its own line, then the options as a
9
+ numbered list, each with its observable effect on that example. At most four
10
+ options per question and at least two — a spec with more must be split or
11
+ narrowed. Mark the recommendation by putting it first and appending
12
+ "(Recommended)" to its label. Write the question file first and name its
13
+ path in one line, because the turn ends before an answer arrives and the
14
+ file is what survives it. Then end the turn, and do nothing that depends on
15
+ the answer until the user replies.
16
+ # No `subagents` entry: the task-agents rule's condition never holds on Copilot,
17
+ # so tasks run in the session (bring-back-copilot design C2, gain 4).
18
+ capabilities:
19
+ plan-mode:
20
+ phases: [ideation, requirements, design]
21
+ activation: >-
22
+ Switch Copilot to plan mode for this phase (the agent picker in the Chat
23
+ view, or `agent: plan`). Produce the phase artifact as a written plan and
24
+ have it agreed before any file is edited — these phases decide what to
25
+ build, not how to type it.
package/docs/index.yaml CHANGED
@@ -120,6 +120,21 @@ historical_paths:
120
120
  (hooks-carry-lifecycle-state/AC-18, AC-20), and nobody has agreed for this
121
121
  repository, so it does not exist here — an unattended session cannot give that
122
122
  consent on the user's behalf.
123
+ - path: .github/copilot-instructions.md
124
+ reason: >-
125
+ Copilot's instruction file, named in skills-and-platforms.md as where the copilot
126
+ adapter writes its `aidlc` block (bring-back-copilot/AC-3). This repository is not
127
+ configured for Copilot, so the adapter has never written it here.
128
+ - path: .github/skills
129
+ reason: >-
130
+ Copilot's skill directory, named in skills-and-platforms.md as where the copilot
131
+ adapter writes full skill bodies (bring-back-copilot/AC-3). Not written here, for
132
+ the reason above.
133
+ - path: .github/hooks
134
+ reason: >-
135
+ Copilot's hook file and its scripts (`.github/hooks/aidlc.json`,
136
+ `.github/hooks/aidlc/`), named in skills-and-platforms.md (bring-back-copilot/AC-13,
137
+ AC-14). Written only for a project configured for Copilot, which this one is not.
123
138
  - path: .aidlc/roadmap/milestones.yaml
124
139
  reason: >-
125
140
  The optional milestones file, named in roadmap.md and hygiene-and-compliance.md as
@@ -5,7 +5,8 @@
5
5
  The lifecycle is not code that runs — it is instructions an AI agent follows. So the framework's real
6
6
  payload is prose, and the problem is that every agent platform wants that prose in a different place and
7
7
  a different shape. Claude Code wants `.claude/skills/<name>/SKILL.md` and a `CLAUDE.md`. Codex wants
8
- `.agents/skills/<name>/SKILL.md` and an `AGENTS.md`.
8
+ `.agents/skills/<name>/SKILL.md` and an `AGENTS.md`. GitHub Copilot wants `.github/skills/<name>/SKILL.md`
9
+ and a `.github/copilot-instructions.md`.
9
10
 
10
11
  The naive answer is to write the instructions once per platform. That answer fails on the second edit:
11
12
  copies of "how the design phase works" become slightly different phases, and nobody can tell which one
@@ -62,11 +63,45 @@ The built path has the same trap in time: edit `packages/cli/src/` and skip the
62
63
  published package ships no `src/`, so users never see it. A `git checkout` can touch mtimes and give a
63
64
  false warning; a rebuild clears it. The global `npx` binary is not covered.
64
65
 
65
- Two adapters ship today — Claude Code and Codex. aidlc 2 dropped Cursor, Windsurf, Kiro and GitHub
66
- Copilot: two platforms built and tested well beat six built thinly, and those four never read the native
67
- skill metadata, hooks or agents the other two do. A project still configured for one of them gets one
68
- notice from `aidlc update` and keeps its files; `partitionPlatforms` in
69
- `packages/cli/src/compile/adapters/index.ts` is where `init`, `update` and `add skill` split the list.
66
+ Three adapters ship today — Claude Code, Codex and GitHub Copilot. aidlc 2 dropped Cursor, Windsurf, Kiro
67
+ and Copilot: platforms built and tested well beat six built thinly, and those four never read the native
68
+ skill metadata, hooks or agents the other two did. Copilot came back because a real user's company
69
+ approves only Copilot. It came back with the same treatment as the other two — full skill bodies, the
70
+ approval guard, tests over its output — and with a plain list of what it lacks (below). A project still
71
+ configured for Cursor, Windsurf or Kiro gets one notice from `aidlc update` and keeps its files;
72
+ `partitionPlatforms` in `packages/cli/src/compile/adapters/index.ts` is where `init`, `update` and
73
+ `add skill` split the list. A project set up for Copilot before aidlc 2 is adopted by `update`: its
74
+ skill files are rewritten and the `aidlc` block in `.github/copilot-instructions.md` is replaced in
75
+ place, with the text around it kept.
76
+
77
+ Copilot gets the **full canonical body** in `.github/skills/`, not a pointer, and the one instruction
78
+ file every Copilot client reads. It writes nothing under `.claude/` or `.agents/`. Copilot drops a skill
79
+ whose `name` is not its directory name, or whose `description` is over 1,024 characters, and says
80
+ nothing; the adapter's validator and a test over every shipped skill stop that. Copilot also reads
81
+ `.claude/skills/`, so a project with both Claude Code and Copilot may see each skill listed twice: once
82
+ as Claude Code's pointer, once in full. Both lead to the same body.
83
+
84
+ ### What does not work on Copilot
85
+
86
+ - **Cost tracking.** Copilot bills per request times a model multiplier and records no token counts.
87
+ `aidlc cost` and `aidlc metrics` say "not captured" for an instance Copilot ran, never `0`. A
88
+ session is known to be Copilot's when its `aidlc` commands run with `AIDLC_AGENT=copilot`, which the
89
+ instructions file asks for.
90
+ - **Autopilot running Copilot as its agent.** Autopilot drives Claude Code or Codex.
91
+ - **Per-tier models.** You pick the model in Copilot's own model picker; `skill_tiers` has no Copilot set.
92
+ - **The phase guard.** It asks before an edit, and Copilot can ask only in an interactive CLI.
93
+ `aidlc hook install --platform copilot --guard` refuses.
94
+ - **The read-only reviewer agent.** No agent file is written for Copilot. The review skill tells
95
+ Copilot to run the review in a fresh sub-agent told to edit nothing — read-only by request, not
96
+ enforced.
97
+ - **One agent per task.** Copilot's capability file declares no sub-agents, so tasks run in the session.
98
+ - **Windows `powershell` hooks.** The hooks are `bash` only, as on Claude Code.
99
+ - **The Copilot cloud agent and code review**, beyond what the instructions file gives them.
100
+ - **Visual Studio, JetBrains, Xcode and Eclipse.** Built and checked for Copilot CLI and VS Code.
101
+ - **A hook that times out lets the call through.** That is Copilot's rule, not AIDLC's. The approval
102
+ guard is far inside its 10-second limit, and the CLI's own terminal check still refuses the
103
+ human-only commands from an agent.
104
+
70
105
  Each adapter implements one method, `plan(skills, caps, ctx)`, returning an install plan. All of them also
71
106
  copy the canonical bodies to `.aidlc/skills/`, which is what lets the framework work with no CLI present
72
107
  at runtime: the skill files on disk are self-sufficient.
@@ -82,9 +117,9 @@ rather than on the implementation skill because the map reaches every implementa
82
117
  including `aidlc-continue`, the route an unattended run takes into implementation. Codex's `subagents`
83
118
  entry says the same in Codex's terms (`spawn_agent`, `wait_agent`); Codex sub-agents are on by default.
84
119
  Until then a Codex skill file carried no activation line at all, so the rule's condition could never
85
- hold there — the Codex adapter now writes its phase's lines above the body. Add
86
- another platform only once it is confirmed to have sub-agents; a skill naming a tool the platform lacks
87
- is worse than not offering the mode.
120
+ hold there — the Codex adapter now writes its phase's lines above the body. Copilot declares no
121
+ `subagents` entry. Add another platform only once it is confirmed to have sub-agents; a skill naming a
122
+ tool the platform lacks is worse than not offering the mode.
88
123
 
89
124
  **The reviewer agent** is the one place AIDLC asks a harness to enforce something rather than a prompt
90
125
  to request it. One definition, `packages/content/agents/aidlc-reviewer.md`, is written as
@@ -102,20 +137,22 @@ agent; whether a child keeps `read-only` under a workspace-write parent is what
102
137
  what happens without it: a fresh sub-agent told to edit nothing, read-only by request only. Because the
103
138
  reviewer cannot write, it replies with its findings files and the session that started it writes them
104
139
  unchanged. Claude Code reads `.claude/agents/` at session start, so an `update` that adds the agent
105
- takes effect in the next session.
140
+ takes effect in the next session. Copilot gets no agent file: the review skill opens with a paragraph
141
+ telling it to run the review in a fresh sub-agent told to edit nothing, and to say the review was
142
+ read-only by request, not enforced.
106
143
 
107
144
  **Skill metadata** is the other thing a skill declares for the harnesses rather than for the reader.
108
145
  Four optional keys sit in a content skill's frontmatter, and each adapter translates them; none of
109
146
  them reaches the shared copy under `.aidlc/skills/`, and a bad value fails the parse rather than
110
147
  quietly meaning the default.
111
148
 
112
- - `arguments` — a one-line hint, such as `<instance> <artifact>` on the review. Claude Code shows it
113
- as `argument-hint` when you type `/aidlc-review`.
149
+ - `arguments` — a one-line hint, such as `<instance> <artifact>` on the review. Claude Code and Copilot
150
+ show it as `argument-hint` when you type `/aidlc-review`.
114
151
  - `invocation` — who may start the skill. `auto`: the model, on a matching request. `routed`: reached
115
152
  through another skill or by name. `user`: only you, by name. On Claude Code `user` becomes
116
153
  `disable-model-invocation: true`, which the two autopilot skills carry so a loose sentence never
117
154
  launches background work; `routed` changes nothing there, because a description match is how Claude
118
- Code routes. On Codex, `agents/openai.yaml` beside each skill sets `allow_implicit_invocation`, true
155
+ Code routes. Copilot gets the same `disable-model-invocation: true`. On Codex, `agents/openai.yaml` beside each skill sets `allow_implicit_invocation`, true
119
156
  only for `aidlc` and `aidlc-continue`. That keeps Codex's listing — 2% of the context window, with
120
157
  descriptions shortened first when over it — to two skills. `aidlc-continue` stays implicit because
121
158
  autopilot names it in plain words, and the sub-agents line one-agent-per-task depends on is in the
@@ -124,13 +161,16 @@ quietly meaning the default.
124
161
  `mechanical` (testing, deployment). See below.
125
162
  - `activation: none` — the skill takes none of its phase's capability lines. The overview is declared
126
163
  `phase: ideation`, so before this it opened with "enter plan mode" although it writes nothing.
127
- Getting-started, first-activation, the review and the two autopilot skills declare it too.
128
- `aidlc-continue` must not: it is the route an unattended run takes into implementation.
164
+ Getting-started, first-activation, the review and the two autopilot skills declare it too, and so do
165
+ the entry, roadmap and constitution skills: on Copilot, whose plan-mode line covers ideation, `/aidlc`
166
+ otherwise opened by telling the agent to enter plan mode. `aidlc-continue` must not: it is the route
167
+ an unattended run takes into implementation.
129
168
 
130
- A Claude Code shim also gets `when_to_use` from the skill's `trigger`. Both managed blocks — the one in
131
- `CLAUDE.md` and the one in `AGENTS.md` — say where to read a skill the agent is not offered, so the
132
- entry skill's "follow the aidlc-autopilot skill" still works when the model cannot pick that skill
133
- itself.
169
+ A Claude Code shim also gets `when_to_use` from the skill's `trigger`; Copilot has no such key and
170
+ matches on the description, which already carries the trigger words. Every managed block — in
171
+ `CLAUDE.md`, `AGENTS.md` and `.github/copilot-instructions.md` — says where to read a skill the agent is
172
+ not offered, so the entry skill's "follow the aidlc-autopilot skill" still works when the model cannot
173
+ pick that skill itself.
134
174
 
135
175
  There is no tool profile, on purpose. Claude Code's `disallowed-tools` lasts until your next message,
136
176
  and an unattended run is a single message, so a read-only skill loaded anywhere in it would take Edit
@@ -193,10 +233,11 @@ The first real test (fieldmodel-apps, 2026-09-26) had all four questions decline
193
233
  rewritten with a primer and one running example, all four were answered, three against the
194
234
  recommendation.
195
235
 
196
- The same reasoning keeps the option rules in each directive. Claude Code's and Codex's both say two to
197
- four options, the recommendation first with "(Recommended)" on its label, and what to do until the
198
- answer arrives: Claude Code waits for the answer its call returns; Codex waits for the answer
199
- `request_user_input` returns or, with no picker, asks in numbered prose and ends the turn. A test reads
236
+ The same reasoning keeps the option rules in each directive. Every one says two to four options, the
237
+ recommendation first with "(Recommended)" on its label, and what to do until the answer arrives: Claude
238
+ Code waits for the answer its call returns; Codex waits for the answer `request_user_input` returns or,
239
+ with no picker, asks in numbered prose and ends the turn; Copilot always asks in numbered prose and ends
240
+ the turn. A test reads
200
241
  every registered platform's directive for those rules, so a new platform cannot ship without them.
201
242
  Because the file carries every configured platform, it says under `## Which section is yours` that an
202
243
  agent follows only the section headed with its own platform, which `AIDLC_AGENT` names under autopilot.
@@ -226,7 +267,13 @@ Both hooks run through the cost-capture shim, never a `PATH` lookup. For Codex,
226
267
  defaulting to no, and writes the project's `.codex/hooks.json` only on a yes (or on
227
268
  `aidlc hook install --platform codex`): Codex runs a project hook only after the user trusts it with
228
269
  `/hooks`, keyed on its content, and AIDLC never writes that trust — which is also why install rewrites
229
- the file only when its text would change.
270
+ the file only when its text would change. For Copilot, init writes `.github/hooks/aidlc.json`: the
271
+ session-start hook and the approval guard, as flat entries under `SessionStart` and `PreToolUse` — the
272
+ spelling both Copilot CLI and VS Code read. The guard's script and node resolver sit in
273
+ `.github/hooks/aidlc/`, so a Copilot-only project gets no `.claude/`. Copilot's `PreToolUse` takes no
274
+ matcher, so the guard runs before every tool call and lets through any that neither runs a shell nor
275
+ writes a file. It reads Copilot's tool names (`bash`, `create`, `edit`) and VS Code's as well as Claude
276
+ Code's, and blocks whenever it cannot run, as on Claude Code.
230
277
 
231
278
  **The phase guard** is the opt-in other half: `aidlc hook install --guard` adds a `PreToolUse` hook on
232
279
  `Edit`, `Write`, `MultiEdit` and `NotebookEdit` that **asks** before a project file outside `.aidlc/`
@@ -235,7 +282,8 @@ allows, and on anything it cannot read it says nothing, so the normal permission
235
282
  the reviewer guard's contract inverted on purpose: the reviewer guard is a security boundary and fails
236
283
  closed; this one enforces a process rule, and a hook that blocks legitimate work is the failure it
237
284
  must not have. Files written through `Bash` are not seen — a guardrail, not a boundary. Codex has no
238
- guard, because its `PreToolUse` can deny or rewrite a call but not ask. `aidlc hook remove --guard`
285
+ guard, because its `PreToolUse` can deny or rewrite a call but not ask. Copilot has none, because it can
286
+ ask only in an interactive CLI. `aidlc hook remove --guard`
239
287
  takes it away again.
240
288
 
241
289
  **Unattended mode.** Every skill assumes a person is there to answer. With `AIDLC_UNATTENDED=1`, an
@@ -283,8 +331,8 @@ any other command would be a cost every future change pays.
283
331
  anywhere; that split is what stops the question shape from being written for one platform's UI.
284
332
  - `packages/cli/src/hooks` — the lifecycle hooks: `lifecycle-context.ts` reads claims and the claimed
285
333
  instance's state without writing (it does not open the claim store, which creates directories and
286
- migrates legacy claims), `guard.ts` decides the phase guard's `ask`, and `install.ts` merges both
287
- platforms' hook files. `commands/hook.ts` is the `aidlc hook` command.
334
+ migrates legacy claims), `guard.ts` decides the phase guard's `ask`, `approval-guard.ts` renders the
335
+ approval guard for Claude Code and Copilot, and `install.ts` merges every platform's hook file. `commands/hook.ts` is the `aidlc hook` command.
288
336
  - `packages/content/resources/rules` — the six rules skills send readers to (the context rule, the
289
337
  always-read rule, the constitution rule, the Question Protocol, Creating an Instance, Lifecycle or
290
338
  Skill?), one file each. `packages/cli/src/compile/rules.ts` emits them to `.aidlc/resources/rules/`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rasensio/aidlc-content",
3
- "version": "2.37.0",
3
+ "version": "2.38.0",
4
4
  "bugs": "https://github.com/rasensio/aidlc-feedback/issues",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -5,6 +5,9 @@ phase: ideation
5
5
  priority: 99
6
6
  invocation: auto
7
7
  trigger: When the user invokes the aidlc skill directly or asks what lifecycle actions are available
8
+ # An interactive skill that produces no phase artifact, so no phase directive
9
+ # reaches it on any platform (bring-back-copilot/AC-10).
10
+ activation: none
8
11
  native_mode_hint:
9
12
  claude-code: >-
10
13
  This skill is an interactive entry point, not a phase artifact. Do not
@@ -6,6 +6,9 @@ priority: 90
6
6
  arguments: "[idea text]"
7
7
  invocation: routed
8
8
  trigger: When the user says "idea:", asks to capture/record an idea or roadmap item, wants to browse the roadmap, or wants to triage, promote, or drop an item, or asks to start a roadmap item in a new worktree
9
+ # An interactive skill that produces no phase artifact, so no phase directive
10
+ # reaches it on any platform (bring-back-copilot/AC-10).
11
+ activation: none
9
12
  native_mode_hint:
10
13
  claude-code: >-
11
14
  This skill is an interactive inbox, not a phase artifact. Do not enter
@@ -6,6 +6,9 @@ priority: 88
6
6
  arguments: "[path to the vision document]"
7
7
  invocation: routed
8
8
  trigger: When the user points at a product vision document, asks what this repo is or is not allowed to do, asks to create or update a project constitution (with or without a vision document) or to challenge or amend one of its entries, or when the vision document has changed
9
+ # An interactive skill that produces no phase artifact, so no phase directive
10
+ # reaches it on any platform (bring-back-copilot/AC-10).
11
+ activation: none
9
12
  native_mode_hint:
10
13
  claude-code: >-
11
14
  This skill imports a document and drafts prose for the user to correct. Do