agent-skill-kit-dependency-resolver
Resolve and topologically sort skill dependencies, enforce the spec §3.3 inversion rule (project→app→team→org), warn on unpinned versions, and fail-closed on incompatible range conflicts. Use when the user asks to check skill dependencies, sort skills by build order, detect cycles, or audit skill version pinning.
- License 许可
- Apache-2.0
- 最近更新
- 2026-08-25
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- agent-skill-kit-dependency-resolver
- tier
- org
- license
- Apache-2.0
- description
- Resolve and topologically sort skill dependencies, enforce the spec §3.3 inversion rule (project→app→team→org), warn on unpinned versions, and fail-closed on incompatible range conflicts. Use when the user asks to check skill dependencies, sort skills by build order, detect cycles, or audit skill version pinning.
- compatibility
- requires `skills-ref` CLI; reads SKILL.md files only — no network
03 SKILL.md 正文
Agent Skill Dependency Resolver
Wraps the skills-ref deps CLI. Walks a skill root, builds the dependency graph, runs DFS toposort, and reports order, cycles, inversions, unpinned warnings, and version-range conflicts.
When to use
- "Sort these skills in build order"
- "Are there any dependency cycles in my skills tree?"
- "Does any skill violate the org→team→app→project inversion rule?"
- "Are all my skill dependencies pinned?"
- "Two skills disagree on a dependency version — show me the conflict"
Invocation
skills-ref deps <root> [--format json|human] [--strict] [--extra-tiers a,b,c]
Output sections
| Section | Meaning |
|---|---|
order |
Topological order — earlier skills build first. |
cycles |
Each cycle as a list of names forming the closed walk. |
missing |
In-repo dependencies whose target skill does not exist in the tree. |
inversions |
Edges where from.tier < to.tier (forbidden by §3.3). |
conflicts |
E020_CONFLICTING_RANGES — two callers want incompatible ranges. |
unpinned |
W020_UNPINNED_DEPENDENCY — in-repo dep with no version pin. |
Exit codes
| Code | Meaning |
|---|---|
| 0 | clean |
| 1 | cycle, inversion, or conflict present |
| 2 | missing in-repo dependency target (or --strict warns) |
Tier-rank table
The §3.3 inversion check uses a numeric rank table — a skill at rank R may only depend on skills at rank ≤ R:
| Tier | Rank |
|---|---|
| company | -2 |
| enterprise | -1 |
| org | 0 |
| team | 1 |
| app / application | 2 |
| project | 3 |
Cross-repo edges are not ranked (the remote skill's tier is unknown without network access).
Reference
The resolver is implemented twice — .agents/skills/agent-skill-kit-commons/packages/mjs/ and .agents/skills/agent-skill-kit-commons/packages/py/. Both share the fixture suite under .agents/skills/agent-skill-kit-commons/fixtures/deps/ and the cross-runtime parity harness.
04 同仓库更多 Skills
validation_handoff
Forces the agent to conclude its response by generating a strict validation checklist and outlining pending actions, focusing heavily on defensive execution and edge-case testing.
project-ployglot-project-scafford
Scaffold a polyglot library project as TypeScript + Python twin packages under `packages/ts/` + `packages/py/`, with a shared `SPEC.md`, cross-language `tests/parity/fixtures.json`, side-by-side `examples/sdk/` + `examples/api/` documentation, per-package `Makefile`, and a root orchestrator that exposes `make ci`. Open-source friendly — no organization-specific paths or scopes baked in. Use when starting a new polyglot library, porting a single-language library to a twin, or auditing/regularizing an existing two-language repo against the canonical layout.
playwright-ui-locator
Auto-heal Playwright tests after a frontend developer changes a div's class, id, or other selector. Catches a failing Playwright test, captures the old vs new DOM tree, finds the element that drifted, derives the most stable replacement locator, and proposes the fix as a GitHub pull request (confident heals) or files a GitHub issue (ambiguous / element-removed cases) — never editing the working tree directly. Trigger when Playwright tests fail with "locator resolved to 0 elements", "Timeout waiting for selector", or after a UI refactor / class rename / Tailwind cleanup broke previously-passing tests.
org-learn-context-window
Distill the current conversation into a reusable command or skill artifact. Use when the user wants to capture a workflow they just executed (create a reusable slash command) or formalize a resolution/mistake/correction into a reusable skill so the same class of issue never recurs.
org-agent-skill-creator
Scaffold and validate scope-aware agent skills (company, enterprise, org, team, project, application). Use when the user asks to create a new agent skill, generate a SKILL.md file, scaffold a skill directory, or validate that existing skill directories meet SKILL_SPEC.md (frontmatter, naming rules, structure, scope/tier).
app-workshop-session-pdf-recap-next
Extract content from a workshop session PDF and produce a structured recap focused on (1) what was learned, (2) next steps, and (3) possible enhancements. Ingests a single PDF file path, parses session material (slides, transcripts, exercises, Q&A), and emits a Markdown report with Learning Recap, Next Steps, and Enhancement Opportunities sections with page-level traceability. Use when the user asks to "summarize a workshop", "recap a training PDF", "pull next steps from a session deck", or provides a workshop/seminar/tutorial PDF and wants a learn-and-act summary.