Compare commits
12
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78cfbe2f32 | ||
|
|
1ccf246598 | ||
|
|
a988275347 | ||
|
|
038da3014e | ||
|
|
77642183c2 | ||
|
|
55da336298 | ||
|
|
f0aac594c3 | ||
|
|
aa8319a1db | ||
|
|
0f2d9ede68 | ||
|
|
bb678ff441 | ||
|
|
0965c007ba | ||
|
|
012ccce2a9 |
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "holocron",
|
||||
"description": "AI development skills for Claude Code, and for GitHub Copilot through apm — factory, design, implement, review, and cross-cutting workflows.",
|
||||
"version": "0.9.2",
|
||||
"version": "0.9.3",
|
||||
"owner": {
|
||||
"name": "Mortis",
|
||||
"url": "https://git.rkdr.net/Mortis/"
|
||||
@@ -24,7 +24,7 @@
|
||||
{
|
||||
"name": "git",
|
||||
"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.",
|
||||
"version": "1.3.9",
|
||||
"version": "1.4.0",
|
||||
"category": "Version Control",
|
||||
"source": "./plugins/git"
|
||||
},
|
||||
|
||||
@@ -37,7 +37,7 @@ Install all of these before setting up. Each one is a hard dependency of a git h
|
||||
| Tool | Why | Install |
|
||||
| --- | --- | --- |
|
||||
| `uv` | Runs this repo's pinned apm. The root `pyproject.toml` pins `apm-cli==0.39.3` and `uv.lock` locks it (ADR-0034); the `apm-audit-ci` and `apm-pack-check-clean` pre-push hooks run it as `uv run --frozen apm` through `scripts/lib/apm.sh`, and fail below apm 0.39.2 | https://docs.astral.sh/uv/getting-started/installation/. A global `apm` is not needed and not used: a bare `apm` here may be an older one that refuses the v4 `apm.lock.yaml` |
|
||||
| `python3` + PyYAML | Required by `scripts/skill-size-check.sh` (the `skill-size-check` pre-commit hook) and `scripts/check-skill-version-bump.sh` (the `check-skill-version-bump` pre-push hook), which both parse YAML frontmatter | `python3` is usually present — pre-commit is itself a Python application. `pip install pyyaml` if the hook reports PyYAML missing |
|
||||
| `python3` + PyYAML | Required by `scripts/skill-size-check.sh` (the `skill-size-check` pre-commit hook) and `scripts/check-skill-version-bump.sh` (the `check-skill-version-bump` pre-push hook), which both parse YAML frontmatter. `scripts/install.sh` needs `python3` (not PyYAML) to merge the Claude Code settings | `python3` is usually present — pre-commit is itself a Python application. `pip install pyyaml` if the hook reports PyYAML missing |
|
||||
| `vale` | Required by the `vale-audit-prefilter-skill` / `-agent` pre-commit hooks, and by the `test-vale-wrap.sh` suite that `run-tests --strict` runs at pre-push | `brew install vale` (macOS), `snap install vale` (Linux), `choco install vale` (Windows), or https://vale.sh/docs/vale-cli/installation/ |
|
||||
| `claude` CLI | Required by the `validate-marketplace` pre-push hook | Claude Code |
|
||||
|
||||
|
||||
+88
-77
@@ -1,5 +1,5 @@
|
||||
lockfile_version: '4'
|
||||
generated_at: '2026-12-02T11:24:59.920648+00:00'
|
||||
generated_at: '2026-12-03T08:21:35.467239+00:00'
|
||||
apm_version: 0.39.3
|
||||
manifest_targets:
|
||||
- claude
|
||||
@@ -7,7 +7,7 @@ dependencies:
|
||||
- repo_url: Mortis/Holocron
|
||||
name: ansible
|
||||
host: git.rkdr.net
|
||||
resolved_commit: feef6d8307362ebe6bbd8a42f26aa5e8ae955e09
|
||||
resolved_commit: 5db1eb1435de3a35f7b6bde9c1afe5b45100ce27
|
||||
version: 0.1.0
|
||||
virtual_path: plugins/ansible
|
||||
is_virtual: true
|
||||
@@ -25,7 +25,7 @@ dependencies:
|
||||
- repo_url: Mortis/Holocron
|
||||
name: bin
|
||||
host: git.rkdr.net
|
||||
resolved_commit: feef6d8307362ebe6bbd8a42f26aa5e8ae955e09
|
||||
resolved_commit: 5db1eb1435de3a35f7b6bde9c1afe5b45100ce27
|
||||
version: 5.0.0
|
||||
virtual_path: plugins/bin
|
||||
is_virtual: true
|
||||
@@ -75,7 +75,7 @@ dependencies:
|
||||
- repo_url: Mortis/Holocron
|
||||
name: core
|
||||
host: git.rkdr.net
|
||||
resolved_commit: feef6d8307362ebe6bbd8a42f26aa5e8ae955e09
|
||||
resolved_commit: 5db1eb1435de3a35f7b6bde9c1afe5b45100ce27
|
||||
version: 1.1.4
|
||||
virtual_path: plugins/core
|
||||
is_virtual: true
|
||||
@@ -153,8 +153,8 @@ dependencies:
|
||||
- repo_url: Mortis/Holocron
|
||||
name: delivery
|
||||
host: git.rkdr.net
|
||||
resolved_commit: feef6d8307362ebe6bbd8a42f26aa5e8ae955e09
|
||||
version: 0.8.0
|
||||
resolved_commit: 5db1eb1435de3a35f7b6bde9c1afe5b45100ce27
|
||||
version: 0.8.1
|
||||
virtual_path: plugins/delivery
|
||||
is_virtual: true
|
||||
package_type: apm_package
|
||||
@@ -240,7 +240,7 @@ dependencies:
|
||||
.claude/skills/delivery-verify/references/report.md: sha256:1bec37e1358d5a56f347e32ca996c693d2f785e7c833f5c6351b6c07380b7e89
|
||||
.claude/skills/delivery-verify/references/revert.md: sha256:d046d1a8f58ac2c41b084a7e669315ec8a6aebcbf86583355db07dd60260c3bb
|
||||
.claude/skills/delivery-verify/references/tiers.md: sha256:28193c90454e4c000f8502155de00e974ce1ffa5db81d7315c23aced67594bdc
|
||||
content_hash: sha256:aa6b3fc8d874c6744121fb5d08b613e830d5b95670b659e67e1c49a569d1d042
|
||||
content_hash: sha256:baa8dc9cf894db4f43df6a07ef7058b32358038b032b712821bce03313bfc925
|
||||
package_targets:
|
||||
- claude
|
||||
- codex
|
||||
@@ -272,7 +272,7 @@ dependencies:
|
||||
- repo_url: Mortis/Holocron
|
||||
name: git
|
||||
host: git.rkdr.net
|
||||
resolved_commit: feef6d8307362ebe6bbd8a42f26aa5e8ae955e09
|
||||
resolved_commit: 5db1eb1435de3a35f7b6bde9c1afe5b45100ce27
|
||||
version: 1.3.9
|
||||
virtual_path: plugins/git
|
||||
is_virtual: true
|
||||
@@ -440,7 +440,7 @@ dependencies:
|
||||
- repo_url: Mortis/Holocron
|
||||
name: gitea
|
||||
host: git.rkdr.net
|
||||
resolved_commit: feef6d8307362ebe6bbd8a42f26aa5e8ae955e09
|
||||
resolved_commit: 5db1eb1435de3a35f7b6bde9c1afe5b45100ce27
|
||||
version: 1.3.10
|
||||
virtual_path: plugins/gitea
|
||||
is_virtual: true
|
||||
@@ -568,7 +568,7 @@ dependencies:
|
||||
- repo_url: Mortis/Holocron
|
||||
name: gitops
|
||||
host: git.rkdr.net
|
||||
resolved_commit: feef6d8307362ebe6bbd8a42f26aa5e8ae955e09
|
||||
resolved_commit: 5db1eb1435de3a35f7b6bde9c1afe5b45100ce27
|
||||
version: 0.2.0
|
||||
virtual_path: plugins/gitops
|
||||
is_virtual: true
|
||||
@@ -604,7 +604,7 @@ dependencies:
|
||||
- repo_url: Mortis/Holocron
|
||||
name: k8s
|
||||
host: git.rkdr.net
|
||||
resolved_commit: feef6d8307362ebe6bbd8a42f26aa5e8ae955e09
|
||||
resolved_commit: 5db1eb1435de3a35f7b6bde9c1afe5b45100ce27
|
||||
version: 0.2.0
|
||||
virtual_path: plugins/k8s
|
||||
is_virtual: true
|
||||
@@ -636,8 +636,8 @@ dependencies:
|
||||
- repo_url: Mortis/Holocron
|
||||
name: kyberforge
|
||||
host: git.rkdr.net
|
||||
resolved_commit: feef6d8307362ebe6bbd8a42f26aa5e8ae955e09
|
||||
version: 2.3.0
|
||||
resolved_commit: 5db1eb1435de3a35f7b6bde9c1afe5b45100ce27
|
||||
version: 2.3.1
|
||||
virtual_path: plugins/kyberforge
|
||||
is_virtual: true
|
||||
package_type: apm_package
|
||||
@@ -667,6 +667,7 @@ dependencies:
|
||||
- .claude/skills/apm-install/LICENSE
|
||||
- .claude/skills/apm-install/SKILL.md
|
||||
- .claude/skills/apm-install/references/sources.md
|
||||
- .claude/skills/apm-install/references/uv-pin.md
|
||||
- .claude/skills/apm-workflow
|
||||
- .claude/skills/apm-workflow/LICENSE
|
||||
- .claude/skills/apm-workflow/SKILL.md
|
||||
@@ -775,7 +776,7 @@ dependencies:
|
||||
- .claude/skills/skill-author/tests/README.md
|
||||
- .claude/skills/skill-author/tests/new-skill.bats
|
||||
deployed_file_hashes:
|
||||
.claude/agents/apm-orchestrate.md: sha256:7c4b7efb58ecdd26fea835613d0f7f909706607cac4f002a0df2db2a3a0ee477
|
||||
.claude/agents/apm-orchestrate.md: sha256:89e9a5332907e8c32d0c903dfab5bcf5408aac985c98627cf5247b2a24c924a7
|
||||
.claude/hooks/kyberforge/.apm/hooks/check-apm-current.sh: sha256:30d9160d25eb712fe7a4d206d12c3779cf13725ccba2f09843713a6f3ebe9ca4
|
||||
.claude/skills/agent-author/LICENSE: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
|
||||
.claude/skills/agent-author/SKILL.md: sha256:7b4ac3c654912459752af14674d8690261e009cfbe022228f14f957150e9b85e
|
||||
@@ -796,16 +797,17 @@ dependencies:
|
||||
.claude/skills/agent-author/tests/README.md: sha256:c844e519db989f64ca5ddfe8b9f3f81c70d71434bd9720136c1a1498aed88808
|
||||
.claude/skills/agent-author/tests/new-agent.bats: sha256:1bd8c4a9bb404b4e189e4eaac65c17f831d9905a9afa6879c162712cadcce6ef
|
||||
.claude/skills/apm-install/LICENSE: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
|
||||
.claude/skills/apm-install/SKILL.md: sha256:2d4c1ac4a7f68f79ba4c84b7be94addd4452827c71dda3f465a4454f36047c74
|
||||
.claude/skills/apm-install/references/sources.md: sha256:b80245ff8ae179d458572cb9b03621d00bf7e2f052f0cd71b88112c0ea8a91ce
|
||||
.claude/skills/apm-install/SKILL.md: sha256:a007ebb9c6e5526aec9b8278987d6863b4fee9a16ab62f64bc7d45965251eac0
|
||||
.claude/skills/apm-install/references/sources.md: sha256:4010e5711cbc502e5059f502c6f607d2726a1a1183a280321f42352b2b279fa8
|
||||
.claude/skills/apm-install/references/uv-pin.md: sha256:9c8c936dfa275d584ef3749ad7d98d46a3553fda8e7356fa6cb74baa76ee4054
|
||||
.claude/skills/apm-workflow/LICENSE: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
|
||||
.claude/skills/apm-workflow/SKILL.md: sha256:96c90f05891a669b05ccb5d33638d0bee6231d7251cddfedc84ea337617c530e
|
||||
.claude/skills/apm-workflow/references/audit.md: sha256:9b3fe128cbe133c8f2880a968b4cd6e875cc0eb79ef6738a9bfdabdf28446fe2
|
||||
.claude/skills/apm-workflow/references/compile.md: sha256:9c7b50645c7da1b442263eb7fd45eb11da09a6356f0f8be65a5b1eb1510f4b53
|
||||
.claude/skills/apm-workflow/references/configure.md: sha256:7633f1cbdaa01d2e889ff114ea67d4e7f0d7d9f41ef77aa21156a6226a04ffc7
|
||||
.claude/skills/apm-workflow/SKILL.md: sha256:f9f2023185e9ca846835d66b91a3f8777de2f0a186e3db51922bae70ce2b9233
|
||||
.claude/skills/apm-workflow/references/audit.md: sha256:fbe286392114c3a34ad59b9da13099176c97ff04184834408755791697c1c9c4
|
||||
.claude/skills/apm-workflow/references/compile.md: sha256:ef2827e42ab2573b87dbf01a0e6ce0b6993ab03f97ce8d9ebcec53d1af66841e
|
||||
.claude/skills/apm-workflow/references/configure.md: sha256:bbb2d903ff1e7dc353c7bc100472010d8c1c0ee41326c46f1002ccc531b4ecd8
|
||||
.claude/skills/apm-workflow/references/install.md: sha256:e729386bee5e2b67ce16b4c6c85446ce7b47d3122b68c148a571bd00a8550ad5
|
||||
.claude/skills/apm-workflow/references/marketplace.md: sha256:1ed67d9a7bb241d2050c7ad4b45799a936ea4df480e8fecbdf69bb1f9eef7211
|
||||
.claude/skills/apm-workflow/references/sources.md: sha256:4ae44a9e82e8ec3bd4b1a61f32adbd3f3ff5fab21db3b4162765b2c0553e49fd
|
||||
.claude/skills/apm-workflow/references/marketplace.md: sha256:23be8060f3831f91c1e30e7ac3f36fabfd9faf9cd991f3fa665000a7c2348e77
|
||||
.claude/skills/apm-workflow/references/sources.md: sha256:05f8c11cd75d3c4a0949be19c63f23389fbe10e89015ce16dc9e7225964e4d12
|
||||
.claude/skills/factory-audit/LICENSE: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
|
||||
.claude/skills/factory-audit/SKILL.md: sha256:9eb6d4bf2bf9483e756e93da0bf3752b0dc86cd641b486bbe5c3fd48948f5c40
|
||||
.claude/skills/factory-audit/assets/vale/.vale.ini: sha256:74ad1f946bfaa7a73296a9300082269febacc77cc4953296257cd07a93343f29
|
||||
@@ -847,37 +849,37 @@ dependencies:
|
||||
.claude/skills/factory-audit/tests/validate-provenance-skill.bats: sha256:0ca63a4790035fce3d3907179a6c3831b681bdba5f7ae099183c86a65cb581cc
|
||||
.claude/skills/factory-audit/tests/validate-skill.bats: sha256:4065195bfe9faf5338e858acc7e97f3a6fe67004f083fbdb0a3717f097b7a4d3
|
||||
.claude/skills/forge/LICENSE: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
|
||||
.claude/skills/forge/SKILL.md: sha256:562249dd1a0a2632e2b5bdeac864a6cdc6ab33a2d05a59ed1fb1fb919a42ee98
|
||||
.claude/skills/forge/SKILL.md: sha256:cac9e59ddb27305698c946d7859a8d34dc331b0edba8a63f10c93595bfdc6e80
|
||||
.claude/skills/forge/references/apm-routes.md: sha256:b7d74d12ff34648be968db3e9db66c1be2efa420cad0eceea20374aa100659aa
|
||||
.claude/skills/forge/references/author-routes.md: sha256:cfbc0502a60d1f444c2e5e76a392329cfa92b1ec51d1f365cc0772312e064a4d
|
||||
.claude/skills/forge/references/sources.md: sha256:77b03bb128d339b056958fbe91c00bd16020ab89c5c0aca297eb1c3494874df8
|
||||
.claude/skills/forge/references/author-routes.md: sha256:110bae34e6046430bfa6f89aa25afa5fba4046f2786f9a5eb4a844406198fc0e
|
||||
.claude/skills/forge/references/sources.md: sha256:bf287c9070c2092bc328ae5c92ed3605901847a6aa8711cb804f9243cb567209
|
||||
.claude/skills/forge/references/version-bump.md: sha256:8e6275fd5bc7f9ee1bfeea8b9cdecdd43eb1c838e9e499bba9a35b2a581885ec
|
||||
.claude/skills/instructions-author/LICENSE: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
|
||||
.claude/skills/instructions-author/SKILL.md: sha256:c3b00c42b0831ff292bd6616935bc3f0e7d6ec7be24961ccd52cc5a21d6a2145
|
||||
.claude/skills/instructions-author/SKILL.md: sha256:cc0f06e9adf7f3610559d809d2709a17fcbe5ad08afd1b4a2abab3921c6ba273
|
||||
.claude/skills/instructions-author/assets/README.md: sha256:f661694f81755f0a839434569edbcb28c544dc9f32bdec6f8db622e2f19b8e1e
|
||||
.claude/skills/instructions-author/assets/templates/instructions.md: sha256:bd34264c24288ce4f8baac8febb41aff379f1141a41cca7c71a527fac28dea07
|
||||
.claude/skills/instructions-author/assets/templates/instructions.md: sha256:808c494bc9e39e11919ac06276a76b9e6b470f174e1d0c1e5ae99cdb10773891
|
||||
.claude/skills/instructions-author/references/content.md: sha256:62e9ad15c5e78d96b8f11dfe9c6e700d8032a13f855c4eca3ef3f4ba92c16fd8
|
||||
.claude/skills/instructions-author/references/create.md: sha256:ac1ca52ea450f58b7245830e8367fa1a89401963024b3a4d80b4dde169a0ef31
|
||||
.claude/skills/instructions-author/references/improve.md: sha256:0bbeef069056ae2be02bb87e22a112f20e195b0736f7c1d80c106726e1942252
|
||||
.claude/skills/instructions-author/references/schema.md: sha256:6cc0c7cee226ae0a794d65093f4dd9e2e19c9cea14be616ba252bcc957e04b9b
|
||||
.claude/skills/instructions-author/references/sources.md: sha256:ce16c0e62de3c99f74cfc259a2d8d7d99fde0f9f4830cf07ed2bfb2e520889c2
|
||||
.claude/skills/instructions-author/references/target-mapping.md: sha256:cc2b132ef7d72cac3f6abd2b8aa1feb48edda7c7bbb219b8abc953995b21877b
|
||||
.claude/skills/instructions-author/references/verify.md: sha256:4314b25d7b7ff036684f2ab3ceb96c1b13bd0705be04f3e888d15b2e0690f02c
|
||||
.claude/skills/instructions-author/references/create.md: sha256:2d5575b992ee2d20c4c9172c4211bef513343833b677ab6ffa435dc4c054c572
|
||||
.claude/skills/instructions-author/references/improve.md: sha256:a202d998e8919f7904c80f7e8ff48849bc382b6273edeebb54ac2d43d40f2f1d
|
||||
.claude/skills/instructions-author/references/schema.md: sha256:70baea540110336b232cf7246f6642eae2e245eb5b778495ea1c81e64cd089a8
|
||||
.claude/skills/instructions-author/references/sources.md: sha256:8698626b025ad01eb25dbdd99700397750774aac19185d41318210b55f68023d
|
||||
.claude/skills/instructions-author/references/target-mapping.md: sha256:70248f44d19ed5a566af1fd6262ab0378483f9f7da7795f89f81203b37f602c8
|
||||
.claude/skills/instructions-author/references/verify.md: sha256:42ee7a18494f0690a191edf86a5769f77414ecd3cede5477d56d2ae603ddb3de
|
||||
.claude/skills/instructions-author/scripts/README.md: sha256:c407aa61e93451956d0d6ee00a5dcca51f301ae9cdfa6d7d0ec63e89e8219874
|
||||
.claude/skills/instructions-author/scripts/new-instructions.sh: sha256:d914dc304fbb8f56cf71375e631ffdc868b2d2f5a91b566a11e1aa79a23c97e1
|
||||
.claude/skills/instructions-author/tests/README.md: sha256:4637a0a171cf515e5bc9163682e1951b54fd41fd37927b19c3b8e0e464752885
|
||||
.claude/skills/instructions-author/tests/new-instructions.bats: sha256:ae34a57d331379990fc0b72396819497f973c3fa0a52016a99e9db4173ff2036
|
||||
.claude/skills/instructions-author/tests/README.md: sha256:4ed182558fde1dec432f80f38e9d9810f5e6857731b24c7166bfbfd59c0c0aa8
|
||||
.claude/skills/instructions-author/tests/new-instructions.bats: sha256:be168768d1f2abd62f4c810e0592f86d3bf2c1533d7cd56588fb2b1b876ecbda
|
||||
.claude/skills/prompt-author/LICENSE: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
|
||||
.claude/skills/prompt-author/SKILL.md: sha256:9d772ba7e35451eb8602f11a79ab9042582ae2514082193deb26161bdbe51ff0
|
||||
.claude/skills/prompt-author/SKILL.md: sha256:c3cd5ebce0d364150c85b71ba7b848e4e5d710e0872fe2a31bb48e368c28dde8
|
||||
.claude/skills/prompt-author/assets/README.md: sha256:8825773a7c8c388774fa4fc94d275bebada649cbc1c23af00477b02c5d07e48a
|
||||
.claude/skills/prompt-author/assets/templates/prompt.md: sha256:f2ec5fafcde549e503f497af7a64f1aee2d82ea842995a7e1ec5400ec6c105c8
|
||||
.claude/skills/prompt-author/assets/templates/prompt.md: sha256:25449e1bbda461503295ffc0b19cdf5f7d7971c162b03e78368b92177749368b
|
||||
.claude/skills/prompt-author/references/content.md: sha256:caee9c72f3ad61d933190b770983187689c3cffca7700c2fa27666178f59e43a
|
||||
.claude/skills/prompt-author/references/create.md: sha256:e552bcf8347d599c80603680fa39aeecc63c806c2df38a81a0647ea6ecea0512
|
||||
.claude/skills/prompt-author/references/improve.md: sha256:fb830bdd8af6f99ff1cb946bb83888a4afdbdc3810e8cbc88437599b1bc313fb
|
||||
.claude/skills/prompt-author/references/schema.md: sha256:6bdf4311878583b869b7d4b164c1e9cc8f8c7a2a578a30dabfd33a0afbf88ac5
|
||||
.claude/skills/prompt-author/references/sources.md: sha256:f465df6f1a7cb548f1c313bdddf237c8dd993374253286af53c42d86b98918c5
|
||||
.claude/skills/prompt-author/references/target-mapping.md: sha256:a1b30f19f565ef701c680b11bd94c7a813dd1899acf17ce109bd35279e5ff204
|
||||
.claude/skills/prompt-author/references/verify.md: sha256:11175c3cecbd11f9a940de62c646c54234789c4e46ebd69ecd20a9d6bd9b4874
|
||||
.claude/skills/prompt-author/references/create.md: sha256:090aac699825ff41b8fd017140b271134900b29a358bb1608f600df0bd6a117f
|
||||
.claude/skills/prompt-author/references/improve.md: sha256:f3c8b5e0f010bc952cc2d64e908327302a79b09ba0452943569a2d836466b10a
|
||||
.claude/skills/prompt-author/references/schema.md: sha256:e578e5e747e1adad70fe5d4cf330d1c6b86dc2616715b79f6c1730cb6ea0955f
|
||||
.claude/skills/prompt-author/references/sources.md: sha256:8bec78b627a1d490e27a65c289f612fb108d3d1bac2ed53bcd4152b29a4c303d
|
||||
.claude/skills/prompt-author/references/target-mapping.md: sha256:e535f2e166b87798dbaf353f7a3076b736b195f94b9c7969409dfea2a7e531fd
|
||||
.claude/skills/prompt-author/references/verify.md: sha256:da80855b36ff07003ffe5cda6a6e3a3be7fe75f92480a597fd921261675ba834
|
||||
.claude/skills/prompt-author/scripts/README.md: sha256:9f6bdbf2ea24ba764cd8791d128e2593e4c2eb96802faa667ea9d6af018fadf7
|
||||
.claude/skills/prompt-author/scripts/new-prompt.sh: sha256:f5f0fc5cc3dedf23ea754b2620b56a808cd65f1714144ec04ea797bd25340dcd
|
||||
.claude/skills/prompt-author/tests/README.md: sha256:975f6940b83a8f9650656a7acdab870289031d91db74d4ab74da298b3df01bbd
|
||||
@@ -899,7 +901,7 @@ dependencies:
|
||||
.claude/skills/skill-author/scripts/new-skill.sh: sha256:a7e99f04da68230372ca8b14da8c5e6a4a035efdd5d10d9c77e2e8c92da85c35
|
||||
.claude/skills/skill-author/tests/README.md: sha256:81d301b04a489d5340234948188ff96466c3c3ab7f20a88ec2e570d1434a7b8c
|
||||
.claude/skills/skill-author/tests/new-skill.bats: sha256:105d6fb09203f84a17a040b1fc91a674313c1dafcd4ddd0d267b36795c22d410
|
||||
content_hash: sha256:06daf8d14852025eca1bb528105d8cbd5b1ec091f8040754a5afcc91ca66763c
|
||||
content_hash: sha256:afd91f772288434d07511463f36877daf63e4240929c28a33bba727fcb3aaddc
|
||||
package_targets:
|
||||
- claude
|
||||
- codex
|
||||
@@ -943,7 +945,7 @@ dependencies:
|
||||
- repo_url: Mortis/Holocron
|
||||
name: lint
|
||||
host: git.rkdr.net
|
||||
resolved_commit: feef6d8307362ebe6bbd8a42f26aa5e8ae955e09
|
||||
resolved_commit: 5db1eb1435de3a35f7b6bde9c1afe5b45100ce27
|
||||
version: 1.1.9
|
||||
virtual_path: plugins/lint
|
||||
is_virtual: true
|
||||
@@ -989,7 +991,7 @@ dependencies:
|
||||
- repo_url: Mortis/Holocron
|
||||
name: mattpocock
|
||||
host: git.rkdr.net
|
||||
resolved_commit: feef6d8307362ebe6bbd8a42f26aa5e8ae955e09
|
||||
resolved_commit: 5db1eb1435de3a35f7b6bde9c1afe5b45100ce27
|
||||
version: 0.5.0
|
||||
virtual_path: plugins/mattpocock
|
||||
is_virtual: true
|
||||
@@ -1007,7 +1009,7 @@ dependencies:
|
||||
- repo_url: Mortis/Holocron
|
||||
name: plan
|
||||
host: git.rkdr.net
|
||||
resolved_commit: feef6d8307362ebe6bbd8a42f26aa5e8ae955e09
|
||||
resolved_commit: 5db1eb1435de3a35f7b6bde9c1afe5b45100ce27
|
||||
version: 0.5.0
|
||||
virtual_path: plugins/plan
|
||||
is_virtual: true
|
||||
@@ -1795,7 +1797,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:7c4b7efb58ecdd26fea835613d0f7f909706607cac4f002a0df2db2a3a0ee477
|
||||
content_hash: sha256:89e9a5332907e8c32d0c903dfab5bcf5408aac985c98627cf5247b2a24c924a7
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/agents/delivery-implement-lead.md
|
||||
@@ -2308,7 +2310,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:2d4c1ac4a7f68f79ba4c84b7be94addd4452827c71dda3f465a4454f36047c74
|
||||
content_hash: sha256:a007ebb9c6e5526aec9b8278987d6863b4fee9a16ab62f64bc7d45965251eac0
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/apm-install/references/sources.md
|
||||
@@ -2317,7 +2319,16 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:b80245ff8ae179d458572cb9b03621d00bf7e2f052f0cd71b88112c0ea8a91ce
|
||||
content_hash: sha256:4010e5711cbc502e5059f502c6f607d2726a1a1183a280321f42352b2b279fa8
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/apm-install/references/uv-pin.md
|
||||
runtime: null
|
||||
scope: project
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:9c8c936dfa275d584ef3749ad7d98d46a3553fda8e7356fa6cb74baa76ee4054
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/apm-workflow
|
||||
@@ -2344,7 +2355,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:96c90f05891a669b05ccb5d33638d0bee6231d7251cddfedc84ea337617c530e
|
||||
content_hash: sha256:f9f2023185e9ca846835d66b91a3f8777de2f0a186e3db51922bae70ce2b9233
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/apm-workflow/references/audit.md
|
||||
@@ -2353,7 +2364,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:9b3fe128cbe133c8f2880a968b4cd6e875cc0eb79ef6738a9bfdabdf28446fe2
|
||||
content_hash: sha256:fbe286392114c3a34ad59b9da13099176c97ff04184834408755791697c1c9c4
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/apm-workflow/references/compile.md
|
||||
@@ -2362,7 +2373,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:9c7b50645c7da1b442263eb7fd45eb11da09a6356f0f8be65a5b1eb1510f4b53
|
||||
content_hash: sha256:ef2827e42ab2573b87dbf01a0e6ce0b6993ab03f97ce8d9ebcec53d1af66841e
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/apm-workflow/references/configure.md
|
||||
@@ -2371,7 +2382,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:7633f1cbdaa01d2e889ff114ea67d4e7f0d7d9f41ef77aa21156a6226a04ffc7
|
||||
content_hash: sha256:bbb2d903ff1e7dc353c7bc100472010d8c1c0ee41326c46f1002ccc531b4ecd8
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/apm-workflow/references/install.md
|
||||
@@ -2389,7 +2400,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:1ed67d9a7bb241d2050c7ad4b45799a936ea4df480e8fecbdf69bb1f9eef7211
|
||||
content_hash: sha256:23be8060f3831f91c1e30e7ac3f36fabfd9faf9cd991f3fa665000a7c2348e77
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/apm-workflow/references/sources.md
|
||||
@@ -2398,7 +2409,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:4ae44a9e82e8ec3bd4b1a61f32adbd3f3ff5fab21db3b4162765b2c0553e49fd
|
||||
content_hash: sha256:05f8c11cd75d3c4a0949be19c63f23389fbe10e89015ce16dc9e7225964e4d12
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/caveman
|
||||
@@ -3451,7 +3462,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:562249dd1a0a2632e2b5bdeac864a6cdc6ab33a2d05a59ed1fb1fb919a42ee98
|
||||
content_hash: sha256:cac9e59ddb27305698c946d7859a8d34dc331b0edba8a63f10c93595bfdc6e80
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/forge/references/apm-routes.md
|
||||
@@ -3469,7 +3480,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:cfbc0502a60d1f444c2e5e76a392329cfa92b1ec51d1f365cc0772312e064a4d
|
||||
content_hash: sha256:110bae34e6046430bfa6f89aa25afa5fba4046f2786f9a5eb4a844406198fc0e
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/forge/references/sources.md
|
||||
@@ -3478,7 +3489,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:77b03bb128d339b056958fbe91c00bd16020ab89c5c0aca297eb1c3494874df8
|
||||
content_hash: sha256:bf287c9070c2092bc328ae5c92ed3605901847a6aa8711cb804f9243cb567209
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/forge/references/version-bump.md
|
||||
@@ -5269,7 +5280,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:c3b00c42b0831ff292bd6616935bc3f0e7d6ec7be24961ccd52cc5a21d6a2145
|
||||
content_hash: sha256:cc0f06e9adf7f3610559d809d2709a17fcbe5ad08afd1b4a2abab3921c6ba273
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/instructions-author/assets/README.md
|
||||
@@ -5287,7 +5298,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:bd34264c24288ce4f8baac8febb41aff379f1141a41cca7c71a527fac28dea07
|
||||
content_hash: sha256:808c494bc9e39e11919ac06276a76b9e6b470f174e1d0c1e5ae99cdb10773891
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/instructions-author/references/content.md
|
||||
@@ -5305,7 +5316,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:ac1ca52ea450f58b7245830e8367fa1a89401963024b3a4d80b4dde169a0ef31
|
||||
content_hash: sha256:2d5575b992ee2d20c4c9172c4211bef513343833b677ab6ffa435dc4c054c572
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/instructions-author/references/improve.md
|
||||
@@ -5314,7 +5325,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:0bbeef069056ae2be02bb87e22a112f20e195b0736f7c1d80c106726e1942252
|
||||
content_hash: sha256:a202d998e8919f7904c80f7e8ff48849bc382b6273edeebb54ac2d43d40f2f1d
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/instructions-author/references/schema.md
|
||||
@@ -5323,7 +5334,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:6cc0c7cee226ae0a794d65093f4dd9e2e19c9cea14be616ba252bcc957e04b9b
|
||||
content_hash: sha256:70baea540110336b232cf7246f6642eae2e245eb5b778495ea1c81e64cd089a8
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/instructions-author/references/sources.md
|
||||
@@ -5332,7 +5343,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:ce16c0e62de3c99f74cfc259a2d8d7d99fde0f9f4830cf07ed2bfb2e520889c2
|
||||
content_hash: sha256:8698626b025ad01eb25dbdd99700397750774aac19185d41318210b55f68023d
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/instructions-author/references/target-mapping.md
|
||||
@@ -5341,7 +5352,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:cc2b132ef7d72cac3f6abd2b8aa1feb48edda7c7bbb219b8abc953995b21877b
|
||||
content_hash: sha256:70248f44d19ed5a566af1fd6262ab0378483f9f7da7795f89f81203b37f602c8
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/instructions-author/references/verify.md
|
||||
@@ -5350,7 +5361,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:4314b25d7b7ff036684f2ab3ceb96c1b13bd0705be04f3e888d15b2e0690f02c
|
||||
content_hash: sha256:42ee7a18494f0690a191edf86a5769f77414ecd3cede5477d56d2ae603ddb3de
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/instructions-author/scripts/README.md
|
||||
@@ -5377,7 +5388,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:4637a0a171cf515e5bc9163682e1951b54fd41fd37927b19c3b8e0e464752885
|
||||
content_hash: sha256:4ed182558fde1dec432f80f38e9d9810f5e6857731b24c7166bfbfd59c0c0aa8
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/instructions-author/tests/new-instructions.bats
|
||||
@@ -5386,7 +5397,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:ae34a57d331379990fc0b72396819497f973c3fa0a52016a99e9db4173ff2036
|
||||
content_hash: sha256:be168768d1f2abd62f4c810e0592f86d3bf2c1533d7cd56588fb2b1b876ecbda
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/k8s-diagnose
|
||||
@@ -5620,7 +5631,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:9d772ba7e35451eb8602f11a79ab9042582ae2514082193deb26161bdbe51ff0
|
||||
content_hash: sha256:c3cd5ebce0d364150c85b71ba7b848e4e5d710e0872fe2a31bb48e368c28dde8
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/prompt-author/assets/README.md
|
||||
@@ -5638,7 +5649,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:f2ec5fafcde549e503f497af7a64f1aee2d82ea842995a7e1ec5400ec6c105c8
|
||||
content_hash: sha256:25449e1bbda461503295ffc0b19cdf5f7d7971c162b03e78368b92177749368b
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/prompt-author/references/content.md
|
||||
@@ -5656,7 +5667,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:e552bcf8347d599c80603680fa39aeecc63c806c2df38a81a0647ea6ecea0512
|
||||
content_hash: sha256:090aac699825ff41b8fd017140b271134900b29a358bb1608f600df0bd6a117f
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/prompt-author/references/improve.md
|
||||
@@ -5665,7 +5676,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:fb830bdd8af6f99ff1cb946bb83888a4afdbdc3810e8cbc88437599b1bc313fb
|
||||
content_hash: sha256:f3c8b5e0f010bc952cc2d64e908327302a79b09ba0452943569a2d836466b10a
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/prompt-author/references/schema.md
|
||||
@@ -5674,7 +5685,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:6bdf4311878583b869b7d4b164c1e9cc8f8c7a2a578a30dabfd33a0afbf88ac5
|
||||
content_hash: sha256:e578e5e747e1adad70fe5d4cf330d1c6b86dc2616715b79f6c1730cb6ea0955f
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/prompt-author/references/sources.md
|
||||
@@ -5683,7 +5694,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:f465df6f1a7cb548f1c313bdddf237c8dd993374253286af53c42d86b98918c5
|
||||
content_hash: sha256:8bec78b627a1d490e27a65c289f612fb108d3d1bac2ed53bcd4152b29a4c303d
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/prompt-author/references/target-mapping.md
|
||||
@@ -5692,7 +5703,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:a1b30f19f565ef701c680b11bd94c7a813dd1899acf17ce109bd35279e5ff204
|
||||
content_hash: sha256:e535f2e166b87798dbaf353f7a3076b736b195f94b9c7969409dfea2a7e531fd
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/prompt-author/references/verify.md
|
||||
@@ -5701,7 +5712,7 @@ deployments:
|
||||
owners:
|
||||
- git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
active_owner: git.rkdr.net/Mortis/Holocron/plugins/kyberforge
|
||||
content_hash: sha256:11175c3cecbd11f9a940de62c646c54234789c4e46ebd69ecd20a9d6bd9b4874
|
||||
content_hash: sha256:da80855b36ff07003ffe5cda6a6e3a3be7fe75f92480a597fd921261675ba834
|
||||
- kind: project-relative
|
||||
target: claude
|
||||
value: .claude/skills/prompt-author/scripts/README.md
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
name: holocron
|
||||
version: 0.9.2
|
||||
version: 0.9.3
|
||||
description: AI development skills for Claude Code, and for GitHub Copilot through apm — factory, design, implement, review, and cross-cutting workflows.
|
||||
license: MIT
|
||||
|
||||
@@ -86,6 +86,9 @@ executables:
|
||||
# full-identity, version-in-key convention as above, kept by the same check.
|
||||
git.rkdr.net/Mortis/Holocron/plugins/delivery#0.8.1:
|
||||
hooks: true
|
||||
# git ships the hook that refuses a push to main.
|
||||
git.rkdr.net/Mortis/Holocron/plugins/git#1.4.0:
|
||||
hooks: true
|
||||
|
||||
marketplace:
|
||||
# apm's Claude marketplace mapper only emits description:/version: into the
|
||||
@@ -93,7 +96,7 @@ marketplace:
|
||||
# top-level apm.yml description:/version: above are NOT inherited into the
|
||||
# compiled output despite being used elsewhere (e.g. by `apm audit`).
|
||||
description: AI development skills for Claude Code, and for GitHub Copilot through apm — factory, design, implement, review, and cross-cutting workflows.
|
||||
version: 0.9.2
|
||||
version: 0.9.3
|
||||
owner:
|
||||
name: Mortis
|
||||
url: https://git.rkdr.net/Mortis/
|
||||
|
||||
@@ -127,6 +127,9 @@ passed. Failed tasks are shown in the PR comment for the approver to judge. Deci
|
||||
cluster or state and print no secret: anything not on the list is denied, so an unlisted mutating
|
||||
subcommand fails safe. Codex cannot ask, so odd jobs are
|
||||
denied there; an unrecognised runtime is treated the same way.
|
||||
- *Amended 2026-12-04 ([git push-to-main hook](https://git.rkdr.net/Mortis/Holocron/issues/178)): `git`
|
||||
ships its own guardrail hook beside `delivery`'s, refusing a `git push` to `main` on Claude Code
|
||||
only. It fails open and has an opt-out; branch protection stays the real control.*
|
||||
- *Amended 2026-11-25 ([Pre-merge Ansible dry run without exposing production credentials](https://git.rkdr.net/Mortis/Holocron/issues/200)):
|
||||
the reopened Ansible `--check --diff` now runs in CI from the base branch's copy with production
|
||||
credentials — automatic on human-authored PRs, gated on bot PRs by an allowlisted human's
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
# Bundled Claude Code skills are turned off with one user-level switch
|
||||
|
||||
**Status: accepted (2026-12-03).**
|
||||
|
||||
## Context
|
||||
|
||||
Issue #266. Claude Code ships bundled skills and syncs skills from the claude.ai account, and the
|
||||
operator wants only this repo's plugin skills. Claude Code 2.1.334 has no allowlist: a skill missing
|
||||
from `skillOverrides` is on, and `Skill(x)` allow rules do not restrict other skills. The operator
|
||||
wanted a setting that also covers bundled skills added later. A custom `/ship` is also not loaded
|
||||
where the built-in one is available.
|
||||
|
||||
## Decision
|
||||
|
||||
**Bundled skills are turned off with one switch, not a per-name list.** The settings live at user
|
||||
level in `providers/claude-code/settings.json`, which `scripts/install.sh` deploys to
|
||||
`~/.claude/settings.json`:
|
||||
|
||||
- `disableBundledSkills: true`
|
||||
- `syncClaudeAiSkills: false`
|
||||
- `env.CLAUDE_CODE_DISABLE_SHIP: "1"`, the documented fix for the custom `/ship`.
|
||||
- `skillOverrides.init: "off"`
|
||||
|
||||
Holocron does not distribute these settings to consumer repos. User-level settings already apply to
|
||||
every repo on the machine, and another machine needs its own `install.sh` run.
|
||||
|
||||
**`install.sh` must merge into an existing `~/.claude/settings.json` before these settings are
|
||||
deployed.** Today it copies the file over, which would drop 11 of the operator's 13 top-level keys.
|
||||
The merge is a separate implementation ticket, not part of this ADR's PR.
|
||||
|
||||
## Considered options
|
||||
|
||||
**A `skillOverrides` blocklist (rejected).** It needs a new entry for each unwanted skill that ships.
|
||||
|
||||
**`skillOverrides` in the committed `.claude/settings.json`, as #266 proposed (rejected).** apm owns
|
||||
that file and `apm audit --ci` fails on hand-added keys (AGENTS.md, ADR-0018, ADR-0019). apm 0.39.3
|
||||
cannot write the key either.
|
||||
|
||||
**A PreToolUse hook on the Skill tool (rejected).** It can refuse a call but cannot hide a skill or
|
||||
resolve a name collision.
|
||||
|
||||
**Turning off only the three unwanted synced skills in the claude.ai account (rejected).** The
|
||||
operator chose to turn off all syncing.
|
||||
|
||||
## Consequences
|
||||
|
||||
1. `simplify`, `loop`, `update-config` and `claude-api` are lost and cannot be re-enabled one by one
|
||||
(tested).
|
||||
2. All synced `anthropic-skills:*` are lost, including `pdf`, `docx`, `xlsx` and
|
||||
`satisfactory-helper`. Claude Code moves the synced copies to `.trash`.
|
||||
3. New built-in commands, as opposed to bundled skills, are not covered.
|
||||
|
||||
## Evidence
|
||||
|
||||
- **Tested** in headless mode on Claude Code 2.1.334: the effect of `disableBundledSkills` on bundled
|
||||
skills, and `skillOverrides.init: "off"`.
|
||||
- **Documented, not tested:** that the custom `/ship` loads in an interactive session with
|
||||
`CLAUDE_CODE_DISABLE_SHIP=1`.
|
||||
- **From the docs only:** the `syncClaudeAiSkills` behaviour.
|
||||
- Sources: code.claude.com/docs/en/settings-reference, `/skills` and `/ship-command-troubleshooting`.
|
||||
|
||||
Related: ADR-0018, ADR-0019; #266.
|
||||
@@ -13,9 +13,10 @@ project repo (local overrides)
|
||||
|
||||
## Content deployment model
|
||||
|
||||
`scripts/install.sh` is a **deployer**, not a composer. It sources `scripts/deploy-manifest.sh` and deploys three categories:
|
||||
`scripts/install.sh` is a **deployer**, not a composer, with one exception: user settings are merged, not copied. It sources `scripts/deploy-manifest.sh` and deploys four categories:
|
||||
|
||||
- **Files** (`DEPLOY_FILES`): `providers/claude-code/CLAUDE.md` → `~/.claude/CLAUDE.md`; `providers/claude-code/settings.json` → `~/.claude/settings.json`; `core/AGENTS.md` → `~/.agents/AGENTS.md`
|
||||
- **Files** (`DEPLOY_FILES`): `providers/claude-code/CLAUDE.md` → `~/.claude/CLAUDE.md`; `core/AGENTS.md` → `~/.agents/AGENTS.md`
|
||||
- **Merged JSON** (`DEPLOY_JSON_MERGES`): `providers/claude-code/settings.json` → `~/.claude/settings.json`. Settings only the user has are kept, including inside nested objects; where both set a value, the repo's wins, and arrays are replaced whole. Removing a setting from the repo does not remove it from a user's file. An existing file that is not a valid JSON object stops the install and is left untouched (ADR-0035)
|
||||
- **Executables** (`DEPLOY_EXECUTABLES`): `providers/claude-code/statusline-command.sh` → `~/.claude/statusline-command.sh` (with `+x`)
|
||||
- **Directories** (`DEPLOY_DIRS`): `core/` → `~/.claude/core/` (destination fully replaced on each deploy)
|
||||
|
||||
|
||||
+2
-1
@@ -1357,7 +1357,8 @@ every key stays an accurate record of what was approved.
|
||||
|
||||
It covers every plugin that ships executables, not one named package. The script scans
|
||||
`plugins/*/` and treats a plugin as shipping executables when `plugins/<name>/.apm/hooks/` or
|
||||
`plugins/<name>/bin/` exists — kyberforge ships both, delivery ships a guard hook. For each one it
|
||||
`plugins/<name>/bin/` exists — kyberforge ships both, delivery ships a guard hook,
|
||||
git ships a hook that refuses a push to `main`. For each one it
|
||||
reads `name:` and `version:` from `plugins/<name>/apm.yml` and asserts root `apm.yml` carries the
|
||||
`<identity>#<version>` key under `executables.allow`. The `name:` must equal the directory name, so
|
||||
one that differs fails rather than being guessed at. Every failing package is
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"hooks": {
|
||||
"PreToolUse": [
|
||||
{
|
||||
"hooks": [
|
||||
{
|
||||
"command": "${CLAUDE_PLUGIN_ROOT}/.apm/hooks/refuse-push-to-main.py",
|
||||
"timeout": 10,
|
||||
"type": "command"
|
||||
}
|
||||
],
|
||||
"matcher": "Bash"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+265
@@ -0,0 +1,265 @@
|
||||
#!/usr/bin/env python3
|
||||
"""PreToolUse hook: refuse a `git push` that can update `main`.
|
||||
|
||||
A guardrail against accidents, not a security boundary: whatever it cannot read
|
||||
in the command line goes through. Limits and opt-out: the git plugin's README.
|
||||
"""
|
||||
|
||||
import fnmatch
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import shlex
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
MAIN_NAMES = ("main", "heads/main", "refs/heads/main")
|
||||
|
||||
HEREDOC = re.compile(
|
||||
r"""(?<!<)<<(-?)[ \t]*(?:'([^']+)'|"([^"]+)"|\\?([^\s;&|()<>'"`\\]+))"""
|
||||
)
|
||||
WORD = r"""(?:[^ \t\r\n;&|()`<>'"\\]|\\.|'[^']*'|"(?:[^"\\]|\\.)*")+"""
|
||||
TOKEN = re.compile(
|
||||
rf"""(?P<skip>[ \t\r]+|\#[^\n]*|(?:\d*|&)[<>]+[&|]?[ \t]*(?:{WORD})?)
|
||||
|(?P<separator>[;&|()`\n]+)
|
||||
|(?P<word>{WORD})""",
|
||||
re.S | re.X,
|
||||
)
|
||||
|
||||
ASSIGNMENT = re.compile(r"\w+=")
|
||||
SHELL_KEYWORDS = {"!", "{", "if", "then", "elif", "else", "while", "until", "do"}
|
||||
WRAPPERS = {
|
||||
"rtk",
|
||||
"proxy",
|
||||
"command",
|
||||
"env",
|
||||
"exec",
|
||||
"nohup",
|
||||
"sudo",
|
||||
"time",
|
||||
"timeout",
|
||||
"xargs",
|
||||
}
|
||||
WRAPPER_ARGUMENT = re.compile(r"-|\d+[smhd]?$")
|
||||
|
||||
SHORT_PUSH_OPTIONS = {"h": "--help", "n": "--dry-run"}
|
||||
GIT_OPTIONS_WITH_VALUE = {"-c", "--git-dir", "--work-tree", "--namespace", "--config-env"}
|
||||
REBASE_OPTIONS_WITH_VALUE = {
|
||||
"--onto",
|
||||
"-s",
|
||||
"--strategy",
|
||||
"-X",
|
||||
"--strategy-option",
|
||||
"-x",
|
||||
"--exec",
|
||||
}
|
||||
PUSH_OPTIONS_WITH_VALUE = {
|
||||
"--repo",
|
||||
"--push-option",
|
||||
"--receive-pack",
|
||||
"--exec",
|
||||
"--recurse-submodules",
|
||||
}
|
||||
|
||||
|
||||
def strip_heredocs(command):
|
||||
lines = command.split("\n")
|
||||
# A `<<` that nothing closes is text or arithmetic, not a heredoc.
|
||||
closing_lines = {line.lstrip("\t") for line in lines}
|
||||
kept, pending = [], []
|
||||
for line in lines:
|
||||
if pending:
|
||||
dash, delimiter = pending[0]
|
||||
if (line.lstrip("\t") if dash else line) == delimiter:
|
||||
pending.pop(0)
|
||||
continue
|
||||
kept.append(line)
|
||||
for dash, *quotings in HEREDOC.findall(line):
|
||||
delimiter = "".join(quotings)
|
||||
if delimiter in closing_lines:
|
||||
pending.append((dash, delimiter))
|
||||
return "\n".join(kept)
|
||||
|
||||
|
||||
def simple_commands(command):
|
||||
"""Split a command line into word lists; None when it does not parse.
|
||||
|
||||
A subshell's parentheses come out as the commands ["("] and [")"].
|
||||
"""
|
||||
command = re.sub(r"(?<!\\)\\\n", "", strip_heredocs(command))
|
||||
commands, position = [[]], 0
|
||||
while position < len(command):
|
||||
token = TOKEN.match(command, position)
|
||||
if not token:
|
||||
return None
|
||||
if token["separator"]:
|
||||
commands += [[c] for c in token["separator"] if c in "()"]
|
||||
commands.append([])
|
||||
elif token["word"]:
|
||||
commands[-1].append("".join(shlex.split(token["word"])))
|
||||
position = token.end()
|
||||
return commands
|
||||
|
||||
|
||||
def strip_prefixes(words):
|
||||
wrapped = False
|
||||
for index, word in enumerate(words):
|
||||
if word in WRAPPERS:
|
||||
wrapped = True
|
||||
elif not (
|
||||
word in SHELL_KEYWORDS
|
||||
or ASSIGNMENT.match(word)
|
||||
or (wrapped and WRAPPER_ARGUMENT.match(word))
|
||||
):
|
||||
return words[index:]
|
||||
return []
|
||||
|
||||
|
||||
def split_git_command(arguments, directory):
|
||||
"""(directory it runs in, subcommand, the subcommand's arguments)."""
|
||||
rest = iter(arguments)
|
||||
for word in rest:
|
||||
if word == "-C":
|
||||
directory = resolve(directory, next(rest, ""))
|
||||
elif word in GIT_OPTIONS_WITH_VALUE:
|
||||
next(rest, None)
|
||||
elif not word.startswith("-"):
|
||||
return directory, word, list(rest)
|
||||
return directory, "", []
|
||||
|
||||
|
||||
def resolve(directory, target):
|
||||
# Not normalised: a target such as `$X/..` must stay a path that does not
|
||||
# exist, so that the branch lookup fails and the push is allowed.
|
||||
return os.path.join(directory, os.path.expanduser(target))
|
||||
|
||||
|
||||
def changes_branch(subcommand, arguments):
|
||||
if subcommand == "branch":
|
||||
return not {"-m", "-M", "--move"}.isdisjoint(arguments)
|
||||
if subcommand == "rebase": # `git rebase <upstream> <branch>` checks out <branch>
|
||||
rest, names = iter(arguments), []
|
||||
for argument in rest:
|
||||
if argument in REBASE_OPTIONS_WITH_VALUE:
|
||||
next(rest, None)
|
||||
elif not argument.startswith("-"):
|
||||
names.append(argument)
|
||||
return len(names) > 1
|
||||
return subcommand == "switch" or (subcommand == "checkout" and "--" not in arguments)
|
||||
|
||||
|
||||
def parse_push(arguments):
|
||||
"""(long-form option names, refspecs) of a git push."""
|
||||
options, positional = set(), []
|
||||
rest = iter(arguments)
|
||||
for argument in rest:
|
||||
if argument == "--":
|
||||
positional.extend(rest)
|
||||
elif argument.startswith("--"):
|
||||
options.add(argument.split("=")[0])
|
||||
if argument in PUSH_OPTIONS_WITH_VALUE:
|
||||
next(rest, None)
|
||||
elif argument.startswith("-"):
|
||||
flags, push_option, value = argument[1:].partition("o")
|
||||
options.update(SHORT_PUSH_OPTIONS.get(f, f) for f in flags)
|
||||
if push_option and not value:
|
||||
next(rest, None)
|
||||
else:
|
||||
positional.append(argument)
|
||||
return options, positional[1:]
|
||||
|
||||
|
||||
def updates_main(arguments, on_main):
|
||||
"""Whether a push can update main. `on_main` is called only when it matters."""
|
||||
options, refspecs = parse_push(arguments)
|
||||
if options & {"--dry-run", "--help"}:
|
||||
return False
|
||||
if options & {"--all", "--branches", "--mirror"}:
|
||||
return True
|
||||
if not refspecs:
|
||||
return "--tags" not in options and on_main()
|
||||
|
||||
rest = iter(refspecs)
|
||||
for refspec in rest:
|
||||
if refspec == "tag":
|
||||
next(rest, None)
|
||||
continue
|
||||
source, colon, destination = refspec.removeprefix("+").partition(":")
|
||||
if colon and not source and not destination:
|
||||
return True
|
||||
target = destination if colon else source
|
||||
if any(fnmatch.fnmatchcase(name, target) for name in MAIN_NAMES):
|
||||
return True
|
||||
if not colon and source in ("HEAD", "@") and on_main():
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
def current_branch_is_main(directory):
|
||||
head = subprocess.run(
|
||||
["git", "-C", directory, "symbolic-ref", "--quiet", "HEAD"], capture_output=True, text=True
|
||||
)
|
||||
return head.stdout.strip() == "refs/heads/main"
|
||||
|
||||
|
||||
def pushes_to_main(command, directory):
|
||||
if "git" not in command or "push" not in command:
|
||||
return False
|
||||
outer_directories = []
|
||||
branch_change = None # (directory, whether it went to main) of the latest one
|
||||
for all_words in simple_commands(command) or []:
|
||||
words = strip_prefixes(all_words)
|
||||
if not words:
|
||||
continue
|
||||
name, arguments = os.path.basename(words[0]), words[1:]
|
||||
if name == "(":
|
||||
outer_directories.append(directory)
|
||||
elif name == ")" and outer_directories:
|
||||
directory = outer_directories.pop()
|
||||
elif name in ("cd", "pushd", "popd"):
|
||||
directory = resolve(directory, words[-1])
|
||||
elif name in ("gh", "tea") and "checkout" in arguments:
|
||||
branch_change = (directory, False)
|
||||
elif name == "git":
|
||||
repo, subcommand, arguments = split_git_command(arguments, directory)
|
||||
# xargs adds refspecs, and another git dir has its own branch.
|
||||
unknown = "xargs" in all_words or any(
|
||||
w.startswith(("GIT_DIR=", "--git-dir")) for w in all_words
|
||||
)
|
||||
|
||||
def on_main():
|
||||
if unknown:
|
||||
return False
|
||||
if branch_change:
|
||||
return branch_change == (repo, True)
|
||||
return current_branch_is_main(repo)
|
||||
|
||||
if changes_branch(subcommand, arguments):
|
||||
names = [a for a in arguments if not a.startswith("-")]
|
||||
branch_change = (repo, subcommand != "branch" and names == ["main"])
|
||||
elif subcommand == "push" and updates_main(arguments, on_main):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
def main():
|
||||
# apm deploys this file to Copilot and Codex too, where it must do nothing.
|
||||
if "/.claude/hooks/" not in os.path.abspath(__file__).replace("\\", "/"):
|
||||
return 0
|
||||
if os.environ.get("GIT_ALLOW_PUSH_TO_MAIN") == "1":
|
||||
return 0
|
||||
payload = json.load(sys.stdin)
|
||||
if payload["tool_name"] != "Bash":
|
||||
return 0
|
||||
if pushes_to_main(payload["tool_input"]["command"], payload["cwd"]):
|
||||
print(
|
||||
"Refused: this git push can update main. "
|
||||
"Push a feature branch by name and open a pull request instead.",
|
||||
file=sys.stderr,
|
||||
)
|
||||
return 2
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
@@ -35,9 +35,66 @@ Installing this plugin without `rtk`? Every prefixed command is a plain `git` in
|
||||
|---|---|---|
|
||||
| Skills | `.apm/skills/` | `git-commits`, `git-branches`, `git-history`, `git-remotes`, `git-submodules`, `git-workflow`, `git-worktrees`, `pc-author`, `pc-run` |
|
||||
| Agents | `.apm/agents/` | `git-orchestrate` |
|
||||
| Hooks | `.apm/hooks/` | `refuse-push-to-main.py`, see [Push-to-main hook](#push-to-main-hook) |
|
||||
|
||||
`.apm/` is the authoring source and the only thing apm deploys (ADR-0024).
|
||||
|
||||
## Push-to-main hook
|
||||
|
||||
On Claude Code, a `PreToolUse` hook refuses a Bash `git push` that can update `main`:
|
||||
|
||||
- an explicit destination: `main`, `HEAD:main`, `<branch>:main`, `refs/heads/main`, or deleting `main`
|
||||
- a bare `git push`, `HEAD` or `@` while `main` is checked out
|
||||
- a bulk push: `--all`, `--mirror`, `:`, or a wildcard refspec that covers `main`
|
||||
- any of these with `--force` or `--force-with-lease`
|
||||
|
||||
Pushes to other branches, tag pushes and `--dry-run` go through. apm also deploys the files to Copilot and Codex, where the hook does nothing.
|
||||
|
||||
### Limits
|
||||
|
||||
The hook is a guardrail against accidents. Server-side branch protection is the real control. If the hook itself fails, the push goes through. It does not see:
|
||||
|
||||
- git aliases, shell variables such as `$BRANCH`, scripts, `bash -c`, command substitution inside double quotes, or pushes made through an MCP server
|
||||
- git config that redirects a push (`push.default=upstream`, `remote.<name>.push`)
|
||||
- a push behind a wrapper option that takes a separate value, such as `sudo -u <user>` or `env -u <name>`
|
||||
- a command line the hook cannot parse, for example `$'...'` with an escaped quote
|
||||
- a bare `git push`, `HEAD` or `@` in a command that makes the branch unknown:
|
||||
- an earlier `git switch` or `git checkout` to anything but a literal `main`, `git branch -m`, `git rebase <upstream> <branch>`, `gh pr checkout` or `tea pr checkout`
|
||||
- an earlier `cd` to a path that is not literal
|
||||
- `--git-dir`, `GIT_DIR=` or `xargs` on the push itself
|
||||
|
||||
### Opt-out
|
||||
|
||||
To allow pushes to `main`, set the variable under `env` in `.claude/settings.json`, or in `.claude/settings.local.json` for yourself only:
|
||||
|
||||
```json
|
||||
{
|
||||
"env": {
|
||||
"GIT_ALLOW_PUSH_TO_MAIN": "1"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Claude Code puts `env` values into its own environment, which hooks inherit. Setting the variable inside the command (`GIT_ALLOW_PUSH_TO_MAIN=1 git push`) has no effect. After you remove the setting, restart Claude Code for the hook to refuse again.
|
||||
|
||||
### Approval
|
||||
|
||||
The hook is an executable primitive, so whether it deploys depends on the `executables:` block in the consuming project's `apm.yml`:
|
||||
|
||||
- **No `executables:` block:** hooks deploy without approval.
|
||||
- **With an `executables:` block:** the hook is parked until it is granted. Grant it in one of two ways, then run `apm install` and commit the `executables` entry:
|
||||
- `apm approve` writes the entry and pins it to the hook's content, so a later change to the script needs approval again.
|
||||
- A hand-written entry under the full package identity is not pinned:
|
||||
|
||||
```yaml
|
||||
executables:
|
||||
allow:
|
||||
git.rkdr.net/Mortis/Holocron/plugins/git:
|
||||
hooks: true
|
||||
```
|
||||
|
||||
The first `apm approve` in a project creates the block and so turns the gate on. The next install then parks every other package's unapproved executables.
|
||||
|
||||
## Author
|
||||
|
||||
Defame1297
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
name: git
|
||||
version: 1.3.9
|
||||
version: 1.4.0
|
||||
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
|
||||
|
||||
@@ -1,7 +1,15 @@
|
||||
{
|
||||
"disableBundledSkills": true,
|
||||
"env": {
|
||||
"CLAUDE_CODE_DISABLE_SHIP": "1"
|
||||
},
|
||||
"skillOverrides": {
|
||||
"init": "off"
|
||||
},
|
||||
"statusLine": {
|
||||
"command": "bash ~/.claude/statusline-command.sh",
|
||||
"type": "command"
|
||||
},
|
||||
"syncClaudeAiSkills": false,
|
||||
"theme": "dark"
|
||||
}
|
||||
@@ -7,10 +7,14 @@
|
||||
# Individual files — copied verbatim
|
||||
DEPLOY_FILES=(
|
||||
"providers/claude-code/CLAUDE.md:.claude/CLAUDE.md"
|
||||
"providers/claude-code/settings.json:.claude/settings.json"
|
||||
"core/AGENTS.md:.agents/AGENTS.md"
|
||||
)
|
||||
|
||||
# JSON files — merged into an existing destination; this repo's values win
|
||||
DEPLOY_JSON_MERGES=(
|
||||
"providers/claude-code/settings.json:.claude/settings.json"
|
||||
)
|
||||
|
||||
# Files that also need the executable bit set
|
||||
DEPLOY_EXECUTABLES=(
|
||||
"providers/claude-code/statusline-command.sh:.claude/statusline-command.sh"
|
||||
|
||||
+8
-1
@@ -7,6 +7,13 @@ source "$REPO_ROOT/scripts/deploy-manifest.sh"
|
||||
|
||||
echo "Installing from $REPO_ROOT..."
|
||||
|
||||
# First, so an unmergeable file stops the install before anything is deployed.
|
||||
for entry in "${DEPLOY_JSON_MERGES[@]}"; do
|
||||
dest="$HOME/${entry##*:}"
|
||||
mkdir -p "$(dirname "$dest")"
|
||||
python3 "$REPO_ROOT/scripts/merge-json.py" "$REPO_ROOT/${entry%%:*}" "$dest"
|
||||
done
|
||||
|
||||
for entry in "${DEPLOY_FILES[@]}"; do
|
||||
dest="$HOME/${entry##*:}"
|
||||
mkdir -p "$(dirname "$dest")"
|
||||
@@ -47,7 +54,7 @@ fi
|
||||
|
||||
echo ""
|
||||
echo "Deployed:"
|
||||
for entry in "${DEPLOY_FILES[@]}" "${DEPLOY_EXECUTABLES[@]}"; do
|
||||
for entry in "${DEPLOY_FILES[@]}" "${DEPLOY_JSON_MERGES[@]}" "${DEPLOY_EXECUTABLES[@]}"; do
|
||||
echo " ~/${entry##*:}"
|
||||
done
|
||||
for entry in "${DEPLOY_DIRS[@]}"; do
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
"""Merge the JSON object in SRC into DEST. SRC wins; keys only DEST has are kept."""
|
||||
|
||||
import json
|
||||
import os
|
||||
import shutil
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
|
||||
def merge(base, override):
|
||||
if not (isinstance(base, dict) and isinstance(override, dict)):
|
||||
return override
|
||||
merged = dict(base)
|
||||
for key, value in override.items():
|
||||
merged[key] = merge(base[key], value) if key in base else value
|
||||
return merged
|
||||
|
||||
|
||||
def merged_text(src_text, dest):
|
||||
with open(dest, encoding="utf-8") as f:
|
||||
existing = json.load(f)
|
||||
if not isinstance(existing, dict):
|
||||
raise ValueError("top level is not a JSON object")
|
||||
# json.load accepts NaN and Infinity, which are not valid JSON.
|
||||
before = json.dumps(existing, indent=2, ensure_ascii=False, allow_nan=False)
|
||||
after = json.dumps(merge(existing, json.loads(src_text)), indent=2, ensure_ascii=False)
|
||||
return None if after == before else after + "\n"
|
||||
|
||||
|
||||
def replace_file(dest, text):
|
||||
# Renaming a complete temporary file over dest means a failure never truncates it.
|
||||
fd, tmp = tempfile.mkstemp(dir=os.path.dirname(dest), prefix=".merge-json.")
|
||||
try:
|
||||
with os.fdopen(fd, "w", encoding="utf-8") as f:
|
||||
f.write(text)
|
||||
f.flush()
|
||||
os.fsync(f.fileno())
|
||||
if os.path.exists(dest):
|
||||
shutil.copymode(dest, tmp)
|
||||
os.replace(tmp, dest)
|
||||
except BaseException:
|
||||
os.unlink(tmp)
|
||||
raise
|
||||
|
||||
|
||||
def main():
|
||||
src, dest_arg = sys.argv[1:]
|
||||
# Renaming over a symlink would replace the link, so write to its target.
|
||||
dest = os.path.realpath(dest_arg)
|
||||
with open(src, encoding="utf-8") as f:
|
||||
text = f.read()
|
||||
try:
|
||||
if os.path.exists(dest):
|
||||
text = merged_text(text, dest)
|
||||
if text is not None:
|
||||
replace_file(dest, text)
|
||||
except (OSError, ValueError) as error:
|
||||
sys.exit(f"ERROR: cannot merge settings into {dest_arg}, left unchanged: {error}")
|
||||
|
||||
|
||||
main()
|
||||
@@ -36,6 +36,7 @@ git -C "$TEMP_REPO" init -q
|
||||
cat > "$TEMP_REPO/scripts/deploy-manifest.sh" << 'EOF'
|
||||
# shellcheck disable=SC2034
|
||||
DEPLOY_FILES=()
|
||||
DEPLOY_JSON_MERGES=()
|
||||
DEPLOY_EXECUTABLES=()
|
||||
DEPLOY_DIRS=()
|
||||
EOF
|
||||
|
||||
Executable
+247
@@ -0,0 +1,247 @@
|
||||
#!/usr/bin/env bash
|
||||
# Tests for plugins/git/.apm/hooks/refuse-push-to-main.py, the PreToolUse hook
|
||||
# that refuses a `git push` to `main` (#178).
|
||||
#
|
||||
# The hook acts only when run from a .claude/hooks/ path, so it is copied to the
|
||||
# path apm deploys it to and driven with real payloads against fixture repos.
|
||||
set -euo pipefail
|
||||
|
||||
unset GIT_DIR GIT_WORK_TREE GIT_INDEX_FILE GIT_OBJECT_DIRECTORY GIT_COMMON_DIR
|
||||
unset GIT_ALLOW_PUSH_TO_MAIN
|
||||
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
HOOKS_DIR="$REPO_ROOT/plugins/git/.apm/hooks"
|
||||
SRC="$HOOKS_DIR/refuse-push-to-main.py"
|
||||
PASS=0
|
||||
FAIL=0
|
||||
|
||||
pass() { PASS=$((PASS + 1)); }
|
||||
fail() { echo " FAIL: $1"; FAIL=$((FAIL + 1)); }
|
||||
|
||||
command -v python3 > /dev/null 2>&1 || { echo "python3 required"; exit 77; }
|
||||
[[ -f "$SRC" ]] || { echo "FAIL: $SRC does not exist"; exit 1; }
|
||||
|
||||
WORK="$(mktemp -d)"
|
||||
trap 'rm -rf "$WORK"' EXIT
|
||||
|
||||
for d in .claude/hooks/git/.apm/hooks .github/hooks/scripts/git/.apm/hooks \
|
||||
.codex/hooks/git/.apm/hooks elsewhere; do
|
||||
mkdir -p "$WORK/$d"
|
||||
cp "$SRC" "$WORK/$d/"
|
||||
done
|
||||
HOOK="$WORK/.claude/hooks/git/.apm/hooks/refuse-push-to-main.py"
|
||||
|
||||
git init -q -b main "$WORK/on-main"
|
||||
git init -q -b feat "$WORK/on-feat"
|
||||
|
||||
# decision <script> <cwd> <command> -> allow|refuse|error(...)
|
||||
# The payload is escaped in bash because a Python start per case doubles the run
|
||||
# time. The timeout is the one in hooks.json.
|
||||
decision() {
|
||||
local command="$3" out rc=0
|
||||
command="${command//\\/\\\\}"
|
||||
command="${command//\"/\\\"}"
|
||||
command="${command//$'\n'/\\n}"
|
||||
command="${command//$'\t'/\\t}"
|
||||
out="$(timeout 10 "$1" 2>&1 <<< "{\"tool_name\":\"Bash\",\"cwd\":\"$2\",\"tool_input\":{\"command\":\"$command\"}}")" || rc=$?
|
||||
if [[ $rc -eq 0 && -z "$out" ]]; then
|
||||
echo allow
|
||||
elif [[ $rc -eq 2 && "$out" == *main* ]]; then
|
||||
echo refuse
|
||||
else
|
||||
echo "error($rc: $out)"
|
||||
fi
|
||||
}
|
||||
|
||||
# expect <allow|refuse> <main|feat> <command>
|
||||
expect() {
|
||||
local got
|
||||
got="$(decision "$HOOK" "$WORK/on-$2" "$3")"
|
||||
if [[ "$got" == "$1" ]]; then pass; else fail "on $2: want $1, got $got: ${3:0:200}"; fi
|
||||
}
|
||||
|
||||
echo "== Refused from any branch"
|
||||
while IFS= read -r args; do
|
||||
expect refuse feat "git push $args"
|
||||
done << 'CASES'
|
||||
origin main
|
||||
origin +main
|
||||
origin heads/main
|
||||
origin refs/heads/main
|
||||
origin HEAD:main
|
||||
origin feat:main
|
||||
origin feat:refs/heads/main
|
||||
origin main --tags
|
||||
origin :main
|
||||
-d origin main
|
||||
--delete origin main
|
||||
origin --all
|
||||
origin --branches
|
||||
--mirror origin
|
||||
origin :
|
||||
origin +:
|
||||
origin refs/heads/*:refs/heads/*
|
||||
origin 'refs/heads/*:refs/heads/*'
|
||||
origin feat main
|
||||
-o ci.skip origin "main"
|
||||
CASES
|
||||
expect refuse main "git push origin main"
|
||||
|
||||
# Every prefix with an explicit destination and with a branch-dependent form.
|
||||
for prefix in "git push --force" "git push -f" "git push --force-with-lease" \
|
||||
"git push --force-with-lease=main:abc123" "rtk git push" "git -c k=v push" \
|
||||
"git -C . push" "git add . && git push"; do
|
||||
expect refuse feat "$prefix origin main"
|
||||
expect refuse feat "$prefix origin HEAD:main"
|
||||
expect refuse main "$prefix"
|
||||
expect refuse main "$prefix origin HEAD"
|
||||
expect allow feat "$prefix"
|
||||
expect allow feat "$prefix origin HEAD"
|
||||
done
|
||||
|
||||
echo "== Refused while on main, allowed on a feature branch"
|
||||
while IFS= read -r args; do
|
||||
expect refuse main "git push $args"
|
||||
expect allow feat "git push $args"
|
||||
done << 'CASES'
|
||||
|
||||
origin
|
||||
--follow-tags
|
||||
-o ci.skip origin
|
||||
--repo=origin
|
||||
origin HEAD
|
||||
origin @
|
||||
origin 2>&1 | tail -5
|
||||
CASES
|
||||
expect refuse feat "git -C $WORK/on-main push"
|
||||
expect refuse feat "git -C ../on-main push origin HEAD"
|
||||
expect allow main "git -C $WORK/on-feat push"
|
||||
|
||||
echo "== Allowed from any branch"
|
||||
while IFS= read -r cmd; do
|
||||
expect allow main "$cmd"
|
||||
done << 'CASES'
|
||||
git push origin feat
|
||||
git push -u origin feat
|
||||
git push origin main:feat
|
||||
git push origin main-fix
|
||||
git push origin feature/main
|
||||
git push --tags
|
||||
git push origin --tags
|
||||
git push origin tag v1
|
||||
git push origin tag main
|
||||
git push origin refs/tags/main
|
||||
git push --dry-run origin main
|
||||
git push --help
|
||||
git push -h
|
||||
git push -n origin main
|
||||
git push -o main origin feat
|
||||
git push origin 'refs/heads/feat/*:refs/heads/feat/*'
|
||||
git status
|
||||
git log origin main
|
||||
git commit -m "git push origin main"
|
||||
git commit -m "wip; git push origin main"
|
||||
echo git push origin main
|
||||
echo "git push origin main"
|
||||
git switch -c feat && git push -u origin HEAD
|
||||
git checkout -b feat && git push
|
||||
cd /somewhere/else && git push
|
||||
git push origin "main
|
||||
CASES
|
||||
|
||||
echo "== Earlier branch or directory changes"
|
||||
while IFS=$'\t' read -r want branch cmd; do
|
||||
expect "$want" "$branch" "${cmd//WORK/$WORK}"
|
||||
done << 'CASES'
|
||||
allow main gh pr checkout 5 && git push
|
||||
allow main tea pr checkout 5 && git push
|
||||
allow main rtk gh pr checkout 5 && git push
|
||||
allow main git branch -m feat && git push -u origin HEAD
|
||||
allow main git branch -M feat && git push -u origin HEAD
|
||||
allow main git branch --move feat && git push -u origin HEAD
|
||||
allow main git switch feat && cd sub && git push
|
||||
allow main git checkout main && git pull && git checkout -b x && git push -u origin HEAD
|
||||
refuse main git branch -a && git push
|
||||
allow feat git switch main && git pull && git rebase main feat && git push
|
||||
allow main git fetch && git rebase origin/main feat && git push --force-with-lease
|
||||
allow main git rebase --onto main old feat && git push
|
||||
refuse main git rebase origin/main && git push
|
||||
refuse main git rebase --onto origin/main old && git push
|
||||
refuse main git rebase -x true origin/main && git push
|
||||
allow feat cd WORK/on-main && git switch main && git pull; cd WORK/on-feat && git push
|
||||
allow main echo feat | xargs git push origin
|
||||
allow main echo feat | xargs -n 1 git push origin HEAD
|
||||
refuse feat git checkout main && git merge feat && git push
|
||||
refuse feat git switch main && git pull && git push origin HEAD
|
||||
refuse feat git -C WORK/on-feat switch main && git -C WORK/on-feat push
|
||||
refuse feat cd WORK/on-main && git push
|
||||
refuse feat cd ../on-main && git push origin HEAD
|
||||
refuse feat cd WORK && cd on-main && git push
|
||||
allow main cd WORK/on-feat && git push
|
||||
allow main cd "$(git rev-parse --show-toplevel)" && git push
|
||||
allow main cd $REPO/.. && git push
|
||||
allow main cd - && git push
|
||||
allow feat (cd WORK/on-main && git pull) && git push
|
||||
refuse main (cd WORK/on-feat && git pull) && git push
|
||||
allow main git --git-dir=WORK/on-feat/.git push
|
||||
allow main git --git-dir WORK/on-feat/.git push origin HEAD
|
||||
allow main GIT_DIR=WORK/on-feat/.git git push
|
||||
refuse feat git --git-dir=WORK/on-feat/.git push origin main
|
||||
CASES
|
||||
|
||||
echo "== Shell shapes"
|
||||
expect refuse feat "exec git push origin main"
|
||||
expect refuse feat "echo x | xargs git push origin main"
|
||||
expect refuse feat $'git push origin ma\\\nin'
|
||||
expect allow feat $'cat > a <<\'A\' && cat > b <<\'B\'\none\nA\ngit push origin main\nB'
|
||||
expect allow feat $'cat > a <<\'END OF\'\ngit push origin main\nEND OF'
|
||||
expect refuse feat $'git commit -m "explain <<EOF"\ngit push origin main'
|
||||
expect refuse feat $'echo $((1<<2))\ngit push origin main'
|
||||
printf -v many_heredocs 'cat <<EOF%d\n' {1..5000}
|
||||
expect allow feat "${many_heredocs}git log; echo push"
|
||||
expect refuse feat "cd /somewhere/else && git push origin main"
|
||||
expect refuse feat "git switch -c x && git push origin HEAD:main"
|
||||
expect refuse main "git checkout -- file.txt && git push"
|
||||
expect refuse feat "timeout 60 git push origin main"
|
||||
expect refuse feat "if true; then git push origin main; fi"
|
||||
expect refuse feat "(git push origin main)"
|
||||
expect refuse feat "git push origin main 2>&1 | tail -5"
|
||||
expect refuse feat $'git push \\\n origin main'
|
||||
expect refuse feat $'# don\'t forget to push\ngit push origin main'
|
||||
expect refuse feat $'git status\ngit push origin main'
|
||||
expect allow feat $'cat > notes.md <<\'EOF\'\ngit push origin main\nit\'s text\nEOF'
|
||||
expect allow feat $'cat <<-EOF\n\tgit push origin main\n\tEOF'
|
||||
expect allow feat $'git commit -m "$(cat <<\'EOF\'\nfix: x\n\ngit push origin main\nEOF\n)"'
|
||||
expect allow feat $'git commit -m "fix: x\n\ngit push origin main"'
|
||||
expect refuse feat $'cat > notes.md <<EOF\nit\'s text\nEOF\ngit push origin main'
|
||||
|
||||
echo "== Runtime: acts only from .claude/hooks/"
|
||||
for d in .github/hooks/scripts/git/.apm/hooks .codex/hooks/git/.apm/hooks elsewhere; do
|
||||
got="$(decision "$WORK/$d/refuse-push-to-main.py" "$WORK/on-main" "git push origin main")"
|
||||
if [[ "$got" == allow ]]; then pass; else fail "$d: want allow, got $got"; fi
|
||||
done
|
||||
|
||||
echo "== Opt-out: only from the hook's own environment"
|
||||
export GIT_ALLOW_PUSH_TO_MAIN=1
|
||||
expect allow main "git push origin main"
|
||||
export GIT_ALLOW_PUSH_TO_MAIN=0
|
||||
expect refuse main "git push origin main"
|
||||
unset GIT_ALLOW_PUSH_TO_MAIN
|
||||
expect refuse main "GIT_ALLOW_PUSH_TO_MAIN=1 git push origin main"
|
||||
expect refuse main "env GIT_ALLOW_PUSH_TO_MAIN=1 git push origin main"
|
||||
expect refuse main "export GIT_ALLOW_PUSH_TO_MAIN=1 && git push origin main"
|
||||
|
||||
echo "== hooks.json"
|
||||
if python3 - "$HOOKS_DIR/hooks.json" << 'PY'
|
||||
import json, sys
|
||||
(entry,) = json.load(open(sys.argv[1]))["hooks"]["PreToolUse"]
|
||||
(hook,) = entry["hooks"]
|
||||
assert entry["matcher"] == "Bash"
|
||||
assert hook["command"] == "${CLAUDE_PLUGIN_ROOT}/.apm/hooks/refuse-push-to-main.py"
|
||||
assert "onFailure" not in hook
|
||||
PY
|
||||
then pass; else fail "hooks.json does not wire the script as expected"; fi
|
||||
|
||||
echo
|
||||
echo "Passed: $PASS Failed: $FAIL"
|
||||
[[ $FAIL -eq 0 && $PASS -gt 0 ]]
|
||||
@@ -74,6 +74,111 @@ else
|
||||
fail "idempotent: ~/.agents/AGENTS.md corrupted after second install"
|
||||
fi
|
||||
|
||||
SETTINGS_SRC="$REPO_ROOT/providers/claude-code/settings.json"
|
||||
|
||||
if cmp -s "$SETTINGS_SRC" "$TEMP_HOME/.claude/settings.json"; then
|
||||
pass "idempotent: settings.json still identical to source after second install"
|
||||
else
|
||||
fail "idempotent: settings.json changed by second install"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "--- settings.json is merged into an existing file (ADR-0035) ---"
|
||||
|
||||
new_home() {
|
||||
local home
|
||||
home="$(mktemp -d "$TEMP_HOME/merge.XXXXXX")"
|
||||
mkdir -p "$home/.claude"
|
||||
echo "$home"
|
||||
}
|
||||
|
||||
install_into() {
|
||||
HOME="$1" bash "$REPO_ROOT/scripts/install.sh" 2>&1
|
||||
}
|
||||
|
||||
# Asserts a Python expression over the parsed JSON file, bound to `s`.
|
||||
check_json() {
|
||||
local file="$1" expr="$2" name="$3"
|
||||
if python3 -c 'import json, sys; s = json.load(open(sys.argv[1], encoding="utf-8")); sys.exit(not eval(sys.argv[2]))' "$file" "$expr" 2> /dev/null; then
|
||||
pass "$name"
|
||||
else
|
||||
fail "$name"
|
||||
fi
|
||||
}
|
||||
|
||||
check_json "$SETTINGS_SRC" \
|
||||
's["disableBundledSkills"] is True and s["syncClaudeAiSkills"] is False and s["env"]["CLAUDE_CODE_DISABLE_SHIP"] == "1" and s["skillOverrides"]["init"] == "off"' \
|
||||
"repo settings turn off bundled and synced skills"
|
||||
|
||||
MERGE_HOME="$(new_home)"
|
||||
MERGED="$MERGE_HOME/.claude/settings.json"
|
||||
cat > "$MERGED" << 'EOF'
|
||||
{
|
||||
"model": "opus",
|
||||
"theme": "light",
|
||||
"permissions": {"allow": ["Bash(ls:*)"]},
|
||||
"env": {"MY_VAR": "kept", "CLAUDE_CODE_DISABLE_SHIP": "0"},
|
||||
"skillOverrides": {"other": "off", "init": "on"}
|
||||
}
|
||||
EOF
|
||||
chmod 640 "$MERGED"
|
||||
install_into "$MERGE_HOME" > /dev/null || fail "install over existing settings exited non-zero"
|
||||
|
||||
check_json "$MERGED" 's["model"] == "opus" and s["permissions"] == {"allow": ["Bash(ls:*)"]}' \
|
||||
"top-level settings the repo does not set are kept"
|
||||
check_json "$MERGED" 's["env"]["MY_VAR"] == "kept" and s["skillOverrides"]["other"] == "off"' \
|
||||
"nested entries the repo does not set are kept"
|
||||
check_json "$MERGED" 's["theme"] == "dark" and s["env"]["CLAUDE_CODE_DISABLE_SHIP"] == "1" and s["skillOverrides"]["init"] == "off"' \
|
||||
"the repo's value wins where both set one"
|
||||
check_json "$MERGED" 's["disableBundledSkills"] is True and s["syncClaudeAiSkills"] is False' \
|
||||
"settings only the repo has are added"
|
||||
|
||||
if [[ "$(find "$MERGED" -perm 640)" == "$MERGED" ]]; then
|
||||
pass "the existing file's permissions are kept"
|
||||
else
|
||||
fail "the existing file's permissions changed"
|
||||
fi
|
||||
|
||||
cp "$MERGED" "$MERGE_HOME/first-run.json"
|
||||
install_into "$MERGE_HOME" > /dev/null || fail "second install exited non-zero"
|
||||
if cmp -s "$MERGE_HOME/first-run.json" "$MERGED"; then
|
||||
pass "a second run leaves the merged settings unchanged"
|
||||
else
|
||||
fail "a second run changed the merged settings"
|
||||
fi
|
||||
|
||||
for invalid in '{"model": "opus",' '["not an object"]' '{"x": NaN}' ''; do
|
||||
BAD_HOME="$(new_home)"
|
||||
BAD="$BAD_HOME/.claude/settings.json"
|
||||
printf '%s' "$invalid" > "$BAD"
|
||||
printf '%s' "$invalid" > "$BAD_HOME/before"
|
||||
if output="$(install_into "$BAD_HOME")"; then
|
||||
fail "install accepted invalid settings: '$invalid'"
|
||||
elif [[ "$output" == *"$BAD"* && "$output" != *Traceback* ]]; then
|
||||
pass "invalid settings exit non-zero with an error naming the file: '$invalid'"
|
||||
else
|
||||
fail "invalid settings gave no clear error: '$invalid'"
|
||||
fi
|
||||
if cmp -s "$BAD_HOME/before" "$BAD"; then
|
||||
pass "invalid settings are left untouched: '$invalid'"
|
||||
else
|
||||
fail "invalid settings were changed: '$invalid'"
|
||||
fi
|
||||
done
|
||||
|
||||
LINK_HOME="$(new_home)"
|
||||
mkdir "$LINK_HOME/dotfiles"
|
||||
echo '{"model": "opus"}' > "$LINK_HOME/dotfiles/settings.json"
|
||||
ln -s ../dotfiles/settings.json "$LINK_HOME/.claude/settings.json"
|
||||
install_into "$LINK_HOME" > /dev/null || fail "install through a symlink exited non-zero"
|
||||
if [[ -L "$LINK_HOME/.claude/settings.json" ]]; then
|
||||
pass "a symlinked settings file stays a symlink"
|
||||
else
|
||||
fail "a symlinked settings file was replaced by a regular file"
|
||||
fi
|
||||
check_json "$LINK_HOME/dotfiles/settings.json" 's["model"] == "opus" and s["theme"] == "dark"' \
|
||||
"the symlink's target receives the merge"
|
||||
|
||||
echo ""
|
||||
echo "Results: $PASS passed, $FAIL failed"
|
||||
[[ $FAIL -eq 0 ]]
|
||||
Reference in new issue
Block a user