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
@@ -7,7 +7,7 @@ description: >
|
||||
fixes -> agent-author.
|
||||
allowed-tools: Bash Read
|
||||
metadata:
|
||||
version: "1.0.5"
|
||||
version: "1.0.6"
|
||||
category: factory
|
||||
source_keys:
|
||||
- agentskills-home
|
||||
|
||||
@@ -114,8 +114,47 @@ def _is_fs_root(path):
|
||||
return os.path.dirname(path) == path
|
||||
|
||||
|
||||
def _virtual_skill_names(pkg_dir):
|
||||
"""Skill names a package's manifest pulls from a SUBDIRECTORY of a git repo.
|
||||
|
||||
An apm dependency written `owner/repo/<path>/<skill>[#ref]` installs one
|
||||
skill out of someone else's repo (plugins/mattpocock does this for Matt
|
||||
Pocock's skills). Nothing of it exists under the monorepo, and the package
|
||||
directory has no apm_modules/ (ADR-0026), so without this the name dangles
|
||||
for every skill that routes to it. The skill's name is the last path
|
||||
segment; apm deploys it under that name. Needs no network and no install,
|
||||
which is what keeps the verdict the same on a fresh clone.
|
||||
|
||||
Only the string form counts. A whole-repo dependency (`host/owner/repo`,
|
||||
e.g. TOD) names no skill, and a dict entry is a package, not a skill: the
|
||||
`path:` branch of _declared_dependency_dirs already resolves those.
|
||||
"""
|
||||
manifest = os.path.join(pkg_dir, 'apm.yml')
|
||||
if not os.path.isfile(manifest):
|
||||
return set()
|
||||
try:
|
||||
data = yaml.safe_load(read_text(manifest)) or {}
|
||||
except Exception:
|
||||
return set()
|
||||
deps = data.get('dependencies') if isinstance(data, dict) else None
|
||||
deps = deps.get('apm') if isinstance(deps, dict) else None
|
||||
if not isinstance(deps, list):
|
||||
return set()
|
||||
found = set()
|
||||
for entry in deps:
|
||||
if not isinstance(entry, str) or ':' in entry or entry.startswith('git@'):
|
||||
continue
|
||||
segments = [seg for seg in re.split(r'[#@]', entry)[0].strip().strip('/').split('/') if seg]
|
||||
if segments and '.' in segments[0]:
|
||||
segments = segments[1:] # a host prefix is not part of owner/repo/path
|
||||
if len(segments) >= 3:
|
||||
found.add(segments[-1].lower())
|
||||
return found
|
||||
|
||||
|
||||
def _collect_package(pkg_dir, names):
|
||||
"""Add every skill/agent name a package directory exposes, any layout."""
|
||||
names.update(_virtual_skill_names(pkg_dir))
|
||||
# glob.escape() the DIRECTORY only. A checkout path containing `[`, `]`,
|
||||
# `*` or `?` — a worktree named `feature[2]`, say — otherwise turns the
|
||||
# whole pattern into a character class that matches nothing, and the
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
name: kyberforge
|
||||
version: 2.2.0
|
||||
version: 2.2.1
|
||||
description: Skills and agents for creating, maintaining, and managing an apm plugin marketplace for Claude Code and GitHub Copilot.
|
||||
author:
|
||||
name: Defame1297
|
||||
|
||||
Reference in new issue
Block a user