feat(mattpocock): replace bin's copies of Matt Pocock's skills with pinned upstream dependencies
Six skills in plugins/bin were hand-maintained copies of mattpocock/skills from the 1.0.x era (grill-me, grill-with-docs, tdd, prototype, improve-codebase-architecture, triage), most of them verbatim apart from link rewrites. They now come from upstream at v1.3.2 through the plugins/mattpocock wrapper, together with diagnosing-bugs. bin keeps its own diagnose, research, write-docs, caveman and zoom-out; diagnose stays alongside diagnosing-bugs until the two are compared and migrated. Moving them left four routing targets (tdd, triage, grill-with-docs, improve-codebase-architecture) resolving nowhere, which fails the corpus-wide backstop. The resolver now also learns the skills a plugin pulls from a third-party repo subpath (owner/repo/<path>/<skill>#ref), without a network or an apm_modules/ tree. A whole-repo dependency such as TOD names no skill and mints none. ADR-0029 records the decision and the rejected alternative of rewording the clauses. Impact: bin 1.1.9 -> 2.0.0 (skills removed, so bin-only consumers lose them and must add mattpocock); mattpocock 0.2.0; kyberforge 2.2.1 and factory-audit 1.0.6 for the resolver change; catalog 0.6.1. Upstream marks grill-me, grill-with-docs, triage and improve-codebase-architecture hand-invoked, so forge's Call of grill-with-docs is now blocked by the host and its inline fallback always runs. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
This commit is contained in:
1 parent
ad0067e9ad
commit
3407f787a3
30 files changed
+151
-1384
No files matched your search
@@ -1072,6 +1072,44 @@ body_case body-arrow-bare-not-notation silent "" \
|
||||
body_case body-fenced-example silent "" \
|
||||
$'```\nRun /no-such-fenced-skill instead.\n```'
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Skills a package pulls from a subdirectory of a third-party repo
|
||||
# ---------------------------------------------------------------------------
|
||||
# plugins/mattpocock declares `owner/repo/<path>/<skill>#ref` entries and ships no
|
||||
# skills of its own. A skill in ANOTHER plugin that routes to one of those names
|
||||
# must resolve, with no apm_modules/ and no install; a whole-repo dependency
|
||||
# (`host/owner/repo`) names no skill and must not mint one.
|
||||
echo ""
|
||||
echo "--- a name pulled from a third-party repo subpath resolves; a whole-repo dependency mints none ---"
|
||||
VROOT="$TMPDIR_T/virtual"
|
||||
write_skill "$VROOT/plugins/subject-plugin/.apm/skills/my-skill" my-skill \
|
||||
"Use when doing the thing. Not the other thing -> \`pulled-skill\`. Not a repo name -> \`whole-repo\`."
|
||||
mkdir -p "$VROOT/plugins/wrapper-plugin"
|
||||
cat > "$VROOT/plugins/wrapper-plugin/apm.yml" <<'YML'
|
||||
name: wrapper-plugin
|
||||
version: 0.1.0
|
||||
dependencies:
|
||||
apm:
|
||||
- someowner/somerepo/skills/engineering/pulled-skill#v1.0.0
|
||||
- code.example.com/someowner/whole-repo#v1.0.0
|
||||
mcp: []
|
||||
YML
|
||||
mkdir -p "$VROOT/plugins/wrapper-plugin/.apm/skills/anchor"
|
||||
write_skill "$VROOT/plugins/wrapper-plugin/.apm/skills/anchor" anchor "Use when anchoring."
|
||||
set +e
|
||||
VOUT="$(bash "$HOOK" "$VROOT/plugins/subject-plugin/.apm/skills/my-skill/SKILL.md" 2>&1)"
|
||||
set -e
|
||||
if [[ "$VOUT" != *"routes to 'pulled-skill'"* ]]; then
|
||||
pass "a skill pulled from a third-party repo subpath resolves"
|
||||
else
|
||||
fail "the subpath dependency did not resolve: $VOUT"
|
||||
fi
|
||||
if [[ "$VOUT" == *"routes to 'whole-repo'"* ]]; then
|
||||
pass "a whole-repo dependency does not mint a skill name"
|
||||
else
|
||||
fail "a whole-repo dependency resolved as a skill: $VOUT"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "Results: $PASS passed, $FAIL failed"
|
||||
[[ $FAIL -eq 0 ]]
|
||||
Reference in new issue
Block a user