Compare commits
18
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
371df8f083 | ||
|
|
8eb3d3ae00 | ||
|
|
fd98bf3f4c | ||
|
|
60f9b22210 | ||
|
|
0223b6e1bf | ||
|
|
516c85cb48 | ||
|
|
8be0d2cfa1 | ||
|
|
060aad7592 | ||
|
|
0683e8f380 | ||
|
|
0db6ab7c28 | ||
|
|
aa95fa8472 | ||
|
|
c8520d444f | ||
|
|
6644d08eaa | ||
|
|
9705167cbe | ||
|
|
ebaf43af96 | ||
|
|
b63928cbc9 | ||
|
|
bbf5467486 | ||
|
|
49c425f046 |
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "holocron",
|
||||
"description": "AI development skills for Claude Code, and for GitHub Copilot through apm — factory, design, implement, review, and cross-cutting workflows.",
|
||||
"version": "0.6.1",
|
||||
"version": "0.7.0",
|
||||
"owner": {
|
||||
"name": "Defame1297",
|
||||
"email": "[email protected]",
|
||||
@@ -18,7 +18,7 @@
|
||||
{
|
||||
"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.",
|
||||
"version": "2.0.0",
|
||||
"version": "3.0.0",
|
||||
"category": "Utilities",
|
||||
"source": "./plugins/bin"
|
||||
},
|
||||
@@ -36,13 +36,6 @@
|
||||
"category": "Version Control",
|
||||
"source": "./plugins/gitea"
|
||||
},
|
||||
{
|
||||
"name": "onedev",
|
||||
"description": "Skills and agents for working with a OneDev forge through the TOD CLI — the forge's own objects, as distinct from the local git clone.",
|
||||
"version": "0.1.1",
|
||||
"category": "Version Control",
|
||||
"source": "./plugins/onedev"
|
||||
},
|
||||
{
|
||||
"name": "core",
|
||||
"description": "Skills for authoring and auditing a repo's AGENTS.md and the provider adapter files that defer to it.",
|
||||
@@ -53,7 +46,7 @@
|
||||
{
|
||||
"name": "mattpocock",
|
||||
"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",
|
||||
"source": "./plugins/mattpocock"
|
||||
},
|
||||
|
||||
@@ -107,7 +107,7 @@ repos:
|
||||
# deployed files to check. Running every plugin package is what
|
||||
# makes lockfile-exists reachable for them at all -- the root-only
|
||||
# invocation audits the root manifest and nothing else.
|
||||
# THAT ARMING NOW HAPPENS: plugins/onedev declares a real dependency,
|
||||
# THAT ARMING NOW HAPPENS: plugins/mattpocock declares real dependencies,
|
||||
# and there is no green state for it -- without a package lockfile
|
||||
# lockfile-exists fails, and with one it passes and arms the other
|
||||
# nine, where drift then demands the dependency's skills be deployed
|
||||
|
||||
@@ -35,7 +35,7 @@ Fall back to raw shell only when no skill covers it.
|
||||
|
||||
## 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:
|
||||
|
||||
@@ -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/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`
|
||||
|
||||
## Agent skills
|
||||
|
||||
### Issue tracker
|
||||
|
||||
Issues and PRs live in Gitea (`Defame1297/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
|
||||
|
||||
**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
|
||||
`references/sources.md` and `source_keys` frontmatter; `factory-audit` validates the chain is complete
|
||||
and internally consistent.
|
||||
+1
-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.
|
||||
|
||||
**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.
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ Consume the packages through apm, the way this repo does — declare them as `de
|
||||
## Where to go next
|
||||
|
||||
- [`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/gates.md`](docs/spec/gates.md) — the enforcement gates in depth
|
||||
- [`docs/adr/`](docs/adr/) — architectural decisions; read before proposing structural changes
|
||||
|
||||
+1344
-358
File diff suppressed because it is too large.
Load diff
@@ -1,5 +1,5 @@
|
||||
name: holocron
|
||||
version: 0.6.1
|
||||
version: 0.7.0
|
||||
description: AI development skills for Claude Code, and for GitHub Copilot through apm — factory, design, implement, review, and cross-cutting workflows.
|
||||
license: MIT
|
||||
|
||||
@@ -28,18 +28,13 @@ dependencies:
|
||||
path: plugins/kyberforge
|
||||
- git: [email protected]:Defame1297/holocron.git
|
||||
path: plugins/lint
|
||||
# TOD's skills arrive transitively through this wrapper rather than as a
|
||||
# direct entry, so the marketplace and this repo consume onedev by the same
|
||||
# path. The pin lives in plugins/onedev/apm.yml: third-party content is
|
||||
# pinned, unlike the six first-party entries above, which stay unpinned for
|
||||
# default-branch parity.
|
||||
#
|
||||
# Resolves only once plugins/onedev is on the remote's main — until then
|
||||
# `apm install` fails, which includes the copy kyberforge's SessionStart
|
||||
# hook runs on launch. Accepted deliberately: this branch is merging
|
||||
# immediately.
|
||||
# Third-party skills (Matt Pocock's) arrive transitively through this
|
||||
# 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:
|
||||
# third-party content is pinned, unlike the first-party entries above,
|
||||
# which stay unpinned for default-branch parity.
|
||||
- git: [email protected]:Defame1297/holocron.git
|
||||
path: plugins/onedev
|
||||
path: plugins/mattpocock
|
||||
mcp: []
|
||||
|
||||
# Turns apm's executable-trust gate ON. Without this block the gate is disabled
|
||||
@@ -71,7 +66,7 @@ marketplace:
|
||||
# top-level apm.yml description:/version: above are NOT inherited into the
|
||||
# compiled output despite being used elsewhere (e.g. by `apm audit`).
|
||||
description: AI development skills for Claude Code, and for GitHub Copilot through apm — factory, design, implement, review, and cross-cutting workflows.
|
||||
version: 0.6.1
|
||||
version: 0.7.0
|
||||
owner:
|
||||
name: Defame1297
|
||||
email: [email protected]
|
||||
@@ -109,10 +104,6 @@ marketplace:
|
||||
source: ./plugins/gitea
|
||||
category: Version Control
|
||||
|
||||
- name: onedev
|
||||
source: ./plugins/onedev
|
||||
category: Version Control
|
||||
|
||||
- name: core
|
||||
source: ./plugins/core
|
||||
category: Productivity
|
||||
|
||||
@@ -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 "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
|
||||
exactly four pattern-matchable checks (imperative description opener, vague capability wording,
|
||||
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
|
||||
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
|
||||
without reversing or weakening the original four rules.
|
||||
|
||||
**2026-08-17 amendment.** The CONTEXT.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,
|
||||
**2026-08-17 amendment.** The GLOSSARY.md section named above no longer holds that documentation.
|
||||
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
|
||||
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.
|
||||
|
||||
**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
|
||||
executed under issue #90 (https://git.dev.rkdr.net/Defame1297/holocron/issues/90), which tracks
|
||||
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.
|
||||
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"
|
||||
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.
|
||||
|
||||
@@ -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)
|
||||
rather than being rewritten — the manifest-compilation half of its execution was correct and
|
||||
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
|
||||
`.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;
|
||||
`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
|
||||
|
||||
@@ -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
|
||||
example is `kyberforge:factory-audit` to `factory-audit`; the rule is unchanged). This is not
|
||||
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.
|
||||
|
||||
**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
|
||||
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",
|
||||
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
|
||||
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
|
||||
@@ -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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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.
|
||||
|
||||
@@ -58,3 +58,6 @@ than widening them.
|
||||
|
||||
This changes shared enforcement, which is why it is recorded here rather than left as a comment.
|
||||
`docs/spec/gates.md`'s `apm-audit-ci` section carries the operative detail.
|
||||
|
||||
*(Note, 2026-11-11: `plugins/onedev` has since been removed. The decision stands: `plugins/mattpocock`
|
||||
declares dependencies and no primitives of its own, so it is the package the waiver now covers.)*
|
||||
@@ -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
|
||||
`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
|
||||
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.
|
||||
|
||||
**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
|
||||
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.
|
||||
|
||||
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
|
||||
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,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,21 @@
|
||||
# Issue tracker: Gitea
|
||||
|
||||
Issues and PRs for this repo live in Gitea at `git.rkdr.net`, repo `Defame1297/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`.
|
||||
|
||||
## 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
|
||||
|
||||
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`.
|
||||
|
||||
@@ -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.
|
||||
- **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.
|
||||
- **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
|
||||
|
||||
@@ -129,7 +129,7 @@ IaC skills (category: `iac`) and Gitea integration skills (category: `gitea`) li
|
||||
|
||||
- `.agents/skills/` as canonical skill path (ADR-0004)
|
||||
- SKILL.md format with YAML frontmatter (agentskills.io standard)
|
||||
- CONTEXT.md ≤200 lines
|
||||
- GLOSSARY.md ≤200 lines
|
||||
- Pull-based distribution (ADR-0001)
|
||||
- governance.md via `@import` always-on
|
||||
- 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
|
||||
|
||||
**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.
|
||||
|
||||
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
|
||||
|
||||
@@ -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)
|
||||
|
||||
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
|
||||
|
||||
@@ -69,7 +69,7 @@ Factory requires a `references/` directory with `stack-versions.md` (authoritati
|
||||
|
||||
### 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
|
||||
- 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
|
||||
- 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
|
||||
|
||||
@@ -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.
|
||||
>
|
||||
> 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.
|
||||
>
|
||||
@@ -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.
|
||||
|
||||
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.
|
||||
|
||||
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).
|
||||
|
||||
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 (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.
|
||||
> **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).
|
||||
> > **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 `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.~~
|
||||
> **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">
|
||||
|
||||
**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>`
|
||||
```
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
## 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:**
|
||||
- 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?
|
||||
- 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.
|
||||
|
||||
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.
|
||||
|
||||
@@ -68,7 +68,7 @@ Five layers, each with a clear scope and update frequency. The rule: content liv
|
||||
| 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 |
|
||||
| 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 |
|
||||
| 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 |
|
||||
@@ -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.
|
||||
|
||||
**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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
**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-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 |
|
||||
| `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 |
|
||||
| `/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 |
|
||||
| `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 | `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 | 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` |
|
||||
| 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) |
|
||||
@@ -284,8 +284,8 @@ The working tree contains only permanent, final-state content. Work in progress
|
||||
```
|
||||
repo/
|
||||
├── AGENTS.md # Agent governance (all rules)
|
||||
├── CONTEXT.md # Shared vocabulary and conventions
|
||||
├── LESSONS.md # Feedback → graduates to CONTEXT.md at 3× threshold
|
||||
├── GLOSSARY.md # Shared vocabulary and conventions
|
||||
├── LESSONS.md # Feedback → graduates to GLOSSARY.md at 3× threshold
|
||||
├── HUMANS.md # Human orientation guide
|
||||
├── 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):**
|
||||
- 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 a PR is raised, THE system SHALL include updates to `docs/spec/` if behaviour changed
|
||||
|
||||
**Tasks:**
|
||||
|
||||
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
|
||||
4. Create `docs/adr/` with an `adr-template.md`
|
||||
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/` |
|
||||
| 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 |
|
||||
| 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 |
|
||||
| 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.
|
||||
|
||||
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.
|
||||
|
||||
@@ -655,11 +655,11 @@ Each of the following warrants its own session. They are ordered by dependency
|
||||
|
||||
| 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 |
|
||||
| 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 |
|
||||
| 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 |
|
||||
|
||||
### What to give Claude Code before each session
|
||||
@@ -676,7 +676,7 @@ ai-coding-factory-skills-index.md
|
||||
ai-coding-factory-implementation-guidance.md
|
||||
|
||||
# Add for sessions 2-6 (outputs from session 1)
|
||||
CONTEXT.md (once bootstrapped)
|
||||
GLOSSARY.md (once bootstrapped)
|
||||
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
|
||||
**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.
|
||||
**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`
|
||||
|
||||
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.
|
||||
|
||||
**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.**
|
||||
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.
|
||||
|
||||
**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.**
|
||||
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
|
||||
|
||||
**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.**
|
||||
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 |
|
||||
|---|---|---|
|
||||
| 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 references | As needed | On demand — skill instruction |
|
||||
| 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 |
|
||||
|
||||
**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.**
|
||||
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).
|
||||
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.
|
||||
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.
|
||||
|
||||
---
|
||||
@@ -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.
|
||||
- **"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
|
||||
|
||||
@@ -397,7 +397,7 @@ Claude Opus 4.5 and 4.6 tend to overengineer — extra files, unnecessary abstra
|
||||
|
||||
### 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
|
||||
|
||||
@@ -413,14 +413,14 @@ XML experiment small sample (N=12). "20% reduction" and "65% reduction" are sing
|
||||
|
||||
### 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.
|
||||
3. XML for complex skills (500+ tokens, 3+ sections); plain prose for simple skills.
|
||||
4. Every implementation skill includes an explicit constraints section.
|
||||
5. Use `<thinking>` + named output tags for review and security skills.
|
||||
6. Reference files by path rather than loading full content.
|
||||
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,269 @@
|
||||
# Multi-agent team patterns in practice
|
||||
|
||||
Research findings for Gitea issue #167, "Multi-agent team patterns in practice", which is part of
|
||||
map #166. Researched 2026-11-12. This note gathers evidence and makes a recommendation. It does not
|
||||
decide anything; the decision belongs to the map's owner.
|
||||
|
||||
## Question
|
||||
|
||||
Which provider-agnostic multi-agent "team" patterns are actually used to take work from specs to
|
||||
tickets to code to review? And which of them fit an apm package in this repo? The sub-questions:
|
||||
|
||||
1. Role-specialist agents versus a small set of generic role agents that load skills on demand
|
||||
2. Orchestration shapes, and how state and hand-offs travel without a provider runtime
|
||||
3. What apm primitives can carry portably across Claude Code, Copilot, Codex, Gemini and Cursor
|
||||
4. A verdict on this repo's `*-orchestrate` agents
|
||||
5. How much the `mattpocock` dependency already covers
|
||||
|
||||
## Answer in brief
|
||||
|
||||
- **Generic roles plus on-demand skills is the dominant pattern in coding tools.** Every coding
|
||||
harness checked ships a few *generic* built-in agents: an explorer/investigator, a planner and a
|
||||
general worker. Tech-stack specialists are not among them. Anthropic positions skills explicitly
|
||||
as the alternative to "fragmented, custom-designed agents". Role-persona teams (CrewAI, MetaGPT,
|
||||
ChatDev) also use functional roles such as Product Manager, Architect and Engineer, not tool
|
||||
specialists. Tool-specialist agents ("kubernetes-architect") show up mainly in community
|
||||
catalogues.
|
||||
- **Orchestrator–worker is the production shape.** Its workers run in isolated contexts and pass
|
||||
back only references or summaries. Pipeline/hand-off and generator–critic review are the other
|
||||
two shapes in common use. Peer-to-peer teams with a shared task list exist, but only as an
|
||||
experimental, Claude-specific runtime feature, and vendors steer you away from them for coding
|
||||
work that writes code.
|
||||
- **The issue tracker and the files are the portable state carriers.** None of the harnesses
|
||||
checked carries a multi-agent runtime that another harness can read. What *is* portable is
|
||||
SKILL.md (the Agent Skills open standard), AGENTS.md, and files, branches and tracker issues
|
||||
referenced by pointer.
|
||||
- **The `mattpocock` dependency already ships the pipeline as skills.** The chain is wayfinder →
|
||||
to-spec → to-tickets → triage → implement / implement-spec → tdd → code-review. Its roles
|
||||
(exploration, implementer, merger, standards reviewer and spec reviewer) are defined inline as
|
||||
fresh-context subagent prompts. It ships no agent files.
|
||||
- **The `*-orchestrate` agents are an outlier, with two anti-pattern traits.** The narrow
|
||||
dispatcher shape itself is accepted practice. The traits are rules restated from the skills
|
||||
(the GLOSSARY "Delegation discipline" defect) and safety gates enforced only by prompt.
|
||||
|
||||
**Recommendation:** do not build role-specialist agents. If a team package is built at all, keep
|
||||
it domain-agnostic and thin. That means at most three or four generic role agents (planner,
|
||||
implementer, reviewer, and optionally operator) whose only job is to carry a tool fence. The
|
||||
procedure stays in skills, and most of those skills `mattpocock` already ships. State goes in the
|
||||
tracker and on git branches. The infra package then contributes *tool* skills (Ansible, k8s and so
|
||||
on) that those generic roles load on demand. The tradeoff is weaker per-agent tool restriction on
|
||||
harnesses that cannot express a fence, such as Gemini and Codex. On those harnesses, enforcement
|
||||
has to come from the session's own permissions and from hooks.
|
||||
|
||||
## 1. Role-specialist versus generic role agents
|
||||
|
||||
### What the vendors ship and recommend
|
||||
|
||||
| Source | Built-in or example agents | Shape |
|
||||
|---|---|---|
|
||||
| Claude Code subagents [S4] | Built-in: `Explore` (read-only), `Plan`, `general-purpose`. Examples: `code-reviewer`, `debugger` | Generic and functional |
|
||||
| Codex subagents [S12] | Built-in: `default`, `worker` ("execution-focused… implementation and fixes"), `explorer` ("read-heavy") | Generic |
|
||||
| Gemini CLI subagents [S13] | Built-in: `codebase_investigator`, `generalist`, `cli_help`, `browser_agent` | Generic |
|
||||
| Cursor subagents [S14] | Built-in: `Explore`, `Browser` | Generic |
|
||||
| GitHub Copilot custom agents [S10] | Examples: "Testing specialist", "Implementation planner" | Functional |
|
||||
| OpenAI Agents SDK [S8] | "Have specialized agents that excel in one task" | Functional specialisation |
|
||||
| CrewAI [S11] | `role`/`goal`/`backstory`. Examples: "Research Analyst", "Senior Python Developer" | Persona roles |
|
||||
| MetaGPT [S15] | "assembly line paradigm to assign diverse roles" encoding SOPs | Persona roles (PM, Architect, Engineer) |
|
||||
| ChatDev [S16] | "specialized agents" across "design, coding, and testing phases" | Persona roles by phase |
|
||||
|
||||
Two things stand out.
|
||||
|
||||
1. **No vendor ships a tech-stack specialist as a built-in.** The specialisation that vendors *do*
|
||||
recommend is by **function**: review, debug, test, plan or explore. Codex puts it directly:
|
||||
"The best custom agents are narrow and opinionated", meaning one clear job and a tool surface to
|
||||
match [S12]. A job is a function ("review"). It is not a technology ("Ansible").
|
||||
2. **Domain knowledge moves into skills.** Anthropic introduced skills so that, "instead of
|
||||
building fragmented, custom-designed agents for each use case", you specialise a
|
||||
general-purpose agent by packaging procedural knowledge it loads on demand. Anthropic has
|
||||
published the format as an open standard [S5]. LangChain lists "Skills: specialized prompts and
|
||||
knowledge loaded on-demand" as a first-class alternative to multi-agent setups, with a single
|
||||
agent keeping control [S17].
|
||||
|
||||
Claude Code wires the two together. An agent's `skills:` frontmatter preloads named skills, and
|
||||
"subagents can still invoke unlisted… skills through the Skill tool" [S4]. A generic `implementer`
|
||||
can therefore pick up an `ansible` skill without anyone writing an `ansible-engineer` agent.
|
||||
|
||||
### Where tool specialists do appear
|
||||
|
||||
Tool specialists do appear, in community catalogues. `wshobson/agents`, for example, ships 202
|
||||
agents next to 185 skills across 94 plugins [S18]. Those catalogues show that people *write* such
|
||||
agents. They do not show that teams *run* them as the working structure, and I found no primary
|
||||
vendor source that recommends the tool-specialist layout. **Not certain:** no usage telemetry
|
||||
compares the two approaches, so "more used" rests on what vendors ship and recommend, not on
|
||||
measured adoption.
|
||||
|
||||
### Why generic roles win: the reasons the sources give
|
||||
|
||||
- **Context and cost.** Multi-agent systems use "about 15× more tokens than chats" [S2]. Each extra
|
||||
agent costs a full context window, and Claude Code also warns once the combined subagent
|
||||
descriptions pass 15,000 tokens [S4]. A roster of N tech specialists grows linearly in
|
||||
descriptions that are always loaded. Skills cost about 100 tokens each until they are activated
|
||||
[S6].
|
||||
- **Coding parallelises poorly.** Anthropic notes that "most coding tasks have fewer parallelizable
|
||||
subtasks than research", and that domains needing shared context are a poor fit [S2]. Cognition
|
||||
argues that "actions carry implicit decisions, and conflicting decisions carry bad results", and
|
||||
recommends a single-threaded linear agent [S3]. Specialists that split one change *by
|
||||
technology* (an Ansible role plus the k8s manifests it deploys) are exactly the kind of agents
|
||||
that make conflicting implicit decisions.
|
||||
- **Measured failure modes.** The MAST study annotated 1,600+ traces across 7 multi-agent
|
||||
frameworks and found 14 failure modes in three groups: system design, inter-agent misalignment
|
||||
and task verification. It found that "performance gains on popular benchmarks are often minimal"
|
||||
[S19].
|
||||
- **Start simple.** Anthropic's advice is to "find the simplest solution possible, and only
|
||||
increasing complexity when needed" [S1]. LangChain says "not every complex task requires this
|
||||
approach" [S17].
|
||||
|
||||
This repo's earlier factory research reached the same answer independently: six *functional*
|
||||
roles that run sequentially, because "concurrent agent teams compound error rates and explode
|
||||
token cost" (`docs/research/ai-coding-factory/ai-coding-factory-principles.md` §4–5).
|
||||
|
||||
## 2. Orchestration shapes and how state travels
|
||||
|
||||
| Shape | First-party description | Fit for spec → code → review |
|
||||
|---|---|---|
|
||||
| Orchestrator–worker | "a central LLM dynamically breaks down tasks, delegates them to worker LLMs, and synthesizes their results" [S1]. A lead agent with parallel subagents [S2]. "Agents as tools… manager keeps control" [S8]. ADK "Coordinator/Dispatcher" and "Hierarchical decomposition" [S9] | **Primary.** It is the one shape every harness supports natively (subagents) |
|
||||
| Pipeline / hand-off | Prompt chaining [S1]. ADK "Sequential Pipeline… hands the baton" [S9]. OpenAI "handoffs: a triage agent routes… specialist takes over" [S8] | Good for phase boundaries (spec → tickets → code), each phase being a fresh session |
|
||||
| Generator–critic / review loop | Evaluator–optimizer [S1]. ADK "Generator and critic", "Iterative refinement" [S9] | Good for review. `code-review` is already a two-critic fan-out |
|
||||
| Parallel fan-out / gather | Parallelisation [S1]. ADK "Parallel Fan-Out/Gather" [S9] | Good for read-heavy work. Codex: be careful with write-heavy parallel work [S12] |
|
||||
| Peer team with a shared task list | Claude Code agent teams: lead, teammates, a shared task list with blocking, and mailboxes [S7] | **Experimental and Claude-only.** Vendor advice is to "start with research and review", because parallel implementation brings coordination problems [S7] |
|
||||
| Human-in-the-loop | ADK "Human-in-the-loop" [S9] | Needed before irreversible steps (governance rule) |
|
||||
|
||||
**State without a provider runtime.** First-party sources converge on *external artifacts passed by
|
||||
reference*:
|
||||
|
||||
- Anthropic: "Subagents call tools to store their work in external systems, then pass lightweight
|
||||
references back to the coordinator" [S2].
|
||||
- Delegation needs "an objective, an output format, guidance on the tools and sources to use, and
|
||||
clear task boundaries" [S2].
|
||||
- ADK passes state through `session.state`, with each agent writing to an `output_key` [S9]. That
|
||||
is runtime-specific. Its portable equivalent is a file or an issue.
|
||||
- Claude agent teams keep their task list in `~/.claude/tasks/…`. That is session-scoped and
|
||||
"one team per session", so it is not portable and not shareable [S7].
|
||||
|
||||
The portable carriers are therefore these:
|
||||
|
||||
- **Issue tracker:** tickets, native blocking links as the task graph, assignee as the claim,
|
||||
comments as the resolution record. This is the mechanism `wayfinder` and `implement-spec` already
|
||||
use.
|
||||
- **Git:** an integration branch per spec and one worktree plus branch per worker
|
||||
(`implement-spec`).
|
||||
- **Files:** research notes, specs and ADRs.
|
||||
- **AGENTS.md:** standing conventions. More than 20 tools read it, including Codex, Copilot's
|
||||
coding agent, Cursor, Gemini CLI, Jules, Devin, Zed and VS Code [S20].
|
||||
|
||||
## 3. What is portable across harnesses
|
||||
|
||||
| Primitive | Portable? | Evidence |
|
||||
|---|---|---|
|
||||
| Skill (`SKILL.md`) | **Yes.** It is the open standard, and apm copies it verbatim to every target (`.agents/skills/` for most, `.claude/skills/` for Claude) | [S6]. `plugins/kyberforge/docs/research/docs/microsoft-apm/agent-primitive-schema.md:64-66` |
|
||||
| AGENTS.md | **Yes.** It is read natively by 20+ tools | [S20] |
|
||||
| Agent (`.agent.md`) | **Partly.** `name`, `description` and the body survive everywhere apm deploys agents. Claude, Copilot and Cursor get a verbatim copy. Codex gets a TOML rebuild in which `model` and `tools` are dropped. Kiro strips `name`. Apm's research records that Gemini and Windsurf get no agent at all | `agent-primitive-schema.md:27-37`. ADR-0016 |
|
||||
| Tool fence on an agent | **No.** `tools:` vocabularies conflict. `disallowedTools` is honoured by Claude, but its meaning on Copilot is unverified, and Codex drops it | ADR-0016 and its 2026-08-14 amendment. Codex: "To prevent edits, set sandbox and approval controls on the parent session, not in agent instructions" [S12] |
|
||||
| Skill preload on an agent (`skills:`) | Claude only. Agent-team teammates ignore it even in Claude [S7] | [S4], [S7] |
|
||||
| Peer-team runtime | **No.** Experimental and Claude-only | [S7] |
|
||||
|
||||
**A gap to verify.** Apm's research says Gemini "has no agents primitive" (`agent-primitive-schema.md:37`).
|
||||
Gemini CLI now documents `.gemini/agents/*.md` subagents, with `name`/`description`/`tools`/`model`
|
||||
frontmatter, enabled by default [S13]. Cursor reads `.claude/agents/` and `.codex/agents/` as
|
||||
compatibility paths [S14]. Apm's Gemini mapping may therefore be stale. Check the current apm
|
||||
release before relying on it either way.
|
||||
|
||||
Consequence: in this repo, **a role agent can portably carry only a name, a description and a body
|
||||
of prose.** So a generic-role agent is cheap to make portable. A specialist agent whose value
|
||||
depends on a tool fence or a skill preload is not portable at all.
|
||||
|
||||
## 4. Verdict on the `*-orchestrate` agents
|
||||
|
||||
The three agents are `git-orchestrate`, `gitea-orchestrate` and `apm-orchestrate`
|
||||
(`plugins/{git,gitea,kyberforge}/.apm/agents/`). Each is a dispatcher for one tool domain. An
|
||||
*agent* caller sends it an `operation` plus `confirm`. It enforces "Hard rules", routes to that
|
||||
domain's skills, and returns JSON.
|
||||
|
||||
| Aspect | Judgement | Basis |
|
||||
|---|---|---|
|
||||
| Narrow job, an isolated context, a structured result | **Accepted** | Codex "narrow and opinionated" [S12]. Anthropic's delegation contract (objective, output format, boundaries) [S2]. ADK Coordinator/Dispatcher [S9] |
|
||||
| Read-only fence (`disallowedTools` on gitea/apm) | Accepted intent, **Claude-only effect** | §3 above. On Codex the fence is dropped, and the vendor says to put it on the session instead [S12] |
|
||||
| Specialised by *tool domain* (git, Gitea, apm), not by function | **Outlier.** In the sources reviewed, no vendor or framework puts a dispatcher agent between an agent and a set of skills. The vendor pattern is that the working agent loads the skill itself [S4], [S5], [S17] | §1 |
|
||||
| "Hard rules" restated from the domain skills | **Anti-pattern** (GLOSSARY "Delegation discipline": restatement). `git-orchestrate` says it outright: "Sub-skills carry their own local copies of these rules" | `plugins/git/.apm/agents/git-orchestrate.agent.md` |
|
||||
| Safety gates enforced only by the prompt (`confirm: true`, never force-push `main`) | **Anti-pattern for invariants.** Governance makes deterministic tooling the enforcement layer ("Agent instructions alone cannot enforce what deterministic tooling must enforce"), and vendors put it in session permissions or hooks [S7], [S12] | `core/instructions/governance.md`. Pre-push hooks in `.pre-commit-config.yaml` are the repo's existing deterministic layer |
|
||||
| Code-smell view | "Middle Man: a class or function that mostly just delegates onward → cut it" | mattpocock `code-review` baseline |
|
||||
|
||||
Net: **an outlier, not accepted practice for a team pattern.** The parts worth keeping are the
|
||||
domain gotchas, such as the Gitea `delete_release` id-versus-tag asymmetry and 404-means-forbidden.
|
||||
Those belong in the domain skills. Irreversible-action gates belong in hooks and permissions. A
|
||||
generic implementer or operator agent would then call `git-commits` or `gitea-prs` directly, which
|
||||
also saves a nesting level against Claude's default subagent depth limit of three [S4].
|
||||
`lint-runner` is the one agent of this kind that sits closer to accepted practice: it is a
|
||||
read-only, function-scoped worker ("run linters, report findings").
|
||||
|
||||
## 5. Overlap with `mattpocock`
|
||||
|
||||
`plugins/mattpocock/apm.yml` pins 20 upstream skills at `v1.3.2`. Mapped onto the pipeline:
|
||||
|
||||
| Pipeline stage | Skill already shipped | Roles it defines inline |
|
||||
|---|---|---|
|
||||
| Fog → decisions | `wayfinder` (tracker map, typed tickets, frontier, claim by assignee, research subagents on `research/<name>` branches) | Research subagent |
|
||||
| Spec | `to-spec`, `grill-with-docs`, `domain-modeling` | — |
|
||||
| Tickets | `to-tickets` (vertical slices, native blocking edges, expand–contract for wide refactors) | — |
|
||||
| Ready-for-agent | `triage` (`ready-for-agent` / `ready-for-human` states, agent briefs) | — |
|
||||
| Code | `implement` (single session), `implement-spec` (integration branch, frontier-driven parallel implementers in worktrees, merger subagent, "communicate primarily through context pointers") | Exploration, implementer and merger subagents |
|
||||
| Test-first | `tdd`, `codebase-design` | — |
|
||||
| Review | `code-review` (Standards and Spec as parallel fresh-context subagents, not merged or reranked) | Standards reviewer and spec reviewer |
|
||||
| Learn | `retro` | — |
|
||||
|
||||
`implement-spec` already *is* the orchestrator–worker shape with tracker and git state that §2
|
||||
recommends. Its roles are generic (implementer, reviewer) and load skills (`tdd`). So the pipeline
|
||||
and the generic roles are covered. What is not covered:
|
||||
|
||||
1. **No named role-agent files.** The roles exist only as prompts inside the orchestrating skill,
|
||||
so they cannot carry a tool fence and cannot be reused on their own.
|
||||
2. **No operator or deploy role.** Nothing covers plan/apply against infrastructure with a HITL
|
||||
gate. Today that is the infra package's territory.
|
||||
3. **The entry points are hand-invoked only.** `wayfinder`, `to-tickets`, `to-spec`, `implement`,
|
||||
`implement-spec` and `triage` set `disable-model-invocation: true`, so another agent cannot
|
||||
route to them through the Skill tool (`plugins/mattpocock/apm.yml` comments). A team package
|
||||
could not chain them autonomously without a local wrapper.
|
||||
4. **There is a tracker dependency.** They read the tracker doc that `setup-matt-pocock-skills`
|
||||
writes, and here that is Gitea through the `gitea-*` skills (`docs/agents/issue-tracker.md`).
|
||||
|
||||
## Options for the map (evidence, not a decision)
|
||||
|
||||
| Option | For | Against |
|
||||
|---|---|---|
|
||||
| A. No team package. Use `mattpocock` as is, and the infra package adds tool skills only | Zero new surface. Matches vendor guidance and §5 coverage | Roles stay unfenced prompts, and the pipeline is hand-driven stage by stage |
|
||||
| B. **Thin generic-roles package** (recommended): `planner`, `implementer`, `reviewer`, optional `operator` agents, each a short body that names the skills to load. Reviewer and planner fenced read-only with `disallowedTools`. State in Gitea and branches | Matches what vendors ship ([S4], [S12], [S13]). Portable as name, description and body. Reusable as subagents and as Claude teammates [S7] | Fences hold on Claude only. Needs a skill-level wrapper to start the hand-invoked `mattpocock` entry points |
|
||||
| C. Role-specialist roster (`ansible-engineer`, `k8s-reviewer`, …) | Familiar from CrewAI and community catalogues | Linear description cost, overlapping implicit decisions [S3], no vendor precedent, couples the team to the infra domain, which the brief rules out |
|
||||
|
||||
## Sources
|
||||
|
||||
Primary sources were fetched 2026-11-12. Quotations are verbatim from the fetched page.
|
||||
|
||||
- [S1] Anthropic, "Building effective agents" — <https://www.anthropic.com/engineering/building-effective-agents>
|
||||
- [S2] Anthropic, "How we built our multi-agent research system" — <https://www.anthropic.com/engineering/multi-agent-research-system>
|
||||
- [S3] Cognition, "Don't build multi-agents" — <https://cognition.com/blog/dont-build-multi-agents>
|
||||
- [S4] Claude Code docs, "Subagents" — <https://code.claude.com/docs/en/sub-agents>
|
||||
- [S5] Anthropic, "Equipping agents for the real world with Agent Skills" — <https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills>
|
||||
- [S6] Agent Skills specification — <https://agentskills.io/specification>
|
||||
- [S7] Claude Code docs, "Agent teams" — <https://code.claude.com/docs/en/agent-teams>
|
||||
- [S8] OpenAI Agents SDK, "Orchestrating multiple agents" — <https://openai.github.io/openai-agents-python/multi_agent/>
|
||||
- [S9] Google Developers Blog, "Developer's guide to multi-agent patterns in ADK" — <https://developers.googleblog.com/en/developers-guide-to-multi-agent-patterns-in-adk/>
|
||||
- [S10] GitHub Docs, "Creating custom agents" — <https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/create-custom-agents>
|
||||
- [S11] CrewAI docs, "Agents" — <https://docs.crewai.com/en/concepts/agents>
|
||||
- [S12] OpenAI Codex docs, "Subagents" — <https://learn.chatgpt.com/docs/agent-configuration/subagents>
|
||||
- [S13] Gemini CLI docs, "Subagents" — <https://geminicli.com/docs/core/subagents/>
|
||||
- [S14] Cursor docs, "Subagents" — <https://cursor.com/docs/context/subagents>
|
||||
- [S15] Hong et al., "MetaGPT" — <https://arxiv.org/abs/2308.00352>
|
||||
- [S16] Qian et al., "ChatDev" — <https://arxiv.org/abs/2307.07924>
|
||||
- [S17] LangChain docs, "Multi-agent" — <https://docs.langchain.com/oss/python/langchain/multi-agent>
|
||||
- [S18] wshobson/agents (community catalogue, practitioner evidence) — <https://github.com/wshobson/agents>
|
||||
- [S19] Cemri et al., "Why Do Multi-Agent LLM Systems Fail?" (MAST) — <https://arxiv.org/abs/2503.13657>
|
||||
- [S20] AGENTS.md — <https://agents.md/>
|
||||
|
||||
Repo sources: ADR-0015, ADR-0016 (and its 2026-08-14 amendment), ADR-0024; `GLOSSARY.md`
|
||||
("Delegation discipline"); `plugins/kyberforge/docs/research/docs/microsoft-apm/agent-primitive-schema.md`;
|
||||
`plugins/mattpocock/apm.yml`; the upstream `mattpocock/skills` SKILL.md files at `v1.3.2`
|
||||
(installed under `apm_modules/`); `plugins/*/.apm/agents/*.agent.md`.
|
||||
|
||||
**Not reached:** OpenAI's "A practical guide to building agents" PDF could not be read as text, and
|
||||
LangGraph's legacy multi-agent concepts page redirected away, so neither is cited. AutoGen was not
|
||||
consulted separately.
|
||||
@@ -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.
|
||||
|
||||
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`.
|
||||
|
||||
## 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.
|
||||
|
||||
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
|
||||
|
||||
|
||||
+5
-4
@@ -1174,13 +1174,14 @@ On the **root** manifest, **10 checks**: `lockfile-exists`, `ref-consistency`,
|
||||
On each **plugin** manifest, **1 check**: `lockfile-exists`. Conditional, and vacuous while every
|
||||
plugin `apm.yml` declared `dependencies: {apm: [], mcp: []}` — it reports `No dependencies declared
|
||||
-- lockfile not required`. An earlier revision of this section said it would arm the moment one did
|
||||
not. **It has armed.** `plugins/onedev` is the first plugin package to declare a real dependency — it
|
||||
pins `code.onedev.io/onedev/tod#v4.3.4` so the marketplace can redistribute OneDev's TOD skills — and
|
||||
the check now fires on it for real. Everything else in the list above is root-only, because it is the
|
||||
not. **It has armed.** `plugins/onedev` was the first plugin package to declare a real dependency — it
|
||||
pinned `code.onedev.io/onedev/tod#v4.3.4` — and was removed on 2026-11-11; `plugins/mattpocock`
|
||||
carries the same shape (pinned third-party skills, no primitives of its own) and the check fires on
|
||||
it for real. Everything else in the list above is root-only, because it is the
|
||||
root install that has a lockfile, a deployment ledger and deployed files to check.
|
||||
|
||||
**A plugin package that declares dependencies has no green state, so the hook waives exactly one
|
||||
failure.** Verified against apm 0.28.0 in `plugins/onedev/`:
|
||||
failure.** Verified against apm 0.28.0 in `plugins/onedev/` (since removed; the behaviour is the same for any package that declares dependencies):
|
||||
|
||||
- **Without a package `apm.lock.yaml`**, `lockfile-exists` fails — `apm.yml declares dependencies but
|
||||
apm.lock.yaml is absent` — reported as `1 of 1 check(s) failed`.
|
||||
|
||||
+4
-3
@@ -1,12 +1,13 @@
|
||||
---
|
||||
name: research
|
||||
name: research-docs
|
||||
description: >-
|
||||
Use when the user wants a tool, library, or API researched from canonical
|
||||
documentation into structured per-topic reference markdown files. Not
|
||||
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:
|
||||
version: "1.0.2"
|
||||
version: "2.0.0"
|
||||
category: research
|
||||
allowed-tools:
|
||||
- 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
|
||||
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
|
||||
from its docs -> `research`.
|
||||
from its docs -> `research-docs`.
|
||||
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
|
||||
metadata:
|
||||
version: "1.0.1"
|
||||
version: "1.0.2"
|
||||
category: implement
|
||||
source:
|
||||
- repo: anthropics/skills
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
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.
|
||||
author:
|
||||
name: Defame1297
|
||||
|
||||
@@ -6,7 +6,7 @@ description: >
|
||||
skill -> `skill-author`. Not a named agent -> `agent-author`. Not a named
|
||||
plugin -> `apm-workflow`.
|
||||
metadata:
|
||||
version: "1.0.4"
|
||||
version: "1.0.5"
|
||||
category: factory
|
||||
source_keys:
|
||||
- claude-code-subagents-docs
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
|
||||
- **URL:** https://agentskills.io/specification.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
|
||||
- **Status:** `extracted`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ description: >
|
||||
Not read-only review -> `factory-audit`. Not agent files -> `agent-author`.
|
||||
allowed-tools: Bash Read Write Edit
|
||||
metadata:
|
||||
version: "1.0.6"
|
||||
version: "1.0.7"
|
||||
category: factory
|
||||
source_keys:
|
||||
- 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
|
||||
# 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.
|
||||
# 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.
|
||||
|
||||
# allowed-tools: Bash Read Write
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
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.
|
||||
author:
|
||||
name: Defame1297
|
||||
@@ -15,6 +15,7 @@ keywords:
|
||||
- domain-modeling
|
||||
- tdd
|
||||
- triage
|
||||
- code-review
|
||||
|
||||
# Constrains what .apm/ may contain: instructions, skill, hybrid, or prompts
|
||||
type: hybrid
|
||||
@@ -32,7 +33,7 @@ includes: auto
|
||||
# can redistribute upstream skills from github.com/mattpocock/skills (MIT). A
|
||||
# `marketplace.packages` entry takes a local `source:` path, so a third-party
|
||||
# repo cannot be listed directly (same constraint and mechanism as
|
||||
# plugins/onedev, ADR-0026).
|
||||
# the since-removed plugins/onedev, ADR-0026).
|
||||
#
|
||||
# Why these skills, not the whole upstream set:
|
||||
# - `wayfinder` is hand-invoked upstream (`disable-model-invocation: true`) and
|
||||
@@ -43,8 +44,19 @@ includes: auto
|
||||
# live in plugins/bin. Upstream's `grill-me`, `grill-with-docs`, `triage` and
|
||||
# `improve-codebase-architecture` are hand-invoked, so another skill cannot
|
||||
# route to them through the Skill tool.
|
||||
# - `research` is not listed: bin's own `research` is first-party and kept, and
|
||||
# so are bin's `diagnose`, `write-docs`, `caveman` and `zoom-out`.
|
||||
# - `codebase-design` is called through the Skill tool by `improve-codebase-architecture`
|
||||
# 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
|
||||
# drift. Bump every tag together, deliberately, so the skills stay at one
|
||||
@@ -62,6 +74,15 @@ dependencies:
|
||||
- mattpocock/skills/skills/engineering/improve-codebase-architecture#v1.3.2
|
||||
- mattpocock/skills/skills/engineering/triage#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: []
|
||||
devDependencies:
|
||||
apm: []
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
name: onedev
|
||||
version: 0.1.1
|
||||
description: Skills and agents for working with a OneDev forge through the TOD CLI — the forge's own objects, as distinct from the local git clone.
|
||||
author:
|
||||
name: Defame1297
|
||||
email: [email protected]
|
||||
url: https://git.rkdr.net/Defame1297/
|
||||
license: MIT
|
||||
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/onedev
|
||||
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/onedev
|
||||
keywords:
|
||||
- onedev
|
||||
- tod
|
||||
- issues
|
||||
- pulls
|
||||
- builds
|
||||
- iterations
|
||||
|
||||
# Constrains what .apm/ may contain: instructions, skill, hybrid, or prompts
|
||||
type: hybrid
|
||||
|
||||
targets:
|
||||
- claude
|
||||
- copilot
|
||||
- codex
|
||||
|
||||
# "auto" publishes the authoritative local source layout, or list explicit
|
||||
# repo paths to define the complete publication set.
|
||||
includes: auto
|
||||
|
||||
# This package currently carries no primitives of its own — it exists so the
|
||||
# marketplace can redistribute upstream TOD. `marketplace.packages` entries
|
||||
# take `source: ./plugins/<name>` (a local path), so a third-party git repo
|
||||
# cannot be listed directly; a consumer installing `onedev` from the holocron
|
||||
# marketplace picks up TOD's eight skills transitively through this entry.
|
||||
#
|
||||
# Pinned on purpose, unlike the six first-party dependencies in the root
|
||||
# apm.yml. Those are unpinned for default-branch parity because they are this
|
||||
# repo's own published content; TOD is third-party, so tracking its `main`
|
||||
# would import someone else's drift. Bump this tag deliberately.
|
||||
dependencies:
|
||||
apm:
|
||||
- code.onedev.io/onedev/tod#v4.3.4
|
||||
mcp: []
|
||||
devDependencies:
|
||||
apm: []
|
||||
scripts: {}
|
||||
@@ -15,16 +15,16 @@
|
||||
# never surfaced, because the plugin-level `lockfile-exists` check reported
|
||||
# `No dependencies declared -- lockfile not required` and passed vacuously.
|
||||
#
|
||||
# plugins/onedev is the first package to declare a real dependency (it pins
|
||||
# OneDev's TOD skills so the marketplace can redistribute them), which arms that
|
||||
# check and leaves no green state:
|
||||
# plugins/onedev was the first package to declare a real dependency (it pinned
|
||||
# OneDev's TOD skills; removed 2026-11-11, plugins/mattpocock is the live case),
|
||||
# which armed that check and left no green state:
|
||||
#
|
||||
# * no apm.lock.yaml in the package -> `lockfile-exists` fails with
|
||||
# "apm.yml declares dependencies but apm.lock.yaml is absent"
|
||||
# * an apm.lock.yaml in the package -> `lockfile-exists` passes and thereby
|
||||
# arms the other nine checks, and `drift` then fails demanding the
|
||||
# dependency's skills be DEPLOYED inside the package
|
||||
# (plugins/onedev/.agents/skills/...), which is meaningless for a package
|
||||
# (plugins/<pkg>/.agents/skills/...), which is meaningless for a package
|
||||
# and additionally litters it with an apm_modules/ tree
|
||||
#
|
||||
# So this hook waives exactly one failure: a plugin package whose ONLY failing
|
||||
|
||||
Reference in new issue
Block a user