Author SHA1 Message Date
Defame1297andClaude Opus 5.5 5e059c002c docs(research): capture enforcement-hook options for the infra package
Answers #168: what apm 0.28.0 can ship as a hook, which targets honour
argument-level deny/ask, portable alternatives, and a layered design.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-12 18:11:36 +00:00
47 changed files with 1979 additions and 2317 deletions

No files matched your search

+4 -31
View File
@@ -1,10 +1,11 @@
{
"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.8.0",
"version": "0.7.0",
"owner": {
"name": "Mortis",
"url": "https://git.rkdr.net/Mortis/"
"name": "Defame1297",
"email": "[email protected]",
"url": "https://git.rkdr.net/Defame1297/"
},
"plugins": [
{
@@ -55,34 +56,6 @@
"version": "1.1.9",
"category": "Developer Tools",
"source": "./plugins/lint"
},
{
"name": "delivery",
"description": "Agents and skills for taking a change from spec to a verified merge through tracker-gated stages.",
"version": "0.1.0",
"category": "Developer Tools",
"source": "./plugins/delivery"
},
{
"name": "ansible",
"description": "Skills for authoring, testing and dry-running Ansible playbooks, roles and collections.",
"version": "0.1.0",
"category": "Infrastructure",
"source": "./plugins/ansible"
},
{
"name": "gitops",
"description": "Skills for authoring, auditing and diagnosing a Flux GitOps repository, including the secrets sealed into it.",
"version": "0.1.0",
"category": "Infrastructure",
"source": "./plugins/gitops"
},
{
"name": "k8s",
"description": "Skills for read-only diagnosis of workloads on a Kubernetes cluster.",
"version": "0.1.0",
"category": "Infrastructure",
"source": "./plugins/k8s"
}
]
}
+1 -1
View File
@@ -9,7 +9,7 @@
"timeout": 380
}
],
"_apm_source": "Mortis/Holocron/plugins/kyberforge"
"_apm_source": "Defame1297/holocron/plugins/kyberforge"
}
]
}
+1 -1
View File
@@ -12,4 +12,4 @@
ignore = dirty
[submodule "docs/wiki"]
path = docs/wiki
url = https://git.rkdr.net/Mortis/Holocron.wiki.git
url = git@git.rkdr.net:Defame1297/holocron.wiki.git
+2 -2
View File
@@ -29,7 +29,7 @@ Fall back to raw shell only when no skill covers it.
- **Do not add repo-owned keys to `.claude/settings.json`.** apm treats it as its own deployed artifact and `apm audit --ci` replays the install and diffs, so anything apm would not have written is permanent drift that fails the `apm-audit-ci` pre-push hook. A hook you want here is authored in `plugins/<name>/.apm/hooks/` and deployed by apm, never hand-written into that file. The `SessionStart` entry already in it is exactly that: kyberforge authors it in `plugins/kyberforge/.apm/hooks/hooks.json` and apm merges it in, so it is apm's own output, it is what the replay expects, and it belongs in the commit — do not strip it (ADR-0019). Machine-specific settings go in the gitignored `.claude/settings.local.json`; shared enforcement goes in `.pre-commit-config.yaml`.
- **`apm.lock.yaml` turning up modified is expected, not a bug.** kyberforge's `SessionStart` hook keeps the install current on launch and rewrites the lock in the process (ADR-0019). On `main`, commit or discard it deliberately. On a feature branch, discard it (`git checkout -- apm.lock.yaml`, then `apm install`). This keeps unrelated lock churn out of the branch diff and keeps `apm pack --check-clean` consistent with the committed lock. The session then runs the older `main` that the lock records, which is accepted on a branch, and the next session start refreshes again.
- **A `.apm/` edit is not live until it is on the remote's `main`.** Root `apm.yml`'s first-party dependencies resolve from the holocron remote, unpinned against the default branch, so pushing a feature branch does not deploy it (ADR-0019). `apm install` deploys from the lock; `apm update` is what re-resolves refs.
- **A `.apm/` edit is not live until it is on the remote's `main`.** The six dependencies resolve from the holocron remote, unpinned against the default branch, so pushing a feature branch does not deploy it (ADR-0019). `apm install` deploys from the lock; `apm update` is what re-resolves refs.
- **No pre-push hook needs the network — once `apm install` has run.** Root `apm.yml`'s marketplace has no remote package entries, so every hook resolves locally. The guarantee is a property of a populated `apm_modules/`, not of the hook set: on a fresh clone `apm-audit-ci`'s `deployed-files-present` fails outright, and its `drift` and `config-consistency` install-replays have no cache to replay from and clone from the remote. Run `apm install` once on a new checkout and the offline guarantee holds from then on (`docs/spec/gates.md`, "Pushing without a network").
- **This repo and Gitea are the only source of truth.** All project state, decisions, and working conventions live here. Do not use an external memory system for this project — cached state diverges from the repo and you get a split brain. Before answering any design or architecture question, check `docs/adr/` for an existing decision.
@@ -54,7 +54,7 @@ Read these on demand:
### Issue tracker
Issues and PRs live in Gitea (`Mortis/Holocron`), reached through the `gitea-*` skills. See `docs/agents/issue-tracker.md`.
Issues and PRs live in Gitea (`Defame1297/holocron`), reached through the `gitea-*` skills. See `docs/agents/issue-tracker.md`.
### Triage labels
+2 -49
View File
@@ -79,7 +79,7 @@ backend, registry, or SaaS — the Git repo is the marketplace.
_Avoid_: registry, store, catalogue
**holocron**:
This repository, in its role as a plugin marketplace and as the remote the first-party plugin dependencies
This repository, in its role as a plugin marketplace and as the remote the six plugin dependencies
resolve against.
_Avoid_: the marketplace, upstream
@@ -105,53 +105,6 @@ irreversible or high-stakes actions — architecture changes, production deploym
configuration.
_Avoid_: manual approval, gated action
**Human on the loop**:
Agents advance a work item from stage to stage unprompted and stop only at a **Gate**; the human
approves rather than orchestrates. Contrasts with **HITL**, where the human starts or approves each
step in the session itself.
_Avoid_: autonomous mode, autopilot
**Gate**:
A point a work item cannot pass until a human records approval in the issue tracker — a label or a
PR review approval. Agents read gates and never set them. A **Mandatory gate** is one nothing can
skip.
_Avoid_: checkpoint, approval step (a **Gate** is tracker state; a **HITL** pause is not)
### Delivery team
**Stage**:
One step of the delivery flow — spec, tickets, implement, review, verify — run as its own fresh
session that starts from tracker pointers and ends with a **Handoff comment**.
_Avoid_: phase, step
**Stage lead**:
The agent a **Stage** session runs as. Its body is the stage's flow; skills supply the know-how. It
is the only part of its stage that dispatches subagents, and no agent spans stages.
_Avoid_: lead, orchestrator agent, manager
**Role agent**:
A delivery-team agent defined by its function — planner, test author, implementer, QA, reviewer,
operator — not by a tool; it loads skills on demand. A role agent may itself be a **Stage lead**.
_Avoid_: specialist agent (implies a tool specialist), worker, persona
**Handoff comment**:
The fixed-shape tracker comment that ends every **Stage** — decisions, rejected options, evidence,
the pointer the next stage starts from, and open questions. The next stage reads it first.
_Avoid_: summary, status update
**Acceptance check**:
What the test author writes before any implementation, from a ticket's acceptance criteria: a
failing test where a test can express the criterion, otherwise a post-merge assertion about the
applied state with the reason no test applies. The operator verifies the assertions; the reviewer
judges the reasons.
_Avoid_: test case, verification step
**Odd job**:
A one-off operator action that is not the effect of a merge, such as an ad-hoc playbook run. It
reaches the operator directly on the human's instruction, skipping planner, implementer and reviewer,
and runs only in a **HITL** session.
_Avoid_: manual apply, ad-hoc task
### Documents
**AGENTS.md**:
@@ -194,7 +147,7 @@ The cross-provider term for a tracked unit of work. Gitea is this repo's canonic
_Avoid_: ticket, card, task
**Family prefix**:
The shared first segment of a skill name (`git-`, `gitea-`, `apm-`, `agentsmd-`, `delivery-`) marking a group of
The shared first segment of a skill name (`git-`, `gitea-`, `apm-`, `agentsmd-`) marking a group of
siblings. No bare skill name is a **Family prefix** of another: `forge` exists, so no skill is named
`forge-*`, because a prefix that matches a live sibling reads as ownership rather than membership.
_Avoid_: namespace, category
-8
View File
@@ -141,11 +141,3 @@ The pre-push `run-tests` failed 2 of 3 full runs, on a different suite each time
## 2026-09-16 — A static guard covers exactly the spellings its regex models
The guard added above (`tests/test-no-pipefail-early-exit-grep.sh`) reported the tree clean the day it landed, and the tree was not clean. Its pattern could not see a multi-stage pipeline (`echo x | filter | grep -q y`), a pipeline wrapped after a trailing `|`, or `set -o errexit -o pipefail` — the last a file-level miss that silently skipped every site in that file. Five live vulnerable sites sat in `tests/test-apm-current-hook.sh` while the suite reported green, and the fixtures carried 4 of the 12 vulnerable spellings that turned out to exist. A clean verdict from a static scanner is a claim about its regex, not about the tree. Fix: before trusting one, enumerate the spellings of the defect and measure the miss surface against them; and write the scanner's remit and its known false-positive shapes into the gate's own documentation, so the next reader knows what the green covers.
## 2026-11-13 — Hook-exported GIT_DIR turned test fixtures loose on the real repo
Under the `run-tests` pre-push hook, git exports `GIT_DIR` to the hook, so a bats fixture's `git -C "$tmp" init/commit/update-ref` hit this repo instead of its temp dir: 84 failures, `core.bare=true` and an emptied index on every push. The 2026-07-05 "repo root is a bare checkout" entry was likely this bug's symptom, not the repo's real shape. Fix: `tests/run-tests.sh` unsets git's repo-locating env vars before any suite runs. Rule: a test that builds its own repo must never inherit the caller's git environment.
## 2026-11-22 — A local-path install skips the validation a remote install runs
#205 shipped `ansible` and `k8s` as `apm.yml`-only skeletons after a scratch consumer installed all four new packages from `../pkgs/<name>` with exit 0. Fetched from the remote, the same packages fail: apm accepts a remote subdirectory only when it has `.apm/`, declared dependencies or a `skills/` bundle (`detect_package_type` in `apm_cli/models/validation.py`). `gitops` failed too, through its dependency on `k8s`. So `main` published uninstallable packages until #206 added `.apm/.gitkeep`. A green local-path install says nothing about whether consumers can install. Fix: before merging a new or restructured package, push the branch and install it with `git:`/`path:`/`ref: <branch>`, or run `validate_apm_package` on a `git archive` export. `file://` URLs are rejected in the object form, so they can't stand in for the remote.
-21
View File
@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2026 Defame1297
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+5 -10
View File
@@ -2,31 +2,26 @@
The global AI development configuration repository — the authoritative source for agent definitions, skills, workflows, and prompts across all projects. Built as a homelab tool intended to scale to professional environments.
Content ships as installable plugins, each an apm (Agent Package Manager) package. This repo consumes its own plugins through apm (the ones root `apm.yml` lists), so the working copy runs the same released content every other consumer gets.
Content ships as six installable plugins, each an apm (Agent Package Manager) package. This repo consumes its own plugins through apm, so the working copy runs the same released content every other consumer gets.
## Repo layout
| Path | What it holds |
| --- | --- |
| `plugins/` | The apm packages — `bin`, `core`, `git`, `gitea`, `kyberforge`, `lint`, `mattpocock`, `delivery`, `ansible`, `gitops`, `k8s` — each carrying skills, and where relevant agents, hooks, and bundled assets |
| `plugins/` | Six apm packages — `bin`, `core`, `git`, `gitea`, `kyberforge`, `lint` — each carrying skills, and where relevant agents, hooks, and bundled assets |
| `providers/claude-code/` | Claude Code adapter, deployed to `~/.claude/` via `scripts/install.sh` |
| `core/` | Provider-agnostic always-on content — `core/AGENTS.md` and `core/instructions/` |
| `docs/` | Specs (`docs/spec/`), architectural decisions (`docs/adr/`), governance, research, and notes |
| `scripts/` | Install and check scripts used by the git hooks |
| `tests/` | `run-tests.sh`, `run-bats.sh`, the `test-*.sh` suites, and the bats submodules |
The plugins:
The six plugins:
- **kyberforge** — skills and agents for creating, maintaining, and managing an apm plugin marketplace for Claude Code (and GitHub Copilot through apm)
- **git** — conventional commits, branches, history, submodules, worktrees, remotes, pre-commit hook authoring and running (`pc-author` / `pc-run`), and an interactive router (`git-workflow`)
- **gitea** — issues, pull requests, labels, milestones, releases, branches, files, and an interactive router (`gitea-workflow`)
- **core** — authoring and auditing a repo's `AGENTS.md` and the provider adapter files that defer to it
- **lint** — configuring and running linters
- **mattpocock** — Matt Pocock's agent skills — planning, grilling, test-first development, triage and bug diagnosis — redistributed from upstream at a pinned release
- **delivery** — agents and skills for taking a change from spec to a verified merge through tracker-gated stages
- **ansible** — authoring, testing and dry-running Ansible playbooks, roles and collections
- **gitops** — authoring, auditing and diagnosing a Flux GitOps repository, including the secrets sealed into it
- **k8s** — read-only diagnosis of workloads on a Kubernetes cluster
- **bin** — cross-cutting workflow skills not yet split into a focused plugin: research, documentation, TDD, prototyping, triage, diagnosis, architecture review, requirement grilling, compressed output (`caveman`), and re-orienting mid-task (`zoom-out`)
## Prerequisites
@@ -57,13 +52,13 @@ apm install
pre-commit install -t pre-commit -t commit-msg -t pre-push
```
**`apm install`** deploys the plugins root `apm.yml` lists into `.claude/skills/` and `.claude/agents/`. Both are gitignored install output, *not* authoring source — `plugins/<name>/.apm/` remains the only place to edit. It needs the network and materializes `apm_modules/` (which stays gitignored).
**`apm install`** deploys the six plugins into `.claude/skills/` and `.claude/agents/`. Both are gitignored install output, *not* authoring source — `plugins/<name>/.apm/` remains the only place to edit. It needs the network and materializes `apm_modules/` (which stays gitignored).
**Git hooks** must be wired for **all three stages**. This repo's `.pre-commit-config.yaml` has no `default_install_hook_types`, so a plain `pre-commit install` silently skips `commit-msg` (Conventional Commits) and `pre-push` (the full gate) — the `-t` flags above are not optional. The `pc-run` skill handles this and the troubleshooting around it, if you would rather not remember the flags.
## Keeping the install current
The first-party dependencies in root `apm.yml` are unpinned against the default branch, so deployed skills go stale whenever anyone merges. kyberforge's `SessionStart` hook keeps the install current automatically on launch, rewriting `apm.lock.yaml` in the process — an unexplained modification to it after opening a session is expected, not a bug. On `main`, commit or discard it deliberately. On a feature branch, discard it (`git checkout -- apm.lock.yaml`, then `apm install`). The committed lock records a `main` commit too, just an older one. Discarding keeps lock churn unrelated to the branch out of its diff, and keeps the deployed tree consistent with the committed lock that `apm pack --check-clean` reads. The trade-off: the session then runs the older `main` the lock records, which is accepted on a feature branch. The discard also lasts only until the next session start, when the hook finds the lock behind `main` and refreshes again. Mechanism and rationale: `docs/adr/0019-session-start-hook-keeps-the-apm-install-current.md`.
The six dependencies in root `apm.yml` are unpinned against the default branch, so deployed skills go stale whenever anyone merges. kyberforge's `SessionStart` hook keeps the install current automatically on launch, rewriting `apm.lock.yaml` in the process — an unexplained modification to it after opening a session is expected, not a bug. On `main`, commit or discard it deliberately. On a feature branch, discard it (`git checkout -- apm.lock.yaml`, then `apm install`). The committed lock records a `main` commit too, just an older one. Discarding keeps lock churn unrelated to the branch out of its diff, and keeps the deployed tree consistent with the committed lock that `apm pack --check-clean` reads. The trade-off: the session then runs the older `main` the lock records, which is accepted on a feature branch. The discard also lasts only until the next session start, when the hook finds the lock behind `main` and refreshes again. Mechanism and rationale: `docs/adr/0019-session-start-hook-keeps-the-apm-install-current.md`.
Note the difference between the two commands:
+567 -1436
View File
File diff suppressed because it is too large. Load diff
+13 -40
View File
@@ -1,5 +1,5 @@
name: holocron
version: 0.8.0
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
@@ -16,37 +16,25 @@ targets:
- claude
dependencies:
apm:
- git: https://git.rkdr.net/Mortis/Holocron.git
- git: git@git.rkdr.net:Defame1297/holocron.git
path: plugins/bin
- git: https://git.rkdr.net/Mortis/Holocron.git
- git: git@git.rkdr.net:Defame1297/holocron.git
path: plugins/core
- git: https://git.rkdr.net/Mortis/Holocron.git
- git: git@git.rkdr.net:Defame1297/holocron.git
path: plugins/git
- git: https://git.rkdr.net/Mortis/Holocron.git
- git: git@git.rkdr.net:Defame1297/holocron.git
path: plugins/gitea
- git: https://git.rkdr.net/Mortis/Holocron.git
- git: git@git.rkdr.net:Defame1297/holocron.git
path: plugins/kyberforge
- git: https://git.rkdr.net/Mortis/Holocron.git
- git: git@git.rkdr.net:Defame1297/holocron.git
path: plugins/lint
# 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. The same rule holds for the
# fluxcd skills gitops pins in plugins/gitops/apm.yml.
- git: https://git.rkdr.net/Mortis/Holocron.git
# which stay unpinned for default-branch parity.
- git: [email protected]:Defame1297/holocron.git
path: plugins/mattpocock
# The delivery team and the infra tool packages (map #166). Their own
# sibling dependencies (git, gitea, mattpocock, k8s) resolve transitively
# and dedupe against the entries above.
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/delivery
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/ansible
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/gitops
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/k8s
mcp: []
# Turns apm's executable-trust gate ON. Without this block the gate is disabled
@@ -78,10 +66,11 @@ 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.8.0
version: 0.7.0
owner:
name: Mortis
url: https://git.rkdr.net/Mortis/
name: Defame1297
email: [email protected]
url: https://git.rkdr.net/Defame1297/
# Default tag pattern used to resolve version ranges for each package.
build:
@@ -126,19 +115,3 @@ marketplace:
- name: lint
source: ./plugins/lint
category: Developer Tools
- name: delivery
source: ./plugins/delivery
category: Developer Tools
- name: ansible
source: ./plugins/ansible
category: Infrastructure
- name: gitops
source: ./plugins/gitops
category: Infrastructure
- name: k8s
source: ./plugins/k8s
category: Infrastructure
@@ -1,43 +0,0 @@
# First-party delivery team replaces mattpocock's delivery chain
We will replace `mattpocock`'s delivery chain (`to-spec`, `to-tickets`, `triage`, `implement`,
`implement-spec`, `code-review`, `tdd`) with a first-party team package. Upstream's stages are skills,
not agents, and most are hand-invoked, so no agent can chain them; forking would keep that shape.
Delivery runs as one fresh session per **Stage** (spec → tickets → implement → review → verify), each
started as its **Stage lead** agent, whose body is the stage flow and which loads skills for the
know-how. There is no lead spanning stages: work passes only through tracker issues, blocking links,
branches and PRs, each stage ending with a **Handoff comment**, and **Gates** (spec approved, PR
approved) are human-set tracker state. `mattpocock`'s thinking tools (`wayfinder`, `grilling`,
`research`, …) stay as a dependency. Decided in holocron#170.
## Considered Options
- **One LLM lead across all stages, dispatching leaf role agents** (the first resolution of #170):
rejected — the orchestrator becomes a long-running context, and a lead in front of single-role
stages only adds a lossy hand-off. Practice puts the orchestrator in the main session.
- **A lead skill plus a thin agent wrapper**: rejected once v1 targeted Claude Code and Copilot CLI,
which both start a main session as a custom agent that can dispatch subagents.
- **A custom driver script chaining stages**: rejected — sequencing will come from Gitea Actions on
gate events (run mode, later); v1 is step mode, the human launching each stage.
## Consequences
- We own the chain's maintenance from now on; upstream improvements arrive only by deliberate porting.
- Only the implement stage has a team: test author → implementer (tests read-only) → QA, sequential.
After the first push the implement-stage lead opens a draft PR (Gitea `WIP:` title prefix, which
blocks merge) and QA judges that PR's CI checks; when QA passes, the lead removes `WIP:`, and that
hand-off starts the review stage. Most repos run CI on PRs, not branch pushes, so the draft PR keeps
QA before review without changing any consuming repo's workflows.
- The test author always writes **Acceptance checks**: failing tests where a test applies, otherwise
post-merge assertions with a stated reason, which the operator verifies and the reviewer judges.
- Agents never duplicate deterministic checks: pre-commit hooks gate commits, CI (on the PR) runs
tests, lint, Molecule and plan/diff output; QA, reviewer and operator add only judgement.
- *Amended 2026-11-22 (holocron#173): QA ran on the pushed branch before the PR opened, and CI was
required on branch push as well as PR; both moved to the draft PR, and acceptance checks were
added.*
- Claude Code is the tested target; Copilot CLI is written to its documented behaviour but untested
until an account exists; other runtimes are best effort.
- *Amended 2026-11-22 (holocron#173): Copilot CLI was a tested target; with no account to test on,
it is supported from its documentation only.*
- Infra applies happen by merge (GitOps for Flux, Ansible and OpenTofu alike), so the PR gate is the
apply gate; the operator verifies and opens revert PRs, never reverting on its own.
@@ -1,99 +0,0 @@
# Credentials, not hooks, are the agent safety boundary
The infra packages (`ansible`, `gitops`, `k8s`, later `tofu`) and the `delivery` team keep agents
safe by what they cannot do, not by what they are told: stage sessions hold no apply credentials, no
vault password and no Secret read, and every infra change applies by merge after a human approves the
PR. Hooks and skill instructions sit above that boundary as guardrails, because every provider
documents hooks as a guardrail rather than a security boundary and a hook "ask" works only in Claude
Code and Copilot CLI. Decided in holocron#172.
## Action tiers
Every package skill classifies each command it drives into one tier:
- **Read** — lint, syntax check, dry run, diff, `kubectl get/describe/logs`, `flux get`, an offline
render or rendered diff (`kustomize build`, `flux build --dry-run`). Free. Live `kubectl diff` and
`flux diff` are server-side dry runs that need write RBAC, so they fail under the read-only
kubeconfig and are not used.
- **Propose** — branch, commit, push, open a PR, comment. Free.
- **Apply-by-merge** — every change to infrastructure. Happens only through an approved merge; the
agent never runs it.
- **Odd job** — `ansible-playbook` outside check mode, `tofu apply`, `flux reconcile`. The agent runs
it, only in a HITL session the human started and supplied the apply credentials to; that session
takes its instruction from the human and loads no issue or PR text. The guard hook asks before each
command.
- **Never** — `kubectl apply/delete/edit/patch/scale`, `helm install/upgrade/rollback`,
`tofu destroy`, `tofu state rm|mv|push|pull|show`, `git commit|push --no-verify` and `SKIP=`,
`ansible-vault view/decrypt/edit`, `kubeseal --recovery-unseal`, reading vault password files,
private keys, `.tfstate` or Secret objects.
## Secrets
Agents never decrypt Ansible Vault or Sealed Secrets and never read the material that would. Stage
sessions use a kubeconfig bound to the built-in `view` ClusterRole (which excludes Secrets) plus a
read-only aggregated role for `SealedSecret` objects. Ansible stage work runs only what succeeds with
a placeholder vault password (`--syntax-check`, `ansible-lint`, inventory reads). A real
`--check --diff` before merge is reopened: check mode still runs PR-controlled code (lookups,
`delegate_to: localhost`, `check_mode: false` tasks, plugins) with the production credentials, so
running it in CI on a bot PR hands the bot those credentials. Decided in
[Pre-merge Ansible dry run without exposing production credentials](https://git.rkdr.net/Mortis/Holocron/issues/200).
## Enforcement layers
1. Skill instructions name each command's tier.
2. `delivery` ships one portable guard hook: deny the Never tier everywhere; ask for odd-job commands
where the runtime supports ask (Claude Code, Copilot CLI), deny them elsewhere.
3. Host permission settings are documented, not shipped.
4. **Credential boundary** in each consuming repo — the real control:
- agents act as a dedicated Gitea bot user;
- branch protection: approvals allowlist of humans only, dismiss stale approvals, bot off the
merge allowlist, protected file patterns for agent config, AGENTS.md and CI workflows; test
paths stay out, because protecting them would block the test author's own commits;
- every PR carries the dry run as a required status and a PR comment; apply happens after merge.
Flux's is an offline rendered diff of base and head that holds no cluster credential; a live
`flux diff` needs write RBAC, because Kubernetes authorises dry-run requests like real ones, so
it is not used. Ansible's pre-merge `--check --diff` is reopened (see Secrets); later
`tofu plan`;
- stage leads start only when a user on the human allowlist in `docs/agents/delivery.md` set the
gate label, checked against the issue timeline;
- a CI test-path check, run from `main`'s copy, fails if a commit after the test author's
(trailer `Delivery-Stage: test-author`) touches the globs in `.gitea/test-paths`; this check,
not file protection, guards tests. The implementer hands disputed tests back instead of editing
them.
5. Pre-commit and CI in the consuming repo are the deterministic backstop.
## Considered Options
- **Agent drafts odd jobs, human runs them** (no agent ever holds apply credentials): rejected by the
owner in favour of agent-run odd jobs in HITL sessions with per-command ask.
- **Gated vault-touching check runs, or a scoped vault credential for agents**: rejected — moving
`--check --diff` to CI removes the conflict without loosening the read rule.
- **Apply before merge** (Atlantis model): rejected — Gitea has no native support; merge-then-apply
with the dry run as a required check is the existing pattern in the reference repo.
- **A deny hook on test paths**: rejected for v1 — a repo-wide hook cannot portably tell the test
author from the implementer, and misses edits made through the shell.
- **PATH wrapper scripts**: rejected — trivially bypassed.
## Consequences
- Most of the safety model is setup in each consuming repo, not code in these packages; it is
documented there (`docs/agents/delivery.md`) and checked before the destination test.
- **Accepted risk:** odd jobs leave no durable record beyond the session itself. This departs from
the governance rule to log agent actions in reviewable form; the owner accepted it.
- **Accepted risk:** an odd-job session holds apply credentials; its safety rests on the human
starting it, keeping untrusted text out of it, and answering each ask.
- Headless sessions running repo-controlled config are not addressed here; launching from pinned
config is part of run mode.
- **Accepted risk:** agent sessions run as root on the dev box until [Agent unix user for delivery sessions](https://git.rkdr.net/Mortis/Holocron/issues/201) is
done. Root can read the vault password, the host SSH key and the admin kubeconfig, so on that
machine the credential boundary is a guardrail only. Partial mitigation: delivery sessions export
`KUBECONFIG` to a read-only kubeconfig, so accidental cluster writes fail.
- **Accepted risk:** same-repo branches reach repo secrets. The bot (the existing `Claude` Gitea
user) pushes same-repo branches; Gitea runs a `pull_request` workflow from the PR branch's own copy
and gives same-repo PRs the repo secrets, so a bot branch can read them. Protected file patterns
block the merge, not the run.
- *Amended 2026-11-22 ([Credential boundary setup in ansible-homelab-mono](https://git.rkdr.net/Mortis/Holocron/issues/184)): test paths left
the protected file patterns for the test-path check; the Flux dry run became an offline render,
and live `kubectl diff` left the Read tier;
the CI `--check --diff`, and with it the rejection of gated vault-touching check runs, were
reopened; the root-session and same-repo-branch risks were accepted.*
+1 -13
View File
@@ -1,6 +1,6 @@
# Issue tracker: Gitea
Issues and PRs for this repo live in Gitea at `git.rkdr.net`, repo `Mortis/Holocron` (ADR-0007: Gitea is the exclusive tracker; there is no file-based fallback).
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
@@ -16,18 +16,6 @@ Use the plugin skills, which wrap the Gitea MCP tools (`mcp__gitea__*`); do not
- Apply triage state with the `Status/*` labels mapped in `docs/agents/triage-labels.md`.
- "Publish to the issue tracker" means create a Gitea issue; "fetch the relevant ticket" means read it with `gitea-issues`.
## Wayfinding operations
How the `wayfinder` skill's map and tickets map onto Gitea, which has native issue dependencies but no sub-issues.
- **Labels**: the skill's `wayfinder:<x>` labels are expressed as the Gitea scoped labels `Wayfinder/<X>`, matching the repo's `Scope/Value` convention: `wayfinder:map` is `Wayfinder/Map`, `wayfinder:research` is `Wayfinder/Research`, and so on.
- **Map**: an issue labelled `Wayfinder/Map`, paired with a milestone of the same title (`Map: <name>`).
- **Child ticket**: an issue whose body starts with `Part of #<map>`, assigned to the map's milestone, carrying exactly one type label (`Wayfinder/Research`, `Wayfinder/Prototype`, `Wayfinder/Grilling`, `Wayfinder/Task`) and no `Status/*` label.
- **Blocking**: Gitea's native issue dependencies (`issue_write` `add_dependency`, `dependency_type: blocked_by`).
- **Claim**: assign the ticket to the dev driving the map before any work.
- **Frontier query**: open issues in the map's milestone with no assignee, then drop any whose `get_blocked_by` lists an open issue.
- **Research findings**: committed on a `research/<name>` branch that is pushed but never merged; the ticket's resolution comment links it.
## PRs as a request surface
Off. Only issues feed the triage queue; PRs are not triaged as requests.
@@ -0,0 +1,183 @@
# Enforcement hooks: what apm can ship, and portable alternatives
Research for holocron issue #168 (map #166, "Infra and agent-team packages"). Captured 2026-11-12.
**Question.** Can the infra package *enforce*, not just instruct, the map's safety stance? The stance
blocks `kubectl apply/delete`, `helm upgrade`, unchecked `ansible-playbook`, `tofu apply`, vault
decryption, and reads of vault password files unless a human has approved. If it can, through what
mechanism?
**Short answer.** Partly. apm can ship one `PreToolUse`-style hook that reaches Claude Code,
Copilot (CLI and cloud agent), Codex and Gemini CLI, and each of those can deny a shell command
after inspecting its text. Only Claude Code and Copilot CLI can turn the block into an *ask*, which
is a real human approval. Every provider documents its hooks as best-effort guardrails rather than a
security boundary. Hooks see only the command text, so `sh -c`, a script the agent writes and then
runs, or a Python subprocess gets past them. Real enforcement has to come from credentials the agent
does not hold: a read-only kubeconfig, no apply credentials for tofu, an unreadable vault password
file and branch protection. Use the hook as the fast, explainable first layer, not the boundary.
Sources were the installed apm 0.28.0 source (`apm_cli/`, read from the pipx venv), the apm docs,
and each provider's official docs. Context7 was unavailable in this session (invalid API key), so
every citation below is a primary source fetched directly.
---
## 1. What apm ships as a hook, and where it lands
**Authoring.** Hook files are JSON keyed by lifecycle event, in `.apm/hooks/` or a root `hooks/`.
apm accepts the Claude shape (`PreToolUse`, nested `matcher` and `hooks`) and the Copilot shape
(`preToolUse`, flat entries with `bash`/`powershell`/`timeoutSec`). `${PLUGIN_ROOT}` and
`${CLAUDE_PLUGIN_ROOT}` resolve to the package root and are rewritten per target
([apm: Hooks and commands](https://microsoft.github.io/apm/producer/author-primitives/hooks-and-commands/);
`apm_cli/integration/hook_integrator.py` module docstring). kyberforge's `SessionStart` hook
(`plugins/kyberforge/.apm/hooks/hooks.json`) is exactly this. apm merges it into
`.claude/settings.json` with the command rewritten to
`${CLAUDE_PROJECT_DIR}/.claude/hooks/kyberforge/.apm/hooks/check-apm-current.sh` (ADR-0019, and the
deployed `.claude/settings.json`).
**Deployment per target** (apm docs table, confirmed against `_MERGE_HOOK_TARGETS` and
`integration/targets.py`):
| Target | Deployed to | Mode | Notes from source (apm 0.28.0) |
|---|---|---|---|
| claude | `.claude/settings.json` | merged | Reshaped to the nested matcher schema, default matcher `*` (`_to_claude_hook_entries`). |
| copilot | `.github/hooks/<pkg>-<name>.json` | one file per hook | Events renamed to camelCase, `version: 1` added (`hook_integrator.py` ~L1087). |
| codex | `.codex/hooks.json` | merged | `require_dir=True`: skipped unless `.codex/` already exists. No event rename and no reshape (Codex uses Claude's names and shape). |
| gemini | `.gemini/settings.json` | merged | `require_dir=True`. `PreToolUse` becomes `BeforeTool` and timeouts become milliseconds (`_to_gemini_hook_entries`). |
| cursor | `.cursor/hooks.json` | merged | `require_dir=True`, `version: 1` added. **No entry in `_HOOK_EVENT_MAP` and no shape transform** (see section 4). |
| opencode | none | skipped | "OpenCode has no hooks concept" (`targets.py`). |
**Executable-trust gate.** Hooks are an executable primitive. When the consuming `apm.yml` has an
`executables:` block, a hook deploys only if the consumer approves it (`apm approve`). Without the
block, every executable deploys silently (`apm_cli/security/executables.py` docstring; ADR-0019).
That gate works in the safety stance's favour: a consumer can see, and has to approve, the guard
hook.
**What apm does *not* ship:**
- Permission rules, sandbox settings, or any `settings.json` key other than `hooks`. No source path
writes `permissions` or `sandbox`. A repo-authored key in `.claude/settings.json` is permanent
`apm audit --ci` drift (ADR-0018, AGENTS.md).
- Tool-name translation in matchers. A `"matcher": "Bash"` is written verbatim to every target, but
the shell tool is `Bash` in Claude and Codex, `Shell` in Cursor
([Cursor hooks](https://cursor.com/docs/agent/hooks)), and `run_shell_command` in Gemini
([Gemini hooks reference](https://geminicli.com/docs/hooks/reference/)). Copilot's flat format
has no matcher at all.
- `bin/` on `PATH`. A package's `bin/` deploys at **user scope only**, for the Claude target only,
into the skill directory's `bin/` (`skill_integrator.py` ~L1571–1670, "bin/ deploy is user-scope
only"). It is not a channel for portable wrapper scripts.
## 2. Can a pre-tool hook inspect arguments and deny or ask? Per target
| Provider | Event | Sees the command? | Deny | Ask (human approval) | Failure mode |
|---|---|---|---|---|---|
| **Claude Code** | `PreToolUse` | `tool_input.command` | exit 2 (stderr is the reason) or `permissionDecision: "deny"` | **Yes**, `permissionDecision: "ask"` | Fails open on error or timeout unless `"onFailure": "block"`. Runs in subagents too. |
| **Copilot CLI / cloud agent** | `preToolUse` (`PreToolUse` alias) | `toolArgs` (camelCase) or `tool_input` (PascalCase) | `permissionDecision: "deny"` | **CLI yes. Cloud agent treats `ask` as `deny`.** | Crashes and non-zero exits **fail closed**; timeouts fail open. |
| **Copilot in VS Code** | `preToolUse` | `toolArgs` | `deny` | Documented only loosely | Preview. Also reads the repo's `.claude/settings.json` hooks. |
| **Codex** | `PreToolUse` (covers shell and unified exec as `Bash`, plus `apply_patch` and MCP) | `tool_input.command` | exit 2 or `permissionDecision: "deny"` | **No**: `ask` is "parsed but not supported yet" and the tool call **continues** | Errors and timeouts can let the tool run. Project hooks are skipped until a human trusts them (hash-pinned). |
| **Gemini CLI** | `BeforeTool` | `tool_input` (raw tool args) | exit 2 or `decision: "deny"`/`"block"` | Not documented | Other exit codes are non-fatal and the call continues. Project hooks are fingerprinted, with a warning on change. |
| **Cursor** | `beforeShellExecution` / `preToolUse` | `command` / `tool_input.command` | exit 2 or `permission: "deny"` | `beforeShellExecution` yes. `preToolUse` accepts `ask` in its schema but does not enforce it. | Fails open by default; `failClosed: true` per hook. |
| **OpenCode** | none | n/a | n/a | n/a | No hooks. |
Sources: [Claude Code hooks](https://code.claude.com/docs/en/hooks),
[Copilot hooks reference](https://docs.github.com/en/copilot/reference/hooks-configuration),
[VS Code agent hooks](https://code.visualstudio.com/docs/copilot/customization/hooks),
[Codex hooks](https://learn.chatgpt.com/docs/hooks) (redirected from developers.openai.com),
[Gemini CLI hooks](https://geminicli.com/docs/hooks/) and its
[reference](https://geminicli.com/docs/hooks/reference/),
[Cursor hooks](https://cursor.com/docs/agent/hooks).
**Every vendor says hooks are not a boundary.** Codex: "Treat tool hooks as a useful guardrail, not
a complete enforcement boundary". Claude's `if` field docs: "use the permission system rather than a
hook to enforce a hard allow or deny". Claude permissions: a Bash rule "isn't a security boundary
around the program", and the docs point to the sandbox for enforcement that doesn't depend on the
command text ([Claude permissions](https://code.claude.com/docs/en/permissions)).
**Exit code 2 plus a stderr reason is the lowest common denominator for deny.** Claude, Codex,
Gemini and Cursor document it, and Copilot fails closed on any non-zero exit. A single script can
therefore deny portably. Only *ask* differs per provider.
## 3. Portable alternatives where hooks don't reach
| Layer | Mechanism | Strength | apm-shippable? |
|---|---|---|---|
| Host permission rules | Claude `permissions.deny`/`ask` (`Bash(kubectl apply *)`, `Read(**/.vault_pass*)`). Deny, then ask, then allow; a hook `allow` cannot override a deny or ask rule. Compound commands and subshells are split. | Matches the text Claude writes. It "doesn't match the same program invoked in a different form" (path, `sh -c`). | **No.** Settings keys are not an apm primitive and would be drift in `.claude/settings.json`. Use managed settings, user settings or `settings.local.json`. |
| Claude sandbox | `sandbox.filesystem.denyRead` on the vault password file, `allowUnsandboxedCommands: false`, `failIfUnavailable: true`. OS-level (bubblewrap/Seatbelt) and covers child processes. | Strong for file reads, whatever the command text. Command hooks and MCP servers run outside it. | No (settings). Claude only. |
| Wrapper scripts on PATH | `kubectl`/`helm`/`tofu` shims that refuse mutating verbs. | Weak: bypassed by an absolute path, `command -p` or a different PATH. Breaks humans who share the PATH. | No portable channel (apm `bin/` is user-scope, Claude-only, not on PATH). **Not recommended.** |
| pre-commit / pre-push | e.g. reject a committed file that should be vault-encrypted but lacks the `$ANSIBLE_VAULT` header. | Catches mistakes at commit time. Client-side and skippable with `--no-verify`. Cannot stop a runtime apply. | Out of scope for apm (`.pre-commit-config.yaml` in the infra repo). |
| Kubernetes RBAC | Agent kubeconfig bound to the built-in `view` ClusterRole. "This role does not allow viewing Secrets, since reading the contents of Secrets enables access to ServiceAccount credentials" ([k8s RBAC](https://kubernetes.io/docs/reference/access-authn-authz/rbac/)). | **Boundary.** `kubectl apply/delete` and `helm upgrade` fail server-side, whatever the shell form. It also keeps the Sealed Secrets controller key out of reach. `kubectl diff` needs server-side dry-run, which may need more than `view` (not verified here). | No: infra and credential setup. |
| Separate apply credentials | tofu: the agent gets plan-only or read-only provider and state credentials, and apply runs with credentials held by the human or CI. Ansible: no vault password and no privileged SSH key in the agent's environment. | **Boundary.** | No: infra and credential setup. |
| Forge branch protection | The Flux-watched branch accepts only reviewed merges, and the agent's Gitea token cannot push or merge to it. | **Boundary** for the GitOps path. | No: Gitea settings. |
## 4. Gaps named per provider
- **Claude Code: best covered.** The hook deploys and is honoured, with argument-level deny and real
`ask`. Gaps: the hook fails open on error unless `onFailure: block` is set. A user's
`disableAllHooks` turns off project hooks, and only `allowManagedHooksOnly` with managed hooks
prevents that. The permission rules and sandbox that would harden it are not apm-deliverable.
- **Copilot CLI: well covered.** Deny and ask both work, and errors fail closed. On the **cloud
agent** `ask` becomes `deny`, so HITL commands are simply blocked there, which is the correct
outcome. **VS Code** reads both `.github/hooks/` and `.claude/settings.json`. A package installed
for both `copilot` and `claude` targets therefore runs the guard twice in VS Code. That is
harmless for a deny-only idempotent script, but noisy.
- **Codex: deny only.** `ask` silently degrades to *allow* (the run is marked failed and the tool
call continues). The script must therefore emit `deny` for HITL commands on Codex, never `ask`.
apm skips the hook entirely unless `.codex/` exists, and Codex skips it until a human trusts it.
A fresh install is unguarded until someone runs `/hooks` to review it.
- **Gemini CLI: deny only, and the matcher does not translate.** A `Bash` matcher never fires on
`run_shell_command`, so ship the hook with no matcher (or `*`) and dispatch inside the script. apm
skips it unless `.gemini/` exists.
- **Cursor: not reliably reachable through apm 0.28.0.** The installed source applies no event
rename and no reshape for `cursor`, so a Claude-shaped `PreToolUse` entry lands verbatim in
`.cursor/hooks.json`, while Cursor's native events are camelCase with a flat
`{command, matcher}` schema. The apm docs say "Cursor accepts Claude aliases and maps them to
native names". Cursor's docs say it "supports loading hooks from third-party tools like Claude
Code", but the page fetched here did not detail the mapping. **I'm not certain this works.** Verify
with a real Cursor install before claiming coverage. Even when it works, `preToolUse` does not
enforce `ask` and fails open unless `failClosed: true`.
- **OpenCode and other hookless targets: no hook layer.** Only the credential layers apply.
## 5. Recommended layered design
1. **Instructions (intent).** Infra skills state the stance and tell the agent to propose the
command and stop. This costs nothing, but it is not enforcement.
2. **One portable guard hook shipped by the infra package (fast feedback, best-effort).**
- A single `.apm/hooks/` file on the `PreToolUse`/`preToolUse` event, **with no tool matcher**.
The script normalises the payload (`tool_input.command`, `toolArgs`, `command`) and ignores
non-shell tools.
- **Always deny:** `kubectl apply|delete|patch|replace|edit|create`, `helm install|upgrade|
uninstall|rollback`, `ansible-vault decrypt|view|edit|rekey`, `kubeseal --recovery-unseal`,
and commands naming the vault password file.
- **HITL** (`ansible-playbook` without `--check`/`-C`, `tofu apply|destroy`, `git push` to the
Flux branch): emit `ask` where it is honoured (Claude Code, Copilot CLI) and `deny` everywhere
else, with a reason telling the agent to hand the command to the human.
- Signal the decision with **exit 2 plus stderr** as well as the JSON, so a provider that ignores
the JSON still blocks. Keep the script POSIX `sh` and `jq`-optional.
- Consumers approve it through the apm executable-trust gate (version-blind grant, ADR-0019
correction).
3. **Host hardening, documented and not shipped.** The package README or skill tells the operator
what to set per provider. Claude: deny and ask rules, plus sandbox `denyRead` on the vault
password file with `allowUnsandboxedCommands: false`, ideally in managed settings with
`allowManagedHooksOnly` so the guard cannot be disabled. Codex: trust the hook after review.
4. **Credentials (the actual boundary).** A `view`-role kubeconfig for agent sessions, apply
credentials for tofu that the agent never holds, a vault password file that the agent's OS user
cannot read, and an agent forge token without push or merge rights on the Flux branch. These hold
whatever the shell form and on every provider, including hookless ones.
5. **Repo gates.** The infra repo's pre-commit catches unencrypted secrets. Forge branch protection
and CI catch what client hooks miss.
**Trade-off.** Layer 4 is outside apm and needs per-environment setup, so the package can document it
but not install it. That is the price of actual enforcement. Layers 1–3 alone are bypassable by
construction.
## 6. Open issue for the map: `--check` needs the vault
The stance allows `ansible-playbook --check --diff` freely but forbids reading vault password files.
A playbook that loads vaulted variables needs the vault secret to run at all, check mode included.
That is my understanding of Ansible's variable loading; I did not verify it against the Ansible docs
in this pass. Any layer that truly stops the agent's processes reading the password file (sandbox
`denyRead`, file permissions) will therefore also break the agent's check runs. The hook layer
cannot tell the agent reading the file from Ansible reading it on the agent's behalf. Possible
resolutions: run checks in CI, use a `--vault-password-file` client script that prompts the human,
or accept that Ansible (not the agent) reads it and enforce only "no direct read or decrypt
command". This needs a decision ticket on map #166.
-5
View File
@@ -42,11 +42,6 @@ These are routing boundaries, not inventories — they answer "where does a new
| `gitea` | Anything reached through the Gitea HTTP API rather than the git wire protocol — the forge's own objects |
| `kyberforge` | Creating and maintaining a Claude Code / Copilot CLI plugin marketplace — this repo's own meta-tooling |
| `lint` | Configuring and running linters against a target repo; repo-agnostic, first linter is Vale |
| `mattpocock` | Third-party skills redistributed from upstream at a pinned release; no first-party content |
| `delivery` | Taking a change from spec to a verified merge through tracker-gated stages; the stage-lead and specialist agents, not any one tool's know-how |
| `ansible` | Authoring, testing and dry-running Ansible playbooks, roles and collections |
| `gitops` | Authoring, auditing and diagnosing a Flux GitOps repository, including the secrets sealed into it; pod-level problems hand off to `k8s` |
| `k8s` | Read-only diagnosis of workloads on a Kubernetes cluster |
| `bin` | Unsorted skills that have not earned a home yet |
One compiler produces the generated content in the tree:
+2 -2
View File
@@ -72,7 +72,7 @@ version-blind, so a stale key deploys fine (see [apm gates](#apm-gates)).
| Hook | Guards |
|---|---|
| `apm-audit-ci` | `scripts/apm-audit-ci.sh` — `apm audit --ci` once per manifest, root plus each plugin package under `plugins/`, waiving only a package's `lockfile-exists` (see [below](#apm-audit-ci)) |
| `apm-audit-ci` | `scripts/apm-audit-ci.sh` — `apm audit --ci` once per manifest, root plus each of the seven plugin packages, waiving only a package's `lockfile-exists` (see [below](#apm-audit-ci)) |
| `apm-pack-check-clean` | `apm pack --check-versions --check-clean --dry-run` — the compiled marketplace still matches what `apm.yml` + `.apm/` would generate, and per-package versions agree with the `per_package` strategy |
**Host validators** (needs the `claude` CLI on PATH)
@@ -1157,7 +1157,7 @@ exclusion landed.
### `apm-audit-ci`
`scripts/apm-audit-ci.sh` runs `apm audit --ci` **once per manifest** — the root one and each of the
plugin packages under `plugins/` — because the root-only invocation audits the marketplace manifest and
seven plugin packages — because the root-only invocation audits the marketplace manifest and
**nothing else**, and `apm-pack-check-clean` does not parse plugin `dependencies:` blocks either.
Verified: a malformed dependency entry passes
`apm pack --check-versions --check-clean --dry-run` and fails `apm audit --ci` in that package's
View File
Whitespace-only changes.
-35
View File
@@ -1,35 +0,0 @@
name: ansible
version: 0.1.0
description: Skills for authoring, testing and dry-running Ansible playbooks, roles and collections.
author:
name: Mortis
url: https://git.rkdr.net/Mortis/
license: MIT
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/ansible
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/ansible
keywords:
- ansible
- molecule
- ansible-lint
- playbook
- collection
# Constrains what .apm/ may contain: instructions, skill, hybrid, or prompts
type: hybrid
# Which agent platforms to deploy to.
# Resolution order: --target flag > this field > auto-detect from filesystem.
# Accepted values: agent-skills, antigravity, claude, codex, copilot, cursor, gemini, grok-build, kiro, opencode, windsurf
targets:
- claude
- copilot
- codex
includes: auto
dependencies:
apm: []
mcp: []
devDependencies:
apm: []
scripts: {}
+2 -2
View File
@@ -9,7 +9,7 @@ apm is the only supported install path (ADR-0024). Declare this package in the c
```yaml
dependencies:
apm:
- git: https://git.rkdr.net/Mortis/Holocron.git
- git: git@git.rkdr.net:Defame1297/holocron.git
path: plugins/bin
```
@@ -19,7 +19,7 @@ Then:
apm install
```
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `bin@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add git@git.rkdr.net:Defame1297/holocron.git --name holocron`) gets you the `bin@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills — and Claude Code raises no error while doing it (ADR-0024).
+5 -4
View File
@@ -2,11 +2,12 @@ name: bin
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: Mortis
url: https://git.rkdr.net/Mortis/
name: Defame1297
email: [email protected]
url: https://git.rkdr.net/Defame1297/
license: MIT
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/bin
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/bin
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/bin
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/bin
keywords:
- utility
- diagnostics
+2 -2
View File
@@ -9,7 +9,7 @@ apm is the only supported install path (ADR-0024). Declare this package in the c
```yaml
dependencies:
apm:
- git: https://git.rkdr.net/Mortis/Holocron.git
- git: git@git.rkdr.net:Defame1297/holocron.git
path: plugins/core
```
@@ -19,7 +19,7 @@ Then:
apm install
```
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `core@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add git@git.rkdr.net:Defame1297/holocron.git --name holocron`) gets you the `core@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills — and Claude Code raises no error while doing it (ADR-0024).
+5 -4
View File
@@ -2,11 +2,12 @@ name: core
version: 1.1.4
description: Skills for authoring and auditing a repo's AGENTS.md and the provider adapter files that defer to it.
author:
name: Mortis
url: https://git.rkdr.net/Mortis/
name: Defame1297
email: [email protected]
url: https://git.rkdr.net/Defame1297/
license: MIT
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/core
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/core
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/core
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/core
keywords:
- agents-md
- documentation
@@ -1,78 +0,0 @@
---
name: delivery-repo-doc
description: >
Use when onboarding a repo to the delivery team or when its `docs/agents/delivery.md` has
drifted, e.g. a renamed CI check. Owns that file's format. Not writing AGENTS.md ->
`agentsmd-author`.
compatibility: Requires git and a forge remote. Gitea needs the Gitea MCP server (through the
gitea-* skills); GitHub needs an authenticated gh CLI.
allowed-tools: Bash Read Write Edit
metadata:
category: delivery
version: "0.1.1"
---
## Gotchas
- A glob with no installed tool skill is left out, never mapped to the closest-sounding skill: a
guess stalls every consumer stage.
- A status-check name derived from a workflow file is a candidate; the forge's reported string is
what consumers match, character for character.
- Commit authors, CODEOWNERS and collaborator lists are not sources for the allowlist or bot user:
they name who *can* act, not who is *allowed* to.
- The git remote's owner casing can differ from the forge's. Take user and owner names from the
forge or the human, never the remote URL.
- The kubeconfig is recorded as a path. Opening it, or any credential file, is outside this skill's
Read and Propose tiers.
## Step 1 — Locate
Work in the consuming repo's checkout, on its default branch, fast-forward pulled via
`git-branches`. On a dirty working tree, stop and report it. Identify the forge from
the `origin` remote (Gitea or GitHub). If `docs/agents/delivery.md` exists, this run is an
**update**; otherwise a **draft**.
Read `references/format.md` now; it is the only definition of the file's syntax.
## Step 2 — Gather repo facts
Read `references/gathering.md` and collect every repo-sourced value: contents → skills, CI check
names with roles, test paths, convention pointers. Done when every section 1–3 and 6 value has a
named source file or forge status.
## Step 3 — Ask for human facts
A human fact the caller already supplied, directly or through a source it named, is used as given.
Ask once, in one message, for every other human-sourced value `references/gathering.md` lists. On
an update, ask only for values the human must re-confirm because the repo changed. A source the
human points at, such as a tracker issue's resolution comment, counts as an answer; quote the value
from it. Wait for the answer. A value the human declines to give stays out, and the PR body names it
as open.
## Step 4 — Write
- **Draft**: write `docs/agents/delivery.md` from the format's skeleton, with this repo's values.
- **Update**: compare each existing item against the facts from Steps 2–3 and edit only the
drifted items. Leave every confirmed item byte-for-byte.
Then the pointer line: if the root `AGENTS.md` lacks the exact line from `references/format.md`,
add it where that file's placement rule says. If the repo has no root `AGENTS.md`, invoke `agentsmd-author` to create one carrying that
line, and edit nothing else in it.
Run the format's validation checklist. Every box ticked is the completion bar.
## Step 5 — Propose
Both files go in one PR. Every command here is in the Read or Propose tier. A branch name or commit
message the caller gives overrides the defaults below.
1. Branch `docs/delivery-repo-doc` from the default branch via `git-branches`.
2. Commit via `git-commits`: `docs(agents): add delivery repo facts` on a draft,
`docs(agents): update delivery repo facts` on an update. On a hook failure, fix the cause and
re-run only that hook, then commit again; `--no-verify` and `SKIP=` stay off the table.
3. Push via `git-remotes`.
4. Open the PR: Gitea via `gitea-prs`; GitHub via `gh pr create`. The body lists each value's source
(file, forge status, or the human's answer and where it was given) and any open values.
Report the PR link and stop. A human merges: `docs/agents/**` and `AGENTS.md` sit behind protected
file patterns, and the merge is theirs either way.
@@ -1,159 +0,0 @@
# The `docs/agents/delivery.md` format
This file is the single source of truth for the format. `delivery-handoff`, `delivery-ci-checks`,
`delivery-qa` and `delivery-operator` cite it as "`delivery-repo-doc`'s `references/format.md`" and
do not restate it. A format change is an edit here, plus the consumers' parsers.
## File rules
- Path: `docs/agents/delivery.md` at the consuming repo's root. One file per repo.
- First line: `# Delivery`.
- Exactly six `##` sections, with these headings verbatim and in this order:
1. `## Contents → skills`
2. `## CI checks`
3. `## Test paths`
4. `## Human allowlist`
5. `## Credential boundary`
6. `## Conventions`
- No other `##` headings, and no `###` headings inside sections 1–4.
- Sections 1–4 are **parsed**: they contain only list items in the item syntax below, one per line,
starting `- ` at column 0. Blank lines are allowed; prose, sub-bullets, tables and comments are
not. Every backticked value is taken verbatim, with no escaping.
- An empty parsed section holds the single item `- none`. Section 4 is never empty.
- Sections 5–6 are read by agents, not parsers; their item labels below are a convention.
## Item syntax
### 1. Contents → skills
```text
- `<glob>`: `<skill>`, `<skill>`
```
- `<glob>` is a repo-relative path glob (`**` crosses directories).
- One or more installed skill names, each backticked, comma-separated.
- A consumer loads exactly the listed skills for a changed path matching the glob, the union across
every matching line. A listed skill that is not installed is a hard stop for the consumer
(`Status/Ready for Human`, handoff "missing skill `<name>`"), so a glob with no installed tool
skill is left out entirely.
### 2. CI checks
```text
- `<status check name>`: <role>
```
- `<status check name>` is the exact string the forge shows on a PR's head commit.
- `<role>` is exactly one of: `dry-run`, `test-path`, `test`, `lint`, `build`, `other`.
- `dry-run` appears on exactly one item. `test-path` appears on at most one item, and on exactly
one when the repo has a test-path check.
- Whatever its role, a consumer treats a check reported as "skipped" (a path-filtered workflow
whose paths did not match) as passing.
### 3. Test paths
Either a pointer, as the only item, when the repo's test-path check reads its own globs file:
```text
- globs file: `<repo-relative path>`
```
or one item per glob:
```text
- `<glob>`
```
These are the paths the test author owns; after the commit with trailer
`Delivery-Stage: test-author`, the implementer may not touch them.
### 4. Human allowlist
```text
- `<forge username>`
```
Humans only. Stage leads accept a gate label or an approval only when the issue or PR timeline shows
a user on this list set it.
### 5. Credential boundary
```text
- Bot user: `<forge username>`
- Kubeconfig: `<absolute path>` | none
- Branch protection: in place | pending ([<title>](<url>))
- Accepted risks: [<title>](<url>), … | none
```
Every link in this section is a markdown link. Delivery sessions export the kubeconfig path as
`KUBECONFIG`. The value is a path only. Accepted risks are linked, never restated.
### 6. Conventions
Short prose or bullets pointing at the repo's own docs (`AGENTS.md`, ADRs, contributing guides) for
anything else a delivery agent needs. Pointers only; no restating.
## AGENTS.md pointer line
The consuming repo's root `AGENTS.md` carries this line verbatim, exactly once:
```text
- Delivery team facts (checks, test paths, human allowlist, credential boundary): `docs/agents/delivery.md`
```
Placement only decides where the line sits; the line itself never changes:
- The heading that lists agent docs holds a flat bullet list: add the line to that list.
- That heading uses `###` subsections with prose: add a `### Delivery` subsection under it, holding
only the line.
- No such heading: add the line at the end of the file.
## Full skeleton
```markdown
# Delivery
## Contents → skills
- `clusters/**`: `flux-diagnose`, `k8s-diagnose`
- `roles/**`: `ansible-lint`
## CI checks
- `ci / render-diff (pull_request)`: dry-run
- `ci / test-paths (pull_request)`: test-path
- `ci / lint (pull_request)`: lint
## Test paths
- globs file: `.gitea/test-paths`
## Human allowlist
- `alice`
## Credential boundary
- Bot user: `delivery-bot`
- Kubeconfig: `/etc/delivery/kubeconfig-readonly`
- Branch protection: pending ([Branch protection setup](https://example.org/issues/12))
- Accepted risks: [ADR-0032](https://example.org/adr/0032)
## Conventions
Repo conventions live in `AGENTS.md`; decisions in `docs/adr/`.
```
The values in the skeleton are illustrative only; every real value comes from the repo or the human.
## Validation checklist
- [ ] First line `# Delivery`; six `##` headings, verbatim, in order.
- [ ] Sections 1–4 hold only items in the syntax above, or `- none`.
- [ ] Every skill in section 1 is installed. A listed skill that is not installed makes every
consumer hard-stop on any change matching its glob.
- [ ] Section 2: exactly one `dry-run`; one `test-path` if the repo has that check.
- [ ] Section 3 is the `globs file:` pointer whenever a test-path check reads a globs file.
- [ ] Section 4 is non-empty and every name came from the human or a source they named.
- [ ] Section 5 holds paths and markdown links, no secret values.
- [ ] Root `AGENTS.md` carries the pointer line exactly once.
@@ -1,57 +0,0 @@
# Gathering the facts
Every value in `docs/agents/delivery.md` has exactly one source. Facts the repo holds come from the
repo; facts only a human holds come from the human. A value with no source stays out.
## Repo-sourced
### Contents → skills
1. List the repo's top-level layout and the tool each area belongs to: Flux/Kustomize manifests
(`kustomization.yaml`, `HelmRelease`), Kubernetes manifests, Ansible (`playbooks/`, `roles/`,
`inventory/`, `ansible.cfg`), OpenTofu (`*.tf`, `.terraform.lock.hcl`).
2. The installed skills are the session's available-skills listing. Map a glob only to tool skills
in that listing whose description covers the area's tool.
3. In a mixed repo (for example Ansible at the top level, Flux under `clusters/`), map each area
with its own glob, and leave out any area with no installed tool skill.
### CI checks
1. Read every workflow under `.gitea/workflows/` or `.github/workflows/` that runs on
`pull_request`. A path-filtered `pull_request` workflow still counts: Gitea reports it as
"skipped" when its paths don't match. List it, usually with role `test`. Workflows that run only
on push, schedule or dispatch are not PR checks; leave them out.
2. Derive each candidate name:
- Gitea Actions: `<workflow name> / <job name> (<event>)`. The workflow name is the file's
top-level `name:` (else the file name); the job name is the job's `name:` (else the job id).
- GitHub Actions: the job's `name:` (else the job id); matrix jobs append their values in
parentheses.
3. Confirm each candidate against the statuses the forge reports on the head commit of a recent PR
where that check reported at least once. Gitea: `gitea-prs` → `pull_request_read` method
`get_status`, or `commit_read` status on the head SHA; GitHub: `gh pr checks <number>`. The
forge's string wins over the derived one. With no PR to read, keep the derived name and say so in the PR body.
4. Assign roles. `test-path` is the check that fails when a commit after the
`Delivery-Stage: test-author` commit touches the test globs. `dry-run` comes from the human.
### Test paths
1. Read the test-path check's workflow and find the file it reads its globs from (for example
`.gitea/test-paths`). If one exists, the section is the `globs file:` pointer.
2. Otherwise list the globs where the repo's tests live (Molecule scenarios, `tests/`, policy tests).
Confirm them with the human in the Step 3 question.
### Conventions
Point at the root `AGENTS.md`, `docs/adr/`, and any contributing or runbook docs that exist. A list
of pointers the human or caller supplies replaces these defaults.
## Human-sourced
SKILL.md Step 3 asks for these:
- Human allowlist: forge usernames.
- Bot user the agents act as.
- Read-only kubeconfig path, or "no cluster".
- Branch-protection status: in place, or pending with the tracking link.
- Which CI check is the dry run.
- Accepted risks: the ADR or issue links, or "none".
-46
View File
@@ -1,46 +0,0 @@
name: delivery
version: 0.1.0
description: Agents and skills for taking a change from spec to a verified merge through tracker-gated stages.
author:
name: Mortis
url: https://git.rkdr.net/Mortis/
license: MIT
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/delivery
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/delivery
keywords:
- delivery
- agents
- stages
- handoff
- gitea
# Constrains what .apm/ may contain: instructions, skill, hybrid, or prompts
type: hybrid
# Which agent platforms to deploy to.
# Resolution order: --target flag > this field > auto-detect from filesystem.
# Accepted values: agent-skills, antigravity, claude, codex, copilot, cursor, gemini, grok-build, kiro, opencode, windsurf
targets:
- claude
- copilot
- codex
includes: auto
# Sibling packages are addressed in the same git+path form the root apm.yml
# uses, so a consumer outside this repo resolves them from the remote.
# Unpinned (default branch) like every first-party entry (ADR-0018).
# mattpocock supplies `grilling` until a later effort decouples it (#166,
# ADR-0031).
dependencies:
apm:
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/git
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/gitea
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/mattpocock
mcp: []
devDependencies:
apm: []
scripts: {}
+2 -2
View File
@@ -9,7 +9,7 @@ apm is the only supported install path (ADR-0024). Declare this package in the c
```yaml
dependencies:
apm:
- git: https://git.rkdr.net/Mortis/Holocron.git
- git: git@git.rkdr.net:Defame1297/holocron.git
path: plugins/git
```
@@ -19,7 +19,7 @@ Then:
apm install
```
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `git@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add git@git.rkdr.net:Defame1297/holocron.git --name holocron`) gets you the `git@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills and zero agents — and Claude Code raises no error while doing it (ADR-0024).
+5 -4
View File
@@ -2,11 +2,12 @@ name: git
version: 1.3.9
description: Skills and agents for working with a local Git clone over the git wire protocol, and for authoring and running the pre-commit hooks that guard it.
author:
name: Mortis
url: https://git.rkdr.net/Mortis/
name: Defame1297
email: [email protected]
url: https://git.rkdr.net/Defame1297/
license: MIT
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/git
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/git
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/git
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/git
keywords:
- git
- vcs
@@ -16,7 +16,7 @@ metadata:
- gitea-mcp-slim-go
- context7-websites-gitea
- context7-gitea-tea-cli
version: "0.1.7"
version: "0.1.6"
allowed-tools: Bash mcp__gitea__label_read mcp__gitea__label_write mcp__gitea__milestone_read mcp__gitea__milestone_write
---
@@ -61,7 +61,7 @@ per repo label. That does not contradict `label_write`'s schema, which annotates
server-side; where it is `false` labels in that scope stack legitimately. Read the field — never
infer exclusivity from the `/` in a name, and never carry another repo's map over.
On the instance this skill was authored against (`Mortis/Holocron`) the split ran: every
On the instance this skill was authored against (`Defame1297/holocron`) the split ran: every
`Priority/*`, `Reviewed/*` and `Status/*` label `exclusive: true`, every `Kind/*` label and
`Compat/Breaking` `exclusive: false`. That is one repo's configuration at one point in time, recorded
as a worked example of what the field looks like in practice — it is not a property of the taxonomy
+5 -4
View File
@@ -2,11 +2,12 @@ name: gitea
version: 1.3.10
description: Skills and agents for working with a Gitea forge through its HTTP API — the forge's own objects, as distinct from the local git clone.
author:
name: Mortis
url: https://git.rkdr.net/Mortis/
name: Defame1297
email: [email protected]
url: https://git.rkdr.net/Defame1297/
license: MIT
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/gitea
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/gitea
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/gitea
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/gitea
keywords:
- gitea
- issues
@@ -14,14 +14,14 @@ Canonical call sequences for the operations most likely to appear in a Gitea-man
Labels and milestones must be referenced by numeric ID in write operations. Resolve them first.
```
1. label_read method: "list_repo_labels" owner: "Mortis" repo: "Holocron"
1. label_read method: "list_repo_labels" owner: "Defame1297" repo: "holocron"
→ returns [{id: 3, name: "bug"}, {id: 7, name: "enhancement"}, ...]
2. milestone_read method: "list" owner: "Mortis" repo: "Holocron"
2. milestone_read method: "list" owner: "Defame1297" repo: "holocron"
→ returns [{id: 1, title: "v1.0"}, ...]
3. issue_write method: "create"
owner: "Mortis" repo: "Holocron"
owner: "Defame1297" repo: "holocron"
title: "Fix the widget"
body: "Description of the problem"
labels: [3] ← IDs, not names
@@ -61,7 +61,7 @@ issue_write method: "remove_label"
```
1. create_branch
owner: "Mortis" repo: "Holocron"
owner: "Defame1297" repo: "holocron"
branch: "feat/my-feature"
old_branch: "main" ← defaults to repo default if omitted
-44
View File
@@ -1,44 +0,0 @@
name: gitops
version: 0.1.0
description: Skills for authoring, auditing and diagnosing a Flux GitOps repository, including the secrets sealed into it.
author:
name: Mortis
url: https://git.rkdr.net/Mortis/
license: MIT
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/gitops
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/gitops
keywords:
- gitops
- flux
- kustomize
- helm
- sealed-secrets
# Constrains what .apm/ may contain: instructions, skill, hybrid, or prompts
type: hybrid
# Which agent platforms to deploy to.
# Resolution order: --target flag > this field > auto-detect from filesystem.
# Accepted values: agent-skills, antigravity, claude, codex, copilot, cursor, gemini, grok-build, kiro, opencode, windsurf
targets:
- claude
- copilot
- codex
includes: auto
# Third-party content is pinned (same rule as plugins/mattpocock); bump both
# fluxcd tags together. gitops-cluster-debug is NOT pulled: it needs
# flux-operator-mcp, and these packages drive CLIs, never MCP servers (#171).
# k8s is a sibling, unpinned like every first-party dependency (ADR-0018):
# Flux diagnosis hands pod-level problems to it (#171).
dependencies:
apm:
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/k8s
- fluxcd/agent-skills/skills/gitops-knowledge#v0.4.0
- fluxcd/agent-skills/skills/gitops-repo-audit#v0.4.0
mcp: []
devDependencies:
apm: []
scripts: {}
View File
Whitespace-only changes.
-34
View File
@@ -1,34 +0,0 @@
name: k8s
version: 0.1.0
description: Skills for read-only diagnosis of workloads on a Kubernetes cluster.
author:
name: Mortis
url: https://git.rkdr.net/Mortis/
license: MIT
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/k8s
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/k8s
keywords:
- kubernetes
- k8s
- kubectl
- diagnosis
# Constrains what .apm/ may contain: instructions, skill, hybrid, or prompts
type: hybrid
# Which agent platforms to deploy to.
# Resolution order: --target flag > this field > auto-detect from filesystem.
# Accepted values: agent-skills, antigravity, claude, codex, copilot, cursor, gemini, grok-build, kiro, opencode, windsurf
targets:
- claude
- copilot
- codex
includes: auto
dependencies:
apm: []
mcp: []
devDependencies:
apm: []
scripts: {}
+2 -2
View File
@@ -9,7 +9,7 @@ apm is the only supported install path (ADR-0024). Declare this package in the c
```yaml
dependencies:
apm:
- git: https://git.rkdr.net/Mortis/Holocron.git
- git: git@git.rkdr.net:Defame1297/holocron.git
path: plugins/kyberforge
```
@@ -19,7 +19,7 @@ Then:
apm install
```
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `kyberforge@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add git@git.rkdr.net:Defame1297/holocron.git --name holocron`) gets you the `kyberforge@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills, agents and hooks — and Claude Code raises no error while doing it (ADR-0024).
+5 -4
View File
@@ -2,11 +2,12 @@ name: kyberforge
version: 2.2.1
description: Skills and agents for creating, maintaining, and managing an apm plugin marketplace for Claude Code and GitHub Copilot.
author:
name: Mortis
url: https://git.rkdr.net/Mortis/
name: Defame1297
email: [email protected]
url: https://git.rkdr.net/Defame1297/
license: MIT
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/kyberforge
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/kyberforge
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/kyberforge
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/kyberforge
keywords:
- marketplace
- plugin
@@ -6,5 +6,3 @@
- **Description:** Anthropic's official skill-creator skill — iterative skill authoring with draft/eval/improve loop, quantitative benchmarking, and description optimization
- **Contributing files:** SKILL.md, agents/analyzer.md, agents/comparator.md, agents/grader.md, references/schemas.md
- **Status:** `extracted`
- **Licence:** Apache-2.0 — see `LICENSE.txt` in this folder.
- **Modifications:** whitespace only (trailing whitespace and end-of-file newlines normalised by this repo's pre-commit hooks); content is otherwise unchanged from upstream.
@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2026 Matt Pocock
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2025 Jesse Vincent
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -6,5 +6,3 @@
- **Description:** Jesse Vincent's writing-skills skill — covers skill authoring patterns, Anthropic best practices, persuasion principles, and subagent-based skill testing
- **Contributing files:** SKILL.md, anthropic-best-practices.md, persuasion-principles.md, testing-skills-with-subagents.md, examples/CLAUDE_MD_TESTING.md
- **Status:** `extracted`
- **Licence:** MIT, Copyright (c) 2025 Jesse Vincent — see `LICENSE` in this folder.
- **Excluded:** `anthropic-best-practices.md` is replaced by a link to Anthropic's canonical documentation page; it was Anthropic's docs, not superpowers code.
+5 -4
View File
@@ -2,11 +2,12 @@ name: lint
version: 1.1.9
description: Skills and agents for configuring and running linters.
author:
name: Mortis
url: https://git.rkdr.net/Mortis/
name: Defame1297
email: [email protected]
url: https://git.rkdr.net/Defame1297/
license: MIT
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/lint
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/lint
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/lint
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/lint
keywords:
- lint
- style
+5 -4
View File
@@ -2,11 +2,12 @@ name: mattpocock
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: Mortis
url: https://git.rkdr.net/Mortis/
name: Defame1297
email: [email protected]
url: https://git.rkdr.net/Defame1297/
license: MIT
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/mattpocock
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/mattpocock
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/mattpocock
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/mattpocock
keywords:
- wayfinder
- planning
-8
View File
@@ -33,14 +33,6 @@
# TEST_DIR — override root to search for test-*.sh (default: REPO_ROOT); used by tests.
set -euo pipefail
# Git exports GIT_DIR (and can export GIT_WORK_TREE / GIT_INDEX_FILE) to the
# hooks it runs, so under the run-tests pre-push hook every `git -C "$tmp" ...`
# a fixture runs resolves to THIS repo, not the temp one -- the
# validate-provenance-skill.bats commit_as_base helper flipped core.bare=true and
# emptied the index here on every push. Suites build their own throwaway repos;
# none of them may inherit the caller's.
unset GIT_DIR GIT_WORK_TREE GIT_INDEX_FILE GIT_OBJECT_DIRECTORY GIT_COMMON_DIR
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
BATS="$REPO_ROOT/tests/run-bats.sh"
BATS_ONLY=false