Compare commits
39
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
40fcb08e94 | ||
|
|
f69fc15d7a | ||
|
|
6862a1541b | ||
|
|
884a5ab55b | ||
|
|
2b6dc55d1a | ||
|
|
67803f84f2 | ||
|
|
d792c9020f | ||
|
|
b293d46398 | ||
|
|
422385489d | ||
|
|
5fb6bec887 | ||
|
|
77f356949a | ||
|
|
864b43d364 | ||
|
|
5181fea473 | ||
|
|
c3d0ab31a3 | ||
|
|
89a6ee21ef | ||
|
|
00b382b623 | ||
|
|
9b20628813 | ||
|
|
a927cff75e | ||
|
|
ff128df074 | ||
|
|
010acfa82b | ||
|
|
9a2a3efd8e | ||
|
|
c99ac96c4d | ||
|
|
5e090b82aa | ||
|
|
4000b9e944 | ||
|
|
8eb3d3ae00 | ||
|
|
fd98bf3f4c | ||
|
|
60f9b22210 | ||
|
|
0223b6e1bf | ||
|
|
516c85cb48 | ||
|
|
8be0d2cfa1 | ||
|
|
060aad7592 | ||
|
|
0683e8f380 | ||
|
|
0db6ab7c28 | ||
|
|
aa95fa8472 | ||
|
|
c8520d444f | ||
|
|
6644d08eaa | ||
|
|
9705167cbe | ||
|
|
ebaf43af96 | ||
|
|
b63928cbc9 |
No files matched your search
@@ -3,9 +3,8 @@
|
|||||||
"description": "AI development skills for Claude Code, and for GitHub Copilot through apm — factory, design, implement, review, and cross-cutting workflows.",
|
"description": "AI development skills for Claude Code, and for GitHub Copilot through apm — factory, design, implement, review, and cross-cutting workflows.",
|
||||||
"version": "0.7.0",
|
"version": "0.7.0",
|
||||||
"owner": {
|
"owner": {
|
||||||
"name": "Defame1297",
|
"name": "Mortis",
|
||||||
"email": "[email protected]",
|
"url": "https://git.rkdr.net/Mortis/"
|
||||||
"url": "https://git.rkdr.net/Defame1297/"
|
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [
|
||||||
{
|
{
|
||||||
@@ -18,7 +17,7 @@
|
|||||||
{
|
{
|
||||||
"name": "bin",
|
"name": "bin",
|
||||||
"description": "Skills for everyday AI-assisted development work that is not tied to a single tool, forge or language, and has not yet been split into a focused plugin.",
|
"description": "Skills for everyday AI-assisted development work that is not tied to a single tool, forge or language, and has not yet been split into a focused plugin.",
|
||||||
"version": "2.0.0",
|
"version": "3.0.0",
|
||||||
"category": "Utilities",
|
"category": "Utilities",
|
||||||
"source": "./plugins/bin"
|
"source": "./plugins/bin"
|
||||||
},
|
},
|
||||||
@@ -46,7 +45,7 @@
|
|||||||
{
|
{
|
||||||
"name": "mattpocock",
|
"name": "mattpocock",
|
||||||
"description": "Matt Pocock's agent skills — planning, grilling, test-first development, triage and bug diagnosis — redistributed from upstream at a pinned release.",
|
"description": "Matt Pocock's agent skills — planning, grilling, test-first development, triage and bug diagnosis — redistributed from upstream at a pinned release.",
|
||||||
"version": "0.2.0",
|
"version": "0.4.0",
|
||||||
"category": "Productivity",
|
"category": "Productivity",
|
||||||
"source": "./plugins/mattpocock"
|
"source": "./plugins/mattpocock"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
"timeout": 380
|
"timeout": 380
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_apm_source": "Defame1297/holocron/plugins/kyberforge"
|
"_apm_source": "Mortis/Holocron/plugins/kyberforge"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
+1
-1
@@ -12,4 +12,4 @@
|
|||||||
ignore = dirty
|
ignore = dirty
|
||||||
[submodule "docs/wiki"]
|
[submodule "docs/wiki"]
|
||||||
path = docs/wiki
|
path = docs/wiki
|
||||||
url = git@git.rkdr.net:Defame1297/holocron.wiki.git
|
url = https://git.rkdr.net/Mortis/Holocron.wiki.git
|
||||||
@@ -35,7 +35,7 @@ Fall back to raw shell only when no skill covers it.
|
|||||||
|
|
||||||
## Key documents
|
## Key documents
|
||||||
|
|
||||||
Read `CONTEXT.md` at the start of every session — it is this repo's domain glossary, and the terms it defines are used unglossed everywhere else. It is not exhaustive: terms it does not carry are defined at their point of use, mostly in `docs/spec/`.
|
Read `GLOSSARY.md` at the start of every session — it is this repo's domain glossary, and the terms it defines are used unglossed everywhere else. It is not exhaustive: terms it does not carry are defined at their point of use, mostly in `docs/spec/`.
|
||||||
|
|
||||||
Read these on demand:
|
Read these on demand:
|
||||||
|
|
||||||
@@ -49,3 +49,17 @@ Read these on demand:
|
|||||||
- `docs/research/ai-coding-factory/ai-coding-factory-principles.md` — factory design rationale; read when implementing, auditing, or reviewing skills or factory structure
|
- `docs/research/ai-coding-factory/ai-coding-factory-principles.md` — factory design rationale; read when implementing, auditing, or reviewing skills or factory structure
|
||||||
- `docs/notes/factory-integration-decisions.md` — decisions from the factory integration grill; read when making skill authoring or factory design decisions
|
- `docs/notes/factory-integration-decisions.md` — decisions from the factory integration grill; read when making skill authoring or factory design decisions
|
||||||
- Governance rules are always in effect — `core/instructions/governance.md` (agent rules); `docs/research/governance_principles/CONTROLS.md`
|
- Governance rules are always in effect — `core/instructions/governance.md` (agent rules); `docs/research/governance_principles/CONTROLS.md`
|
||||||
|
|
||||||
|
## Agent skills
|
||||||
|
|
||||||
|
### Issue tracker
|
||||||
|
|
||||||
|
Issues and PRs live in Gitea (`Mortis/Holocron`), reached through the `gitea-*` skills. See `docs/agents/issue-tracker.md`.
|
||||||
|
|
||||||
|
### Triage labels
|
||||||
|
|
||||||
|
Default five roles, mapped onto Gitea's `Status/*` and `Reviewed/*` labels. See `docs/agents/triage-labels.md`.
|
||||||
|
|
||||||
|
### Domain docs
|
||||||
|
|
||||||
|
Single-context: `GLOSSARY.md` and `docs/adr/` at the repo root. See `docs/agents/domain.md`.
|
||||||
@@ -84,7 +84,7 @@ resolve against.
|
|||||||
_Avoid_: the marketplace, upstream
|
_Avoid_: the marketplace, upstream
|
||||||
|
|
||||||
**Provenance chain**:
|
**Provenance chain**:
|
||||||
The three-stage traceability record linking a skill back to its research inputs: `/research` produces
|
The three-stage traceability record linking a skill back to its research inputs: `/research-docs` produces
|
||||||
topic docs and a `sources.md`; the author skill records which sources informed which files in
|
topic docs and a `sources.md`; the author skill records which sources informed which files in
|
||||||
`references/sources.md` and `source_keys` frontmatter; `factory-audit` validates the chain is complete
|
`references/sources.md` and `source_keys` frontmatter; `factory-audit` validates the chain is complete
|
||||||
and internally consistent.
|
and internally consistent.
|
||||||
@@ -105,6 +105,53 @@ irreversible or high-stakes actions — architecture changes, production deploym
|
|||||||
configuration.
|
configuration.
|
||||||
_Avoid_: manual approval, gated action
|
_Avoid_: manual approval, gated action
|
||||||
|
|
||||||
|
**Human on the loop**:
|
||||||
|
Agents advance a work item from stage to stage unprompted and stop only at a **Gate**; the human
|
||||||
|
approves rather than orchestrates. Contrasts with **HITL**, where the human starts or approves each
|
||||||
|
step in the session itself.
|
||||||
|
_Avoid_: autonomous mode, autopilot
|
||||||
|
|
||||||
|
**Gate**:
|
||||||
|
A point a work item cannot pass until a human records approval in the issue tracker — a label or a
|
||||||
|
PR review approval. Agents read gates and never set them. A **Mandatory gate** is one nothing can
|
||||||
|
skip.
|
||||||
|
_Avoid_: checkpoint, approval step (a **Gate** is tracker state; a **HITL** pause is not)
|
||||||
|
|
||||||
|
### Delivery team
|
||||||
|
|
||||||
|
**Stage**:
|
||||||
|
One step of the delivery flow — spec, tickets, implement, review, verify — run as its own fresh
|
||||||
|
session that starts from tracker pointers and ends with a **Handoff comment**.
|
||||||
|
_Avoid_: phase, step
|
||||||
|
|
||||||
|
**Stage lead**:
|
||||||
|
The agent a **Stage** session runs as. Its body is the stage's flow; skills supply the know-how. It
|
||||||
|
is the only part of its stage that dispatches subagents, and no agent spans stages.
|
||||||
|
_Avoid_: lead, orchestrator agent, manager
|
||||||
|
|
||||||
|
**Role agent**:
|
||||||
|
A delivery-team agent defined by its function — planner, test author, implementer, QA, reviewer,
|
||||||
|
operator — not by a tool; it loads skills on demand. A role agent may itself be a **Stage lead**.
|
||||||
|
_Avoid_: specialist agent (implies a tool specialist), worker, persona
|
||||||
|
|
||||||
|
**Handoff comment**:
|
||||||
|
The fixed-shape tracker comment that ends every **Stage** — decisions, rejected options, evidence,
|
||||||
|
the pointer the next stage starts from, and open questions. The next stage reads it first.
|
||||||
|
_Avoid_: summary, status update
|
||||||
|
|
||||||
|
**Acceptance check**:
|
||||||
|
What the test author writes before any implementation, from a ticket's acceptance criteria: a
|
||||||
|
failing test where a test can express the criterion, otherwise a post-merge assertion about the
|
||||||
|
applied state with the reason no test applies. The operator verifies the assertions; the reviewer
|
||||||
|
judges the reasons.
|
||||||
|
_Avoid_: test case, verification step
|
||||||
|
|
||||||
|
**Odd job**:
|
||||||
|
A one-off operator action that is not the effect of a merge, such as an ad-hoc playbook run. It
|
||||||
|
reaches the operator directly on the human's instruction, skipping planner, implementer and reviewer,
|
||||||
|
and runs only in a **HITL** session.
|
||||||
|
_Avoid_: manual apply, ad-hoc task
|
||||||
|
|
||||||
### Documents
|
### Documents
|
||||||
|
|
||||||
**AGENTS.md**:
|
**AGENTS.md**:
|
||||||
@@ -147,7 +194,7 @@ The cross-provider term for a tracked unit of work. Gitea is this repo's canonic
|
|||||||
_Avoid_: ticket, card, task
|
_Avoid_: ticket, card, task
|
||||||
|
|
||||||
**Family prefix**:
|
**Family prefix**:
|
||||||
The shared first segment of a skill name (`git-`, `gitea-`, `apm-`, `agentsmd-`) marking a group of
|
The shared first segment of a skill name (`git-`, `gitea-`, `apm-`, `agentsmd-`, `delivery-`) marking a group of
|
||||||
siblings. No bare skill name is a **Family prefix** of another: `forge` exists, so no skill is named
|
siblings. No bare skill name is a **Family prefix** of another: `forge` exists, so no skill is named
|
||||||
`forge-*`, because a prefix that matches a live sibling reads as ownership rather than membership.
|
`forge-*`, because a prefix that matches a live sibling reads as ownership rather than membership.
|
||||||
_Avoid_: namespace, category
|
_Avoid_: namespace, category
|
||||||
+5
-1
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Patterns observed during development of this repo. Three or more entries on the same pattern → promote to `docs/spec/architecture.md` (or the relevant instruction file) as a standing rule.
|
Patterns observed during development of this repo. Three or more entries on the same pattern → promote to `docs/spec/architecture.md` (or the relevant instruction file) as a standing rule.
|
||||||
|
|
||||||
**Graduation rule:** When three or more entries cover the same pattern, the human reviews and promotes it to the appropriate standing location: `docs/spec/architecture.md` for structural and domain-level principles — `CONTEXT.md` is not a destination, its `## Principles` section was deleted and what was there now sits under that file's "AGENTS.md pattern" and "Reference conventions" headings — `core/instructions/coding.md` for coding conventions, `core/instructions/testing.md` for testing conventions, or `core/instructions/subagent-orchestration.md` for delegation conventions. Those four are the whole set — `core/instructions/` holds `coding.md`, `governance.md`, `subagent-orchestration.md` and `testing.md`, and nothing else. Git conventions have no standing file of their own: promote them to `core/instructions/coding.md`, or create a new instruction file deliberately rather than assuming one exists. The graduated entries are marked `[graduated → target file]` rather than deleted (audit trail).
|
**Graduation rule:** When three or more entries cover the same pattern, the human reviews and promotes it to the appropriate standing location: `docs/spec/architecture.md` for structural and domain-level principles — `GLOSSARY.md` is not a destination, its `## Principles` section was deleted and what was there now sits under that file's "AGENTS.md pattern" and "Reference conventions" headings — `core/instructions/coding.md` for coding conventions, `core/instructions/testing.md` for testing conventions, or `core/instructions/subagent-orchestration.md` for delegation conventions. Those four are the whole set — `core/instructions/` holds `coding.md`, `governance.md`, `subagent-orchestration.md` and `testing.md`, and nothing else. Git conventions have no standing file of their own: promote them to `core/instructions/coding.md`, or create a new instruction file deliberately rather than assuming one exists. The graduated entries are marked `[graduated → target file]` rather than deleted (audit trail).
|
||||||
|
|
||||||
**Who writes here:** The session-handoff skill (Chunk 3) prompts LESSONS.md extraction before closing a session. The human may also write directly.
|
**Who writes here:** The session-handoff skill (Chunk 3) prompts LESSONS.md extraction before closing a session. The human may also write directly.
|
||||||
|
|
||||||
@@ -141,3 +141,7 @@ The pre-push `run-tests` failed 2 of 3 full runs, on a different suite each time
|
|||||||
## 2026-09-16 — A static guard covers exactly the spellings its regex models
|
## 2026-09-16 — A static guard covers exactly the spellings its regex models
|
||||||
|
|
||||||
The guard added above (`tests/test-no-pipefail-early-exit-grep.sh`) reported the tree clean the day it landed, and the tree was not clean. Its pattern could not see a multi-stage pipeline (`echo x | filter | grep -q y`), a pipeline wrapped after a trailing `|`, or `set -o errexit -o pipefail` — the last a file-level miss that silently skipped every site in that file. Five live vulnerable sites sat in `tests/test-apm-current-hook.sh` while the suite reported green, and the fixtures carried 4 of the 12 vulnerable spellings that turned out to exist. A clean verdict from a static scanner is a claim about its regex, not about the tree. Fix: before trusting one, enumerate the spellings of the defect and measure the miss surface against them; and write the scanner's remit and its known false-positive shapes into the gate's own documentation, so the next reader knows what the green covers.
|
The guard added above (`tests/test-no-pipefail-early-exit-grep.sh`) reported the tree clean the day it landed, and the tree was not clean. Its pattern could not see a multi-stage pipeline (`echo x | filter | grep -q y`), a pipeline wrapped after a trailing `|`, or `set -o errexit -o pipefail` — the last a file-level miss that silently skipped every site in that file. Five live vulnerable sites sat in `tests/test-apm-current-hook.sh` while the suite reported green, and the fixtures carried 4 of the 12 vulnerable spellings that turned out to exist. A clean verdict from a static scanner is a claim about its regex, not about the tree. Fix: before trusting one, enumerate the spellings of the defect and measure the miss surface against them; and write the scanner's remit and its known false-positive shapes into the gate's own documentation, so the next reader knows what the green covers.
|
||||||
|
|
||||||
|
## 2026-11-13 — Hook-exported GIT_DIR turned test fixtures loose on the real repo
|
||||||
|
|
||||||
|
Under the `run-tests` pre-push hook, git exports `GIT_DIR` to the hook, so a bats fixture's `git -C "$tmp" init/commit/update-ref` hit this repo instead of its temp dir: 84 failures, `core.bare=true` and an emptied index on every push. The 2026-07-05 "repo root is a bare checkout" entry was likely this bug's symptom, not the repo's real shape. Fix: `tests/run-tests.sh` unsets git's repo-locating env vars before any suite runs. Rule: a test that builds its own repo must never inherit the caller's git environment.
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2026 Defame1297
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
@@ -101,7 +101,7 @@ Consume the packages through apm, the way this repo does — declare them as `de
|
|||||||
## Where to go next
|
## Where to go next
|
||||||
|
|
||||||
- [`AGENTS.md`](AGENTS.md) — the rules for AI agents working in this repo
|
- [`AGENTS.md`](AGENTS.md) — the rules for AI agents working in this repo
|
||||||
- [`CONTEXT.md`](CONTEXT.md) — domain language; read at the start of every session here
|
- [`GLOSSARY.md`](GLOSSARY.md) — domain language; read at the start of every session here
|
||||||
- [`docs/spec/architecture.md`](docs/spec/architecture.md) — directory structure, install pipeline, provider model
|
- [`docs/spec/architecture.md`](docs/spec/architecture.md) — directory structure, install pipeline, provider model
|
||||||
- [`docs/spec/gates.md`](docs/spec/gates.md) — the enforcement gates in depth
|
- [`docs/spec/gates.md`](docs/spec/gates.md) — the enforcement gates in depth
|
||||||
- [`docs/adr/`](docs/adr/) — architectural decisions; read before proposing structural changes
|
- [`docs/adr/`](docs/adr/) — architectural decisions; read before proposing structural changes
|
||||||
|
|||||||
+1032
-585
File diff suppressed because it is too large.
Load diff
@@ -16,24 +16,24 @@ targets:
|
|||||||
- claude
|
- claude
|
||||||
dependencies:
|
dependencies:
|
||||||
apm:
|
apm:
|
||||||
- git: git@git.rkdr.net:Defame1297/holocron.git
|
- git: https://git.rkdr.net/Mortis/Holocron.git
|
||||||
path: plugins/bin
|
path: plugins/bin
|
||||||
- git: git@git.rkdr.net:Defame1297/holocron.git
|
- git: https://git.rkdr.net/Mortis/Holocron.git
|
||||||
path: plugins/core
|
path: plugins/core
|
||||||
- git: git@git.rkdr.net:Defame1297/holocron.git
|
- git: https://git.rkdr.net/Mortis/Holocron.git
|
||||||
path: plugins/git
|
path: plugins/git
|
||||||
- git: git@git.rkdr.net:Defame1297/holocron.git
|
- git: https://git.rkdr.net/Mortis/Holocron.git
|
||||||
path: plugins/gitea
|
path: plugins/gitea
|
||||||
- git: git@git.rkdr.net:Defame1297/holocron.git
|
- git: https://git.rkdr.net/Mortis/Holocron.git
|
||||||
path: plugins/kyberforge
|
path: plugins/kyberforge
|
||||||
- git: git@git.rkdr.net:Defame1297/holocron.git
|
- git: https://git.rkdr.net/Mortis/Holocron.git
|
||||||
path: plugins/lint
|
path: plugins/lint
|
||||||
# Third-party skills (Matt Pocock's) arrive transitively through this
|
# Third-party skills (Matt Pocock's) arrive transitively through this
|
||||||
# wrapper rather than as direct entries, so the marketplace and this repo
|
# wrapper rather than as direct entries, so the marketplace and this repo
|
||||||
# consume them by the same path. The pins live in plugins/mattpocock/apm.yml:
|
# consume them by the same path. The pins live in plugins/mattpocock/apm.yml:
|
||||||
# third-party content is pinned, unlike the first-party entries above,
|
# third-party content is pinned, unlike the first-party entries above,
|
||||||
# which stay unpinned for default-branch parity.
|
# which stay unpinned for default-branch parity.
|
||||||
- git: git@git.rkdr.net:Defame1297/holocron.git
|
- git: https://git.rkdr.net/Mortis/Holocron.git
|
||||||
path: plugins/mattpocock
|
path: plugins/mattpocock
|
||||||
mcp: []
|
mcp: []
|
||||||
|
|
||||||
@@ -68,9 +68,8 @@ marketplace:
|
|||||||
description: AI development skills for Claude Code, and for GitHub Copilot through apm — factory, design, implement, review, and cross-cutting workflows.
|
description: AI development skills for Claude Code, and for GitHub Copilot through apm — factory, design, implement, review, and cross-cutting workflows.
|
||||||
version: 0.7.0
|
version: 0.7.0
|
||||||
owner:
|
owner:
|
||||||
name: Defame1297
|
name: Mortis
|
||||||
email: [email protected]
|
url: https://git.rkdr.net/Mortis/
|
||||||
url: https://git.rkdr.net/Defame1297/
|
|
||||||
|
|
||||||
# Default tag pattern used to resolve version ranges for each package.
|
# Default tag pattern used to resolve version ranges for each package.
|
||||||
build:
|
build:
|
||||||
|
|||||||
@@ -18,4 +18,4 @@ Three alternatives were rejected. Keeping the file-based fallback adds code comp
|
|||||||
|
|
||||||
The file-based model also had a structural weakness: issues in `docs/issues/` were invisible from the Gitea UI, making it impossible to track work, assign milestones, or filter by label without opening the repo locally. Gitea provides all of that natively.
|
The file-based model also had a structural weakness: issues in `docs/issues/` were invisible from the Gitea UI, making it impossible to track work, assign milestones, or filter by label without opening the repo locally. Gitea provides all of that natively.
|
||||||
|
|
||||||
The "Provider-agnostic issue tracker" glossary entry in CONTEXT.md is updated in the same workstream to remove the file-based phase framing. (Amended 2026-08-17: the CONTEXT.md trim renamed that entry to **Issue**; it still records Gitea as this repo's canonical tracker and still tells skills to say "linked issue" generically.) The `providers/gitea/` adapter path described in ADR-0011 was never implemented — Gitea integration runs entirely via MCP, not a provider adapter.
|
The "Provider-agnostic issue tracker" glossary entry in GLOSSARY.md is updated in the same workstream to remove the file-based phase framing. (Amended 2026-08-17: the GLOSSARY.md trim renamed that entry to **Issue**; it still records Gitea as this repo's canonical tracker and still tells skills to say "linked issue" generically.) The `providers/gitea/` adapter path described in ADR-0011 was never implemented — Gitea integration runs entirely via MCP, not a provider adapter.
|
||||||
@@ -4,16 +4,16 @@ Issue #84 wired Vale as a deterministic prefilter for `skill-audit`/`agent-audit
|
|||||||
`factory-audit`'s two flows by ADR-0025; read every mention of the pair below that way), scoped to
|
`factory-audit`'s two flows by ADR-0025; read every mention of the pair below that way), scoped to
|
||||||
exactly four pattern-matchable checks (imperative description opener, vague capability wording,
|
exactly four pattern-matchable checks (imperative description opener, vague capability wording,
|
||||||
generic reference-pointer padding, Copilot's dead `Use proactively` phrasing), documented only in
|
generic reference-pointer padding, Copilot's dead `Use proactively` phrasing), documented only in
|
||||||
CONTEXT.md's "Vale audit prefilter" section — never its own ADR — and explicitly excluding body
|
GLOSSARY.md's "Vale audit prefilter" section — never its own ADR — and explicitly excluding body
|
||||||
discipline, near-miss exclusion strength, and control calibration as non-goals. This ADR records a
|
discipline, near-miss exclusion strength, and control calibration as non-goals. This ADR records a
|
||||||
deferred PR #85 review item to broaden that coverage, retroactively captures #84's own rationale
|
deferred PR #85 review item to broaden that coverage, retroactively captures #84's own rationale
|
||||||
(since it was never recorded as a decision in its own right), and layers the expansion on top
|
(since it was never recorded as a decision in its own right), and layers the expansion on top
|
||||||
without reversing or weakening the original four rules.
|
without reversing or weakening the original four rules.
|
||||||
|
|
||||||
**2026-08-17 amendment.** The CONTEXT.md section named above no longer holds that documentation.
|
**2026-08-17 amendment.** The GLOSSARY.md section named above no longer holds that documentation.
|
||||||
CONTEXT.md was cut back to a glossary and the prefilter's mechanics — the two-copy style layout,
|
GLOSSARY.md was cut back to a glossary and the prefilter's mechanics — the two-copy style layout,
|
||||||
`vale-wrap.sh`, the `--config` argv defect, the rule inventory, and the 0-files-means-NOT-RUN
|
`vale-wrap.sh`, the `--config` argv defect, the rule inventory, and the 0-files-means-NOT-RUN
|
||||||
fallback — moved to `docs/spec/gates.md`. Read that file, not CONTEXT.md, for the harness itself;
|
fallback — moved to `docs/spec/gates.md`. Read that file, not GLOSSARY.md, for the harness itself;
|
||||||
this ADR still owns the scope decision.
|
this ADR still owns the scope decision.
|
||||||
|
|
||||||
**File scope stays the same.** `SKILL.md` plus agent files (`**/agents/*.md`,
|
**File scope stays the same.** `SKILL.md` plus agent files (`**/agents/*.md`,
|
||||||
|
|||||||
@@ -60,9 +60,9 @@ new hand-maintained manifest format.
|
|||||||
- Translating the existing plugins into `apm.yml` + `.apm/` and running the real conversion was
|
- Translating the existing plugins into `apm.yml` + `.apm/` and running the real conversion was
|
||||||
executed under issue #90 (https://git.dev.rkdr.net/Defame1297/holocron/issues/90), which tracks
|
executed under issue #90 (https://git.dev.rkdr.net/Defame1297/holocron/issues/90), which tracks
|
||||||
that work through to merge.
|
that work through to merge.
|
||||||
- `CONTEXT.md`'s "Plugin"/"Plugin marketplace" glossary entries were rewritten in issue #90 to
|
- `GLOSSARY.md`'s "Plugin"/"Plugin marketplace" glossary entries were rewritten in issue #90 to
|
||||||
describe the compiled-output model directly, rather than carrying a forward-pointer to this ADR.
|
describe the compiled-output model directly, rather than carrying a forward-pointer to this ADR.
|
||||||
Superseded 2026-08-17: CONTEXT.md was cut back to one-line definitions, and the compiled-output
|
Superseded 2026-08-17: GLOSSARY.md was cut back to one-line definitions, and the compiled-output
|
||||||
model is now described in `docs/spec/architecture.md`. The same trim deleted the "lint plugin"
|
model is now described in `docs/spec/architecture.md`. The same trim deleted the "lint plugin"
|
||||||
entry cited under Considered options below; that pointer now reads `docs/spec/architecture.md`'s
|
entry cited under Considered options below; that pointer now reads `docs/spec/architecture.md`'s
|
||||||
plugin scope table, which carries the repo-agnostic-versus-marketplace-specific argument.
|
plugin scope table, which carries the repo-agnostic-versus-marketplace-specific argument.
|
||||||
|
|||||||
@@ -339,9 +339,9 @@ mirror does carry, and is reported.
|
|||||||
- ADR-0015's "Status: executed" now carries a pointer to this ADR (see that ADR's Consequences)
|
- ADR-0015's "Status: executed" now carries a pointer to this ADR (see that ADR's Consequences)
|
||||||
rather than being rewritten — the manifest-compilation half of its execution was correct and
|
rather than being rewritten — the manifest-compilation half of its execution was correct and
|
||||||
stands; this ADR fixes the second, previously-unverified half.
|
stands; this ADR fixes the second, previously-unverified half.
|
||||||
- `CONTEXT.md`'s "Plugin" and "Plugin marketplace" glossary entries are updated to describe the
|
- `GLOSSARY.md`'s "Plugin" and "Plugin marketplace" glossary entries are updated to describe the
|
||||||
flat mirror as a second compiled-output category, alongside the existing
|
flat mirror as a second compiled-output category, alongside the existing
|
||||||
`.claude-plugin/plugin.json`/`marketplace.json` description. Superseded 2026-08-17: CONTEXT.md was
|
`.claude-plugin/plugin.json`/`marketplace.json` description. Superseded 2026-08-17: GLOSSARY.md was
|
||||||
cut back to one-line definitions and no longer describes either compiled-output category;
|
cut back to one-line definitions and no longer describes either compiled-output category;
|
||||||
`docs/spec/architecture.md` is where the mirror is documented.
|
`docs/spec/architecture.md` is where the mirror is documented.
|
||||||
- A future apm release that ships a native `.apm/`-aware plugin.json compiler (closing this gap
|
- A future apm release that ships a native `.apm/`-aware plugin.json compiler (closing this gap
|
||||||
|
|||||||
@@ -69,14 +69,14 @@ answers to `git-commits` and `kyberforge:skill-audit` to `skill-audit` (**Amende
|
|||||||
2026-09-15:** `skill-audit` was removed and its flow merged into `factory-audit`, so the live
|
2026-09-15:** `skill-audit` was removed and its flow merged into `factory-audit`, so the live
|
||||||
example is `kyberforge:factory-audit` to `factory-audit`; the rule is unchanged). This is not
|
example is `kyberforge:factory-audit` to `factory-audit`; the rule is unchanged). This is not
|
||||||
configurable —
|
configurable —
|
||||||
a project skill has no plugin to prefix. `AGENTS.md` and `CONTEXT.md` are updated to name the bare
|
a project skill has no plugin to prefix. `AGENTS.md` and `GLOSSARY.md` are updated to name the bare
|
||||||
form, which is what apm deploys and the only form a repo consuming holocron through apm gets.
|
form, which is what apm deploys and the only form a repo consuming holocron through apm gets.
|
||||||
|
|
||||||
**Correction (2026-08-14): the namespaced form did not stop resolving.** *Superseded by the
|
**Correction (2026-08-14): the namespaced form did not stop resolving.** *Superseded by the
|
||||||
2026-08-17 correction below: the machine state this cites is no longer present. Both are kept
|
2026-08-17 correction below: the machine state this cites is no longer present. Both are kept
|
||||||
because the pair is the finding — read neither as current.* An earlier revision of
|
because the pair is the finding — read neither as current.* An earlier revision of
|
||||||
this consequence said every `<plugin>:<skill>` reference "was stale the moment the switch landed",
|
this consequence said every `<plugin>:<skill>` reference "was stale the moment the switch landed",
|
||||||
and `AGENTS.md`/`CONTEXT.md` were written to match. That contradicts the "User scope is untouched,
|
and `AGENTS.md`/`GLOSSARY.md` were written to match. That contradicts the "User scope is untouched,
|
||||||
deliberately" consequence below, and the contradiction resolves against it: `~/.claude.json` still
|
deliberately" consequence below, and the contradiction resolves against it: `~/.claude.json` still
|
||||||
enables `core`, `git`, `gitea`, `kyberforge` and `lint` at user scope, so both names are live at
|
enables `core`, `git`, `gitea`, `kyberforge` and `lint` at user scope, so both names are live at
|
||||||
once and a working `gitea:gitea-prs` is the user-scope copy answering. That doubling is the same
|
once and a working `gitea:gitea-prs` is the user-scope copy answering. That doubling is the same
|
||||||
@@ -97,7 +97,7 @@ are not there, and neither is the state the *original* consequence described bef
|
|||||||
about the namespaced form has now been written twice off two different observations of the same
|
about the namespaced form has now been written twice off two different observations of the same
|
||||||
machine, and this ADR has already reversed itself once on it. That is the finding: the fact is
|
machine, and this ADR has already reversed itself once on it. That is the finding: the fact is
|
||||||
machine state, not a property of this decision, and it changes without any commit. No instruction
|
machine state, not a property of this decision, and it changes without any commit. No instruction
|
||||||
file — `AGENTS.md`, `CONTEXT.md`, or a skill body — should assert either way whether
|
file — `AGENTS.md`, `GLOSSARY.md`, or a skill body — should assert either way whether
|
||||||
`<plugin>:<skill>` resolves. The rule that survives every observation is the one that was always the
|
`<plugin>:<skill>` resolves. The rule that survives every observation is the one that was always the
|
||||||
actionable half: write the bare name, because it is the only form `apm install` produces.
|
actionable half: write the bare name, because it is the only form `apm install` produces.
|
||||||
|
|
||||||
|
|||||||
@@ -368,7 +368,7 @@ the two gotchas that were over budget, because neither was shared:
|
|||||||
- the 112-word body-word-gate bullet was two separate pre-merge gotchas welded together, a skill half
|
- the 112-word body-word-gate bullet was two separate pre-merge gotchas welded together, a skill half
|
||||||
and an agent half.
|
and an agent half.
|
||||||
|
|
||||||
A dispatch body is the dispatch table *plus the gates common to every branch* (CONTEXT.md; the
|
A dispatch body is the dispatch table *plus the gates common to every branch* (GLOSSARY.md; the
|
||||||
skill-flow rubric `references/skill-body-discipline.md`). Keeping a single-branch gotcha in it
|
skill-flow rubric `references/skill-body-discipline.md`). Keeping a single-branch gotcha in it
|
||||||
contradicts that definition. Moving it into its flow file costs no read either, because the body
|
contradicts that definition. Moving it into its flow file costs no read either, because the body
|
||||||
already loads exactly one flow file on every invocation by construction.
|
already loads exactly one flow file on every invocation by construction.
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ pre-approved. Add the tool once its name is sourced for each target.
|
|||||||
`allowed-tools` and instruct spawning subagents — `forge` from `references/author-routes.md` and
|
`allowed-tools` and instruct spawning subagents — `forge` from `references/author-routes.md` and
|
||||||
`references/version-bump.md`, not from its `SKILL.md`. That shows they spawn, not that a run
|
`references/version-bump.md`, not from its `SKILL.md`. That shows they spawn, not that a run
|
||||||
succeeded. `skill-author/SKILL.md:24` forbids spawning a subagent to recheck one's own work, which
|
succeeded. `skill-author/SKILL.md:24` forbids spawning a subagent to recheck one's own work, which
|
||||||
is a different question and unaffected here. `CONTEXT.md` says a plugin-scope agent delegates to
|
is a different question and unaffected here. `GLOSSARY.md` says a plugin-scope agent delegates to
|
||||||
skills because it cannot disclose to itself; nothing there bans a skill from delegating.
|
skills because it cannot disclose to itself; nothing there bans a skill from delegating.
|
||||||
|
|
||||||
**The security cost is real and not mitigated.** "The orchestrator alone writes files" is prose,
|
**The security cost is real and not mitigated.** "The orchestrator alone writes files" is prose,
|
||||||
@@ -44,4 +44,4 @@ the list was kept.
|
|||||||
|
|
||||||
Rejected: dropping `allowed-tools` on the premise that it blocked spawning (unsupported by the
|
Rejected: dropping `allowed-tools` on the premise that it blocked spawning (unsupported by the
|
||||||
repo's own sources, and it widens the tool surface for nothing), and banning spawning in skills
|
repo's own sources, and it widens the tool surface for nothing), and banning spawning in skills
|
||||||
(three skills instruct it, and `CONTEXT.md` does not forbid it).
|
(three skills instruct it, and `GLOSSARY.md` does not forbid it).
|
||||||
@@ -13,7 +13,7 @@ file, so 36 entries reported INFO and nothing failed. Measured by running the sc
|
|||||||
directories (27 with a `references/sources.md`, 11 without), since nothing else runs it over the corpus.
|
directories (27 with a `references/sources.md`, 11 without), since nothing else runs it over the corpus.
|
||||||
|
|
||||||
We decided that `Research doc:` names exactly one **Research registry** (the term is in
|
We decided that `Research doc:` names exactly one **Research registry** (the term is in
|
||||||
`CONTEXT.md`), as the spec always said. Slug-to-H2 lookup in the registry is the only provenance link
|
`GLOSSARY.md`), as the spec always said. Slug-to-H2 lookup in the registry is the only provenance link
|
||||||
that can be verified deterministically; a topic doc has no per-source H2 to check against. A link to
|
that can be verified deterministically; a topic doc has no per-source H2 to check against. A link to
|
||||||
the topic doc that digested a source stays as free-text annotation and is not checked.
|
the topic doc that digested a source stays as free-text annotation and is not checked.
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
# `research` is upstream's single-question skill; bin's reference-tree skill becomes `research-docs`
|
||||||
|
|
||||||
|
**Status: accepted (2026-11-12).** Resolves #161. Builds on ADR-0029.
|
||||||
|
|
||||||
|
Upstream `wayfinder` (mattpocock `v1.3.2`) resolves a `wayfinder:research` ticket by having a
|
||||||
|
fresh-context subagent call the Skill tool with `research` (`SKILL.md` lines 77 and 115). It expects
|
||||||
|
upstream's contract: investigate **one question** against primary sources and write **one** cited
|
||||||
|
findings note, saved where the repo keeps such notes, that a pending decision waits on.
|
||||||
|
|
||||||
|
The bare name `research` resolved instead to bin's first-party skill, whose contract differs in
|
||||||
|
three ways that matter to wayfinder:
|
||||||
|
|
||||||
|
- It researches a **tool, library or API**, not an arbitrary question.
|
||||||
|
- It writes a **reference tree** (`<topic>.md` files plus a `sources.md` registry), the input of the
|
||||||
|
Provenance chain that `factory-audit` validates.
|
||||||
|
- It **stops and asks** when no output path is named. A wayfinder research subagent runs AFK, so
|
||||||
|
it stalls there.
|
||||||
|
|
||||||
|
The collision was silent: nothing warned that wayfinder's call landed on another contract.
|
||||||
|
|
||||||
|
**Decision.** Rename bin's skill to `research-docs` (bin 2.0.0 → 3.0.0, skill 1.0.2 → 2.0.0) and pin
|
||||||
|
upstream `mattpocock/skills/skills/engineering/research#v1.3.2` in `plugins/mattpocock` (0.3.0 →
|
||||||
|
0.4.0). Callers that want the reference tree route to `research-docs`: `write-docs` does, and
|
||||||
|
`GLOSSARY.md`'s Provenance chain and `skill-author`'s template name it.
|
||||||
|
|
||||||
|
**Rejected.**
|
||||||
|
|
||||||
|
- **Broaden bin's skill to cover both.** It would carry two output contracts behind one
|
||||||
|
description, against ADR-0020/0021's one-boundary rule, and the stop-and-ask gotcha that protects
|
||||||
|
the reference-tree run is exactly what stalls the AFK one.
|
||||||
|
- **Replace bin's skill with upstream's.** It drops the reference-tree pipeline the Provenance chain
|
||||||
|
depends on.
|
||||||
|
- **Rename bin's skill alone.** Upstream's call cannot be renamed without forking `wayfinder`, so it
|
||||||
|
would resolve to nothing.
|
||||||
|
- **Accept the partial fit.** Decision research that is not about one tool's docs keeps failing,
|
||||||
|
silently.
|
||||||
|
|
||||||
|
**Accepted cost: overlapping triggers.** Both skills are model-invoked. Upstream's description
|
||||||
|
("docs or API facts gathered") overlaps `research-docs`', and it cannot be edited without a fork.
|
||||||
|
`research-docs` carries the boundary clause ("Not a single question a decision waits on, answered in
|
||||||
|
one findings note -> `research`"); upstream's side has none, so a request to "research library X"
|
||||||
|
may route to either. Revisit if misrouting shows up in practice.
|
||||||
|
|
||||||
|
**Breaking for consumers.** Anyone invoking `research` for a reference tree now gets upstream's
|
||||||
|
single-note skill. That is why bin takes a major bump.
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
# First-party delivery team replaces mattpocock's delivery chain
|
||||||
|
|
||||||
|
We will replace `mattpocock`'s delivery chain (`to-spec`, `to-tickets`, `triage`, `implement`,
|
||||||
|
`implement-spec`, `code-review`, `tdd`) with a first-party team package. Upstream's stages are skills,
|
||||||
|
not agents, and most are hand-invoked, so no agent can chain them; forking would keep that shape.
|
||||||
|
Delivery runs as one fresh session per **Stage** (spec → tickets → implement → review → verify), each
|
||||||
|
started as its **Stage lead** agent, whose body is the stage flow and which loads skills for the
|
||||||
|
know-how. There is no lead spanning stages: work passes only through tracker issues, blocking links,
|
||||||
|
branches and PRs, each stage ending with a **Handoff comment**, and **Gates** (spec approved, PR
|
||||||
|
approved) are human-set tracker state. `mattpocock`'s thinking tools (`wayfinder`, `grilling`,
|
||||||
|
`research`, …) stay as a dependency. Decided in holocron#170.
|
||||||
|
|
||||||
|
## Considered Options
|
||||||
|
|
||||||
|
- **One LLM lead across all stages, dispatching leaf role agents** (the first resolution of #170):
|
||||||
|
rejected — the orchestrator becomes a long-running context, and a lead in front of single-role
|
||||||
|
stages only adds a lossy hand-off. Practice puts the orchestrator in the main session.
|
||||||
|
- **A lead skill plus a thin agent wrapper**: rejected once v1 targeted Claude Code and Copilot CLI,
|
||||||
|
which both start a main session as a custom agent that can dispatch subagents.
|
||||||
|
- **A custom driver script chaining stages**: rejected — sequencing will come from Gitea Actions on
|
||||||
|
gate events (run mode, later); v1 is step mode, the human launching each stage.
|
||||||
|
|
||||||
|
## Consequences
|
||||||
|
|
||||||
|
- We own the chain's maintenance from now on; upstream improvements arrive only by deliberate porting.
|
||||||
|
- Only the implement stage has a team: test author → implementer (tests read-only) → QA, sequential.
|
||||||
|
After the first push the implement-stage lead opens a draft PR (Gitea `WIP:` title prefix, which
|
||||||
|
blocks merge) and QA judges that PR's CI checks; when QA passes, the lead removes `WIP:`, and that
|
||||||
|
hand-off starts the review stage. Most repos run CI on PRs, not branch pushes, so the draft PR keeps
|
||||||
|
QA before review without changing any consuming repo's workflows.
|
||||||
|
- The test author always writes **Acceptance checks**: failing tests where a test applies, otherwise
|
||||||
|
post-merge assertions with a stated reason, which the operator verifies and the reviewer judges.
|
||||||
|
- Agents never duplicate deterministic checks: pre-commit hooks gate commits, CI (on the PR) runs
|
||||||
|
tests, lint, Molecule and plan/diff output; QA, reviewer and operator add only judgement.
|
||||||
|
- *Amended 2026-11-22 (holocron#173): QA ran on the pushed branch before the PR opened, and CI was
|
||||||
|
required on branch push as well as PR; both moved to the draft PR, and acceptance checks were
|
||||||
|
added.*
|
||||||
|
- Claude Code and Copilot CLI are the tested targets; other runtimes are best effort.
|
||||||
|
- Infra applies happen by merge (GitOps for Flux, Ansible and OpenTofu alike), so the PR gate is the
|
||||||
|
apply gate; the operator verifies and opens revert PRs, never reverting on its own.
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
# Credentials, not hooks, are the agent safety boundary
|
||||||
|
|
||||||
|
The infra packages (`ansible`, `gitops`, `k8s`, later `tofu`) and the `delivery` team keep agents
|
||||||
|
safe by what they cannot do, not by what they are told: stage sessions hold no apply credentials, no
|
||||||
|
vault password and no Secret read, and every infra change applies by merge after a human approves the
|
||||||
|
PR. Hooks and skill instructions sit above that boundary as guardrails, because every provider
|
||||||
|
documents hooks as a guardrail rather than a security boundary and a hook "ask" works only in Claude
|
||||||
|
Code and Copilot CLI. Decided in holocron#172.
|
||||||
|
|
||||||
|
## Action tiers
|
||||||
|
|
||||||
|
Every package skill classifies each command it drives into one tier:
|
||||||
|
|
||||||
|
- **Read** — lint, syntax check, dry run, diff, `kubectl get/describe/logs`, `flux get`, `flux diff`,
|
||||||
|
`kubectl diff`. Free.
|
||||||
|
- **Propose** — branch, commit, push, open a PR, comment. Free.
|
||||||
|
- **Apply-by-merge** — every change to infrastructure. Happens only through an approved merge; the
|
||||||
|
agent never runs it.
|
||||||
|
- **Odd job** — `ansible-playbook` outside check mode, `tofu apply`, `flux reconcile`. The agent runs
|
||||||
|
it, only in a HITL session the human started and supplied the apply credentials to; that session
|
||||||
|
takes its instruction from the human and loads no issue or PR text. The guard hook asks before each
|
||||||
|
command.
|
||||||
|
- **Never** — `kubectl apply/delete/edit/patch/scale`, `helm install/upgrade/rollback`,
|
||||||
|
`tofu destroy`, `tofu state rm|mv|push|pull|show`, `git commit|push --no-verify` and `SKIP=`,
|
||||||
|
`ansible-vault view/decrypt/edit`, `kubeseal --recovery-unseal`, reading vault password files,
|
||||||
|
private keys, `.tfstate` or Secret objects.
|
||||||
|
|
||||||
|
## Secrets
|
||||||
|
|
||||||
|
Agents never decrypt Ansible Vault or Sealed Secrets and never read the material that would. Stage
|
||||||
|
sessions use a kubeconfig bound to the built-in `view` ClusterRole (which excludes Secrets) plus a
|
||||||
|
read-only aggregated role for `SealedSecret` objects. Ansible stage work runs only what succeeds with
|
||||||
|
a placeholder vault password (`--syntax-check`, `ansible-lint`, inventory reads); a real
|
||||||
|
`--check --diff` runs in CI, which holds the password.
|
||||||
|
|
||||||
|
## Enforcement layers
|
||||||
|
|
||||||
|
1. Skill instructions name each command's tier.
|
||||||
|
2. `delivery` ships one portable guard hook: deny the Never tier everywhere; ask for odd-job commands
|
||||||
|
where the runtime supports ask (Claude Code, Copilot CLI), deny them elsewhere.
|
||||||
|
3. Host permission settings are documented, not shipped.
|
||||||
|
4. **Credential boundary** in each consuming repo — the real control:
|
||||||
|
- agents act as a dedicated Gitea bot user;
|
||||||
|
- branch protection: approvals allowlist of humans only, dismiss stale approvals, bot off the
|
||||||
|
merge allowlist, protected file patterns for agent config, AGENTS.md, CI workflows and tests;
|
||||||
|
- every PR carries the dry run (`--check --diff`, `flux diff`, later `tofu plan`) as a required
|
||||||
|
status and a PR comment; apply happens after merge;
|
||||||
|
- stage leads start only when a user on the human allowlist in `docs/agents/delivery.md` set the
|
||||||
|
gate label, checked against the issue timeline;
|
||||||
|
- a CI check fails if test paths changed after the test author's commit; the implementer hands
|
||||||
|
disputed tests back instead of editing them.
|
||||||
|
5. Pre-commit and CI in the consuming repo are the deterministic backstop.
|
||||||
|
|
||||||
|
## Considered Options
|
||||||
|
|
||||||
|
- **Agent drafts odd jobs, human runs them** (no agent ever holds apply credentials): rejected by the
|
||||||
|
owner in favour of agent-run odd jobs in HITL sessions with per-command ask.
|
||||||
|
- **Gated vault-touching check runs, or a scoped vault credential for agents**: rejected — moving
|
||||||
|
`--check --diff` to CI removes the conflict without loosening the read rule.
|
||||||
|
- **Apply before merge** (Atlantis model): rejected — Gitea has no native support; merge-then-apply
|
||||||
|
with the dry run as a required check is the existing pattern in the reference repo.
|
||||||
|
- **A deny hook on test paths**: rejected for v1 — a repo-wide hook cannot portably tell the test
|
||||||
|
author from the implementer, and misses edits made through the shell.
|
||||||
|
- **PATH wrapper scripts**: rejected — trivially bypassed.
|
||||||
|
|
||||||
|
## Consequences
|
||||||
|
|
||||||
|
- Most of the safety model is setup in each consuming repo, not code in these packages; it is
|
||||||
|
documented there (`docs/agents/delivery.md`) and checked before the destination test.
|
||||||
|
- **Accepted risk:** odd jobs leave no durable record beyond the session itself. This departs from
|
||||||
|
the governance rule to log agent actions in reviewable form; the owner accepted it.
|
||||||
|
- **Accepted risk:** an odd-job session holds apply credentials; its safety rests on the human
|
||||||
|
starting it, keeping untrusted text out of it, and answering each ask.
|
||||||
|
- Headless sessions running repo-controlled config are not addressed here; launching from pinned
|
||||||
|
config is part of run mode.
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# Domain Docs
|
||||||
|
|
||||||
|
How the engineering skills should consume this repo's domain documentation when exploring the codebase.
|
||||||
|
|
||||||
|
## Before exploring, read these
|
||||||
|
|
||||||
|
- **`GLOSSARY.md`** at the repo root, or
|
||||||
|
- **`GLOSSARY-MAP.md`** at the repo root if it exists: it points at one `GLOSSARY.md` per context. Read each one relevant to the topic.
|
||||||
|
- **`docs/adr/`**: read ADRs that touch the area you're about to work in. In multi-context repos, also check `src/<context>/docs/adr/` for context-scoped decisions.
|
||||||
|
|
||||||
|
If any of these files don't exist, **proceed silently**. Don't flag their absence; don't suggest creating them upfront. The `/domain-modeling` skill (reached via `/grill-with-docs` and `/improve-codebase-architecture`) creates them lazily when terms or decisions actually get resolved.
|
||||||
|
|
||||||
|
## File structure
|
||||||
|
|
||||||
|
Single-context repo (most repos):
|
||||||
|
|
||||||
|
```
|
||||||
|
/
|
||||||
|
├── GLOSSARY.md
|
||||||
|
├── docs/adr/
|
||||||
|
│ ├── 0001-event-sourced-orders.md
|
||||||
|
│ └── 0002-postgres-for-write-model.md
|
||||||
|
└── src/
|
||||||
|
```
|
||||||
|
|
||||||
|
Multi-context repo (presence of `GLOSSARY-MAP.md` at the root):
|
||||||
|
|
||||||
|
```
|
||||||
|
/
|
||||||
|
├── GLOSSARY-MAP.md
|
||||||
|
├── docs/adr/ ← system-wide decisions
|
||||||
|
└── src/
|
||||||
|
├── ordering/
|
||||||
|
│ ├── GLOSSARY.md
|
||||||
|
│ └── docs/adr/ ← context-specific decisions
|
||||||
|
└── billing/
|
||||||
|
├── GLOSSARY.md
|
||||||
|
└── docs/adr/
|
||||||
|
```
|
||||||
|
|
||||||
|
## Use the glossary's vocabulary
|
||||||
|
|
||||||
|
When your output names a domain concept (in an issue title, a refactor proposal, a hypothesis, a test name), use the term as defined in `GLOSSARY.md`. Don't drift to synonyms the glossary explicitly avoids.
|
||||||
|
|
||||||
|
If the concept you need isn't in the glossary yet, that's a signal: either you're inventing language the project doesn't use (reconsider) or there's a real gap (note it for `/domain-modeling`).
|
||||||
|
|
||||||
|
## Flag ADR conflicts
|
||||||
|
|
||||||
|
If your output contradicts an existing ADR, surface it explicitly rather than silently overriding:
|
||||||
|
|
||||||
|
> _Contradicts ADR-0007 (event-sourced orders), but worth reopening because…_
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
# Issue tracker: Gitea
|
||||||
|
|
||||||
|
Issues and PRs for this repo live in Gitea at `git.rkdr.net`, repo `Mortis/Holocron` (ADR-0007: Gitea is the exclusive tracker; there is no file-based fallback).
|
||||||
|
|
||||||
|
## How skills reach it
|
||||||
|
|
||||||
|
Use the plugin skills, which wrap the Gitea MCP tools (`mcp__gitea__*`); do not shell out to `gh`/`glab`/`tea`.
|
||||||
|
|
||||||
|
- Create, read, comment on, close, label, search issues → `gitea-issues`
|
||||||
|
- Label and milestone definitions → `gitea-labels-milestones`
|
||||||
|
- Pull requests → `gitea-prs`
|
||||||
|
|
||||||
|
## Conventions
|
||||||
|
|
||||||
|
- Issue and PR numbers share one number space; confirm which domain a bare `#N` belongs to.
|
||||||
|
- Apply triage state with the `Status/*` labels mapped in `docs/agents/triage-labels.md`.
|
||||||
|
- "Publish to the issue tracker" means create a Gitea issue; "fetch the relevant ticket" means read it with `gitea-issues`.
|
||||||
|
|
||||||
|
## Wayfinding operations
|
||||||
|
|
||||||
|
How the `wayfinder` skill's map and tickets map onto Gitea, which has native issue dependencies but no sub-issues.
|
||||||
|
|
||||||
|
- **Labels**: the skill's `wayfinder:<x>` labels are expressed as the Gitea scoped labels `Wayfinder/<X>`, matching the repo's `Scope/Value` convention: `wayfinder:map` is `Wayfinder/Map`, `wayfinder:research` is `Wayfinder/Research`, and so on.
|
||||||
|
- **Map**: an issue labelled `Wayfinder/Map`, paired with a milestone of the same title (`Map: <name>`).
|
||||||
|
- **Child ticket**: an issue whose body starts with `Part of #<map>`, assigned to the map's milestone, carrying exactly one type label (`Wayfinder/Research`, `Wayfinder/Prototype`, `Wayfinder/Grilling`, `Wayfinder/Task`) and no `Status/*` label.
|
||||||
|
- **Blocking**: Gitea's native issue dependencies (`issue_write` `add_dependency`, `dependency_type: blocked_by`).
|
||||||
|
- **Claim**: assign the ticket to the dev driving the map before any work.
|
||||||
|
- **Frontier query**: open issues in the map's milestone with no assignee, then drop any whose `get_blocked_by` lists an open issue.
|
||||||
|
- **Research findings**: committed on a `research/<name>` branch that is pushed but never merged; the ticket's resolution comment links it.
|
||||||
|
|
||||||
|
## PRs as a request surface
|
||||||
|
|
||||||
|
Off. Only issues feed the triage queue; PRs are not triaged as requests.
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
# Triage Labels
|
||||||
|
|
||||||
|
The skills speak in terms of five canonical triage roles. This file maps those roles to the label strings in this repo's Gitea tracker, reusing the existing `Status/` and `Reviewed/` vocabulary.
|
||||||
|
|
||||||
|
| Label in mattpocock/skills | Label in our tracker | Meaning |
|
||||||
|
| -------------------------- | ------------------------ | ---------------------------------------- |
|
||||||
|
| `needs-triage` | `Status/Needs Triage` | Maintainer needs to evaluate this issue |
|
||||||
|
| `needs-info` | `Status/Need More Info` | Waiting on reporter for more information |
|
||||||
|
| `ready-for-agent` | `Status/Ready for Agent` | Fully specified, ready for an AFK agent |
|
||||||
|
| `ready-for-human` | `Status/Ready for Human` | Requires human implementation |
|
||||||
|
| `wontfix` | `Reviewed/Won't Fix` | Will not be actioned |
|
||||||
|
|
||||||
|
When a skill mentions a role (e.g. "apply the AFK-ready triage label"), use the corresponding label string from this table. Apply labels through `gitea-labels-milestones` / `gitea-issues`, which resolve names to IDs.
|
||||||
|
|
||||||
|
Edit the "Label in our tracker" column to match whatever vocabulary you actually use.
|
||||||
@@ -20,7 +20,7 @@ A future orchestration layer (cross-project automation agents) is a natural Chun
|
|||||||
|
|
||||||
### 1. Coding conventions stay in coding.md
|
### 1. Coding conventions stay in coding.md
|
||||||
|
|
||||||
CONTEXT.md is for domain vocabulary (≤200 lines, always loaded). `core/instructions/coding.md` carries coding conventions, loaded on demand. The factory's "conventions in CONTEXT.md" principle applies to project repos where CONTEXT.md is the primary shared artefact, not to this provider repo where the CLAUDE.md content index handles selective loading.
|
GLOSSARY.md is for domain vocabulary (≤200 lines, always loaded). `core/instructions/coding.md` carries coding conventions, loaded on demand. The factory's "conventions in GLOSSARY.md" principle applies to project repos where GLOSSARY.md is the primary shared artefact, not to this provider repo where the CLAUDE.md content index handles selective loading.
|
||||||
|
|
||||||
Project repos can override with their own `coding.md` at `.claude/core/instructions/coding.md`.
|
Project repos can override with their own `coding.md` at `.claude/core/instructions/coding.md`.
|
||||||
|
|
||||||
@@ -80,7 +80,7 @@ All skills — new and rebuilt — must follow this standard:
|
|||||||
- **This repo:** `LESSONS.md` at repo root, created in issue 0013. Captures lessons learned while building the config itself.
|
- **This repo:** `LESSONS.md` at repo root, created in issue 0013. Captures lessons learned while building the config itself.
|
||||||
- **Project repos:** `LESSONS.md` scaffolded by `init-project.sh` (Chunk 6 template).
|
- **Project repos:** `LESSONS.md` scaffolded by `init-project.sh` (Chunk 6 template).
|
||||||
- **Session-handoff skill:** writes to whichever LESSONS.md is in scope before closing a session.
|
- **Session-handoff skill:** writes to whichever LESSONS.md is in scope before closing a session.
|
||||||
- **Graduation threshold:** three or more entries covering the same pattern → promote to CONTEXT.md (or `coding.md`, `git.md`, `testing.md` if domain-specific) as a standing rule.
|
- **Graduation threshold:** three or more entries covering the same pattern → promote to GLOSSARY.md (or `coding.md`, `git.md`, `testing.md` if domain-specific) as a standing rule.
|
||||||
|
|
||||||
### 6. Evals consciously deferred to Chunk 6
|
### 6. Evals consciously deferred to Chunk 6
|
||||||
|
|
||||||
@@ -129,7 +129,7 @@ IaC skills (category: `iac`) and Gitea integration skills (category: `gitea`) li
|
|||||||
|
|
||||||
- `.agents/skills/` as canonical skill path (ADR-0004)
|
- `.agents/skills/` as canonical skill path (ADR-0004)
|
||||||
- SKILL.md format with YAML frontmatter (agentskills.io standard)
|
- SKILL.md format with YAML frontmatter (agentskills.io standard)
|
||||||
- CONTEXT.md ≤200 lines
|
- GLOSSARY.md ≤200 lines
|
||||||
- Pull-based distribution (ADR-0001)
|
- Pull-based distribution (ADR-0001)
|
||||||
- governance.md via `@import` always-on
|
- governance.md via `@import` always-on
|
||||||
- No third-party skills without reading them (OWASP AST01 / governance.md)
|
- No third-party skills without reading them (OWASP AST01 / governance.md)
|
||||||
|
|||||||
@@ -20,10 +20,10 @@ This changes almost every downstream decision. Until it's resolved, individual g
|
|||||||
|
|
||||||
### 2.1 Where coding conventions live
|
### 2.1 Where coding conventions live
|
||||||
|
|
||||||
**Factory research:** Preferred/Avoid code blocks belong in `CONTEXT.md`. Convention lives in a single shared-vocabulary file the agent always loads.
|
**Factory research:** Preferred/Avoid code blocks belong in `GLOSSARY.md`. Convention lives in a single shared-vocabulary file the agent always loads.
|
||||||
**Chunk 2 plan:** Coding conventions go in a separate `core/instructions/coding.md` file, loaded on-demand.
|
**Chunk 2 plan:** Coding conventions go in a separate `core/instructions/coding.md` file, loaded on-demand.
|
||||||
|
|
||||||
One of these wins. If conventions go in `CONTEXT.md`, `coding.md` becomes much thinner or unnecessary. If they stay in `coding.md`, the factory's "CONTEXT.md is the primary context artefact" principle weakens.
|
One of these wins. If conventions go in `GLOSSARY.md`, `coding.md` becomes much thinner or unnecessary. If they stay in `coding.md`, the factory's "GLOSSARY.md is the primary context artefact" principle weakens.
|
||||||
|
|
||||||
### 2.2 Skill path structure: flat vs. nested
|
### 2.2 Skill path structure: flat vs. nested
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@ These serve the same purpose. The factory's naming is cleaner (one file, obvious
|
|||||||
|
|
||||||
### 3.1 LESSONS.md (impacts Chunk 2)
|
### 3.1 LESSONS.md (impacts Chunk 2)
|
||||||
|
|
||||||
Factory treats `LESSONS.md` as a required committed file — the mechanism for long-loop feedback and convention graduation. Without it, there is no defined path from "I noticed a pattern" to "this is now a standing rule in CONTEXT.md". Not in the Chunk 2 scope. Question: is this a Chunk 2 addition or deferred?
|
Factory treats `LESSONS.md` as a required committed file — the mechanism for long-loop feedback and convention graduation. Without it, there is no defined path from "I noticed a pattern" to "this is now a standing rule in GLOSSARY.md". Not in the Chunk 2 scope. Question: is this a Chunk 2 addition or deferred?
|
||||||
|
|
||||||
### 3.2 `docs/spec/` living spec layer
|
### 3.2 `docs/spec/` living spec layer
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ Factory requires a `references/` directory with `stack-versions.md` (authoritati
|
|||||||
|
|
||||||
### 3.7 Model routing
|
### 3.7 Model routing
|
||||||
|
|
||||||
Factory defines an explicit model routing table (Haiku for classification/formatting, Sonnet for most coding, Opus for adversarial review). Not in current vision or chunk scope. The factory treats this as both a cost decision and a sustainability decision — using frontier models for tasks a smaller model can do is waste, and the governance constitution calls this out explicitly. Where does this decision live — in `governance.md`, in CONTEXT.md, or per-skill?
|
Factory defines an explicit model routing table (Haiku for classification/formatting, Sonnet for most coding, Opus for adversarial review). Not in current vision or chunk scope. The factory treats this as both a cost decision and a sustainability decision — using frontier models for tasks a smaller model can do is waste, and the governance constitution calls this out explicitly. Where does this decision live — in `governance.md`, in GLOSSARY.md, or per-skill?
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -95,7 +95,7 @@ These don't have a "right answer" yet — they need explicit decisions.
|
|||||||
|
|
||||||
- `.agents/skills/` as canonical skill path — consistent with the Agent Skills standard
|
- `.agents/skills/` as canonical skill path — consistent with the Agent Skills standard
|
||||||
- SKILL.md format with YAML frontmatter — consistent
|
- SKILL.md format with YAML frontmatter — consistent
|
||||||
- `CONTEXT.md` exists and is ≤200 lines — consistent with factory's context architecture
|
- `GLOSSARY.md` exists and is ≤200 lines — consistent with factory's context architecture
|
||||||
- Pull-based distribution model — consistent with factory's "no runtime dependency" principle
|
- Pull-based distribution model — consistent with factory's "no runtime dependency" principle
|
||||||
- Governance.md loaded via `@import` — matches factory's "always-on" governance pattern
|
- Governance.md loaded via `@import` — matches factory's "always-on" governance pattern
|
||||||
- No third-party skill installs without reading them — consistent with OWASP AST01 guidance
|
- No third-party skill installs without reading them — consistent with OWASP AST01 guidance
|
||||||
|
|||||||
@@ -287,7 +287,7 @@ The shared pattern: per-skill `README.md` files no model reads, a `docs/research
|
|||||||
>
|
>
|
||||||
> **Interaction with rejected finding 19, unacknowledged:** collapsing git to one skill absorbs `git-workflow` itself — one of the seven — so its 8-row Domains table would route to itself, and leaves `git-orchestrate` a dispatcher with exactly one target, its contract vacuous. Finding 19 was rejected for doing less than this, mechanically.
|
> **Interaction with rejected finding 19, unacknowledged:** collapsing git to one skill absorbs `git-workflow` itself — one of the seven — so its 8-row Domains table would route to itself, and leaves `git-orchestrate` a dispatcher with exactly one target, its contract vacuous. Finding 19 was rejected for doing less than this, mechanically.
|
||||||
>
|
>
|
||||||
> Blast radius if ever revisited: **68 backticked references to git skill names, 99 to gitea names** under `plugins/`. Only the ones in a `SKILL.md` are boundary targets `skill-size-check` resolves and FAILs on if dangling — its `files:` regex is `^plugins/[^/]+/\.apm/skills/[^/]+/SKILL\.md$`, so it opens nothing else — and that is **35 of the 68 git mentions and 26 of the 99 gitea ones**. The remaining 33 and 73 live in `references/*.md`, the two orchestrate agents (10 and 23 on their own), the plugin READMEs, kyberforge's audit and author references, and two `validate.sh` copies — none of which this gate opens: they still have to be rewritten by hand, but they fail no hook. Plus `AGENTS.md:16,18`, `README.md:21-22`, `CONTEXT.md:168` (uses `gitea-prs` as the naming exemplar), `architecture.md:34` (uses `git-branches` vs `gitea-branches` as the canonical boundary example), and ADRs 0011, 0020, 0021, 0022, 0023. Two false alarms not worth chasing: `tests/test-check-rtk-prefix.sh:97` reads from a pinned historical SHA, and `scripts/check-rtk-prefix.sh`'s mention is in a comment.
|
> Blast radius if ever revisited: **68 backticked references to git skill names, 99 to gitea names** under `plugins/`. Only the ones in a `SKILL.md` are boundary targets `skill-size-check` resolves and FAILs on if dangling — its `files:` regex is `^plugins/[^/]+/\.apm/skills/[^/]+/SKILL\.md$`, so it opens nothing else — and that is **35 of the 68 git mentions and 26 of the 99 gitea ones**. The remaining 33 and 73 live in `references/*.md`, the two orchestrate agents (10 and 23 on their own), the plugin READMEs, kyberforge's audit and author references, and two `validate.sh` copies — none of which this gate opens: they still have to be rewritten by hand, but they fail no hook. Plus `AGENTS.md:16,18`, `README.md:21-22`, `GLOSSARY.md:168` (uses `gitea-prs` as the naming exemplar), `architecture.md:34` (uses `git-branches` vs `gitea-branches` as the canonical boundary example), and ADRs 0011, 0020, 0021, 0022, 0023. Two false alarms not worth chasing: `tests/test-check-rtk-prefix.sh:97` reads from a pinned historical SHA, and `scripts/check-rtk-prefix.sh`'s mention is in a comment.
|
||||||
>
|
>
|
||||||
> **Salvageable independently, ~230 lines:** `conventional-commits-spec.md` (~98% generic) and `bisect.md` (~97%) are the only two files where the generic-restatement thesis fully holds — reduce each to a pointer plus the house delta. Also worth a finding-13-style trim-in-place: the issue-vs-PR disambiguation duplicated across 4 gitea files. Neither needs a merge.
|
> **Salvageable independently, ~230 lines:** `conventional-commits-spec.md` (~98% generic) and `bisect.md` (~97%) are the only two files where the generic-restatement thesis fully holds — reduce each to a pointer plus the house delta. Also worth a finding-13-style trim-in-place: the issue-vs-PR disambiguation duplicated across 4 gitea files. Neither needs a merge.
|
||||||
>
|
>
|
||||||
@@ -315,7 +315,7 @@ The shared pattern: per-skill `README.md` files no model reads, a `docs/research
|
|||||||
>
|
>
|
||||||
> **Deferred (2026-09-16, grill).** The human is excluding `bin` from this audit: its skills are "binned for a reason" and will be fixed or relocated as a separate piece of work. Nothing in this finding is executed here; the itemised ~165-line estimate above is the starting point for that work. `bin` is still covered by the version-bump gate (finding 33) until then.
|
> **Deferred (2026-09-16, grill).** The human is excluding `bin` from this audit: its skills are "binned for a reason" and will be fixed or relocated as a separate piece of work. Nothing in this finding is executed here; the itemised ~165-line estimate above is the starting point for that work. `bin` is still covered by the version-bump gate (finding 33) until then.
|
||||||
|
|
||||||
23. [x] **bin: merge `grill-me` into `grill-with-docs`.** `grill-me` is 16 lines and a subset of the docs flow; `grill-with-docs` creates `CONTEXT.md` when missing, so the merged skill needs a no-write opt-out. `caveman` (50 lines) and `zoom-out` (9) are hand-invoked prompts rather than workflow skills; they are also the repo's `disable-model-invocation` exemplars in `CONTEXT.md`, `contract.md`, ADR-0020, ADR-0021, and `gates.md`, and `install.sh` has no path for `~/.claude/commands/`, so moving them means picking a new exemplar. `improve-codebase-architecture` defines its glossary twice (inline and in `language.md`; the README documents the split as intentional). Effort S.
|
23. [x] **bin: merge `grill-me` into `grill-with-docs`.** `grill-me` is 16 lines and a subset of the docs flow; `grill-with-docs` creates `GLOSSARY.md` when missing, so the merged skill needs a no-write opt-out. `caveman` (50 lines) and `zoom-out` (9) are hand-invoked prompts rather than workflow skills; they are also the repo's `disable-model-invocation` exemplars in `GLOSSARY.md`, `contract.md`, ADR-0020, ADR-0021, and `gates.md`, and `install.sh` has no path for `~/.claude/commands/`, so moving them means picking a new exemplar. `improve-codebase-architecture` defines its glossary twice (inline and in `language.md`; the README documents the split as intentional). Effort S.
|
||||||
> **Decision (2026-09-16):** Not proceeding — the human declined this finding. `grill-me` and `grill-with-docs` stay separate.
|
> **Decision (2026-09-16):** Not proceeding — the human declined this finding. `grill-me` and `grill-with-docs` stay separate.
|
||||||
|
|
||||||
24. [x] **core: `provider-adapter-author` is a 1,200-line wrapper around one instruction** ("replace duplicated lines with `@AGENTS.md`, keep provider-specific lines"): a 496-line validator with a 519-line bats suite for a check that is a grep. `agentsmd-author` already calls `agentsmd-audit` as mandatory closeout, and both route to `provider-adapter-author` in boundary clauses that must change with it. Target: one `agentsmd` skill with an audit mode, adapter conversion as a step, validator about 40 lines. Needs an ADR-0012 revisit. Effort L.
|
24. [x] **core: `provider-adapter-author` is a 1,200-line wrapper around one instruction** ("replace duplicated lines with `@AGENTS.md`, keep provider-specific lines"): a 496-line validator with a 519-line bats suite for a check that is a grep. `agentsmd-author` already calls `agentsmd-audit` as mandatory closeout, and both route to `provider-adapter-author` in boundary clauses that must change with it. Target: one `agentsmd` skill with an audit mode, adapter conversion as a step, validator about 40 lines. Needs an ADR-0012 revisit. Effort L.
|
||||||
@@ -393,12 +393,12 @@ The shared pattern: per-skill `README.md` files no model reads, a `docs/research
|
|||||||
> **Corrected then partially done (2026-09-14):** independent re-verification found the "edit `.apm/`, never the mirror" and apm.lock/SessionStart clusters confirmed but the third overstated — no file documents an offline `SKIP=` command (the one `SKIP=`-adjacent mention in `gates.md` explicitly says a *different* opt-out "is not `SKIP=`"), and "three-stage install" appears twice, not three times, with no restatement worth trimming. Trimmed the two confirmed clusters: README's "Editing plugin content" and AGENTS.md's "Edit `.apm/`, never the flat mirror" sections cut to the how-to/one-line-plus-link split the finding itself proposed, full mechanics (the `rm -rf` behavior and the `plugins/kyberforge/hooks/README.md` anecdote) staying solely in `docs/spec/architecture.md`. README's "Keeping the install current" and AGENTS.md's apm.lock bullet trimmed to drop the restated `apm outdated`/`apm update --yes` timing narrative, pointing to ADR-0019 as the canonical mechanism instead. No test greps the trimmed wording (checked).
|
> **Corrected then partially done (2026-09-14):** independent re-verification found the "edit `.apm/`, never the mirror" and apm.lock/SessionStart clusters confirmed but the third overstated — no file documents an offline `SKIP=` command (the one `SKIP=`-adjacent mention in `gates.md` explicitly says a *different* opt-out "is not `SKIP=`"), and "three-stage install" appears twice, not three times, with no restatement worth trimming. Trimmed the two confirmed clusters: README's "Editing plugin content" and AGENTS.md's "Edit `.apm/`, never the flat mirror" sections cut to the how-to/one-line-plus-link split the finding itself proposed, full mechanics (the `rm -rf` behavior and the `plugins/kyberforge/hooks/README.md` anecdote) staying solely in `docs/spec/architecture.md`. README's "Keeping the install current" and AGENTS.md's apm.lock bullet trimmed to drop the restated `apm outdated`/`apm update --yes` timing narrative, pointing to ADR-0019 as the canonical mechanism instead. No test greps the trimmed wording (checked).
|
||||||
|
|
||||||
30. [x] ~~**`LESSONS.md`: 41 entries, 2 graduated, about 12 stale.** Twelve entries from 2026-05-17 describe a write-skill / write-eval workflow whose skills no longer exist. One entry is open work labelled "Status: neither part landed". The longest eight are 200 to 550-word incident reports. Delete the stale entries, move open work to an issue, cap entries at about 60 words, target 100 lines. Effort S.~~
|
30. [x] ~~**`LESSONS.md`: 41 entries, 2 graduated, about 12 stale.** Twelve entries from 2026-05-17 describe a write-skill / write-eval workflow whose skills no longer exist. One entry is open work labelled "Status: neither part landed". The longest eight are 200 to 550-word incident reports. Delete the stale entries, move open work to an issue, cap entries at about 60 words, target 100 lines. Effort S.~~
|
||||||
> **Done (2026-09-12):** see commit `629320b` on `docs/simplification-audit`. 255→131 lines, 41→30 entries. Kept 3 of the same-dated entries (RLHF defaults, secrets-rule gap, HITL gap) — judged unrelated to the defunct write-skill/write-eval workflow and still applicable, so 10 deleted rather than 12. The "neither part landed" open-work entry (CONTEXT.md not `@import`ed at session start) was removed rather than filed as an issue — full text preserved in this session's transcript if wanted later.
|
> **Done (2026-09-12):** see commit `629320b` on `docs/simplification-audit`. 255→131 lines, 41→30 entries. Kept 3 of the same-dated entries (RLHF defaults, secrets-rule gap, HITL gap) — judged unrelated to the defunct write-skill/write-eval workflow and still applicable, so 10 deleted rather than 12. The "neither part landed" open-work entry (GLOSSARY.md not `@import`ed at session start) was removed rather than filed as an issue — full text preserved in this session's transcript if wanted later.
|
||||||
|
|
||||||
31. [x] ~~**`CONTEXT.md`: 28 terms, most used only by gates.md, scripts, or tests rather than by skills;** two (Preload tax, Skill context contract) are never used outside `CONTEXT.md` and ADR-0020. The preload-tax entry quotes two dated numbers then says not to quote them. The example dialogue and flagged-ambiguities sections are grill residue. Cut to about 20 one-line terms. Effort S.~~
|
31. [x] ~~**`GLOSSARY.md`: 28 terms, most used only by gates.md, scripts, or tests rather than by skills;** two (Preload tax, Skill context contract) are never used outside `GLOSSARY.md` and ADR-0020. The preload-tax entry quotes two dated numbers then says not to quote them. The example dialogue and flagged-ambiguities sections are grill residue. Cut to about 20 one-line terms. Effort S.~~
|
||||||
> **Corrected then done (2026-09-13):** see commits `124ce6e` and follow-up on `docs/simplification-audit`. Independent re-verification found "most used only by gates.md/scripts/tests" overstated: 13 of 28 terms are actually referenced from model-facing `references/*.md` files skills load in normal use (Routing target, Hand-invoked skill, Dispatch body, Near-miss, Thin adapter, Provenance chain, Output profile, apm package, Plugin marketplace, HITL, Skill composition, Delegation discipline, holocron) and were kept untouched. Only the 9 terms confirmed as true orphans were removed after a fresh independent grep: Content mirror, apm-consumed install, Vale audit prefilter, Vacuous green, Management Application, Sycophancy, HOTL, Preload tax, Skill context contract — 28 → 19 terms.
|
> **Corrected then done (2026-09-13):** see commits `124ce6e` and follow-up on `docs/simplification-audit`. Independent re-verification found "most used only by gates.md/scripts/tests" overstated: 13 of 28 terms are actually referenced from model-facing `references/*.md` files skills load in normal use (Routing target, Hand-invoked skill, Dispatch body, Near-miss, Thin adapter, Provenance chain, Output profile, apm package, Plugin marketplace, HITL, Skill composition, Delegation discipline, holocron) and were kept untouched. Only the 9 terms confirmed as true orphans were removed after a fresh independent grep: Content mirror, apm-consumed install, Vale audit prefilter, Vacuous green, Management Application, Sycophancy, HOTL, Preload tax, Skill context contract — 28 → 19 terms.
|
||||||
> > **Corrected (2026-09-19) — "true orphans" is wrong for two of the nine.** **HOTL** and **Sycophancy** are both still used in `core/ai-constitution.md` (HOTL spelled out at `:111-112`, sycophancy at `:72-87`), and HOTL also in `docs/research/governance_principles/ai-governance-research.md:340-344`. The removals themselves were still right, for a different reason than the one given: the constitution **defines both terms itself, at the point of use**, so a second definition in `CONTEXT.md` was duplication rather than the only authority. Only the orphan justification is corrected here; the other seven and the 28 → 19 count are unaffected.
|
> > **Corrected (2026-09-19) — "true orphans" is wrong for two of the nine.** **HOTL** and **Sycophancy** are both still used in `core/ai-constitution.md` (HOTL spelled out at `:111-112`, sycophancy at `:72-87`), and HOTL also in `docs/research/governance_principles/ai-governance-research.md:340-344`. The removals themselves were still right, for a different reason than the one given: the constitution **defines both terms itself, at the point of use**, so a second definition in `GLOSSARY.md` was duplication rather than the only authority. Only the orphan justification is corrected here; the other seven and the 28 → 19 count are unaffected.
|
||||||
> **Re-counted (2026-09-14, at `a6434e0`): 18 terms, not 19.** The "28 → 19" above is an accurate record of this finding's own commit (`124ce6e`) and is left standing. `718c79a` then removed a twentieth-to-nineteenth entry this finding never touched: the standalone **Plugin** term, folded into **apm package** when ADR-0024 made "plugin" and "apm package" the same thing. Counted as bolded term entries between `## Language` and `## Relationships` in `CONTEXT.md`: 19 at `124ce6e`, 18 at `718c79a` and unchanged at `a6434e0`. The finding's own target ("about 20 one-line terms") is met either way. The preload-tax self-contradiction (quotes 23,427/10,478-char figures then says not to quote either) was confirmed verbatim and resolved by the entry's own deletion. The "example dialogue" and "flagged ambiguities" sections were found to be mandated by `grill-with-docs/references/context-format.md`'s template spec, not grill residue — left untouched, except one dangling bolded cross-reference to the now-deleted "Preload tax" term in a Flagged-ambiguities line, which was unbolded/de-referenced in place (the ambiguity resolution itself still holds without a defined glossary entry to point at).
|
> **Re-counted (2026-09-14, at `a6434e0`): 18 terms, not 19.** The "28 → 19" above is an accurate record of this finding's own commit (`124ce6e`) and is left standing. `718c79a` then removed a twentieth-to-nineteenth entry this finding never touched: the standalone **Plugin** term, folded into **apm package** when ADR-0024 made "plugin" and "apm package" the same thing. Counted as bolded term entries between `## Language` and `## Relationships` in `GLOSSARY.md`: 19 at `124ce6e`, 18 at `718c79a` and unchanged at `a6434e0`. The finding's own target ("about 20 one-line terms") is met either way. The preload-tax self-contradiction (quotes 23,427/10,478-char figures then says not to quote either) was confirmed verbatim and resolved by the entry's own deletion. The "example dialogue" and "flagged ambiguities" sections were found to be mandated by `grill-with-docs/references/context-format.md`'s template spec, not grill residue — left untouched, except one dangling bolded cross-reference to the now-deleted "Preload tax" term in a Flagged-ambiguities line, which was unbolded/de-referenced in place (the ambiguity resolution itself still holds without a defined glossary entry to point at).
|
||||||
|
|
||||||
32. [x] ~~**Structure is described three ways** (README layout table, architecture.md plugin table, AGENTS.md structure bullets), and `VISION.md` carries a 35-line stack spec for a product that lives in another repo. One layout table in README; architecture.md keeps mechanics only; VISION drops the stack detail. Effort S.~~
|
32. [x] ~~**Structure is described three ways** (README layout table, architecture.md plugin table, AGENTS.md structure bullets), and `VISION.md` carries a 35-line stack spec for a product that lives in another repo. One layout table in README; architecture.md keeps mechanics only; VISION drops the stack detail. Effort S.~~
|
||||||
> **Premise corrected, residual done (2026-09-14).** Both halves were inflated; most of the proposed split already existed.
|
> **Premise corrected, residual done (2026-09-14).** Both halves were inflated; most of the proposed split already existed.
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ After the behavioral test passes, close the skill session by appending a `## Han
|
|||||||
- <deferred items, follow-on issues, or unresolved tensions — if none, write "none">
|
- <deferred items, follow-on issues, or unresolved tensions — if none, write "none">
|
||||||
|
|
||||||
**Next session start:**
|
**Next session start:**
|
||||||
- Load: `CONTEXT.md`, `docs/notes/skill-implementation-workflow.md`, next skill's issue file
|
- Load: `GLOSSARY.md`, `docs/notes/skill-implementation-workflow.md`, next skill's issue file
|
||||||
- First action: Step 1 (source discovery) for `<next-skill-name>`
|
- First action: Step 1 (source discovery) for `<next-skill-name>`
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
## 2. The 3,000-token degradation ceiling — does it hold for 2026 models?
|
## 2. The 3,000-token degradation ceiling — does it hold for 2026 models?
|
||||||
|
|
||||||
**Current position:** LLM reasoning performance starts degrading around 3,000 tokens of context. This is the primary justification for the 500-line skill limit, the CONTEXT.md ≤200 line constraint, and most of the token optimisation strategy.
|
**Current position:** LLM reasoning performance starts degrading around 3,000 tokens of context. This is the primary justification for the 500-line skill limit, the GLOSSARY.md ≤200 line constraint, and most of the token optimisation strategy.
|
||||||
|
|
||||||
**What to challenge:**
|
**What to challenge:**
|
||||||
- The source is Levy, Jacoby, and Goldberg (2024) — a study on models that predate Claude Sonnet 4.6 and Opus 4.7 by at least one generation. Do 2026 models show the same degradation at the same threshold?
|
- The source is Levy, Jacoby, and Goldberg (2024) — a study on models that predate Claude Sonnet 4.6 and Opus 4.7 by at least one generation. Do 2026 models show the same degradation at the same threshold?
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
- The SkillReducer paper (arxiv.org/pdf/2603.29919) documents context budget problems but does not validate the 3,000-token specific threshold. Is there a more recent primary source?
|
- The SkillReducer paper (arxiv.org/pdf/2603.29919) documents context budget problems but does not validate the 3,000-token specific threshold. Is there a more recent primary source?
|
||||||
- Does the degradation manifest equally for structured code tasks vs. natural language tasks?
|
- Does the degradation manifest equally for structured code tasks vs. natural language tasks?
|
||||||
|
|
||||||
**Design implication:** If the threshold is actually higher for 2026 models, the 500-line skill limit and CONTEXT.md constraint may be over-conservative. If lower, they should tighten.
|
**Design implication:** If the threshold is actually higher for 2026 models, the 500-line skill limit and GLOSSARY.md constraint may be over-conservative. If lower, they should tighten.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ The existing research and principles are complete and evidence-based. The gap is
|
|||||||
|
|
||||||
Drift has a direction: implementation moves faster than docs, so docs lag. Disciplinary fixes ("remember to update the docs") don't work at scale. The only reliable fixes are structural.
|
Drift has a direction: implementation moves faster than docs, so docs lag. Disciplinary fixes ("remember to update the docs") don't work at scale. The only reliable fixes are structural.
|
||||||
|
|
||||||
The factory is documentation-driven by default. This means: every implementation decision either derives from an existing document or produces a new one. Code that cannot be traced to a spec is out-of-scope code. A convention that isn't in CONTEXT.md isn't a convention — it's undiscoverable tribal knowledge.
|
The factory is documentation-driven by default. This means: every implementation decision either derives from an existing document or produces a new one. Code that cannot be traced to a spec is out-of-scope code. A convention that isn't in GLOSSARY.md isn't a convention — it's undiscoverable tribal knowledge.
|
||||||
|
|
||||||
**Current tooling:** git + markdown. This is the correct starting point. Every layer described below is future-compatible: when better tools arrive (living-spec platforms, architecture-as-code, doc coverage CI), they read the file structure that already exists. No migration required.
|
**Current tooling:** git + markdown. This is the correct starting point. Every layer described below is future-compatible: when better tools arrive (living-spec platforms, architecture-as-code, doc coverage CI), they read the file structure that already exists. No migration required.
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ Five layers, each with a clear scope and update frequency. The rule: content liv
|
|||||||
| Layer | Files | Changes when | Update mechanism |
|
| Layer | Files | Changes when | Update mechanism |
|
||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
| Governance | `AGENTS.md`, `HUMANS.md`, `CONTROLS.md`, `ai-constitution.md` | Principles change or tooling changes fundamentally | Human deliberate edit; reviewed in PR |
|
| Governance | `AGENTS.md`, `HUMANS.md`, `CONTROLS.md`, `ai-constitution.md` | Principles change or tooling changes fundamentally | Human deliberate edit; reviewed in PR |
|
||||||
| Convention | `CONTEXT.md`, `LESSONS.md`, `references/stack-versions.md` | New pattern adopted; LESSONS.md threshold hit | LESSONS.md auto-graduates to CONTEXT.md at 3× same pattern |
|
| Convention | `GLOSSARY.md`, `LESSONS.md`, `references/stack-versions.md` | New pattern adopted; LESSONS.md threshold hit | LESSONS.md auto-graduates to GLOSSARY.md at 3× same pattern |
|
||||||
| Specification | `docs/spec/` (what the system does now), `docs/adr/` (decisions) | Behaviour changes or decision made | Spec updated in same PR as implementation; ADRs via architect role; never deleted |
|
| Specification | `docs/spec/` (what the system does now), `docs/adr/` (decisions) | Behaviour changes or decision made | Spec updated in same PR as implementation; ADRs via architect role; never deleted |
|
||||||
| Work tracking | Gitea issues + feature branches | New work begins or completes | Issue created with EARS spec; branch per issue; closed when PR merges |
|
| Work tracking | Gitea issues + feature branches | New work begins or completes | Issue created with EARS spec; branch per issue; closed when PR merges |
|
||||||
| Skills & workflows | `.agents/skills/**`, `.agents/workflows/`, `.agents/evals/` | Skill behaviour changes or new skill added | PR with co-located eval update; CI blocks merge if eval fails |
|
| Skills & workflows | `.agents/skills/**`, `.agents/workflows/`, `.agents/evals/` | Skill behaviour changes or new skill added | PR with co-located eval update; CI blocks merge if eval fails |
|
||||||
@@ -80,7 +80,7 @@ Five layers, each with a clear scope and update frequency. The rule: content liv
|
|||||||
|
|
||||||
Six structural mechanisms prevent drift. All six must be active — any one of them alone is insufficient.
|
Six structural mechanisms prevent drift. All six must be active — any one of them alone is insufficient.
|
||||||
|
|
||||||
**One source per concern.** No content is duplicated across layers or tool-specific files. CLAUDE.md references AGENTS.md; it does not duplicate it. A skill's trigger description appears only in its `SKILL.md`; it is not copied into CONTEXT.md or a workflow file.
|
**One source per concern.** No content is duplicated across layers or tool-specific files. CLAUDE.md references AGENTS.md; it does not duplicate it. A skill's trigger description appears only in its `SKILL.md`; it is not copied into GLOSSARY.md or a workflow file.
|
||||||
|
|
||||||
**Issue spec precedes code.** No implementation work begins without a Gitea issue containing an EARS-format spec. The `factory/write-issue-spec` skill drafts this; the Gitea MCP posts it. Code on a feature branch cannot drift from a spec that must exist before the branch is created. The `deploy/deployment-checklist` skill verifies a linked issue exists before any deployment.
|
**Issue spec precedes code.** No implementation work begins without a Gitea issue containing an EARS-format spec. The `factory/write-issue-spec` skill drafts this; the Gitea MCP posts it. Code on a feature branch cannot drift from a spec that must exist before the branch is created. The `deploy/deployment-checklist` skill verifies a linked issue exists before any deployment.
|
||||||
|
|
||||||
@@ -88,9 +88,9 @@ Six structural mechanisms prevent drift. All six must be active — any one of t
|
|||||||
|
|
||||||
**CI eval gates block skill drift.** Every skill has an `eval.yaml` co-located in `.agents/evals/`. A change to any file under `.agents/skills/**` triggers the co-located eval in CI. A failing eval blocks merge. This means a skill body can never drift from its documented behaviour without a deliberate eval update.
|
**CI eval gates block skill drift.** Every skill has an `eval.yaml` co-located in `.agents/evals/`. A change to any file under `.agents/skills/**` triggers the co-located eval in CI. A failing eval blocks merge. This means a skill body can never drift from its documented behaviour without a deliberate eval update.
|
||||||
|
|
||||||
**LESSONS.md graduation.** Three or more occurrences of the same pattern in LESSONS.md trigger promotion to CONTEXT.md as a standing rule. This is the only sanctioned upward flow in the documentation hierarchy — and only into the convention layer, not higher.
|
**LESSONS.md graduation.** Three or more occurrences of the same pattern in LESSONS.md trigger promotion to GLOSSARY.md as a standing rule. This is the only sanctioned upward flow in the documentation hierarchy — and only into the convention layer, not higher.
|
||||||
|
|
||||||
**Tool adapter pattern.** Tool-specific files (CLAUDE.md, `.cursor/rules`, `copilot-instructions.md`) are thin adapters that reference the source layer. They contain no original content. When a tool changes its format, only the adapter changes. The source — AGENTS.md, CONTEXT.md — is untouched.
|
**Tool adapter pattern.** Tool-specific files (CLAUDE.md, `.cursor/rules`, `copilot-instructions.md`) are thin adapters that reference the source layer. They contain no original content. When a tool changes its format, only the adapter changes. The source — AGENTS.md, GLOSSARY.md — is untouched.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -112,10 +112,10 @@ Five external frameworks are relevant. Each contributes a specific, non-overlapp
|
|||||||
| `/to-prd` skill | Converts conversation into a structured PRD artifact | Adopt the forcing-function pattern: refuse to proceed until synthesis is complete |
|
| `/to-prd` skill | Converts conversation into a structured PRD artifact | Adopt the forcing-function pattern: refuse to proceed until synthesis is complete |
|
||||||
| `/to-issues` skill | Breaks PRD into independently shippable issues | Maps to factory's `design/break-into-issues` skill — check Pocock's "independently shippable slices" constraint |
|
| `/to-issues` skill | Breaks PRD into independently shippable issues | Maps to factory's `design/break-into-issues` skill — check Pocock's "independently shippable slices" constraint |
|
||||||
| `/tdd` skill structure | Multi-file skill: `SKILL.md` + `tests.md` + `mocking.md` + `refactoring.md` + `deep-modules.md` | The multi-file skill pattern is best practice for complex skills. Factory's `test/write-tests` skill should adopt this structure |
|
| `/tdd` skill structure | Multi-file skill: `SKILL.md` + `tests.md` + `mocking.md` + `refactoring.md` + `deep-modules.md` | The multi-file skill pattern is best practice for complex skills. Factory's `test/write-tests` skill should adopt this structure |
|
||||||
| `CONTEXT.md` generation | Setup skill creates a shared vocabulary file on init | Factory already has this concept; Pocock's implementation provides a concrete template |
|
| `GLOSSARY.md` generation | Setup skill creates a shared vocabulary file on init | Factory already has this concept; Pocock's implementation provides a concrete template |
|
||||||
| `/git-guardrails` | Blocks risky agent actions (force pushes, direct main commits) | Adopt as factory's `cross-cutting/git-guardrails` skill — currently absent |
|
| `/git-guardrails` | Blocks risky agent actions (force pushes, direct main commits) | Adopt as factory's `cross-cutting/git-guardrails` skill — currently absent |
|
||||||
| `/diagnose` | Structured debugging state machine | Adopt as factory's `implement/diagnose` skill — currently absent |
|
| `/diagnose` | Structured debugging state machine | Adopt as factory's `implement/diagnose` skill — currently absent |
|
||||||
| `/improve-codebase-architecture` | Architecture debt hunting using CONTEXT.md + ADRs | Reinforces factory's Reviewer role; drives ADR creation workflow |
|
| `/improve-codebase-architecture` | Architecture debt hunting using GLOSSARY.md + ADRs | Reinforces factory's Reviewer role; drives ADR creation workflow |
|
||||||
| `/zoom-out` | Periodic architecture perspective shift | Maps to Architect role; adopt the "zoom out before diving in" forcing function |
|
| `/zoom-out` | Periodic architecture perspective shift | Maps to Architect role; adopt the "zoom out before diving in" forcing function |
|
||||||
| `caveman` skill | ~75% token reduction through compressed output mode | Adopt for token optimisation — maps to factory's orientation problem solution |
|
| `caveman` skill | ~75% token reduction through compressed output mode | Adopt for token optimisation — maps to factory's orientation problem solution |
|
||||||
|
|
||||||
@@ -238,7 +238,7 @@ Nothing from external frameworks enters the repo as a runtime dependency. Every
|
|||||||
| Pocock/skills | `tdd/` (multi-file) | Adopt directly — entire folder structure | `.agents/skills/implement/tdd/` (SKILL.md + tests.md + mocking.md + refactoring.md) |
|
| Pocock/skills | `tdd/` (multi-file) | Adopt directly — entire folder structure | `.agents/skills/implement/tdd/` (SKILL.md + tests.md + mocking.md + refactoring.md) |
|
||||||
| Pocock/skills | `diagnose/SKILL.md` | Adopt directly | `.agents/skills/implement/diagnose/SKILL.md` |
|
| Pocock/skills | `diagnose/SKILL.md` | Adopt directly | `.agents/skills/implement/diagnose/SKILL.md` |
|
||||||
| Pocock/skills | `git-guardrails/SKILL.md` | Adopt directly | `.agents/skills/cross-cutting/git-guardrails/SKILL.md` |
|
| Pocock/skills | `git-guardrails/SKILL.md` | Adopt directly | `.agents/skills/cross-cutting/git-guardrails/SKILL.md` |
|
||||||
| Pocock/skills | CONTEXT.md generation (setup skill) | Pattern only — content is yours | `CONTEXT.md` at repo root (content file, not a skill) |
|
| Pocock/skills | GLOSSARY.md generation (setup skill) | Pattern only — content is yours | `GLOSSARY.md` at repo root (content file, not a skill) |
|
||||||
| Pocock/skills | `zoom-out/SKILL.md` | Adopt directly — merge as a mode | `.agents/skills/roles/architect/SKILL.md` |
|
| Pocock/skills | `zoom-out/SKILL.md` | Adopt directly — merge as a mode | `.agents/skills/roles/architect/SKILL.md` |
|
||||||
| BMAD-METHOD | Scale-adaptive planning depth | Pattern only — complexity gate logic | `.agents/skills/factory/write-issue-spec/SKILL.md` (complexity-gating section) |
|
| BMAD-METHOD | Scale-adaptive planning depth | Pattern only — complexity gate logic | `.agents/skills/factory/write-issue-spec/SKILL.md` (complexity-gating section) |
|
||||||
| BMAD-METHOD | Scrum Master story format | Pattern only — embed full context | `.agents/skills/design/break-into-issues/SKILL.md` (output format) |
|
| BMAD-METHOD | Scrum Master story format | Pattern only — embed full context | `.agents/skills/design/break-into-issues/SKILL.md` (output format) |
|
||||||
@@ -284,8 +284,8 @@ The working tree contains only permanent, final-state content. Work in progress
|
|||||||
```
|
```
|
||||||
repo/
|
repo/
|
||||||
├── AGENTS.md # Agent governance (all rules)
|
├── AGENTS.md # Agent governance (all rules)
|
||||||
├── CONTEXT.md # Shared vocabulary and conventions
|
├── GLOSSARY.md # Shared vocabulary and conventions
|
||||||
├── LESSONS.md # Feedback → graduates to CONTEXT.md at 3× threshold
|
├── LESSONS.md # Feedback → graduates to GLOSSARY.md at 3× threshold
|
||||||
├── HUMANS.md # Human orientation guide
|
├── HUMANS.md # Human orientation guide
|
||||||
├── CONTROLS.md # Operational safety controls
|
├── CONTROLS.md # Operational safety controls
|
||||||
│
|
│
|
||||||
@@ -411,14 +411,14 @@ Goal: A working factory skeleton that a real task can be run through end-to-end.
|
|||||||
|
|
||||||
**Acceptance criteria (EARS format):**
|
**Acceptance criteria (EARS format):**
|
||||||
- WHEN any task is started, THE system SHALL have a Gitea issue with an EARS-format spec before a branch is created
|
- WHEN any task is started, THE system SHALL have a Gitea issue with an EARS-format spec before a branch is created
|
||||||
- WHEN a Claude Code session begins, THE system SHALL have `AGENTS.md` and `CONTEXT.md` in context
|
- WHEN a Claude Code session begins, THE system SHALL have `AGENTS.md` and `GLOSSARY.md` in context
|
||||||
- WHEN any skill is invoked, THE system SHALL load only that skill's SKILL.md (not the full library)
|
- WHEN any skill is invoked, THE system SHALL load only that skill's SKILL.md (not the full library)
|
||||||
- WHEN a PR is raised, THE system SHALL include updates to `docs/spec/` if behaviour changed
|
- WHEN a PR is raised, THE system SHALL include updates to `docs/spec/` if behaviour changed
|
||||||
|
|
||||||
**Tasks:**
|
**Tasks:**
|
||||||
|
|
||||||
1. Commit `AGENTS.md` — merge existing governance content; validate against principles doc
|
1. Commit `AGENTS.md` — merge existing governance content; validate against principles doc
|
||||||
2. Generate `CONTEXT.md` — manually populate shared vocabulary (10–15 domain terms to start)
|
2. Generate `GLOSSARY.md` — manually populate shared vocabulary (10–15 domain terms to start)
|
||||||
3. Create `docs/spec/architecture.md` — initial living spec, even if sparse
|
3. Create `docs/spec/architecture.md` — initial living spec, even if sparse
|
||||||
4. Create `docs/adr/` with an `adr-template.md`
|
4. Create `docs/adr/` with an `adr-template.md`
|
||||||
5. Implement Phase 1 skill set (7 files):
|
5. Implement Phase 1 skill set (7 files):
|
||||||
@@ -621,7 +621,7 @@ The factory is working when:
|
|||||||
| Spec–implementation sync | 0 PRs merged that change behaviour without updating `docs/spec/` |
|
| Spec–implementation sync | 0 PRs merged that change behaviour without updating `docs/spec/` |
|
||||||
| HITL gate compliance | 100% of irreversible actions have a human approval before execution |
|
| HITL gate compliance | 100% of irreversible actions have a human approval before execution |
|
||||||
| Eval coverage | Every skill has trigger tests and output tests before use in production |
|
| Eval coverage | Every skill has trigger tests and output tests before use in production |
|
||||||
| LESSONS.md graduation rate | Recurring patterns promoted to CONTEXT.md within 2 weeks of third occurrence |
|
| LESSONS.md graduation rate | Recurring patterns promoted to GLOSSARY.md within 2 weeks of third occurrence |
|
||||||
| Session handoff rate | All sessions that pause mid-task have a handoff document |
|
| Session handoff rate | All sessions that pause mid-task have a handoff document |
|
||||||
| Model regression detection | Weekly eval cron catches skill degradation before it reaches production use |
|
| Model regression detection | Weekly eval cron catches skill degradation before it reaches production use |
|
||||||
|
|
||||||
@@ -639,7 +639,7 @@ These must be resolved before implementation begins. Most are inputs *to* the gr
|
|||||||
|
|
||||||
4. **promptfoo hosting:** Self-hosted promptfoo on the homelab, or Gitea Actions cloud runners? This affects eval architecture.
|
4. **promptfoo hosting:** Self-hosted promptfoo on the homelab, or Gitea Actions cloud runners? This affects eval architecture.
|
||||||
|
|
||||||
5. **`CONTEXT.md` bootstrap:** What are the 10–15 most important domain terms for this project? These must be manually written before any skill invokes CONTEXT.md.
|
5. **`GLOSSARY.md` bootstrap:** What are the 10–15 most important domain terms for this project? These must be manually written before any skill invokes GLOSSARY.md.
|
||||||
|
|
||||||
6. **`docs/spec/` initial scope:** How much of the current system needs to be described in the initial living spec before Phase 1 begins? Even a sparse overview.md + architecture.md is better than nothing — agents need something to read before they can update it correctly.
|
6. **`docs/spec/` initial scope:** How much of the current system needs to be described in the initial living spec before Phase 1 begins? Even a sparse overview.md + architecture.md is better than nothing — agents need something to read before they can update it correctly.
|
||||||
|
|
||||||
@@ -655,11 +655,11 @@ Each of the following warrants its own session. They are ordered by dependency
|
|||||||
|
|
||||||
| Session | Produces | Feeds into |
|
| Session | Produces | Feeds into |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
| 1. Repo vision and goals | Vision statement, success criteria, what the factory is and is not for | All subsequent sessions; CONTEXT.md bootstrap |
|
| 1. Repo vision and goals | Vision statement, success criteria, what the factory is and is not for | All subsequent sessions; GLOSSARY.md bootstrap |
|
||||||
| 2. Stack and tooling decisions | Primary language(s), test frameworks, IaC tooling, CI platform | Skill body content for implement/, test/, iac/ skills; stack-versions.md |
|
| 2. Stack and tooling decisions | Primary language(s), test frameworks, IaC tooling, CI platform | Skill body content for implement/, test/, iac/ skills; stack-versions.md |
|
||||||
| 3. Roadmap and phasing | Milestone sequence, phase gates, what "done" looks like per phase | Phase plan (Section 7 of this document becomes concrete) |
|
| 3. Roadmap and phasing | Milestone sequence, phase gates, what "done" looks like per phase | Phase plan (Section 7 of this document becomes concrete) |
|
||||||
| 4. ADR: documentation structure | Decision on docs/spec/ scope, Gitea issue template, ADR conventions, Diátaxis applicability | write-issue-spec skill, docs/spec/ initial structure, issue template |
|
| 4. ADR: documentation structure | Decision on docs/spec/ scope, Gitea issue template, ADR conventions, Diátaxis applicability | write-issue-spec skill, docs/spec/ initial structure, issue template |
|
||||||
| 5. ADR: governance file structure | Decision on which governance files exist, what each owns, what adapters look like | AGENTS.md, CLAUDE.md, CONTEXT.md |
|
| 5. ADR: governance file structure | Decision on which governance files exist, what each owns, what adapters look like | AGENTS.md, CLAUDE.md, GLOSSARY.md |
|
||||||
| 6. ADR: skill library scope | Which skills to build first; factory/ vs other categories; which to defer | Phase 1 and 2 skill build order |
|
| 6. ADR: skill library scope | Which skills to build first; factory/ vs other categories; which to defer | Phase 1 and 2 skill build order |
|
||||||
|
|
||||||
### What to give Claude Code before each session
|
### What to give Claude Code before each session
|
||||||
@@ -676,7 +676,7 @@ ai-coding-factory-skills-index.md
|
|||||||
ai-coding-factory-implementation-guidance.md
|
ai-coding-factory-implementation-guidance.md
|
||||||
|
|
||||||
# Add for sessions 2-6 (outputs from session 1)
|
# Add for sessions 2-6 (outputs from session 1)
|
||||||
CONTEXT.md (once bootstrapped)
|
GLOSSARY.md (once bootstrapped)
|
||||||
docs/adr/ (any ADRs already produced)
|
docs/adr/ (any ADRs already produced)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
**Scope:** Design, structure, and operation of the AI-assisted software development and infrastructure management factory
|
**Scope:** Design, structure, and operation of the AI-assisted software development and infrastructure management factory
|
||||||
**Audience:** Humans maintaining and extending the factory; AI agents making design decisions within it
|
**Audience:** Humans maintaining and extending the factory; AI agents making design decisions within it
|
||||||
**Derivation:** Derived from sourced research across ten design topics. Principles are evidence-based, not aspirational.
|
**Derivation:** Derived from sourced research across ten design topics. Principles are evidence-based, not aspirational.
|
||||||
**Operative files:** `AGENTS.md` (agent governance) | `CONTEXT.md` (project conventions) | `.agents/skills/` (skill library)
|
**Operative files:** `AGENTS.md` (agent governance) | `GLOSSARY.md` (project conventions) | `.agents/skills/` (skill library)
|
||||||
**Research basis:** `ai-coding-factory-research.md`
|
**Research basis:** `ai-coding-factory-research.md`
|
||||||
|
|
||||||
The factory is a governed AI-assisted development environment. This document defines the principles behind its structure — why it is built the way it is and what governs changes to it. It is not an implementation guide; the implementation lives in the repository files this document governs.
|
The factory is a governed AI-assisted development environment. This document defines the principles behind its structure — why it is built the way it is and what governs changes to it. It is not an implementation guide; the implementation lives in the repository files this document governs.
|
||||||
@@ -17,7 +17,7 @@ The factory is a governed AI-assisted development environment. This document def
|
|||||||
Write conventions, principles, and skills once in plain language with no tool-specific references. Translate into tool-specific format (CLAUDE.md, copilot-instructions.md, cursor rules) with thin adapter files that reference the source, not duplicate it. When tools change, only the adapter changes. This is the same separation-of-concerns pattern as the governance constitution: conventions are stable; tool formats are not.
|
Write conventions, principles, and skills once in plain language with no tool-specific references. Translate into tool-specific format (CLAUDE.md, copilot-instructions.md, cursor rules) with thin adapter files that reference the source, not duplicate it. When tools change, only the adapter changes. This is the same separation-of-concerns pattern as the governance constitution: conventions are stable; tool formats are not.
|
||||||
|
|
||||||
**One source of truth per concern.**
|
**One source of truth per concern.**
|
||||||
AGENTS.md is the single source of governance rules. CONTEXT.md is the single source of project conventions. Each skill is the single source for its task type. Duplicating content into tool-specific files creates maintenance debt and drift — it is prohibited.
|
AGENTS.md is the single source of governance rules. GLOSSARY.md is the single source of project conventions. Each skill is the single source for its task type. Duplicating content into tool-specific files creates maintenance debt and drift — it is prohibited.
|
||||||
|
|
||||||
**Spec before implementation.**
|
**Spec before implementation.**
|
||||||
Every non-trivial implementation task begins with a spec. The spec is the prompt for all downstream work — it defines what the Developer role builds, what QA tests, and what the Reviewer evaluates. Without a spec the factory has no contract between its stages. Spec-Driven Development is rapidly emerging but not yet mainstream in production: GitHub Spec Kit (~92K stars, May 2026), AWS Kiro (~250K signups over its first preview period), dedicated DeepLearning.AI course. No controlled study comparing SDD with ad-hoc prompting outcomes exists as of May 2026. Even so: SDD overhead is documented and real — skip the spec skill for single-file fixes, obvious one-line changes, or tasks the human can describe completely in one sentence. GitHub's own documentation notes Spec Kit is "best suited for greenfield builds and large feature work rather than small bug fixes." (Thoughtworks Radar: "Assess, not Adopt", November 2025, with the pointed observation: *"We may be relearning a bitter lesson — that handcrafting detailed rules for AI ultimately doesn't scale."*)
|
Every non-trivial implementation task begins with a spec. The spec is the prompt for all downstream work — it defines what the Developer role builds, what QA tests, and what the Reviewer evaluates. Without a spec the factory has no contract between its stages. Spec-Driven Development is rapidly emerging but not yet mainstream in production: GitHub Spec Kit (~92K stars, May 2026), AWS Kiro (~250K signups over its first preview period), dedicated DeepLearning.AI course. No controlled study comparing SDD with ad-hoc prompting outcomes exists as of May 2026. Even so: SDD overhead is documented and real — skip the spec skill for single-file fixes, obvious one-line changes, or tasks the human can describe completely in one sentence. GitHub's own documentation notes Spec Kit is "best suited for greenfield builds and large feature work rather than small bug fixes." (Thoughtworks Radar: "Assess, not Adopt", November 2025, with the pointed observation: *"We may be relearning a bitter lesson — that handcrafting detailed rules for AI ultimately doesn't scale."*)
|
||||||
@@ -130,7 +130,7 @@ Veracode's 2025 GenAI Code Security Report found that **45% of tested AI-generat
|
|||||||
Tests derived from implementation validate behaviour, which may itself be wrong — circular reasoning. Tests derived from the spec validate intent. This is a structural constraint on the write-tests skill: it requires spec input, not just code input.
|
Tests derived from implementation validate behaviour, which may itself be wrong — circular reasoning. Tests derived from the spec validate intent. This is a structural constraint on the write-tests skill: it requires spec input, not just code input.
|
||||||
|
|
||||||
**Design both feedback loops explicitly.**
|
**Design both feedback loops explicitly.**
|
||||||
The short loop (finding → immediate fix) happens by default. The long loop (recurring pattern → standing convention) must be deliberately designed. The session-handoff skill explicitly prompts LESSONS.md extraction before closing a session. Convention graduation threshold: three or more LESSONS.md entries covering the same pattern promote to CONTEXT.md as a standing rule.
|
The short loop (finding → immediate fix) happens by default. The long loop (recurring pattern → standing convention) must be deliberately designed. The session-handoff skill explicitly prompts LESSONS.md extraction before closing a session. Convention graduation threshold: three or more LESSONS.md entries covering the same pattern promote to GLOSSARY.md as a standing rule.
|
||||||
|
|
||||||
**LESSONS.md is the repo-level feedback mechanism.**
|
**LESSONS.md is the repo-level feedback mechanism.**
|
||||||
Claude Code auto-memory is per-machine and not repo-shared. For lessons to survive machine boundaries and become team-inheritable, they must be committed to `LESSONS.md` in the repo root. This is a correction from common practice — auto-memory is not a substitute.
|
Claude Code auto-memory is per-machine and not repo-shared. For lessons to survive machine boundaries and become team-inheritable, they must be committed to `LESSONS.md` in the repo root. This is a correction from common practice — auto-memory is not a substitute.
|
||||||
@@ -184,7 +184,7 @@ Promptfoo is the current standard tool (MIT, YAML-based, self-hosted, CI-native)
|
|||||||
## 9. Context and Token Architecture
|
## 9. Context and Token Architecture
|
||||||
|
|
||||||
**Orientation is the primary token sink — solve it with structure.**
|
**Orientation is the primary token sink — solve it with structure.**
|
||||||
Agents spend up to 80% of token budget on orientation rather than work. The solution is well-structured, always-available context files, not prompt compression. CONTEXT.md and the reference file architecture solve this at the source.
|
Agents spend up to 80% of token budget on orientation rather than work. The solution is well-structured, always-available context files, not prompt compression. GLOSSARY.md and the reference file architecture solve this at the source.
|
||||||
|
|
||||||
**Progressive disclosure governs the load strategy.**
|
**Progressive disclosure governs the load strategy.**
|
||||||
Only skill name and description pairs load at startup (~30–50 tokens per skill). Full skill bodies load on trigger. Reference files load only when needed during execution. 30 skills cost approximately 900–1,500 tokens at startup. The full body cost is paid only when a skill activates.
|
Only skill name and description pairs load at startup (~30–50 tokens per skill). Full skill bodies load on trigger. Reference files load only when needed during execution. 30 skills cost approximately 900–1,500 tokens at startup. The full body cost is paid only when a skill activates.
|
||||||
@@ -192,7 +192,7 @@ Only skill name and description pairs load at startup (~30–50 tokens per skill
|
|||||||
| Context | Target | Load pattern |
|
| Context | Target | Load pattern |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
| AGENTS.md | ≤2,000 tokens | Always loaded |
|
| AGENTS.md | ≤2,000 tokens | Always loaded |
|
||||||
| CONTEXT.md | ≤200 lines | Always loaded |
|
| GLOSSARY.md | ≤200 lines | Always loaded |
|
||||||
| Per skill body | ≤500 lines | On demand — skill activation |
|
| Per skill body | ≤500 lines | On demand — skill activation |
|
||||||
| Per skill references | As needed | On demand — skill instruction |
|
| Per skill references | As needed | On demand — skill instruction |
|
||||||
| Session handoff doc | ≤1,000 tokens | Compressed state per boundary |
|
| Session handoff doc | ≤1,000 tokens | Compressed state per boundary |
|
||||||
@@ -207,7 +207,7 @@ Using frontier models for tasks a smaller model handles adequately imposes unnec
|
|||||||
| Adversarial and complex | Flagship (Opus) | architecture-review, security-review (STRIDE), write-spec (ambiguous requirements), incident-diagnosis |
|
| Adversarial and complex | Flagship (Opus) | architecture-review, security-review (STRIDE), write-spec (ambiguous requirements), incident-diagnosis |
|
||||||
|
|
||||||
**Prompt caching is the highest single-ROI optimisation.**
|
**Prompt caching is the highest single-ROI optimisation.**
|
||||||
Place static content first (AGENTS.md, CONTEXT.md); dynamic input last. The per-token discount is 90% on cache reads ($0.30/MTok vs. $3.00/MTok for Sonnet 4.6). Actual aggregate savings depend on hit rate, which varies by workflow type; peer-quality agentic data (arXiv 2601.06007) shows 41–80% cost reduction. **TTL caveat:** Around March 2026, Anthropic silently regressed the default cache TTL from 1 hour to 5 minutes for Pro/API users (Max subscribers retained 1-hour TTL). Factor this into strategy — intra-session reuse is reliable under 5 minutes; inter-session reuse requires Max tier or explicit API configuration for 1-hour TTL at 2× write cost.
|
Place static content first (AGENTS.md, GLOSSARY.md); dynamic input last. The per-token discount is 90% on cache reads ($0.30/MTok vs. $3.00/MTok for Sonnet 4.6). Actual aggregate savings depend on hit rate, which varies by workflow type; peer-quality agentic data (arXiv 2601.06007) shows 41–80% cost reduction. **TTL caveat:** Around March 2026, Anthropic silently regressed the default cache TTL from 1 hour to 5 minutes for Pro/API users (Max subscribers retained 1-hour TTL). Factor this into strategy — intra-session reuse is reliable under 5 minutes; inter-session reuse requires Max tier or explicit API configuration for 1-hour TTL at 2× write cost.
|
||||||
|
|
||||||
**Tokens per completed task is the sustainability metric.**
|
**Tokens per completed task is the sustainability metric.**
|
||||||
It simultaneously tracks cost, carbon intensity, and whether AI is doing genuine work. Per-token costs fall; aggregate consumption rises because adoption scale outpaces efficiency gains (Jevons paradox). Measure it per task, not in aggregate.
|
It simultaneously tracks cost, carbon intensity, and whether AI is doing genuine work. Per-token costs fall; aggregate consumption rises because adoption scale outpaces efficiency gains (Jevons paradox). Measure it per task, not in aggregate.
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ Veracode is a security tool vendor with commercial interest in finding vulnerabi
|
|||||||
4. Design both feedback loops explicitly — short (finding → fix) and long (pattern → convention).
|
4. Design both feedback loops explicitly — short (finding → fix) and long (pattern → convention).
|
||||||
5. Repo-level lessons learned live in committed `LESSONS.md`, not in auto memory.
|
5. Repo-level lessons learned live in committed `LESSONS.md`, not in auto memory.
|
||||||
6. Tier review findings by severity — alert fatigue breaks the loop.
|
6. Tier review findings by severity — alert fatigue breaks the loop.
|
||||||
7. Convention graduation: 3+ LESSONS.md entries on same pattern → promote to CONTEXT.md.
|
7. Convention graduation: 3+ LESSONS.md entries on same pattern → promote to GLOSSARY.md.
|
||||||
8. Session handoff skill explicitly prompts LESSONS.md extraction before closing.
|
8. Session handoff skill explicitly prompts LESSONS.md extraction before closing.
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -385,7 +385,7 @@ Context engineering has largely superseded prompt engineering in 2026. Four stra
|
|||||||
- **OOLONG benchmark (arXiv 2511.02817, November 2025):** All frontier models (including GPT-5, Claude Sonnet 4, Gemini 2.5 Pro) score **<50% at 128K context on aggregation reasoning** — directly contradicting the assumption that large context windows solve comprehension problems.
|
- **OOLONG benchmark (arXiv 2511.02817, November 2025):** All frontier models (including GPT-5, Claude Sonnet 4, Gemini 2.5 Pro) score **<50% at 128K context on aggregation reasoning** — directly contradicting the assumption that large context windows solve comprehension problems.
|
||||||
- **"Intelligence Degradation in Long-Context LLMs" (arXiv 2601.15300):** F1 collapses ~45% at 50% of maximum context for tested models — degradation is catastrophic past a threshold, not gradual.
|
- **"Intelligence Degradation in Long-Context LLMs" (arXiv 2601.15300):** F1 collapses ~45% at 50% of maximum context for tested models — degradation is catastrophic past a threshold, not gradual.
|
||||||
|
|
||||||
**Design implication:** The 500-line skill limit and ≤200-line CONTEXT.md constraint remain well-founded for a different reason: not because reasoning degrades at exactly 3,000 tokens, but because (a) aggregation reasoning is poor even at 128K for all current models, and (b) the SkillReducer paper (arXiv 2603.29919) confirms that large skill bodies provide worse quality output than compressed equivalents, independent of absolute token counts. Drop the "3,000-token ceiling" framing; keep the size limits with this corrected rationale. Source: Levy et al. (2024) via thomas-wiegold.com; arxiv.org/abs/2511.02817; arxiv.org/abs/2601.15300; Anthropic MRCR v2 eval.
|
**Design implication:** The 500-line skill limit and ≤200-line GLOSSARY.md constraint remain well-founded for a different reason: not because reasoning degrades at exactly 3,000 tokens, but because (a) aggregation reasoning is poor even at 128K for all current models, and (b) the SkillReducer paper (arXiv 2603.29919) confirms that large skill bodies provide worse quality output than compressed equivalents, independent of absolute token counts. Drop the "3,000-token ceiling" framing; keep the size limits with this corrected rationale. Source: Levy et al. (2024) via thomas-wiegold.com; arxiv.org/abs/2511.02817; arxiv.org/abs/2601.15300; Anthropic MRCR v2 eval.
|
||||||
|
|
||||||
### XML tags: when they help
|
### XML tags: when they help
|
||||||
|
|
||||||
@@ -397,7 +397,7 @@ Claude Opus 4.5 and 4.6 tend to overengineer — extra files, unnecessary abstra
|
|||||||
|
|
||||||
### Context file design
|
### Context file design
|
||||||
|
|
||||||
"Decisions not descriptions" → ~20% token reduction. AST-level file loading → ~65% fewer file reads. Source: earezki.com/ai-news/2026-02-26 (February 2026 — single practitioner case study). ⚠️ **Commercial bias: Nicola Alessi is the developer of vexp** (vexp.dev, the AST-loading tool used in the case study). The case study should not be treated as an independent third-party result. The general principle (precise context over broad loading) is sound; the specific 65% figure reflects vexp's capabilities in that specific codebase and should be treated as an indicative upper bound, not a guaranteed outcome. The "40 file reads" baseline was also unusually broad — more disciplined CONTEXT.md instructions could close most of the gap without AST tooling. Technology choices with rationale, ADRs, codebase-specific anti-patterns, Preferred/Avoid code blocks. Source: packmind.com/context-engineering-ai-coding (April 2026).
|
"Decisions not descriptions" → ~20% token reduction. AST-level file loading → ~65% fewer file reads. Source: earezki.com/ai-news/2026-02-26 (February 2026 — single practitioner case study). ⚠️ **Commercial bias: Nicola Alessi is the developer of vexp** (vexp.dev, the AST-loading tool used in the case study). The case study should not be treated as an independent third-party result. The general principle (precise context over broad loading) is sound; the specific 65% figure reflects vexp's capabilities in that specific codebase and should be treated as an indicative upper bound, not a guaranteed outcome. The "40 file reads" baseline was also unusually broad — more disciplined GLOSSARY.md instructions could close most of the gap without AST tooling. Technology choices with rationale, ADRs, codebase-specific anti-patterns, Preferred/Avoid code blocks. Source: packmind.com/context-engineering-ai-coding (April 2026).
|
||||||
|
|
||||||
### Chain-of-thought for review skills
|
### Chain-of-thought for review skills
|
||||||
|
|
||||||
@@ -413,14 +413,14 @@ XML experiment small sample (N=12). "20% reduction" and "65% reduction" are sing
|
|||||||
|
|
||||||
### Provisional principles
|
### Provisional principles
|
||||||
|
|
||||||
1. Context engineering is the primary discipline — CONTEXT.md and reference files are the primary artefact.
|
1. Context engineering is the primary discipline — GLOSSARY.md and reference files are the primary artefact.
|
||||||
2. Keep loaded context per skill invocation lean — the 500-line skill limit is justified by SkillReducer's "less-is-more effect" (+2.8% quality from compressed skills) and OOLONG's finding of <50% aggregation reasoning at 128K even for frontier models. The previous "3,000-token ceiling" framing (Levy et al. 2024) was a misreading — see corrected evidence above.
|
2. Keep loaded context per skill invocation lean — the 500-line skill limit is justified by SkillReducer's "less-is-more effect" (+2.8% quality from compressed skills) and OOLONG's finding of <50% aggregation reasoning at 128K even for frontier models. The previous "3,000-token ceiling" framing (Levy et al. 2024) was a misreading — see corrected evidence above.
|
||||||
3. XML for complex skills (500+ tokens, 3+ sections); plain prose for simple skills.
|
3. XML for complex skills (500+ tokens, 3+ sections); plain prose for simple skills.
|
||||||
4. Every implementation skill includes an explicit constraints section.
|
4. Every implementation skill includes an explicit constraints section.
|
||||||
5. Use `<thinking>` + named output tags for review and security skills.
|
5. Use `<thinking>` + named output tags for review and security skills.
|
||||||
6. Reference files by path rather than loading full content.
|
6. Reference files by path rather than loading full content.
|
||||||
7. End every implementation skill with a self-check instruction.
|
7. End every implementation skill with a self-check instruction.
|
||||||
8. Document Preferred/Avoid code blocks in CONTEXT.md for every convention that matters.
|
8. Document Preferred/Avoid code blocks in GLOSSARY.md for every convention that matters.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,250 @@
|
|||||||
|
# Copilot CLI: custom agents, subagent delegation, pinned models and preToolUse hooks
|
||||||
|
|
||||||
|
Wayfinder research ticket, Gitea `Mortis/Holocron` #187 (map #166). Docs-only: Copilot CLI was not installed and no account was used, so nothing here was tested hands-on. Researched 2026-11-22.
|
||||||
|
|
||||||
|
Every claim is backed by a primary source: docs.github.com, or the `github/copilot-cli` repository's `changelog.md`, releases or issues. The docs.github.com pages carry no version or date, so they are cited as "retrieved 2026-11-22". At that date the newest changelog entry is **1.0.114 (2026-11-18)**. Changelog entries are cited as `vX.Y.Z (date)`. Some entries appear twice, in both 1.0.106 and 1.0.107, and this note cites the earlier one.
|
||||||
|
|
||||||
|
## Answers
|
||||||
|
|
||||||
|
1. **Delegation from a `--agent` session:** Yes, in both interactive and `-p` mode, as far as the docs and changelog show. The session agent dispatches subagents through the `task` tool, custom agents included, and the default `tools: ["*"]` keeps `task` available. No doc page says in so many words "a session started with `--agent` can delegate", so this is inferred. Agents are `*.agent.md` (or `*.md`) files in `~/.copilot/agents/`, `.github/agents/`, `.claude/agents/`, plugin `agents/`, or org/enterprise repositories.
|
||||||
|
2. **Pinned `model`:** Yes, it is honoured now, with caveats. #980 (ignored entirely) was fixed in 0.0.415 (2026-02-23). #2950 (ignored when the agent is delegated to via a prompt) was closed on 2026-10-04 as "resolved as of v1.0.91", but no 1.0.91 changelog entry mentions it. #4437 (a `.claude/agents` `model:` hijacking a `.github/agents` agent) is still open, and a fix was announced for v1.0.104. An explicit `--model`, a `subagents` override, or an Auto session model still beats the pinned model unless the agent sets `model-policy: required`.
|
||||||
|
3. **`tools` and delegation:** Yes. A restricted `tools` list must include the subagent tool. The documented custom-agent alias is **`agent`**, with compatible aliases **`custom-agent`** and **`Task`** (case-insensitive). The CLI's underlying tool is named **`task`**, with companions `read_agent`, `write_agent` and `list_agents`. `runSubagent` is not documented for Copilot CLI.
|
||||||
|
4. **preToolUse with `deny` and `ask`:** Yes, both are documented. `permissionDecision` takes `"allow"`, `"deny"` or `"ask"`. Hooks live in `.github/hooks/*.json`, `~/.copilot/hooks/*.json`, settings files, plugins or agent frontmatter. `ask` has been supported since 1.0.4 (2026-03-11), but autopilot and cloud agent convert it to deny, and `-p` behaviour for `ask` is not documented. Open bug #3590 reports the TUI auto-approving `ask` since 1.0.53.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Q1. Delegation from a `--agent` session, and how custom agents are defined
|
||||||
|
|
||||||
|
### Delegation
|
||||||
|
|
||||||
|
- The main agent "can choose to delegate a task to a subsidiary subagent process" using a custom agent. You can also run a custom agent for the whole session with `/agent`, by naming it in a prompt, or with `copilot --agent=<id> --prompt "..."`. Source: [Invoke custom agents](https://docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli/invoke-custom-agents), retrieved 2026-11-22.
|
||||||
|
- "Selecting a custom agent for a whole session and delegating a subtask to one are different uses of the same profile." Source: [About custom agents (CLI)](https://docs.github.com/en/copilot/concepts/agents/copilot-cli/about-custom-agents), retrieved 2026-11-22.
|
||||||
|
- The CLI command reference names the "Session agent (the default agent, or a custom agent selected with `--agent`)" as a role distinct from a "Custom agent spawned as a subagent — through the `task` tool". It also documents nesting: "When the depth limit is reached, the innermost agent cannot spawn further subagents." The default max depth is `6` (maximum `256`). Source: [CLI command reference, Custom agents reference](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference#custom-agents-reference), retrieved 2026-11-22.
|
||||||
|
- The changelog contradicts the depth default. It says "Lower the default maximum sub-agent nesting depth from 6 to 4" in v1.0.71 (2026-07-16). I'm not certain which value is current. Either way, `maxDepth` can only be changed on usage-based billing plans.
|
||||||
|
- `tools` defaults to `["*"]` (all tools), so an agent without a `tools` list has `task`. Source: same CLI command reference, "Custom agent frontmatter fields".
|
||||||
|
- **`-p` / prompt mode:** the changelog records subagent dispatch working headlessly:
|
||||||
|
- v1.0.49 (2026-05-18): "Plugins loaded via --plugin-dir now correctly register their agents as available task(agent_type=...) subagents in prompt mode".
|
||||||
|
- v1.0.81 (2026-08-27): "`--agent <plugin>:<agent>` works headlessly".
|
||||||
|
- v1.0.106 (2026-11-05): "In `-p` mode, a sub-agent's streamed reply now ends with a line break ... the task tool's row".
|
||||||
|
- Issue [#4437](https://github.com/github/copilot-cli/issues/4437) (CLI 1.0.79) contains a working repro in which a custom orchestrator agent with tool `task` spawns `task(agent_type: developer, ...)`. That is user evidence, not documentation.
|
||||||
|
- **Not documented:** no page explicitly says that a custom agent selected with `--agent` together with `-p` can delegate to another custom agent. The evidence above strongly implies it can, but I'm not certain without a hands-on test.
|
||||||
|
|
||||||
|
### Definition: locations and precedence
|
||||||
|
|
||||||
|
From the [CLI command reference, "Custom agent locations"](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference#custom-agent-locations), retrieved 2026-11-22. When two agents share an ID, the first one loaded wins.
|
||||||
|
|
||||||
|
| Priority | Scope | Location |
|
||||||
|
|---|---|---|
|
||||||
|
| 1 (highest) | User | `~/.copilot/agents/` |
|
||||||
|
| 2 | Project | `.github/agents/`, from the cwd up to the Git root (deepest wins) |
|
||||||
|
| 3 | Project | `.claude/agents/`, from the cwd up to the Git root |
|
||||||
|
| 4 | Added root | `.github/agents/` and `.claude/agents/` under `--add-dir` / `/add-dir` directories |
|
||||||
|
| 5 | Plugin | `<plugin>/agents/` |
|
||||||
|
| 6 (lowest) | Remote | Organization or enterprise agents |
|
||||||
|
|
||||||
|
- **Naming:** a file named `*.agent.md` or `*.md`. The agent ID is the file name minus that extension, and subdirectories are joined with `--`: `agents/team/reviewer.agent.md` becomes `team--reviewer`. The `name` field does not deduplicate. Sources: the CLI command reference above, and [Create custom agents for CLI](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/create-custom-agents-for-cli), retrieved 2026-11-22.
|
||||||
|
- **Discovery changes in the changelog:**
|
||||||
|
- Agents are discovered recursively: v1.0.55 (2026-05-28).
|
||||||
|
- Nested `.github/agents` directories are found from subdirectories: v1.0.62 (2026-06-13).
|
||||||
|
- Agents added to `.github/agents/` during a session are used without reloading: v1.0.109 (2026-11-10).
|
||||||
|
- The original feature shipped in v0.0.353 (2025-10-28).
|
||||||
|
|
||||||
|
### Frontmatter fields
|
||||||
|
|
||||||
|
The field names differ between docs pages. The CLI command reference uses **camelCase** (`modelPolicy`, `reasoningEffort`). The CLI how-to and the `--model` option text use **kebab-case** (`model-policy`, `strict-tools-list`). Changelog v1.0.88 also uses `reasoning-effort`. I'm not certain whether both spellings are accepted. Kebab-case is what the how-to example and the changelog use.
|
||||||
|
|
||||||
|
| Field | Meaning (source) |
|
||||||
|
|---|---|
|
||||||
|
| `description` | Required. Shown in the agent list and in the `task` tool (CLI ref). |
|
||||||
|
| `name` | Optional display name, usable with `--agent` (CLI ref). |
|
||||||
|
| `tools` | List of tools; the default is `["*"]` (CLI ref). The config reference also allows a comma-separated string. |
|
||||||
|
| `model` | Model for the agent; inherits the outer agent's model when unset (CLI ref). The how-to says to use the provider-qualified ID for BYOK models. Display names have been accepted since v1.0.24. |
|
||||||
|
| `models` | List of models in priority order; overrides `model` (CLI ref). Changelog v1.0.83 instead says `model` itself can hold a list. |
|
||||||
|
| `modelPolicy` / `model-policy` | `preferred` (default) or `required` (CLI ref, how-to). |
|
||||||
|
| `reasoningEffort` / `reasoning-effort` | Default effort (CLI ref; changelog v1.0.66, v1.0.88). |
|
||||||
|
| `strict-tools-list` | `true` limits the agent to the listed tool groups "without adding the usual default tools" (how-to). |
|
||||||
|
| `include-custom-instructions` | Lets the agent receive AGENTS.md, CLAUDE.md and `copilot-instructions.md` when it runs as a subagent (CLI ref, how-to; v1.0.86). |
|
||||||
|
| `infer` | "Allow auto-delegation by the main agent", default `true` (CLI ref). The config reference marks it **retired** in favour of `disable-model-invocation` and `user-invocable` (v0.0.411, 2026-02-17). |
|
||||||
|
| `disable-model-invocation` | `true` means the agent must be selected by hand and is not auto-delegated (config ref). |
|
||||||
|
| `user-invocable` | `false` hides the agent from the picker so it is only reachable programmatically (config ref; v0.0.412). |
|
||||||
|
| `mcp-servers` | Per-agent MCP servers (CLI ref, config ref). |
|
||||||
|
| `hooks` | Agent-scoped hooks that apply only while the agent is selected (hooks ref; v1.0.97). |
|
||||||
|
| `deferred-tool-loading` | Opt-in tool search (changelog v1.0.52). |
|
||||||
|
|
||||||
|
Source for the config-reference rows: [Custom agents configuration](https://docs.github.com/en/copilot/reference/custom-agents-configuration), retrieved 2026-11-22.
|
||||||
|
|
||||||
|
- Unknown frontmatter keys produce a warning instead of blocking the load since v0.0.415 (2026-02-23).
|
||||||
|
- Since v1.0.106 (2026-11-05), `-p --agent` prints a warning to stderr for frontmatter keys that Copilot ignores.
|
||||||
|
- A custom agent whose name matches a built-in agent (`explore`, `task`, `general-purpose`, `code-review`, `research`, `rubber-duck`, `security-review`) is not offered for delegation, because "delegating to that name always runs the built-in agent". Source: v1.0.106 (2026-11-05).
|
||||||
|
|
||||||
|
## Q2. Is a pinned `model` honoured?
|
||||||
|
|
||||||
|
### Current documented behaviour
|
||||||
|
|
||||||
|
From the [CLI command reference, frontmatter fields](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference#custom-agent-frontmatter-fields), retrieved 2026-11-22:
|
||||||
|
|
||||||
|
- The pinned model applies "whether the agent is dispatched through the `task` tool or started directly".
|
||||||
|
- Precedence, highest first:
|
||||||
|
1. an explicit per-call value (the `task` call's `model` argument);
|
||||||
|
2. the `subagents` override in `~/.copilot/settings.json` or the `/subagents` picker;
|
||||||
|
3. the agent's `model`, `models` or `reasoningEffort`;
|
||||||
|
4. the parent session's value.
|
||||||
|
- "A declared model or effort that can't be honored falls back to the session's value instead of failing the dispatch — unless the agent declares `modelPolicy: "required"`", in which case dispatch is refused.
|
||||||
|
- "When the session model is set to `Auto` (server-selected), subagents always inherit the resolved session model regardless of this field." Changelog v1.0.33 (2026-04-20) says the same: "Sub-agents in auto mode now inherit the session model".
|
||||||
|
- The `--model` option: "An explicit `--model` takes precedence over a custom agent's `model` unless the agent sets `model-policy: required`." Changelog v1.0.106 (2026-11-05) agrees: "Use explicit --model with custom agents unless the agent requires a specific model".
|
||||||
|
|
||||||
|
### Issues about the pinned model being ignored
|
||||||
|
|
||||||
|
| Issue | Title | Status | Fix / cross-check |
|
||||||
|
|---|---|---|---|
|
||||||
|
| [#980](https://github.com/github/copilot-cli/issues/980) | Model from agent.md isn't recognized | Closed, completed, 2026-04-07 | A comment says it was fixed in v0.0.415. The changelog for v0.0.415 (2026-02-23) agrees: "Custom agents support the `model` field ... unknown fields now warn instead of blocking agent load". Before that, 0.0.400 reported `agent uses unsupported fields: model` for a `.github/agents/*.agent.md` file. |
|
||||||
|
| [#2950](https://github.com/github/copilot-cli/issues/2950) | Calling custom agent via prompt ignores configured model in agent.md | Closed, completed, 2026-10-04 | Reported on 1.0.35. `--agent` honoured the model, but delegation through a prompt did not; a commenter adds that orchestrator subagents all ran on the orchestrator's model. It was closed by an automated comment saying "resolved as of v1.0.91". **The v1.0.91 changelog has no matching entry**, so I can't confirm which release fixed it. Candidate entries: v1.0.85 (2026-09-16), "Subagent launches honor explicit model, reasoning effort, and context tier preferences ..."; v1.0.62 (2026-06-13); v1.0.22 (2026-04-09), "Plugin agents respect the model specified in their frontmatter". |
|
||||||
|
| [#2758](https://github.com/github/copilot-cli/issues/2758) | Feature Request: Allow sub-agents to use the model specified in frontmatter/task() — add opt-out for the cost-multiplier guard | **Open** (filed 2026-04-16) | Logs show `Downgrading subagent model from "claude-sonnet-4.6" (1x) to session model "gpt-4.1" (0x)`, a downgrade applied when the session runs on a 0x model. No changelog entry removes this guard. The `modelPolicy: required` behaviour (refuse instead of substitute) may change it, but I'm not certain whether the guard still exists. |
|
||||||
|
| [#4437](https://github.com/github/copilot-cli/issues/4437) | Repo `.claude/agents/*/AGENT.md` `model:` field overrides session model for Copilot custom agents, breaking subagent spawns on BYOK providers | **Open**, `more-info-needed` | Reported on 1.0.79. On 2026-10-26 a collaborator said a fix "will ship in the next release (v1.0.104)". The v1.0.104 changelog has no matching entry. The issue is still open. |
|
||||||
|
| [#3891](https://github.com/github/copilot-cli/issues/3891) | Sub-agent `model:` override is silently dropped in BYOK / custom-provider mode | Closed, completed, 2026-07-16 | Changelog v1.0.62 (2026-06-13): "Keep custom agents on their configured model when using BYOK providers"; v1.0.65 (2026-06-24): "Keep custom-agent subagent model selections when using BYOK providers". |
|
||||||
|
| [#2133](https://github.com/github/copilot-cli/issues/2133), [#3070](https://github.com/github/copilot-cli/issues/3070) | `model` array syntax rejected / accept array | Closed, completed | Changelog v1.0.83 (2026-09-04): `model` can be a list. |
|
||||||
|
| [#2845](https://github.com/github/copilot-cli/issues/2845) | Model name shown in UI is different from the actual model loaded when custom agent enabled | Open | Display-only. Not verified further. |
|
||||||
|
| [#5241](https://github.com/github/copilot-cli/issues/5241) | Copilot app: selecting a custom agent ... doesn't apply its model or reasoning-effort | Open | Affects the Copilot desktop app, not the CLI. |
|
||||||
|
|
||||||
|
- **apm-specific issues:** I found none. Searches for "apm" and ".github/agents model" in `github/copilot-cli` returned no issue about agents deployed by apm.
|
||||||
|
- The issues that do involve `.github/agents/` are #980 (`.github/agents/*.md`) and #4437, where a `.github/agents/<name>.md` agent picks up the `model:` of a same-named `.claude/agents` agent.
|
||||||
|
- Copilot CLI itself has no notion of who wrote a file. An apm-deployed `.github/agents/*.agent.md` is treated like any other project agent, as far as the docs say.
|
||||||
|
|
||||||
|
## Q3. Which tool a `tools` list needs for delegation
|
||||||
|
|
||||||
|
- **Custom-agent tool alias table.** Source: [Custom agents configuration, "Tool aliases"](https://docs.github.com/en/copilot/reference/custom-agents-configuration#tool-aliases), retrieved 2026-11-22.
|
||||||
|
- The relevant row: primary alias **`agent`**, compatible aliases **`custom-agent`** and **`Task`**, purpose: "Allows a different custom agent to be invoked to accomplish a task."
|
||||||
|
- "All aliases are case insensitive."
|
||||||
|
- "All unrecognized tool names are ignored". A misspelled alias therefore fails silently and does not raise an error.
|
||||||
|
- **CLI tool names.** Source: [CLI command reference, "Agent and task delegation tools"](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference#agent-and-task-delegation-tools), retrieved 2026-11-22.
|
||||||
|
- `task` ("Run subagents")
|
||||||
|
- `list_agents`
|
||||||
|
- `read_agent` ("Check background agent status")
|
||||||
|
- `write_agent` ("Send a message to a running agent")
|
||||||
|
- **Changelog:**
|
||||||
|
- v0.0.380 (2026-01-13): "Custom agent tool aliasing for the task tool".
|
||||||
|
- v1.0.64 (2026-06-23): "Keep task companion tools available to custom agents that use the task or agent alias". This implies that listing `agent` or `task` also brings in `read_agent`, `write_agent` and `list_agents`.
|
||||||
|
- **Hooks naming:** in Claude-format hooks, the runtime tool `task` maps to the Claude name `Agent`. Source: [CLI hooks reference](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-hooks-reference), retrieved 2026-11-22.
|
||||||
|
- **Recommendation:** list `agent`, which is the documented primary alias. Listing `task` (the raw tool name) is also accepted per v1.0.64.
|
||||||
|
- **`runSubagent`:** not documented for Copilot CLI on any page I read.
|
||||||
|
- **`strict-tools-list`:** without it, the CLI adds "the usual default tools" to a restricted list (how-to page). **Not documented:** whether `task` is one of those default tools. Don't rely on it; list `agent` explicitly.
|
||||||
|
- **Older bugs in this area (closed):**
|
||||||
|
- [#556](https://github.com/github/copilot-cli/issues/556), "Copilot CLI --agent use does not respect tool filtering", closed 2026-02-25.
|
||||||
|
- [#4594](https://github.com/github/copilot-cli/issues/4594) and [#4023](https://github.com/github/copilot-cli/issues/4023): the `web` and `search` aliases bound no tools. Closed 2026-10-26; fixed in v1.0.100 (2026-10-19) and v1.0.106.
|
||||||
|
- [#3531](https://github.com/github/copilot-cli/issues/3531): Claude-style scalar `tools: Read, Write, Bash`. Closed not_planned by its reporter (not GitHub staff), who said the scalar form already loads on 1.0.55.
|
||||||
|
|
||||||
|
## Q4. preToolUse hooks: `deny` and `ask` before a shell command
|
||||||
|
|
||||||
|
All points below come from the [CLI hooks reference](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-hooks-reference), retrieved 2026-11-22, unless noted.
|
||||||
|
|
||||||
|
### Config locations (all matching entries run)
|
||||||
|
|
||||||
|
- **Policy:** `/etc/github-copilot/policy.d/*.json`. Root-owned, loaded first, and cannot be disabled.
|
||||||
|
- **Repository:** `.github/hooks/*.json`.
|
||||||
|
- **User:** `~/.copilot/hooks/*.json` (or `$COPILOT_HOME/hooks/`). Added in v0.0.422 (2026-03-05).
|
||||||
|
- **Inline `hooks` key in settings files:**
|
||||||
|
- repository: `.github/copilot/settings.json`, `.github/copilot/settings.local.json`, `.claude/settings.json`, `.claude/settings.local.json`;
|
||||||
|
- user: `~/.copilot/settings.json`.
|
||||||
|
- `~/.copilot/config.json` is no longer read for hooks.
|
||||||
|
- **Plugins:** `hooks.json` or `hooks/hooks.json`.
|
||||||
|
- **Agent-scoped:** a `hooks` map in a custom agent's frontmatter. CLI only, and active only while that agent is selected (v1.0.97, 2026-10-13).
|
||||||
|
- **Trust:** repository hooks load only after folder trust is confirmed (v1.0.8). In `-p` they load only when the folder is already trusted, `COPILOT_ALLOW_ALL` is set, or `GITHUB_COPILOT_PROMPT_MODE_REPO_HOOKS=true` (CLI command reference env vars; changelog v1.0.40 and v1.0.49). Since v1.0.111 (2026-11-13), the CLI warns when `-p --trust-folder` runs from a subdirectory and skips the root hooks.
|
||||||
|
|
||||||
|
### Schema
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"hooks": {
|
||||||
|
"preToolUse": [
|
||||||
|
{ "type": "command", "bash": "./scripts/guard.sh", "powershell": "...", "command": "...",
|
||||||
|
"cwd": ".", "env": { "K": "V" }, "timeoutSec": 30, "matcher": "bash|powershell" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
- `type` is `command` (the default) or `http`. HTTP entries take `url` (which must be https for preToolUse), `headers` and `allowedEnvVars`.
|
||||||
|
- `command` is the cross-platform fallback for `bash` and `powershell`. `exec` and `args` run without a shell.
|
||||||
|
- `timeoutSec` defaults to 30; `timeout` is an alias.
|
||||||
|
- `matcher` is a regex anchored as `^(?:PATTERN)$` against `toolName`. The changelog says the matcher was ignored before v1.0.36 (2026-04-24).
|
||||||
|
- PascalCase `PreToolUse` with the Claude-style nested `matcher`/`hooks` structure is also accepted (v1.0.6). Its matcher uses Claude tool names, so `bash` and `powershell` match as `Bash`.
|
||||||
|
|
||||||
|
### Input on stdin
|
||||||
|
|
||||||
|
- camelCase (`preToolUse`): `{ sessionId, timestamp (Unix ms), cwd, toolName, toolArgs }`. `toolArgs` is typed `unknown`.
|
||||||
|
- **Not documented:** whether `toolArgs` arrives as a JSON string or an object. I'm not certain.
|
||||||
|
- The shell tool is named `bash` or `powershell`.
|
||||||
|
- PascalCase (`PreToolUse`): `{ hook_event_name, session_id, timestamp (ISO 8601), cwd, tool_name ("Bash"), tool_input }`.
|
||||||
|
- Subagent calls also carry `agentId`, `agentType` and `parentAgentId`. Hooks fire for subagent tool calls since v1.0.49 (2026-05-18).
|
||||||
|
|
||||||
|
### Output on stdout
|
||||||
|
|
||||||
|
- `permissionDecision`: `"allow"`, `"deny"` or `"ask"`.
|
||||||
|
- `permissionDecisionReason`: required for `deny`.
|
||||||
|
- `modifiedArgs`: replacement tool arguments.
|
||||||
|
- If any hook returns `deny`, the tool call is blocked.
|
||||||
|
|
||||||
|
### Exit codes and failure modes
|
||||||
|
|
||||||
|
- Exit `0`: stdout is parsed.
|
||||||
|
- Exit `2`: treated as a deny that a stdout `allow` cannot override. Exit-2 deny was added in v1.0.70 (2026-07-09).
|
||||||
|
- Any other non-zero exit, or a crash, fails closed: the call is denied with "Denied by preToolUse hook (hook errored)". Since v1.0.57 (2026-06-01) a hook error denies the call instead of allowing it.
|
||||||
|
- **Command-hook timeouts fail open**, "even for `preToolUse` and policy hooks". So do HTTP hook network errors and non-2xx responses. Changelog v1.0.67 (2026-06-30): "Allow tool calls to continue when hooks time out".
|
||||||
|
|
||||||
|
### Is `ask` actually supported?
|
||||||
|
|
||||||
|
- **Documented:** yes. Changelog v1.0.4 (2026-03-11): "Hooks can now request user confirmation before tool execution with 'ask' permission decision". When the CLI can show the prompt, the user can deny with feedback, which is forwarded to the agent (v1.0.64).
|
||||||
|
- **Documented exceptions:**
|
||||||
|
- Under **autopilot**, `ask` is denied (v1.0.97).
|
||||||
|
- Under **cloud agent**, `ask` is treated as `deny`.
|
||||||
|
- In **ACP mode**, `ask` goes to the ACP client since v1.0.109 (2026-11-10), after [#5396](https://github.com/github/copilot-cli/issues/5396), which was closed.
|
||||||
|
- **`-p` (non-interactive) mode:** **not documented** for `ask`. The hooks reference points `-p` and CI users to `permissionRequest` hooks for programmatic allow and deny instead.
|
||||||
|
- **Issues:**
|
||||||
|
- [#3590](https://github.com/github/copilot-cli/issues/3590), "PreToolUse hook permissionDecision: "ask" auto-approved by TUI since v1.0.53": **open**. The prompt flashes and is auto-approved; 1.0.52 worked. Later changelog entries assume `ask` prompts work: v1.0.64 forwards rejection feedback, and v1.0.108 (2026-11-09) gives parallel calls their own confirmation. I'm not certain whether #3590 still reproduces on 1.0.114.
|
||||||
|
- [#4135](https://github.com/github/copilot-cli/issues/4135), "Hook `ask` decisions show raw JSON instead of diff view": open. Cosmetic.
|
||||||
|
- [#4237](https://github.com/github/copilot-cli/issues/4237), "Steering message in `preToolUse` "ask" denial is silently dropped": closed, completed, 2026-09-19.
|
||||||
|
- [#2647](https://github.com/github/copilot-cli/issues/2647), "preToolUse "ask" feedback is not shown to the agent": closed, completed, 2026-09-25.
|
||||||
|
- [#2893](https://github.com/github/copilot-cli/issues/2893), "preToolUse hooks silently bypassed under parallel tool calls (timeout->allow fallback + serial dispatch)": **open** (reported on 1.0.35). The documented timeout fail-open behaviour is the root cause. The hooks reference now says hooks for different calls in a parallel batch run concurrently, which may address the serial-dispatch half.
|
||||||
|
- [#2540](https://github.com/github/copilot-cli/issues/2540), "Plugin-defined preToolUse hooks (hooks.json) do not fire": open, `more-info-needed` (reported on 1.0.18).
|
||||||
|
- [#5326](https://github.com/github/copilot-cli/issues/5326), "Denied by preToolUse hook from ".github/hooks/rtk-rewrite.json" (hook errored)": open, on 1.0.104 in cloud. It shows how a repository hook that errors blocks every call (fail-closed). This matters here because this repo uses `rtk`.
|
||||||
|
|
||||||
|
## Limitations for `delivery` agents
|
||||||
|
|
||||||
|
These are the open bugs and undocumented behaviours that could affect our custom agents deployed by apm into `.github/agents/`. The status of each is as of 2026-11-22.
|
||||||
|
|
||||||
|
1. **The pinned model can be overridden without notice.**
|
||||||
|
- An explicit `--model`, a user `subagents` override, or an **Auto** session model all beat the agent's `model` (CLI command reference; v1.0.106).
|
||||||
|
- A model that can't be resolved falls back to the session model without failing.
|
||||||
|
- Mitigation: `model-policy: required` (documented). Its camelCase/kebab-case spelling is inconsistent across the docs.
|
||||||
|
2. **#4437, open.** A same-named `.claude/agents/<name>/AGENT.md` with a `model:` field overrides the `.github/agents/<name>.md` agent's model. A fix was announced for v1.0.104 but no changelog entry confirms it. This matters if apm deploys an agent to both `.claude/agents/` and `.github/agents/` under the same ID.
|
||||||
|
- Separate point, from the documented precedence: `.github/agents/` outranks `.claude/agents/`, and `~/.copilot/agents/` outranks both. A user-level agent with the same ID silently replaces the repo-deployed one.
|
||||||
|
3. **#2758, open.** A cost-multiplier guard reportedly downgrades a subagent's pinned model to the session model when the session runs on a 0x model. I'm not certain it still applies.
|
||||||
|
4. **#2950, closed.** Its auto-close cites v1.0.91, but no changelog entry confirms the fix. Verify on the installed version that orchestrator-delegated subagents run on their pinned models.
|
||||||
|
5. **The subagent tool must be in `tools`.** A restricted `tools` list needs `agent` (or `custom-agent`, `Task` or `task`) for the orchestrator to delegate. Unrecognized names are silently ignored. **Not documented:** whether `task` is among the "default tools" added when `strict-tools-list` is off.
|
||||||
|
6. **Subagents don't get AGENTS.md by default.** Custom agents spawned as subagents do not receive AGENTS.md, CLAUDE.md or `copilot-instructions.md` unless they set `include-custom-instructions: true`. This is documented behaviour, not a bug.
|
||||||
|
7. **#5124, open.** The `--agent <name>` selection is dropped about 1 second after interactive startup (a race with sign-in or MCP reload), and the session silently falls back to the default agent. Reported on 1.0.95. v1.0.108 has a related fix ("Keep built-in agents selected with --agent active ..."), which covers built-in agents only. I'm not certain it fixes custom agents.
|
||||||
|
8. **#4752, open.** `--agent <name>` does not find agents that exist only under an `--add-dir` directory (1.0.83). This doesn't matter for agents in the repo's own `.github/agents/`.
|
||||||
|
9. **#5543, open (filed 2026-11-21).** Subagents started by other subagents always run synchronously. `mode: "background"` is silently ignored and `write_agent` refuses them. This affects multi-level delivery chains.
|
||||||
|
10. **Subagent limits.** Concurrency is plan-capped (Free 2, Pro 4, Business 16, Enterprise 32), and depth defaults to 6 per the docs or 4 per changelog v1.0.71. Both limits are adjustable only on usage-based billing.
|
||||||
|
11. **Name collisions with built-in agents.** An agent that shares a built-in's name is never delegated to (v1.0.106). Avoid `task`, `explore`, `general-purpose`, `code-review`, `research`, `rubber-duck` and `security-review` as agent IDs or names.
|
||||||
|
12. **The `ask` hook is unreliable.**
|
||||||
|
- [#3590](https://github.com/github/copilot-cli/issues/3590) (open): the TUI auto-approves `ask` since 1.0.53.
|
||||||
|
- `ask` is denied under autopilot and under cloud agent.
|
||||||
|
- `-p` behaviour is not documented.
|
||||||
|
- Don't make `ask` the only safety gate; use `deny`, or exit code 2, for hard stops.
|
||||||
|
13. **Hooks fail open on timeout.** Command-hook timeouts allow the call, even for preToolUse (documented). Open issue [#2893](https://github.com/github/copilot-cli/issues/2893) describes the bypass. A guard hook must be fast and well inside `timeoutSec`.
|
||||||
|
14. **Repo hooks may not load in `-p`.** They load only in a trusted folder, with `COPILOT_ALLOW_ALL`, or with `GITHUB_COPILOT_PROMPT_MODE_REPO_HOOKS=true`. Since v1.0.111, the CLI warns when `-p` runs from a subdirectory and skips the root hooks.
|
||||||
|
15. **#2540, open.** Plugin-defined preToolUse hooks reportedly never fire. This is relevant if hooks are shipped through an apm or Copilot plugin instead of `.github/hooks/`.
|
||||||
|
|
||||||
|
## Sources
|
||||||
|
|
||||||
|
- [docs: Custom agents configuration (tool aliases, frontmatter)](https://docs.github.com/en/copilot/reference/custom-agents-configuration), retrieved 2026-11-22, undated
|
||||||
|
- [docs: Copilot CLI command reference (custom agents reference, tool names, `--model`, subagent limits)](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference), retrieved 2026-11-22, undated
|
||||||
|
- [docs: Create custom agents for CLI](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/create-custom-agents-for-cli), retrieved 2026-11-22, undated
|
||||||
|
- [docs: Invoke custom agents](https://docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli/invoke-custom-agents), retrieved 2026-11-22, undated
|
||||||
|
- [docs: About custom agents (CLI)](https://docs.github.com/en/copilot/concepts/agents/copilot-cli/about-custom-agents), retrieved 2026-11-22, undated
|
||||||
|
- [docs: Copilot CLI hooks reference](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-hooks-reference), retrieved 2026-11-22, undated
|
||||||
|
- [github/copilot-cli changelog.md](https://github.com/github/copilot-cli/blob/main/changelog.md), read 2026-11-22; covers 0.0.328 (2025-09-26) to 1.0.114 (2026-11-18)
|
||||||
|
- [github/copilot-cli releases](https://github.com/github/copilot-cli/releases)
|
||||||
|
- Issues in github/copilot-cli: [#556](https://github.com/github/copilot-cli/issues/556), [#980](https://github.com/github/copilot-cli/issues/980), [#2133](https://github.com/github/copilot-cli/issues/2133), [#2540](https://github.com/github/copilot-cli/issues/2540), [#2647](https://github.com/github/copilot-cli/issues/2647), [#2758](https://github.com/github/copilot-cli/issues/2758), [#2845](https://github.com/github/copilot-cli/issues/2845), [#2893](https://github.com/github/copilot-cli/issues/2893), [#2950](https://github.com/github/copilot-cli/issues/2950), [#3070](https://github.com/github/copilot-cli/issues/3070), [#3531](https://github.com/github/copilot-cli/issues/3531), [#3590](https://github.com/github/copilot-cli/issues/3590), [#3891](https://github.com/github/copilot-cli/issues/3891), [#4023](https://github.com/github/copilot-cli/issues/4023), [#4135](https://github.com/github/copilot-cli/issues/4135), [#4237](https://github.com/github/copilot-cli/issues/4237), [#4437](https://github.com/github/copilot-cli/issues/4437), [#4594](https://github.com/github/copilot-cli/issues/4594), [#4752](https://github.com/github/copilot-cli/issues/4752), [#5124](https://github.com/github/copilot-cli/issues/5124), [#5241](https://github.com/github/copilot-cli/issues/5241), [#5326](https://github.com/github/copilot-cli/issues/5326), [#5396](https://github.com/github/copilot-cli/issues/5396), [#5543](https://github.com/github/copilot-cli/issues/5543)
|
||||||
@@ -61,7 +61,7 @@ Plugin-root documentation belongs in `docs/`. That convention is older than the
|
|||||||
Those on-demand files are plain markdown — no frontmatter, no schema. The agent decides when to read each one from task context and the content index label alone. Frontmatter is deferred until there is evidence that agents are loading the wrong files in practice; it is a deliberate deferral, not an oversight to close.
|
Those on-demand files are plain markdown — no frontmatter, no schema. The agent decides when to read each one from task context and the content index label alone. Frontmatter is deferred until there is evidence that agents are loading the wrong files in practice; it is a deliberate deferral, not an oversight to close.
|
||||||
|
|
||||||
The governance layer has two phases:
|
The governance layer has two phases:
|
||||||
- **Phase 1** (complete): instruction and documentation layer — `governance.md` loaded via `@import`; `core/ai-constitution.md` and `docs/wiki/HUMANS.md` as human-facing reference; `CONTEXT.md` glossing the one governance term used unglossed elsewhere (HITL); the rest of the governance vocabulary is defined in `core/ai-constitution.md`.
|
- **Phase 1** (complete): instruction and documentation layer — `governance.md` loaded via `@import`; `core/ai-constitution.md` and `docs/wiki/HUMANS.md` as human-facing reference; `GLOSSARY.md` glossing the one governance term used unglossed elsewhere (HITL); the rest of the governance vocabulary is defined in `core/ai-constitution.md`.
|
||||||
- **Phase 2** (planned): deterministic enforcement layer — pre-commit hooks, CI gates, secret scanning, licence scanning. Specified in `docs/research/governance_principles/CONTROLS.md`.
|
- **Phase 2** (planned): deterministic enforcement layer — pre-commit hooks, CI gates, secret scanning, licence scanning. Specified in `docs/research/governance_principles/CONTROLS.md`.
|
||||||
|
|
||||||
## AGENTS.md pattern
|
## AGENTS.md pattern
|
||||||
@@ -73,9 +73,9 @@ This repo uses two `AGENTS.md` files as the provider-agnostic source of always-o
|
|||||||
|
|
||||||
Both `CLAUDE.md` files are thin adapters: they import from their respective `AGENTS.md` and add only Claude Code-specific syntax (`@import`, content index paths). They carry no original always-on content.
|
Both `CLAUDE.md` files are thin adapters: they import from their respective `AGENTS.md` and add only Claude Code-specific syntax (`@import`, content index paths). They carry no original always-on content.
|
||||||
|
|
||||||
This repo also has a `CLAUDE.md` at its root — the Claude Code entry point for working in this repo. It imports `AGENTS.md` and nothing else; there is no `@CONTEXT.md` import. It is not import-only either: below the import sits a fenced `<!-- rtk-instructions v2 -->` … `<!-- /rtk-instructions -->` block carrying the RTK command-prefix convention, which is tool-specific content with no `AGENTS.md` source. This is distinct from `providers/claude-code/CLAUDE.md`, which is the global config deployed to `~/.claude/`.
|
This repo also has a `CLAUDE.md` at its root — the Claude Code entry point for working in this repo. It imports `AGENTS.md` and nothing else; there is no `@GLOSSARY.md` import. It is not import-only either: below the import sits a fenced `<!-- rtk-instructions v2 -->` … `<!-- /rtk-instructions -->` block carrying the RTK command-prefix convention, which is tool-specific content with no `AGENTS.md` source. This is distinct from `providers/claude-code/CLAUDE.md`, which is the global config deployed to `~/.claude/`.
|
||||||
|
|
||||||
`CONTEXT.md` is therefore **not** always-loaded. `AGENTS.md` instructs agents to read it at session start, which is a behavioural instruction, not an `@import` guarantee.
|
`GLOSSARY.md` is therefore **not** always-loaded. `AGENTS.md` instructs agents to read it at session start, which is a behavioural instruction, not an `@import` guarantee.
|
||||||
|
|
||||||
## Reference conventions
|
## Reference conventions
|
||||||
|
|
||||||
|
|||||||
+4
-3
@@ -1,12 +1,13 @@
|
|||||||
---
|
---
|
||||||
name: research
|
name: research-docs
|
||||||
description: >-
|
description: >-
|
||||||
Use when the user wants a tool, library, or API researched from canonical
|
Use when the user wants a tool, library, or API researched from canonical
|
||||||
documentation into structured per-topic reference markdown files. Not
|
documentation into structured per-topic reference markdown files. Not
|
||||||
documentation written from existing code or specs -> `write-docs`. Not a bug
|
documentation written from existing code or specs -> `write-docs`. Not a bug
|
||||||
or incident -> `diagnose`.
|
or incident -> `diagnose`. Not a single question a decision waits on, answered
|
||||||
|
in one findings note -> `research`.
|
||||||
metadata:
|
metadata:
|
||||||
version: "1.0.2"
|
version: "2.0.0"
|
||||||
category: research
|
category: research
|
||||||
allowed-tools:
|
allowed-tools:
|
||||||
- Grep
|
- Grep
|
||||||
File renamed without changes.
File renamed without changes.
@@ -5,11 +5,11 @@ description: >
|
|||||||
or spec, every claim traced to a source — "write docs for X", "document this
|
or spec, every claim traced to a source — "write docs for X", "document this
|
||||||
module", "create docs for this feature", "write a README for this". Not an ADR
|
module", "create docs for this feature", "write a README for this". Not an ADR
|
||||||
or other decision record -> `grill-with-docs`. Not an external tool researched
|
or other decision record -> `grill-with-docs`. Not an external tool researched
|
||||||
from its docs -> `research`.
|
from its docs -> `research-docs`.
|
||||||
updated: 2026-05-17
|
updated: 2026-05-17
|
||||||
when: invoked by explicit trigger ("write docs for X", "document this module", "create docs for this feature") or implicit request to produce technical documentation from code or spec
|
when: invoked by explicit trigger ("write docs for X", "document this module", "create docs for this feature") or implicit request to produce technical documentation from code or spec
|
||||||
metadata:
|
metadata:
|
||||||
version: "1.0.1"
|
version: "1.0.2"
|
||||||
category: implement
|
category: implement
|
||||||
source:
|
source:
|
||||||
- repo: anthropics/skills
|
- repo: anthropics/skills
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ apm is the only supported install path (ADR-0024). Declare this package in the c
|
|||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
apm:
|
apm:
|
||||||
- git: git@git.rkdr.net:Defame1297/holocron.git
|
- git: https://git.rkdr.net/Mortis/Holocron.git
|
||||||
path: plugins/bin
|
path: plugins/bin
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ Then:
|
|||||||
apm install
|
apm install
|
||||||
```
|
```
|
||||||
|
|
||||||
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add git@git.rkdr.net:Defame1297/holocron.git --name holocron`) gets you the `bin@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
|
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `bin@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
|
||||||
|
|
||||||
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills — and Claude Code raises no error while doing it (ADR-0024).
|
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills — and Claude Code raises no error while doing it (ADR-0024).
|
||||||
|
|
||||||
|
|||||||
+5
-6
@@ -1,13 +1,12 @@
|
|||||||
name: bin
|
name: bin
|
||||||
version: 2.0.0
|
version: 3.0.0
|
||||||
description: Skills for everyday AI-assisted development work that is not tied to a single tool, forge or language, and has not yet been split into a focused plugin.
|
description: Skills for everyday AI-assisted development work that is not tied to a single tool, forge or language, and has not yet been split into a focused plugin.
|
||||||
author:
|
author:
|
||||||
name: Defame1297
|
name: Mortis
|
||||||
email: [email protected]
|
url: https://git.rkdr.net/Mortis/
|
||||||
url: https://git.rkdr.net/Defame1297/
|
|
||||||
license: MIT
|
license: MIT
|
||||||
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/bin
|
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/bin
|
||||||
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/bin
|
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/bin
|
||||||
keywords:
|
keywords:
|
||||||
- utility
|
- utility
|
||||||
- diagnostics
|
- diagnostics
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ apm is the only supported install path (ADR-0024). Declare this package in the c
|
|||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
apm:
|
apm:
|
||||||
- git: git@git.rkdr.net:Defame1297/holocron.git
|
- git: https://git.rkdr.net/Mortis/Holocron.git
|
||||||
path: plugins/core
|
path: plugins/core
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ Then:
|
|||||||
apm install
|
apm install
|
||||||
```
|
```
|
||||||
|
|
||||||
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add git@git.rkdr.net:Defame1297/holocron.git --name holocron`) gets you the `core@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
|
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `core@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
|
||||||
|
|
||||||
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills — and Claude Code raises no error while doing it (ADR-0024).
|
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills — and Claude Code raises no error while doing it (ADR-0024).
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,11 @@ name: core
|
|||||||
version: 1.1.4
|
version: 1.1.4
|
||||||
description: Skills for authoring and auditing a repo's AGENTS.md and the provider adapter files that defer to it.
|
description: Skills for authoring and auditing a repo's AGENTS.md and the provider adapter files that defer to it.
|
||||||
author:
|
author:
|
||||||
name: Defame1297
|
name: Mortis
|
||||||
email: [email protected]
|
url: https://git.rkdr.net/Mortis/
|
||||||
url: https://git.rkdr.net/Defame1297/
|
|
||||||
license: MIT
|
license: MIT
|
||||||
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/core
|
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/core
|
||||||
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/core
|
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/core
|
||||||
keywords:
|
keywords:
|
||||||
- agents-md
|
- agents-md
|
||||||
- documentation
|
- documentation
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ apm is the only supported install path (ADR-0024). Declare this package in the c
|
|||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
apm:
|
apm:
|
||||||
- git: git@git.rkdr.net:Defame1297/holocron.git
|
- git: https://git.rkdr.net/Mortis/Holocron.git
|
||||||
path: plugins/git
|
path: plugins/git
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ Then:
|
|||||||
apm install
|
apm install
|
||||||
```
|
```
|
||||||
|
|
||||||
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add git@git.rkdr.net:Defame1297/holocron.git --name holocron`) gets you the `git@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
|
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `git@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
|
||||||
|
|
||||||
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills and zero agents — and Claude Code raises no error while doing it (ADR-0024).
|
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills and zero agents — and Claude Code raises no error while doing it (ADR-0024).
|
||||||
|
|
||||||
|
|||||||
+4
-5
@@ -2,12 +2,11 @@ name: git
|
|||||||
version: 1.3.9
|
version: 1.3.9
|
||||||
description: Skills and agents for working with a local Git clone over the git wire protocol, and for authoring and running the pre-commit hooks that guard it.
|
description: Skills and agents for working with a local Git clone over the git wire protocol, and for authoring and running the pre-commit hooks that guard it.
|
||||||
author:
|
author:
|
||||||
name: Defame1297
|
name: Mortis
|
||||||
email: [email protected]
|
url: https://git.rkdr.net/Mortis/
|
||||||
url: https://git.rkdr.net/Defame1297/
|
|
||||||
license: MIT
|
license: MIT
|
||||||
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/git
|
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/git
|
||||||
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/git
|
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/git
|
||||||
keywords:
|
keywords:
|
||||||
- git
|
- git
|
||||||
- vcs
|
- vcs
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ metadata:
|
|||||||
- gitea-mcp-slim-go
|
- gitea-mcp-slim-go
|
||||||
- context7-websites-gitea
|
- context7-websites-gitea
|
||||||
- context7-gitea-tea-cli
|
- context7-gitea-tea-cli
|
||||||
version: "0.1.6"
|
version: "0.1.7"
|
||||||
|
|
||||||
allowed-tools: Bash mcp__gitea__label_read mcp__gitea__label_write mcp__gitea__milestone_read mcp__gitea__milestone_write
|
allowed-tools: Bash mcp__gitea__label_read mcp__gitea__label_write mcp__gitea__milestone_read mcp__gitea__milestone_write
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ per repo label. That does not contradict `label_write`'s schema, which annotates
|
|||||||
server-side; where it is `false` labels in that scope stack legitimately. Read the field — never
|
server-side; where it is `false` labels in that scope stack legitimately. Read the field — never
|
||||||
infer exclusivity from the `/` in a name, and never carry another repo's map over.
|
infer exclusivity from the `/` in a name, and never carry another repo's map over.
|
||||||
|
|
||||||
On the instance this skill was authored against (`Defame1297/holocron`) the split ran: every
|
On the instance this skill was authored against (`Mortis/Holocron`) the split ran: every
|
||||||
`Priority/*`, `Reviewed/*` and `Status/*` label `exclusive: true`, every `Kind/*` label and
|
`Priority/*`, `Reviewed/*` and `Status/*` label `exclusive: true`, every `Kind/*` label and
|
||||||
`Compat/Breaking` `exclusive: false`. That is one repo's configuration at one point in time, recorded
|
`Compat/Breaking` `exclusive: false`. That is one repo's configuration at one point in time, recorded
|
||||||
as a worked example of what the field looks like in practice — it is not a property of the taxonomy
|
as a worked example of what the field looks like in practice — it is not a property of the taxonomy
|
||||||
|
|||||||
@@ -2,12 +2,11 @@ name: gitea
|
|||||||
version: 1.3.10
|
version: 1.3.10
|
||||||
description: Skills and agents for working with a Gitea forge through its HTTP API — the forge's own objects, as distinct from the local git clone.
|
description: Skills and agents for working with a Gitea forge through its HTTP API — the forge's own objects, as distinct from the local git clone.
|
||||||
author:
|
author:
|
||||||
name: Defame1297
|
name: Mortis
|
||||||
email: [email protected]
|
url: https://git.rkdr.net/Mortis/
|
||||||
url: https://git.rkdr.net/Defame1297/
|
|
||||||
license: MIT
|
license: MIT
|
||||||
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/gitea
|
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/gitea
|
||||||
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/gitea
|
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/gitea
|
||||||
keywords:
|
keywords:
|
||||||
- gitea
|
- gitea
|
||||||
- issues
|
- issues
|
||||||
|
|||||||
@@ -14,14 +14,14 @@ Canonical call sequences for the operations most likely to appear in a Gitea-man
|
|||||||
Labels and milestones must be referenced by numeric ID in write operations. Resolve them first.
|
Labels and milestones must be referenced by numeric ID in write operations. Resolve them first.
|
||||||
|
|
||||||
```
|
```
|
||||||
1. label_read method: "list_repo_labels" owner: "Defame1297" repo: "holocron"
|
1. label_read method: "list_repo_labels" owner: "Mortis" repo: "Holocron"
|
||||||
→ returns [{id: 3, name: "bug"}, {id: 7, name: "enhancement"}, ...]
|
→ returns [{id: 3, name: "bug"}, {id: 7, name: "enhancement"}, ...]
|
||||||
|
|
||||||
2. milestone_read method: "list" owner: "Defame1297" repo: "holocron"
|
2. milestone_read method: "list" owner: "Mortis" repo: "Holocron"
|
||||||
→ returns [{id: 1, title: "v1.0"}, ...]
|
→ returns [{id: 1, title: "v1.0"}, ...]
|
||||||
|
|
||||||
3. issue_write method: "create"
|
3. issue_write method: "create"
|
||||||
owner: "Defame1297" repo: "holocron"
|
owner: "Mortis" repo: "Holocron"
|
||||||
title: "Fix the widget"
|
title: "Fix the widget"
|
||||||
body: "Description of the problem"
|
body: "Description of the problem"
|
||||||
labels: [3] ← IDs, not names
|
labels: [3] ← IDs, not names
|
||||||
@@ -61,7 +61,7 @@ issue_write method: "remove_label"
|
|||||||
|
|
||||||
```
|
```
|
||||||
1. create_branch
|
1. create_branch
|
||||||
owner: "Defame1297" repo: "holocron"
|
owner: "Mortis" repo: "Holocron"
|
||||||
branch: "feat/my-feature"
|
branch: "feat/my-feature"
|
||||||
old_branch: "main" ← defaults to repo default if omitted
|
old_branch: "main" ← defaults to repo default if omitted
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ description: >
|
|||||||
skill -> `skill-author`. Not a named agent -> `agent-author`. Not a named
|
skill -> `skill-author`. Not a named agent -> `agent-author`. Not a named
|
||||||
plugin -> `apm-workflow`.
|
plugin -> `apm-workflow`.
|
||||||
metadata:
|
metadata:
|
||||||
version: "1.0.4"
|
version: "1.0.5"
|
||||||
category: factory
|
category: factory
|
||||||
source_keys:
|
source_keys:
|
||||||
- claude-code-subagents-docs
|
- claude-code-subagents-docs
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
|
|
||||||
- **URL:** https://agentskills.io/specification.md
|
- **URL:** https://agentskills.io/specification.md
|
||||||
- **Research doc:** plugins/kyberforge/docs/research/docs/agentskillsio/sources.md
|
- **Research doc:** plugins/kyberforge/docs/research/docs/agentskillsio/sources.md
|
||||||
- **Description:** Complete SKILL.md format specification — confirms `assets/`, `references/`, and `scripts/` are warranted only by the bulk/reusability of supporting content (large reference material, executable code, templates), not by a skill's category, and forge's per-route procedures are that kind of supporting content — so the spec permits the `references/` split here but does not require it. The warrant is a house decision: dispatch is mandatory at two or more mutually exclusive flows, which forge's four-row table is. `references/sources.md` likewise exists for this repo's own provenance-chain convention (see `CONTEXT.md`), not because the spec requires it.
|
- **Description:** Complete SKILL.md format specification — confirms `assets/`, `references/`, and `scripts/` are warranted only by the bulk/reusability of supporting content (large reference material, executable code, templates), not by a skill's category, and forge's per-route procedures are that kind of supporting content — so the spec permits the `references/` split here but does not require it. The warrant is a house decision: dispatch is mandatory at two or more mutually exclusive flows, which forge's four-row table is. `references/sources.md` likewise exists for this repo's own provenance-chain convention (see `GLOSSARY.md`), not because the spec requires it.
|
||||||
- **Contributing files:** SKILL.md
|
- **Contributing files:** SKILL.md
|
||||||
- **Status:** `extracted`
|
- **Status:** `extracted`
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ description: >
|
|||||||
Not read-only review -> `factory-audit`. Not agent files -> `agent-author`.
|
Not read-only review -> `factory-audit`. Not agent files -> `agent-author`.
|
||||||
allowed-tools: Bash Read Write Edit
|
allowed-tools: Bash Read Write Edit
|
||||||
metadata:
|
metadata:
|
||||||
version: "1.0.6"
|
version: "1.0.7"
|
||||||
category: factory
|
category: factory
|
||||||
source_keys:
|
source_keys:
|
||||||
- agentskills-home
|
- agentskills-home
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ metadata:
|
|||||||
# skill starts at "0.1.0" — leave the seeded value as it is; "1.0.0" is the seed
|
# skill starts at "0.1.0" — leave the seeded value as it is; "1.0.0" is the seed
|
||||||
# for a pre-existing skill retrofitted into the rule, not for a new one.
|
# for a pre-existing skill retrofitted into the rule, not for a new one.
|
||||||
# The rest of the map is optional: author, category, source_keys.
|
# The rest of the map is optional: author, category, source_keys.
|
||||||
# source_keys: populated when built from /research output. Lists slugs from references/sources.md.
|
# source_keys: populated when built from /research-docs output. Lists slugs from references/sources.md.
|
||||||
# Also add source_keys to each references/*.md file that was informed by research.
|
# Also add source_keys to each references/*.md file that was informed by research.
|
||||||
|
|
||||||
# allowed-tools: Bash Read Write
|
# allowed-tools: Bash Read Write
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ apm is the only supported install path (ADR-0024). Declare this package in the c
|
|||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
apm:
|
apm:
|
||||||
- git: git@git.rkdr.net:Defame1297/holocron.git
|
- git: https://git.rkdr.net/Mortis/Holocron.git
|
||||||
path: plugins/kyberforge
|
path: plugins/kyberforge
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ Then:
|
|||||||
apm install
|
apm install
|
||||||
```
|
```
|
||||||
|
|
||||||
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add git@git.rkdr.net:Defame1297/holocron.git --name holocron`) gets you the `kyberforge@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
|
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `kyberforge@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
|
||||||
|
|
||||||
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills, agents and hooks — and Claude Code raises no error while doing it (ADR-0024).
|
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills, agents and hooks — and Claude Code raises no error while doing it (ADR-0024).
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,11 @@ name: kyberforge
|
|||||||
version: 2.2.1
|
version: 2.2.1
|
||||||
description: Skills and agents for creating, maintaining, and managing an apm plugin marketplace for Claude Code and GitHub Copilot.
|
description: Skills and agents for creating, maintaining, and managing an apm plugin marketplace for Claude Code and GitHub Copilot.
|
||||||
author:
|
author:
|
||||||
name: Defame1297
|
name: Mortis
|
||||||
email: [email protected]
|
url: https://git.rkdr.net/Mortis/
|
||||||
url: https://git.rkdr.net/Defame1297/
|
|
||||||
license: MIT
|
license: MIT
|
||||||
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/kyberforge
|
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/kyberforge
|
||||||
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/kyberforge
|
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/kyberforge
|
||||||
keywords:
|
keywords:
|
||||||
- marketplace
|
- marketplace
|
||||||
- plugin
|
- plugin
|
||||||
|
|||||||
@@ -6,3 +6,5 @@
|
|||||||
- **Description:** Anthropic's official skill-creator skill — iterative skill authoring with draft/eval/improve loop, quantitative benchmarking, and description optimization
|
- **Description:** Anthropic's official skill-creator skill — iterative skill authoring with draft/eval/improve loop, quantitative benchmarking, and description optimization
|
||||||
- **Contributing files:** SKILL.md, agents/analyzer.md, agents/comparator.md, agents/grader.md, references/schemas.md
|
- **Contributing files:** SKILL.md, agents/analyzer.md, agents/comparator.md, agents/grader.md, references/schemas.md
|
||||||
- **Status:** `extracted`
|
- **Status:** `extracted`
|
||||||
|
- **Licence:** Apache-2.0 — see `LICENSE.txt` in this folder.
|
||||||
|
- **Modifications:** whitespace only (trailing whitespace and end-of-file newlines normalised by this repo's pre-commit hooks); content is otherwise unchanged from upstream.
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2026 Matt Pocock
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2025 Jesse Vincent
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
+5
-1147
File diff suppressed because it is too large.
Load diff
@@ -6,3 +6,5 @@
|
|||||||
- **Description:** Jesse Vincent's writing-skills skill — covers skill authoring patterns, Anthropic best practices, persuasion principles, and subagent-based skill testing
|
- **Description:** Jesse Vincent's writing-skills skill — covers skill authoring patterns, Anthropic best practices, persuasion principles, and subagent-based skill testing
|
||||||
- **Contributing files:** SKILL.md, anthropic-best-practices.md, persuasion-principles.md, testing-skills-with-subagents.md, examples/CLAUDE_MD_TESTING.md
|
- **Contributing files:** SKILL.md, anthropic-best-practices.md, persuasion-principles.md, testing-skills-with-subagents.md, examples/CLAUDE_MD_TESTING.md
|
||||||
- **Status:** `extracted`
|
- **Status:** `extracted`
|
||||||
|
- **Licence:** MIT, Copyright (c) 2025 Jesse Vincent — see `LICENSE` in this folder.
|
||||||
|
- **Excluded:** `anthropic-best-practices.md` is replaced by a link to Anthropic's canonical documentation page; it was Anthropic's docs, not superpowers code.
|
||||||
@@ -2,12 +2,11 @@ name: lint
|
|||||||
version: 1.1.9
|
version: 1.1.9
|
||||||
description: Skills and agents for configuring and running linters.
|
description: Skills and agents for configuring and running linters.
|
||||||
author:
|
author:
|
||||||
name: Defame1297
|
name: Mortis
|
||||||
email: [email protected]
|
url: https://git.rkdr.net/Mortis/
|
||||||
url: https://git.rkdr.net/Defame1297/
|
|
||||||
license: MIT
|
license: MIT
|
||||||
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/lint
|
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/lint
|
||||||
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/lint
|
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/lint
|
||||||
keywords:
|
keywords:
|
||||||
- lint
|
- lint
|
||||||
- style
|
- style
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
name: mattpocock
|
name: mattpocock
|
||||||
version: 0.2.0
|
version: 0.4.0
|
||||||
description: Matt Pocock's agent skills — planning, grilling, test-first development, triage and bug diagnosis — redistributed from upstream at a pinned release.
|
description: Matt Pocock's agent skills — planning, grilling, test-first development, triage and bug diagnosis — redistributed from upstream at a pinned release.
|
||||||
author:
|
author:
|
||||||
name: Defame1297
|
name: Mortis
|
||||||
email: [email protected]
|
url: https://git.rkdr.net/Mortis/
|
||||||
url: https://git.rkdr.net/Defame1297/
|
|
||||||
license: MIT
|
license: MIT
|
||||||
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/mattpocock
|
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/mattpocock
|
||||||
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/mattpocock
|
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/mattpocock
|
||||||
keywords:
|
keywords:
|
||||||
- wayfinder
|
- wayfinder
|
||||||
- planning
|
- planning
|
||||||
@@ -15,6 +14,7 @@ keywords:
|
|||||||
- domain-modeling
|
- domain-modeling
|
||||||
- tdd
|
- tdd
|
||||||
- triage
|
- triage
|
||||||
|
- code-review
|
||||||
|
|
||||||
# Constrains what .apm/ may contain: instructions, skill, hybrid, or prompts
|
# Constrains what .apm/ may contain: instructions, skill, hybrid, or prompts
|
||||||
type: hybrid
|
type: hybrid
|
||||||
@@ -43,8 +43,19 @@ includes: auto
|
|||||||
# live in plugins/bin. Upstream's `grill-me`, `grill-with-docs`, `triage` and
|
# live in plugins/bin. Upstream's `grill-me`, `grill-with-docs`, `triage` and
|
||||||
# `improve-codebase-architecture` are hand-invoked, so another skill cannot
|
# `improve-codebase-architecture` are hand-invoked, so another skill cannot
|
||||||
# route to them through the Skill tool.
|
# route to them through the Skill tool.
|
||||||
# - `research` is not listed: bin's own `research` is first-party and kept, and
|
# - `codebase-design` is called through the Skill tool by `improve-codebase-architecture`
|
||||||
# so are bin's `diagnose`, `write-docs`, `caveman` and `zoom-out`.
|
# and `tdd`, and `code-review` is where `tdd` sends refactoring; without them
|
||||||
|
# those calls dangle.
|
||||||
|
# - `to-tickets` and `to-spec` publish to the tracker doc that
|
||||||
|
# `setup-matt-pocock-skills` writes, which names them as its consumers.
|
||||||
|
# - `implement` and `implement-spec` take that spec and ticket graph to code;
|
||||||
|
# `retro` calls `writing-for-agents`. `writing-for-agents` is model-invoked
|
||||||
|
# and overlaps the triggers of kyberforge's `skill-author` and core's
|
||||||
|
# `agentsmd-author`.
|
||||||
|
# - `research` is the skill `wayfinder` calls to resolve a research ticket: one
|
||||||
|
# question answered in one cited findings note. bin's reference-tree skill
|
||||||
|
# was renamed `research-docs` to free the name (ADR-0030). bin's `diagnose`,
|
||||||
|
# `write-docs`, `caveman` and `zoom-out` are first-party and kept.
|
||||||
#
|
#
|
||||||
# Pinned on purpose: tracking a third-party `main` would import someone else's
|
# Pinned on purpose: tracking a third-party `main` would import someone else's
|
||||||
# drift. Bump every tag together, deliberately, so the skills stay at one
|
# drift. Bump every tag together, deliberately, so the skills stay at one
|
||||||
@@ -62,6 +73,15 @@ dependencies:
|
|||||||
- mattpocock/skills/skills/engineering/improve-codebase-architecture#v1.3.2
|
- mattpocock/skills/skills/engineering/improve-codebase-architecture#v1.3.2
|
||||||
- mattpocock/skills/skills/engineering/triage#v1.3.2
|
- mattpocock/skills/skills/engineering/triage#v1.3.2
|
||||||
- mattpocock/skills/skills/engineering/diagnosing-bugs#v1.3.2
|
- mattpocock/skills/skills/engineering/diagnosing-bugs#v1.3.2
|
||||||
|
- mattpocock/skills/skills/engineering/codebase-design#v1.3.2
|
||||||
|
- mattpocock/skills/skills/engineering/code-review#v1.3.2
|
||||||
|
- mattpocock/skills/skills/engineering/to-tickets#v1.3.2
|
||||||
|
- mattpocock/skills/skills/engineering/to-spec#v1.3.2
|
||||||
|
- mattpocock/skills/skills/engineering/implement#v1.3.2
|
||||||
|
- mattpocock/skills/skills/engineering/implement-spec#v1.3.2
|
||||||
|
- mattpocock/skills/skills/engineering/retro#v1.3.2
|
||||||
|
- mattpocock/skills/skills/productivity/writing-for-agents#v1.3.2
|
||||||
|
- mattpocock/skills/skills/engineering/research#v1.3.2
|
||||||
mcp: []
|
mcp: []
|
||||||
devDependencies:
|
devDependencies:
|
||||||
apm: []
|
apm: []
|
||||||
|
|||||||
@@ -33,6 +33,14 @@
|
|||||||
# TEST_DIR — override root to search for test-*.sh (default: REPO_ROOT); used by tests.
|
# TEST_DIR — override root to search for test-*.sh (default: REPO_ROOT); used by tests.
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Git exports GIT_DIR (and can export GIT_WORK_TREE / GIT_INDEX_FILE) to the
|
||||||
|
# hooks it runs, so under the run-tests pre-push hook every `git -C "$tmp" ...`
|
||||||
|
# a fixture runs resolves to THIS repo, not the temp one -- the
|
||||||
|
# validate-provenance-skill.bats commit_as_base helper flipped core.bare=true and
|
||||||
|
# emptied the index here on every push. Suites build their own throwaway repos;
|
||||||
|
# none of them may inherit the caller's.
|
||||||
|
unset GIT_DIR GIT_WORK_TREE GIT_INDEX_FILE GIT_OBJECT_DIRECTORY GIT_COMMON_DIR
|
||||||
|
|
||||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||||
BATS="$REPO_ROOT/tests/run-bats.sh"
|
BATS="$REPO_ROOT/tests/run-bats.sh"
|
||||||
BATS_ONLY=false
|
BATS_ONLY=false
|
||||||
|
|||||||
Submodule tests/test_helper/bats-assert updated: 697471b7a8...dc1aa63fbc.
Submodule tests/test_helper/bats-support updated: 0954abb992...787ac476d4.
Reference in new issue
Block a user