Author SHA1 Message Date
Defame1297andClaude Opus 5.5 05c56904cf docs(research): survey published infra agent skills for depend-or-author
Answers #169: Flux official skills (Apache-2.0) to depend on, Ansible
community skills are GPL-3.0 so author our own, Kubernetes troubleshooting
to author, OpenTofu deferred to antonbabenko/terraform-skill.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-12 18:10:44 +00:00
Defame1297 8eb3d3ae00 Merge pull request 'chore(lock): record bin 3.0.0, mattpocock 0.4.0 and upstream research' (#165) from chore/lock-research-split into main
Reviewed-on: Defame1297/holocron#165
2026-11-12 15:14:56 +00:00
Defame1297andClaude Opus 5.5 fd98bf3f4c chore(lock): record bin 3.0.0, mattpocock 0.4.0 and upstream research
Records the install after #164 merged: holocron refs at the merge, the
renamed research-docs skill in bin, and the new upstream research pin.

Refs: #161
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-12 15:08:37 +00:00
Defame1297 60f9b22210 Merge pull request 'feat(bin)!: rename research to research-docs and pin upstream research' (#164) from fix/161-research-split into main
Reviewed-on: Defame1297/holocron#164
2026-11-12 15:05:03 +00:00
Defame1297andClaude Opus 5.5 0223b6e1bf feat(bin)!: rename research to research-docs and pin upstream research
Upstream wayfinder resolves research tickets by calling the Skill tool with
`research`, expecting one cited findings note per question. That name landed
on bin's reference-tree skill, which researches a tool's docs into topic files
plus sources.md and stops to ask for an output path, stalling an AFK subagent.

Implementation Notes:
- bin's skill becomes `research-docs` (skill 2.0.0, bin 3.0.0) with a boundary
  clause routing single-question research to `research`.
- mattpocock pins upstream research#v1.3.2 (0.4.0).
- write-docs, GLOSSARY's Provenance chain and skill-author's template now
  name `research-docs`.

BREAKING CHANGE: `research` now resolves to upstream's single-note skill;
invoke `research-docs` for a per-topic reference tree.

Fixes: #161
ADR: 0030
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-12 11:53:01 +00:00
Defame1297 516c85cb48 Merge pull request 'chore(lock): record mattpocock 0.3.0 and its new upstream skills' (#163) from chore/lock-mattpocock-0.3.0 into main
Reviewed-on: Defame1297/holocron#163
2026-11-12 11:45:04 +00:00
Defame1297andClaude Opus 5.5 8be0d2cfa1 chore(lock): record mattpocock 0.3.0 and its new upstream skills
Why: after #162 merged, apm update moved the holocron refs to 060aad7 and
mattpocock to 0.3.0, and apm install resolved its eight new transitive
pins (codebase-design, code-review, to-tickets, to-spec, implement,
implement-spec, retro, writing-for-agents). This records that resolution so
the committed lock matches what is deployed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-11 22:39:15 +00:00
Defame1297 060aad7592 Merge pull request 'feat(mattpocock): pin missing and pipeline Pocock skills' (#162) from feat/mattpocock-missing-skills into main
Reviewed-on: Defame1297/holocron#162
2026-11-11 22:37:15 +00:00
Defame1297andClaude Opus 5.5 0683e8f380 chore(marketplace): regenerate for mattpocock 0.3.0
Why: apm-pack-check-clean rejects a marketplace.json that no longer matches
what apm pack generates from the bumped plugin version.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-11 22:27:50 +00:00
Defame1297andClaude Opus 5.5 0db6ab7c28 feat(mattpocock): pin implement, implement-spec, retro and writing-for-agents
Why: implement and implement-spec carry the to-spec and to-tickets output
through to code, and retro feeds environment improvements back from a
session. retro calls writing-for-agents, so it is pinned with it. All
outward skill calls (tdd, code-review, setup-matt-pocock-skills) are already
pinned, so the set stays closed.

Impact: writing-for-agents is model-invoked and triggers on skill and
AGENTS.md edits, overlapping skill-author and agentsmd-author. Deploys on the
next apm update after this lands on main (ADR-0019).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-11 22:15:44 +00:00
Defame1297andClaude Opus 5.5 aa95fa8472 feat(mattpocock): pin codebase-design, code-review, to-tickets and to-spec
Why: a full read of the pinned skills found references to upstream skills
that were never pinned. improve-codebase-architecture and tdd call
codebase-design through the Skill tool, tdd sends refactoring to code-review,
and setup-matt-pocock-skills names to-tickets and to-spec as consumers of the
tracker doc. All four are leaves at v1.3.2: their only outward pointer is
setup-matt-pocock-skills, which is already pinned.

Impact: deploys on the next apm update after this lands on main (ADR-0019).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-11 21:57:48 +00:00
Defame1297 c8520d444f Merge pull request 'docs: update stale CONTEXT.md references to GLOSSARY.md' (#160) from chore/glossary-stale-refs into main
Reviewed-on: Defame1297/holocron#160
2026-11-11 18:26:36 +00:00
Defame1297andClaude Sonnet 5.5 6644d08eaa docs: update stale CONTEXT.md references to GLOSSARY.md
Covers ADRs, research docs, notes and LESSONS.md. docs/notes/archive is
left as is: it describes CONTEXT.md in other repos.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-11 18:13:07 +00:00
Defame1297 9705167cbe Merge pull request 'chore(agents): set up Matt Pocock skills and rename CONTEXT.md to GLOSSARY.md' (#159) from chore/setup-matt-pocock-skills into main
Reviewed-on: Defame1297/holocron#159
2026-11-11 18:08:22 +00:00
Defame1297andClaude Sonnet 5.5 ebaf43af96 chore(forge): bump skill version for GLOSSARY.md reference rename
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-11 18:00:16 +00:00
Defame1297andClaude Sonnet 5.5 b63928cbc9 chore(agents): set up Matt Pocock skills and rename CONTEXT.md to GLOSSARY.md
Add docs/agents/ (Gitea issue tracker, triage label mapping, domain docs)
and an Agent skills block in AGENTS.md. Rename CONTEXT.md to GLOSSARY.md
and update live references; ADRs and research notes keep the old name as
historical record.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-11 17:54:34 +00:00
Defame1297 bbf5467486 Merge pull request 'chore(onedev): remove the onedev wrapper and enable mattpocock for this repo' (#158) from chore/remove-onedev into main
Reviewed-on: Defame1297/holocron#158
2026-11-11 17:21:17 +00:00
Defame1297andClaude Sonnet 5.5 49c425f046 chore(onedev): remove the onedev wrapper and enable mattpocock for this repo
plugins/onedev only redistributed OneDev's TOD skills and is no longer wanted. It is removed from
the catalog and from the root dependencies, together with TOD's pinned dependency and the eight
deployed skills.

plugins/mattpocock replaces it as a root dependency, so this repo runs wayfinder and the other
pinned upstream skills the same way every consumer gets them. The lock is re-resolved with
`apm update` rather than `apm install`: it still pinned the first-party plugins at a commit from
before #157, whose bin still carried the six copied skills, which the new wrapper then replaced.

The apm-audit-ci waiver (ADR-0026) stays: plugins/mattpocock is a package that declares
dependencies and no primitives, which is exactly the case it covers. Comments and gates.md that named
onedev as the live example now say it was removed; ADR-0026 gets a dated note, and its decision
is unchanged.

Impact: catalog 0.6.1 -> 0.7.0 (a package removed). Anyone consuming `onedev` from the marketplace
loses it. No first-party plugin version changes.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-11 17:05:17 +00:00
44 changed files with 1862 additions and 523 deletions

No files matched your search

+3 -10
View File
@@ -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"
},
+1 -1
View File
@@ -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
+15 -1
View File
@@ -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`.
+1 -1
View File
@@ -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
View File
@@ -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.
+1 -1
View File
@@ -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
View File
File diff suppressed because it is too large. Load diff
+8 -17
View File
@@ -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.
+51
View File
@@ -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…_
+21
View File
@@ -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.
+15
View File
@@ -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.
+3 -3
View File
@@ -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
+6 -6
View File
@@ -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.
+1 -1
View File
@@ -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,244 @@
# Existing published infra skills: depend, adapt, or author
**Question (#169, part of map #166):** What published, reusable agent skills, agents, rule sets and
MCP servers already exist for Ansible (playbooks, collections, ansible-lint, Molecule), Flux /
Kustomize / Helm GitOps, Kubernetes troubleshooting, and OpenTofu/Terraform? For each, what are the
quality, licence, maintenance and format? Should holocron **depend** on it (as with `mattpocock`),
**vendor/adapt** it, or **author** its own?
**Researched:** 2026-11-12. Licence, star counts, last push and tags come from the GitHub REST API
(`/repos/{owner}/{repo}` and `/tags`) on that date. Skill format comes from the raw `SKILL.md`
frontmatter. Other facts come from the vendor page cited next to them.
**Constraint applied:** target packages must be generic and provider-agnostic. The target stack is an
Ansible playbook monorepo, an Ansible Galaxy collection tested with Molecule, Flux (Kustomize and
HelmRelease) with Sealed Secrets, and OpenTofu later.
## Answer
| Area | Best existing candidate | Licence | Recommendation |
|---|---|---|---|
| Flux / Kustomize / Helm GitOps | `fluxcd/agent-skills` (official) | Apache-2.0 | **Depend**, pinned. **Author** a thin Sealed Secrets and house-conventions skill on top. |
| Ansible (playbooks, collections, lint, Molecule) | `ansible-community/ai-forge` (community) | **GPL-3.0-or-later** | **Author our own.** Do not depend on or adapt ai-forge, because of the copyleft licence and its stated instability. |
| Kubernetes troubleshooting | No official skill. MCP: `containers/kubernetes-mcp-server` | Apache-2.0 | **Author** one thin skill. The MCP server is an optional companion, and declaring it needs its own decision. |
| OpenTofu / Terraform | `antonbabenko/terraform-skill`; `hashicorp/agent-skills` | Apache-2.0; **MPL-2.0** | **Defer** until OpenTofu work starts. Then **depend** on `antonbabenko/terraform-skill`, pinned. Do not adopt HashiCorp's set wholesale. |
**apm-installable** below means that `SKILL.md` directories sit at a stable repo subpath and the repo
has git tags. That is the same shape apm already resolves for
`mattpocock/skills/skills/engineering/<skill>#v1.3.2` in `plugins/mattpocock/apm.yml`. I inferred
this from the layout and **did not run `apm install` against any of these repos**.
## Flux / Kustomize / Helm GitOps
### `fluxcd/agent-skills`: official, recommended to depend
- **Source:** <https://github.com/fluxcd/agent-skills>; documented at <https://fluxcd.io/flux/agent-skills/>
(v2.10 docs, last modified 2026-07-02).
- **Licence:** Apache-2.0 (GitHub API). Each `SKILL.md` also declares `license: Apache-2.0`.
- **Maintenance:** Last push on 2026-11-03. Tags `v0.0.4` through `v0.4.0`, so it is still pre-1.0 and
breaking changes are possible. 244 stars. The repo ships `tests/` and `benchmarks/` directories.
- **Format:** Agent Skills `SKILL.md` under `skills/<name>/`, with `name`, `description`, `license`
and `compatibility` frontmatter. It also ships Claude Code, Codex and Copilot plugin manifests, and
a cosign-signed OCI artifact installed with `flux operator skills install ghcr.io/fluxcd/agent-skills`.
It is apm-installable by subpath, for example `fluxcd/agent-skills/skills/gitops-knowledge#v0.4.0`
(inferred, see above).
- **Skills** (per fluxcd.io):
- `gitops-knowledge`: Flux CRD YAML generation, checked against bundled OpenAPI schemas and validated
with `flux-schema`.
- `gitops-repo-audit`: an offline audit of a GitOps repo in six phases. It runs deterministic tools:
`flux schema` and `flux migrate --dry-run`.
- `gitops-cluster-debug`: live HelmRelease and Kustomization troubleshooting through the Flux MCP
server.
- **Required tools:** `flux` ≥ v2.10, `flux-schema`, `kustomize` or `kubectl`, and `flux-operator-mcp`
for the debug skill. The debug skill declares `compatibility: Requires flux-operator-mcp v0.60 or later`.
- **Gaps for our stack:**
- **Sealed Secrets is not mentioned.** `gitops-repo-audit` checks only "SOPS, External Secrets", and
`gitops-cluster-debug` special-cases SOPS. I grepped all three `SKILL.md` files for
`sealed|sops`.
- It covers Flux `Kustomization` resources. Plain Kustomize overlays and `HelmRelease` are covered
only as Flux sees them.
- **Copyleft flag:** `flux-operator-mcp` is built from `controlplaneio-fluxcd/flux-operator`, which is
**AGPL-3.0** (LICENSE file and GitHub API). The skills themselves are Apache-2.0. Running the MCP
binary unmodified as a local tool should not put obligations on holocron's own content, because AGPL
obligations attach to modifying and conveying, or network-serving, the program. **I'm not certain of
that, and it is not legal advice.** Do not vendor or patch that binary.
- **Open question:** fluxoperator.dev describes the MCP server as connecting to "clusters running Flux
Operator". If the target clusters run plain `flux bootstrap` without Flux Operator,
`gitops-cluster-debug` may be only partly usable. Not verified.
- **Recommendation:** **Depend**, through a wrapper plugin like `plugins/mattpocock`, pinned to a tag.
It is official, permissively licensed, tested, and grounded in deterministic tools. **Author** one
small skill for Sealed Secrets (kubeseal workflow, which `SealedSecret` scope to use, rotation) and
our repo layout conventions. Pin and bump it deliberately, because the project is pre-1.0.
### Flux MCP servers
- **Flux MCP server** (`flux-operator-mcp`): Go binary with a `--read-only` mode that masks Secret
values (<https://fluxoperator.dev/mcp-server/>, <https://fluxcd.io/flux/agent-skills/>). It is
**AGPL-3.0**, as above.
## Ansible (playbooks, collections, ansible-lint, Molecule)
No official, permissively licensed Ansible agent skill set exists.
### `ansible-community/ai-forge`: community, copyleft
- **Source:** <https://github.com/ansible-community/ai-forge>. It came out of the Ansible forum proposal
of 2026-03-20 (<https://forum.ansible.com/t/proposal-new-repo-for-ansible-ai-collaboration/45575>)
and was announced on 2026-04-09.
- **Licence:** **GPL-3.0-or-later. COPYLEFT.**
- **Maintenance:** Last push on 2026-11-06. **No tags**, so nothing can be pinned except a commit SHA.
43 stars. The README warns that the repo is brand new and its "structure and contents may change
frequently". The forum thread states it is "not Red Hat Supported".
- **Format:** Lola modules, installed with `pip install lola-ai` then `lola install`. Skills live under
`.agents/skills`. Neither the Claude plugin marketplace nor `npx skills` is documented. Whether apm
can install it is unverified.
- **Content:** Mostly collection SDLC: `ansible-collection-standards` (CoP review), `ansible-role`
scaffolding, and `ansible-collection-sdlc` (17 skills covering changelog fragments, ansible-test,
release and PR review). `ansible-content-development` includes `write-content-tests`, which covers
Molecule. **There is no dedicated ansible-lint skill.**
- **Recommendation:** **Do not depend and do not adapt.** Redistributing it through holocron's MIT
marketplace, as we do with `mattpocock`, would convey GPL content. Adapting it would make the adapted
skill a GPL derivative. Its own maintainers also say the structure is unstable and it has no tags.
Reading it for ideas is fine. Copying its text is not.
### `leogallego/claude-ansible-skills`: community, copyleft
The four CoP review and scaffolding skills (role, collection, EE) that seeded ai-forge (forum thread
above). The licence is **GPL-3.0** (GitHub API) and it has 48 stars. **Avoid**, for the same reasons.
### `akin-ozer/cc-devops-skills`: community, permissive
- **Licence:** Apache-2.0. 339 stars, last push on 2026-07-26, tags `v1`/`v1.0.0`, single maintainer.
- **Format:** Agent Skills `SKILL.md` under `devops-skills-plugin/skills/<name>/`. It includes
`ansible-generator` and `ansible-validator`. Aggregators report that the validator runs Molecule
when a role has a `molecule/` directory; I did not verify that. The same repo also has `k8s-debug`
and Terraform skills.
- **Quality:** Unreviewed by me beyond the frontmatter. The `ansible-validator` description is a
terse keyword list ("Validate, lint, audit, or debug Ansible playbooks, roles, inventories, FQCN,
tasks."), which falls short of ADR-0020's description contract.
- **Recommendation:** A permissible **reference to adapt from** (Apache-2.0 requires keeping the
NOTICE and attribution). It is not worth depending on: one maintainer, and pushes stopped in July.
### Red Hat material
- **Ansible development tools MCP server** (`@ansible/ansible-mcp-server`, image
`ghcr.io/ansible/devtools-mcp-server`): a **Technology Preview**
(<https://developers.redhat.com/articles/2026/08/19/red-hat-ansible-development-tools-mcp-server>,
<https://docs.ansible.com/projects/vscode-ansible/mcp/>).
- **Tools:** Zen of Ansible and best-practice lookup, environment setup, `ansible-creator`
scaffolding, ansible-lint with fixes, the EE builder, and `ansible-navigator` execution.
- **Molecule is not a tool.**
- **Licence:** not stated on either page. The `ansible/vscode-ansible` repo that bundles it is MIT,
but I did not confirm that the server source lives there.
- It can execute playbooks, so ADR-level scoping applies before any adoption.
- **`RHEcosystemAppEng/agentic-collections`:** Red Hat's Summit 2026 skills repo, Apache-2.0
(LICENSE file). Its `rh-automation` plugin is **Ansible Automation Platform governance**, not
playbook or collection authoring. That is product-specific and fails the provider-agnostic
constraint. Its only tag is a moving `latest`. **Not relevant.**
- **Tooling licences, for awareness:** `ansible/ansible-lint` and `ansible/ansible-dev-tools` are
**GPL-3.0**. `ansible/molecule` is MIT and `ansible/ansible-creator` is Apache-2.0. Skills that
*invoke* these CLIs do not redistribute them, so this does not affect holocron.
**Recommendation for Ansible: author our own.** Suggested split, to be settled in the map: playbook
authoring, collection authoring, and Molecule testing, with ansible-lint run as a deterministic gate
inside those skills rather than as its own skill. Ground them in the canonical sources below, not in
ai-forge text.
## Kubernetes troubleshooting
No official Kubernetes-project agent skill was found. Community skills are plentiful and uneven:
- `akin-ozer/cc-devops-skills` → `k8s-debug`: Apache-2.0, see above.
- `laurigates/claude-plugins` → `kubectl-debugging`: MIT, last push on 2026-11-12. It covers ephemeral
containers and `kubectl debug`.
- `ahmedasmar/devops-claude-skills` → `k8s-troubleshooter`: **no licence** (GitHub API `None`, no
LICENSE file), so all rights are reserved. **We cannot depend on it or adapt it.**
- Many registry mirrors (`majiayu000/claude-skill-registry` and others) are re-hosts with unclear
provenance. **Avoid them.**
MCP servers:
- **`containers/kubernetes-mcp-server`:** Apache-2.0, 2,243 stars, last push on 2026-11-12, latest tag
`v0.1.2`. Its toolsets include `core` and `helm`. It has a `read_only` setting, plus
`denied_resources`, which its README calls best-effort, deferring to RBAC as the real control. It
ships as a native binary, npm, uvx and a container. This is the strongest generic option.
- `Azure/mcp-kubernetes` (MIT, 62 stars) and `rohitg00/kubectl-mcp-server` (MIT) are alternatives.
`k8sgpt-ai/k8sgpt` (Apache-2.0) is an analyser rather than a skill.
**Recommendation: author** one thin troubleshooting skill (events, describe, logs, `kubectl debug`,
then hand off to Flux's `gitops-cluster-debug` for anything Flux-owned), grounded in kubernetes.io.
Treat `containers/kubernetes-mcp-server` in read-only mode as an optional companion. Root `apm.yml`
currently has `mcp: []`, and adding an MCP dependency is a change that needs its own decision.
## OpenTofu / Terraform
### `antonbabenko/terraform-skill`: community, recommended when needed
- **Licence:** Apache-2.0 (LICENSE file; the `SKILL.md` declares `license: Apache-2.0`).
- **Maintenance:** 2,461 stars, last push on 2026-10-24, tagged regularly (latest `v1.17.2`). The
author runs terraform-best-practices.com.
- **Format:** Agent Skills `skills/terraform-skill/SKILL.md`. Also a Claude marketplace
(`antonbabenko/agent-plugins`) and `npx skills`. It is apm-installable by subpath (inferred).
- **Scope:** Explicitly covers **Terraform 1.0+ and OpenTofu 1.6+**: testing (native `test` vs
Terratest), modules, state, CI, and Trivy/Checkov. Examples default to AWS. The guidance itself is
cloud-generic, but we would want to check that the AWS examples do not bias a provider-agnostic
package.
### `hashicorp/agent-skills`: official, mostly out of scope
- **Licence:** **MPL-2.0. Weak, file-level copyleft:** files we modify must stay MPL and their source
must be made available. Depending on it unmodified carries no extra obligation. Adapting it means
keeping the MPL on each derived file.
- **Maintenance:** 927 stars, last push on 2026-11-04, **one tag, `v1.0.0`**.
- **Format:** Agent Skills `SKILL.md` under `plugins/terraform/skills/<name>/`.
- **Scope:** 16 Terraform skills (SKILLS.md). Most target provider development, Terraform Stacks,
Sentinel/policy and Azure Verified Modules, which are HashiCorp or provider-specific. OpenTofu is
**not mentioned**. Only `terraform-style-guide`, `terraform-test` and `refactor-module` are plausibly
generic.
- **Recommendation:** at most, depend on those two or three skills individually, pinned to `v1.0.0`.
Check each against OpenTofu semantics first.
### MCP servers
- **`opentofu/opentofu-mcp-server`:** official. MPL-2.0 (LICENSE file; the GitHub API reports
NOASSERTION because some folders carry different licences). Latest tag `v1.0.0`, last push on
2026-09-21. It is **registry lookup only** (search, provider, module, resource and data-source docs),
hosted at `https://mcp.opentofu.org/mcp` or run with `npx @opentofu/opentofu-mcp-server`. Read-only
and low-risk.
- **`hashicorp/terraform-mcp-server`:** MPL-2.0, `v1.4.1`. It is the Terraform Registry and HCP
equivalent. Prefer the OpenTofu server for an OpenTofu target.
**No official OpenTofu agent skills exist** (search on 2026-11-12 found only the MCP server).
**Recommendation: defer.** When OpenTofu work starts, **depend** on `antonbabenko/terraform-skill`
through a pinned wrapper plugin and **author** only OpenTofu-specific deltas (state encryption, `tofu`
CLI differences) if they prove necessary.
## Canonical sources for our own skills' research registries
All URLs resolved on 2026-11-12.
- **Ansible:**
- ansible-lint: <https://docs.ansible.com/projects/lint/>
- Molecule: <https://docs.ansible.com/projects/molecule/>
- Ansible dev tools MCP: <https://docs.ansible.com/projects/vscode-ansible/mcp/>
- Red Hat CoP good practices: <https://github.com/redhat-cop/automation-good-practices>. The GitHub
API reports **no detected licence**; cite and paraphrase it, do not copy it.
- `ansible-creator` (Apache-2.0) for scaffolding conventions.
- **Flux:**
- <https://fluxcd.io/flux/>
- Sealed Secrets guide: <https://fluxcd.io/flux/guides/sealed-secrets/>
- <https://github.com/bitnami-labs/sealed-secrets> (Apache-2.0)
- Agent skills page: <https://fluxcd.io/flux/agent-skills/>
- **Kustomize:** <https://kubectl.docs.kubernetes.io/references/kustomize/>
- **Helm:** <https://helm.sh/docs/>
- **Kubernetes troubleshooting:** <https://kubernetes.io/docs/tasks/debug/>
- **OpenTofu:** <https://opentofu.org/docs/>. Terraform: <https://developer.hashicorp.com/terraform>.
## Caveats
- Quality judgements are based on frontmatter, READMEs and vendor docs. No skill was evaluated
end-to-end, and none was installed with apm.
- Star counts and last-push dates are a snapshot from 2026-11-12.
- The licence readings, especially AGPL for `flux-operator-mcp` and MPL-2.0 for HashiCorp and
OpenTofu, are my reading of the licence terms and not legal advice.
+3 -3
View File
@@ -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
View File
@@ -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`.
@@ -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
+2 -2
View File
@@ -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
View File
@@ -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
+25 -4
View File
@@ -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: []
-47
View File
@@ -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: {}
+4 -4
View File
@@ -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