diff options
| author | tv <tv@krebsco.de> | 2026-11-20 20:57:58 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-21 04:58:48 +0100 |
| commit | b90f3c2332651983943689cbabec89d201ecc9db (patch) | |
| tree | 00f7f6793d1b512eb1e8f1d99695d51cdc7799a8 /configs/claude | |
| parent | 2331b50f9c0353ab92e1c15795587f4a1d0dd803 (diff) | |
configs/hermes: make the copies of bundled skills writable
Hermes copies its bundled (and optional) skills out of the store into
~/.hermes/skills with shutil.copytree, which keeps the store's modes,
so the copies were read-only, files and directories: skill_manage
couldn't patch a bundled skill, nor write its temporary files next to
it. Patch the three places that copy a skill (seeding, updating,
restoring) to make the copy writable for its owner afterwards, and
copy the categories' DESCRIPTION.md without its mode.
The manifest's hashes are of paths and contents only, so writable
copies don't count as user-modified, and updates still replace them.
Tested against the pinned source's tools/ with read-only bundled
skills: seeding, an update and a restore leave nothing read-only
(before: 382 paths), and nothing gets reported as user-modified.
Copies made before this stay read-only; chmod -R u+w ~/.hermes/skills
fixes them.
Diffstat (limited to 'configs/claude')
0 files changed, 0 insertions, 0 deletions
