Ship one pre-tool-use hook in the delivery package. It denies the Never tier on every runtime and asks before Odd jobs on Claude Code and Copilot CLI (denying them on Codex and unknown runtimes): - guard.py: stdlib-only Python; tokenises the shell line, unwraps bash -c / env / sudo / eval / xargs / find -exec / rtk / uv run and friends, checks file-tool paths for secret material, and uses read-verb allowlists for kubectl, helm, flux and tofu - hooks.json: no matcher, onFailure: block, 10s timeout - tests/test-delivery-guard-hook.sh: 281 cases incl. bypass attempts and per-runtime output shape - root apm.yml: executables.allow delivery#0.1.0 - check-executables-allow-sync now covers every plugin shipping hooks/bin - ADR-0032 amended: Copilot ask kept as an accepted risk, file tools and allowlists recorded Refs #190 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
149 lines
5.5 KiB
YAML
149 lines
5.5 KiB
YAML
name: holocron
|
|
version: 0.8.0
|
|
description: AI development skills for Claude Code, and for GitHub Copilot through apm — factory, design, implement, review, and cross-cutting workflows.
|
|
license: MIT
|
|
|
|
# Consumer side: this repo installs its own published plugins from the holocron
|
|
# remote, so the working copy runs the same released content every other
|
|
# consumer gets. Addressed as git+path objects rather than <name>@holocron
|
|
# marketplace aliases — an alias needs a `apm marketplace add` registration in
|
|
# ~/.apm/marketplaces.json (user scope, outside this repo), the object form
|
|
# needs nothing beyond this manifest.
|
|
# Unpinned (default branch) on purpose: parity with the Claude Code plugin
|
|
# install this replaced, which ran autoUpdate against main. Add `ref: <tag>`
|
|
# per entry to pin.
|
|
targets:
|
|
- claude
|
|
dependencies:
|
|
apm:
|
|
- git: https://git.rkdr.net/Mortis/Holocron.git
|
|
path: plugins/bin
|
|
- git: https://git.rkdr.net/Mortis/Holocron.git
|
|
path: plugins/core
|
|
- 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/kyberforge
|
|
- git: https://git.rkdr.net/Mortis/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
|
|
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
|
|
# and every hook, bin and MCP primitive a dependency ships deploys silently —
|
|
# verified: `apm approve --list` reports "Executable-trust gate disabled -- all
|
|
# executables deploy" until an `executables:` block exists.
|
|
#
|
|
# kyberforge ships the SessionStart hook that keeps this install level with the
|
|
# remote (ADR-0019). The `#2.0.0` suffix below is cosmetic as far as apm is
|
|
# concerned: grants are version-BLIND in apm 0.28.0. `_map_grants`
|
|
# (apm_cli/security/executables.py) matches the exact key, the version-blind
|
|
# name, or any stored key sharing that name, and `materialize_exec_map` also
|
|
# stores the version-blind name — so approving `kyberforge` covers
|
|
# `kyberforge#2.0.0` and vice-versa, and a kyberforge version bump does NOT
|
|
# make this entry stop matching or stop the hook deploying. Do not delete the
|
|
# suffix anyway: `scripts/check-executables-allow-sync.sh` is a repo-authored
|
|
# pre-push hook that asserts this key carries the version in
|
|
# plugins/kyberforge/apm.yml, so a bump here is a repo convention to keep, not
|
|
# an apm mechanic.
|
|
executables:
|
|
allow:
|
|
kyberforge#2.2.1:
|
|
hooks: true
|
|
bin: true
|
|
# delivery ships the guard hook (ADR-0032 enforcement layer 2). Same
|
|
# version-in-key convention as above, kept by the same sync check.
|
|
delivery#0.1.0:
|
|
hooks: true
|
|
|
|
marketplace:
|
|
# apm's Claude marketplace mapper only emits description:/version: into the
|
|
# compiled marketplace.json when set explicitly here (an override) — the
|
|
# 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
|
|
owner:
|
|
name: Mortis
|
|
url: https://git.rkdr.net/Mortis/
|
|
|
|
# Default tag pattern used to resolve version ranges for each package.
|
|
build:
|
|
tagPattern: "v{version}"
|
|
|
|
# Output targets (map form). Each output writes to its profile default
|
|
# path; add 'path:' under a key to override.
|
|
outputs:
|
|
claude: {}
|
|
|
|
# CI tip: build a machine-readable manifest:
|
|
# apm pack --marketplace=claude --json | jq -r '.marketplace.outputs[].path'
|
|
|
|
versioning:
|
|
strategy: per_package
|
|
|
|
packages:
|
|
- name: kyberforge
|
|
source: ./plugins/kyberforge
|
|
category: Developer Tools
|
|
|
|
- name: bin
|
|
source: ./plugins/bin
|
|
category: Utilities
|
|
|
|
- name: git
|
|
source: ./plugins/git
|
|
category: Version Control
|
|
|
|
- name: gitea
|
|
source: ./plugins/gitea
|
|
category: Version Control
|
|
|
|
- name: core
|
|
source: ./plugins/core
|
|
category: Productivity
|
|
|
|
- name: mattpocock
|
|
source: ./plugins/mattpocock
|
|
category: Productivity
|
|
|
|
- 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
|