Repository navigation
Add skillgraph: checker and language server for Agent Skills - #3195
Draft
Dominic Nguyen (datduyng) wants to merge 7 commits into
Draft
Dominic Nguyen (datduyng) wants to merge 7 commits into
Dominic Nguyen (datduyng) wants to merge 7 commits into
Conversation
Builds a deterministic graph of skill docs, references, anchors, and script flags. Reports broken links, unknown flags, missing skills, and orphan files via CLI (check/graph/refs) and LSP.
Comment on lines
+112
to
+113
| /Document roots available to the parser:\s*([\s\S]*?)(?:\n\s*\n)/ | ||
| .exec(body)?.[1] |
- Orphans: only files beside referenced ones; drop name allowlist - Help: subcommands only from Commands sections - Flags: confirm unlisted flags by probing (clap hidden flags) - Shell: prompted fences treat unprompted lines as output - Links: skip links out of the skill into missing dirs (site routes)
- powershell/pwsh/ps1 fences: PS prompts, backtick continuation, & call operator, cmdlets skipped, pwsh -File unwrapped - .ps1 param() blocks become flags; matched case-insensitive by prefix - [CmdletBinding()] adds common parameters (-Verbose, -WhatIf, ...)
# Conflicts: # ts/pnpm-lock.yaml
This branch has not been deployed
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.
Adds
@typeagent/skillgraph. It builds a deterministic graph of Agent Skills (SKILL.md, references, scripts) and checks it.What it reports
--help)skill://referencesInterfaces
skillgraph check | graph | refs | lspSkillGraph,SpecStore,parseMarkdownVerification
pnpm run build,pnpm test(2 passing), and prettier passskillgraph check --root test/fixtures/skills --no-probereports the 3 seeded errors and 1 orphanpnpm-lock.yamlwas regenerated with pnpm 11.9.0. The jest peer re-resolution causes the unrelated lockfile churn.