skillkeeper-test-repo

lorem-dev/skillkeeper-test-repo Checked 1 hour ago

A fixture repository for SkillKeeper.

Every skill, group, hook, and MCP preset here exists to drive one specific code path: skill resolution schemes, guidance-file precedence, executable flags, the two hook layouts, MCP parameter discovery, and the negative cases. The skill bodies are deliberately minimal - they are not useful skills, and nothing here is meant to be run. Or add the same SSH URL from the desktop app's Repositories page. Twenty-four of the twenty-six skills here resolve. The other two, deep-nesting/l2/l3/l4/too-deep-skill and requires/invalid-strict, are negative fixtures and must not - see Negative fixtures.

Summary extracted from the README.

skillkeeper-test-repo

A fixture repository for SkillKeeper.

Every skill, group, hook, and MCP preset here exists to drive one specific code path: skill resolution schemes, guidance-file precedence, executable flags, the two hook layouts, MCP parameter discovery, and the negative cases. The skill bodies are deliberately minimal - they are not useful skills, and nothing here is meant to be run.

Add it to SkillKeeper

skillkeeper repo add git@github.com:lorem-dev/skillkeeper-test-repo.git ./skillkeeper-test-repo
skillkeeper skill list

Or add the same SSH URL from the desktop app's Repositories page.

Twenty-four of the twenty-six skills here resolve. The other two, deep-nesting/l2/l3/l4/too-deep-skill and requires/invalid-strict, are negative fixtures and must not - see Negative fixtures.

What resolves

Twenty-four skills resolve: five ungrouped (scheme 1) and nineteen across six groups (scheme 2). There is no skillkeeper.repo.yaml, so auto-detection is live. The twelve skills of the requires group exist for skill dependencies and are described in Skill dependencies; the rest are below.

