Add the agent-hygiene skill - #43
Merged
Merged
Conversation
A package skill plus scripts/agent-hygiene.R that audits, links, and lists the personal skill hub: package skills declared in ~/.config/agents/skills.dcf are symlinked into the hub, the hub is symlinked into each agent's skill root, and instruction files are checked for missing globals and identical twins. `audit` reports findings, `link` repairs symlinks with a duplicate-name preflight, and `list` prints a table or writes an HTML page. 54 asserts cover the manifest parsing, linking, and findings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
inst/skills/agent-hygienewithscripts/agent-hygiene.R:audit(findings for missing package links, dangling symlinks, agent roots not pointing at the hub, corteza instruction roots, stale Claude plugin caches, missing globals, identical-twin instruction files),link(places package-skill symlinks in the hub and the hub into each agent root, with a duplicate-name preflight and dangling-link repair), andlist [--html path].~/.config/agents/skills.dcf(Hub, Packages, AgentRoots);references/layout.mddocuments the hub shape and why each agent needs a symlinked root rather than per-agent copies.Test plan
tinytest::run_test_file("inst/tinytest/test_agent_hygiene.R"): 54 asserts pass.