Ship a `qbit-vault` skill that tells agents when and how to use the broker, install it as one more host step, and rewrite it on every upgrade only when its text changed. Branch `feat/agent-skill`.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Tasks?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/qbitdevz-tasks)
# Feature: qbit-vault agent skill, installed and kept current by init and sync
Ship a `qbit-vault` skill that tells agents when and how to use the broker, install it as one more host step, and rewrite it on every upgrade only when its text changed.
Branch `feat/agent-skill`.
## Specs
- S1. User (verbatim): "agregalo y que la skill simepre se vaya actualizando en cada version que vayamos haciendo y mejorando."
- S2. User (verbatim): "la instalacion de la skill siempre y cuando sea necesaria no..."
- S3. Rule kept from an earlier request (verbatim): "recuerda siempre no overraidear las versiones y mantener los manifestos en la instalacion, actualizacion, etc.."
- S4. Agreed shape (assistant proposal, accepted by S1): an optional skill that `init` installs in agents that support skills and `uninstall` removes; it never writes the user's CLAUDE.md or AGENTS.md.
## Tasks
| ID | Specs | Route | Change | Commit | Status |
| --- | --- | --- | --- | --- | --- |
| K1 | S2, S3, S4 | inline | filemerge owned-file write/revert/check (snapshot first, atomic, marker, refuses a foreign file) | 92b5f29, 86f3b7c | done |
| K2 | S1, S2, S4 | inline | embedded SKILL.md; `skill` step for claude-code (~/.claude/skills), codex and pi (shared ~/.agents/skills); shared-file revert; tests; docs | 2bd959f, + fix below | done |
## Log
- L1. User request verbatim in S1, S2.
- L2. Skill locations checked 2026-11-05. Claude Code: `~/.claude/skills/<name>/SKILL.md`. Codex: user skills in `~/.agents/skills` (`~/.codex/skills` is the legacy name; openai/codex#10437, #14337). Pi: `~/.pi/agent/skills` and also `~/.agents/skills` (pi-coding-agent docs/skills.md: "Name collisions keep the first discovered skill and produce a warning"). Decision: Codex and Pi share one file, `~/.agents/skills/qbit-vault/SKILL.md`, so Pi never sees a duplicate; it is removed only when no other registered host still records it.
- L3. "Only when necessary" (S2) means: only for registered hosts that read skills; written only when the bytes differ from the embedded skill (no file, snapshot or receipt change otherwise); the skill text carries no version string, so a release that does not change it rewrites nothing. "Always updated" (S1): `sync` rewrites a stale skill and the install scripts run `sync` after every upgrade; `doctor` reports a stale one as drift.
- L4. Found while testing the shared file: a host whose config already held our entry, with no earlier receipt, got a receipt with an empty snapshot path, which state.json refuses (`vault: invalid host record`); it affected every host (for example after state.json was lost). RED TestApplyRecordsAHostWhoseFileAlreadyHoldsOurEntry; fixed in filemerge.mergeFile (86f3b7c).
- L5. Checks: `go vet ./...` and `go test ./...` green on Windows (Go 1.27). New tests: internal/filemerge owned_test.go (9), internal/hosts/skill (7, incl. real adapters: claude writes its copy, codex creates the shared one, pi finds it current, no copy under ~/.pi/agent/skills; a test fails when a tool or handled refusal is missing from the skill), internal/cli TestSyncKeepsTheAgentSkillCurrentAndUninstallRemovesIt (stale -> doctor warn -> sync "repaired (skill)" with snapshot -> second sync writes nothing -> uninstall "skill deleted"). e2e/hosts/scenario.sh updated (skill files, no Pi duplicate, removal on uninstall) but not run: Docker is not running on this machine; CI does not run it either.
- L6. Native review (lineage review-ba34c3e0b6731c1a on 4681aae..2bd959f, lenses risk + reliability): approved, acknowledged, authority burned. Advisory R3-foreign-skill-partial-registration fixed after the receipt: a user's own `SKILL.md` at our path made `init` fail at the skill step after mcp/hooks were written (friction). Now the user's skill wins: recorded without writing, Check accepts it, Revert leaves it (RED TestTheUsersOwnSkillOfTheSameNameIsLeftAlone). The marker line says how to opt out (replace the file and drop that line). R3-e2e-unrun stands: e2e/hosts/scenario.sh was updated but not run (Docker is not running here).
- L7. PR #5 CI green (42124218349), merged (18097f0); CHANGELOG 0.1.0-beta.3; tag v0.1.0-beta.3; release run 42127045432 green (pre-release, 9 assets). Real upgrade on the user's Windows machine with `irm …/install.ps1 | iex`: "upgrading qbit-vault v0.1.0-beta.2 -> v0.1.0-beta.3", sync "host claude-code: repaired (skill)", "host codex: repaired (skill)", "host pi: up to date" (shared file already current), doctor healthy with host.*.skill ok; ~/.claude/skills/qbit-vault/SKILL.md and ~/.agents/skills/qbit-vault/SKILL.md identical, nothing under ~/.pi/agent/skills. A second `sync` reports every host up to date and leaves both files' mtimes unchanged.