skill id guidance hooks notable
minimal-skill none - name only, the smallest valid manifest
documented-skill GUIDE.md - ships both guidance files; GUIDE.md must win
script-skill RULES.md - executables list; one script deliberately excluded
json-hooks-skill GUIDE.md 2 named hook layout, JSON payloads
text-hook-skill none 1 single-hook layout, raw-text payload
tooling/lint-skill GUIDE.md - grouped; keeps tooling/mcp.yml discoverable
tooling/format-skill none - grouped, nested body file
docs-writing/changelog-skill RULES.md - second group
docs-writing/readme-skill none - no version: hash-only update detection
platform/release-skill none - one group level, beside a deeper subgroup
platform/lint/style-skill none - two group levels
platform/lint/rust/clippy-skill none - three group levels, the deepest that resolves
requires/* (12) none - skill dependencies; see Skill dependencies

All four guidance combinations are covered: both files present (documented-skill), RULES.md alone (script-skill), GUIDE.md alone (json-hooks-skill), neither (minimal-skill).

Skill resolution schemes

  • Scheme 1, flat. The five directories at the repository root. One level deep, so no group.
  • Scheme 2, grouped. tooling/, docs-writing/, platform/, platform/lint/, platform/lint/rust/, and requires/. Up to three levels deep, so up to three leading path segments join into the group. Group depth is at most three. One group tree may hold skills at several depths at once: platform/ carries a skill of its own alongside the lint/ subgroup, which in turn carries both a skill and the deeper rust/ subgroup.
  • Scheme 3, repository config. Not active. The sample lives at skillkeeper.repo.yaml.example, which the resolver ignores because it only reads skillkeeper.repo.yaml. Rename it to switch this repository into config-authoritative mode - auto-detection is then skipped entirely and only the declared paths resolve. The sample documents defaults.group, per-entry name/group overrides, and why include/exclude are dead configuration whenever a non-empty skills: list is present.

Skill dependencies

The requires/ group is one skill per dependency behaviour. A skill declares its dependencies either under the strict, namespaced skillkeeper.requires or with the lenient, flat top-level requires, and installing a skill installs its whole closure. skillkeeper repo lint is the pass that reports the faults; every code below is one of its diagnostics.

A reference names a skill's resolved identity - group/name after any skillkeeper.repo.yaml override - not its directory path. The two coincide in this repository because scheme 3 is inert here.

skill id code severity covers
requires/chain-a - - the head of a two-hop chain: requires chain-b
requires/chain-b - - the middle link: requires chain-c
requires/chain-c - - the chain's end; declares nothing
requires/flat-legacy SK010 warning the flat requires field, which still resolves
requires/both-forms SK011 warning both spellings; the namespaced one wins
requires/duplicate SK012 warning the same reference twice, deduplicated
requires/missing-target SK001 error requires a skill that does not exist
requires/cycle-a SK002 error half of a two-skill cycle
requires/cycle-b SK002 error the other half; reported once for the pair
requires/invalid-strict SK003 error a malformed strict list; does not resolve
requires/cross-group - - requires tooling/lint-skill; valid, reports nothing
requires/declared-hook-missing SK005 error hooks: [nope] with no hooks/nope/HOOK.md
requires/missing-executable SK013 warning executables: [absent.sh], absent from the body

requires/invalid-strict is the one member of this group that does not resolve. It is a negative fixture in its own right - see Negative fixtures - so this group ships thirteen SKILL.md files and contributes twelve skills to the listing.

Linting the repository

skillkeeper repo lint --path .

Five errors and five warnings, so it exits 1. Four of the errors come from this group; the fifth, SK004, is the too-deep skill, which already made a clean lint impossible before any of these fixtures existed. The fifth warning is SK015, from oauth-stdio-invalid in the root mcp.yml - see MCP presets.

Exit codes are worth knowing before reading a failure: 0 when only warnings were reported, 1 on any error, and 2 on a usage or lookup failure - a mistyped --path, an unknown repository id, or passing no target at all or more than one of <id> / --all / --path. A 2 never prints the clean "no problems found" message, because the gate never ran.

--json writes exactly one parseable array to standard output, one object per diagnostic, carrying repository, code, severity, path, file, and message. It stays a single document even on a 2 exit, where it is [].

The chain, installed and taken apart

skillkeeper skill install requires/chain-a --agent claude --global
skillkeeper skill uninstall requires/chain-b

The install names one skill and installs three, printing Skill installed as a dependency: ... for the two the user did not name. The uninstall then removes only chain-b and warns on standard error that requires/chain-a is still installed and just lost it. Uninstall never cascades and the exit code stays 0: the report says what broke, and acting on it is the user's call.

Hooks

Hooks are privileged. Nothing installs them without --allow-hooks on the CLI or explicit, separate consent in the desktop app - and installing without the flag is itself a case worth testing, since the body must install while the hooks are skipped with a notice.

skillkeeper skill install json-hooks-skill --agent claude   --allow-hooks
skillkeeper skill install text-hook-skill  --agent opencode --allow-hooks

Pick the skill to match the agent

HOOK.md declares strategy and target.agent, but install reads neither. The strategy comes from the adapter of whichever agent you are installing for, and it is applied to every hook in the skill; there is no filtering by target.agent. So a hook payload has to match the installing agent:

agent strategy payload must be use
claude, codex, copilot, cursor json-merge valid JSON json-hooks-skill
opencode delimited-text any text text-hook-skill

That is why the JSON hooks and the text hook live in separate skills. Installing json-hooks-skill for opencode inserts its JSON objects as raw text; installing text-hook-skill for claude fails to parse its payload as JSON.

The file strategy is not covered

HookStrategy has a third variant, file, for hook-owned standalone files. No built-in adapter selects it, and since the strategy comes from the adapter rather than from HOOK.md, a file-strategy fixture could not be exercised - it would be applied as json-merge or delimited-text and break on its payload. There is no fixture for it here on purpose.

Payload rule

A hook's payload is the first non-HOOK.md file in its directory, so keep exactly one. A hook with no payload installs an empty region, which is legal.

An opencode caveat

opencode's delimited-text target is opencode.json, and the comment token is #. JSON has no comments, so an inserted region makes that file invalid JSON. opencode's MCP writer parses the same file, so do not install text-hook-skill's hook and an opencode MCP preset into one project at the same time - test them separately, or expect the second to fail on a parse error.

MCP presets

Twelve presets: nine at the root (no group) in mcp.yml, one in tooling/mcp.yml (group tooling), one in platform/lint/mcp.yml (group platform/lint), and one in platform/lint/rust/mcp.yml (group platform/lint/rust).

preset type parameters covers
filesystem stdio root parameter in args
github stdio github_token parameter in env
bare-stdio stdio none the zero-parameter install path
docs-http http host, token headers, rules, and {host} in two fields
events-sse sse host no headers, no rules
oauth-http http none a full oauth block: clientId, callbackPort, scopes
oauth-stdio-invalid stdio none oauth on stdio; SK015 lint warning, not meant to install
docs-linked http host, access a linked description and a described, option-constrained parameter
docs-invalid stdio none an over-long description and an unused region parameter entry; SK018/SK019 lint warnings, not meant to install
tooling/tooling-registry stdio profile, registry_url group-scoped, both parameters in two fields each
platform/lint/lint-registry stdio profile, registry_url group-scoped, two group levels
platform/lint/rust/rust-registry stdio profile, registry_url group-scoped, three group levels, the deepest group

Parameters are never declared. They are discovered by scanning url, header values, command, args, env values, and rules for {name} placeholders, and a name repeated across fields is collected once. docs-http uses {host} in both url and rules and still has exactly two parameters; both of tooling-registry's parameters appear twice. A description is never scanned for placeholders: docs-linked's description mentions {host}, a real parameter of that same preset, and it still reaches the reader literally instead of being substituted.

Two more things fall out of this set:

  • Codex cannot express sse. Its native config takes stdio and http, so installing events-sse for codex is reported as skipped rather than attempted, while docs-http installs normally. A project-scoped codex install writes <project>/.codex/config.toml, like every other agent.
  • Group discovery depends on skills. A group's mcp.yml is only found when the group holds at least one resolvable skill, because group candidates come from the full group path (up to three segments) of each resolved skill's path. tooling qualifies through lint-skill and format-skill. docs-writing also qualifies but ships no mcp.yml, which covers the "group candidate with no file" branch.

Installing a preset writes raw parameter values to .skmcp.params.yml next to the agent's skills root. That file holds secrets verbatim and is never meant to be committed; SkillKeeper appends it to the target project's .gitignore on the first MCP install. This repository's own .gitignore lists it too, in case the repository is ever used as a target project.

Negative fixtures

deep-nesting/l2/l3/l4/too-deep-skill/SKILL.md sits four group levels deep. The limit is three, so it must not resolve, and SkillKeeper must not invent a shallower group (deep-nesting, deep-nesting/l2, or deep-nesting/l2/l3) and install it anyway. Every skill that does resolve is unaffected: an unresolvable path never fails the rest of the listing.

The core resolver returns a warning naming this path, along the lines of Unresolved SKILL.md at "deep-nesting/l2/l3/l4/too-deep-skill": nesting is deeper than 3 group levels; declare it in skillkeeper.repo.yaml to install it.

The CLI does surface that warning, on standard error, prefixed with the repository it came from. Any command that resolves skills prints it, so a misplaced skill is reported rather than silently absent:

$ skillkeeper skill install too-deep-skill --agent claude --project .
[skillkeeper-test-repo] Unresolved SKILL.md at "deep-nesting/l2/l3/l4/too-deep-skill": nesting is deeper than 3 group levels; declare it in skillkeeper.repo.yaml to install it.
Skill not found in any tracked repository: too-deep-skill

Both lines go to standard error and the command exits 1. The warning also appears on an ordinary successful install of any other skill, since resolution runs the same way -- which is what makes this fixture useful: it proves the warning survives to a front end instead of being swallowed by the resolver's caller.

skillkeeper.repo.yaml.example declares this exact path and renames it to rescued/rescued-skill, which is the documented escape hatch: an explicit path in the repository config reaches any depth.

requires/invalid-strict/SKILL.md is the second skill that must not resolve. Its skillkeeper.requires is a scalar where a list of strings is required, and the namespaced block is the strict half of the two spellings: a malformed value there fails the whole manifest rather than being coerced. The resolver reports Skipping invalid requires/invalid-strict/SKILL.md: "skillkeeper.requires" must be a list of strings, which repo lint reclassifies as SK003. The flat requires field would instead have coerced the value and kept the skill, which is exactly the difference this fixture pins.

documented-skill/RULES.md is a negative fixture of a different kind - it says so in its own text. It must never reach a guidance file, because the same skill ships a GUIDE.md.

text-hook-skill/hooks/region.txt contains two decoy lines that imitate a SkillKeeper region boundary. Install must encapsulate them so they cannot be mistaken for the real end of the region.

Things to try

  • Install documented-skill, script-skill, and tooling/lint-skill for one agent to get three guidance blocks in one file. Uninstall the middle one; the other two must survive, unchanged and in order.
  • Install docs-writing/changelog-skill for both codex and opencode, which share AGENTS.md, then uninstall it from one. The block must survive, because a block is only removed once no remaining installed skill claims it.
  • Install script-skill, then check ls -l: bin/run.sh and bin/check.py executable, lib/shared.sh not.
  • Edit docs-writing/readme-skill/SKILL.md, commit, sync, and confirm the skill reports an available update. Revert the edit and confirm the update clears - the content hash returns to its original value.
  • Add your own entry to hooks.PreToolUse in the agent's settings by hand, then install and uninstall json-hooks-skill with --allow-hooks. Your entry must be untouched throughout.
  • Install json-hooks-skill without --allow-hooks: the body installs and both hooks are skipped with a notice.
  • Delete an installed body file and run skillkeeper skill verify to see missing; edit one to see modified; add an unrecorded file to see extraneous. Then repair, which restores missing and modified but leaves extraneous alone - an unrecorded file is not part of the state the manifest describes, so repair has nothing to restore it to. Note that verify, repair, and uninstall take no --project flag: they act on the current directory, unlike install.
  • Delete an installed skill's .skid.yml and let reconciliation re-derive the install list from disk.
  • Run skillkeeper repo lint --path . and read the nine skill-dependency findings against the Skill dependencies table (ten in total, once oauth-stdio-invalid's SK015 is counted), then --json the same run and confirm the codes and severities match line for line.
  • Install requires/cross-group and then uninstall it. tooling/lint-skill came in as its dependency and ships a GUIDE.md, so its guidance block must survive - the dependency is still installed in its own right.

Layout

skillkeeper-test-repo/
  mcp.yml                        9 root presets, no group
  skillkeeper.repo.yaml.example  scheme 3 sample, inert

  minimal-skill/     SKILL.md
  documented-skill/  SKILL.md, GUIDE.md, RULES.md, reference/notes.md
  script-skill/      SKILL.md, RULES.md, bin/run.sh, bin/check.py, lib/shared.sh
  json-hooks-skill/  SKILL.md, GUIDE.md
                     hooks/pre-tool-use/{HOOK.md,hook.json}
                     hooks/post-tool-use/{HOOK.md,hook.json}
  text-hook-skill/   SKILL.md, hooks/{HOOK.md,region.txt}

  tooling/           mcp.yml
                     lint-skill/{SKILL.md,GUIDE.md}
                     format-skill/{SKILL.md,config/format.toml}
  docs-writing/      changelog-skill/{SKILL.md,RULES.md}
                     readme-skill/SKILL.md

  platform/lint/           mcp.yml
                           style-skill/SKILL.md
  platform/lint/rust/      mcp.yml
                           clippy-skill/SKILL.md

  requires/          chain-a/SKILL.md, chain-b/SKILL.md, chain-c/SKILL.md
                     flat-legacy/SKILL.md, both-forms/SKILL.md
                     duplicate/SKILL.md, missing-target/SKILL.md
                     cycle-a/SKILL.md, cycle-b/SKILL.md
                     cross-group/SKILL.md
                     declared-hook-missing/SKILL.md
                     missing-executable/SKILL.md
                     invalid-strict/SKILL.md    expected warning

  deep-nesting/l2/l3/l4/too-deep-skill/SKILL.md    expected warning

Every file carries a comment or a section explaining which behaviour it is there to exercise, so the fixture is readable without this README open alongside it.

Conventions

ASCII only, LF line endings, matching SkillKeeper's own rules - so this fixture never becomes the reason an encoding or line-ending check fails. .gitattributes pins LF on checkout, which matters because SkillKeeper hashes every managed file: a CRLF checkout would change a skill's content hash and make it look permanently modified against a manifest recorded on another platform.

License

MIT. See LICENSE.