Skip to content

feat: add skills info command#659

Open
elliotllliu wants to merge 1 commit intovercel-labs:mainfrom
elliotllliu:feat/skills-info-command
Open

feat: add skills info command#659
elliotllliu wants to merge 1 commit intovercel-labs:mainfrom
elliotllliu:feat/skills-info-command

Conversation

@elliotllliu
Copy link
Contributor

Summary

Fixes #529 — adds a skills info command to retrieve and display skill metadata and SKILL.md content.

Usage

# View info for an installed skill
npx skills info my-skill

# View info for a remote skill (fetches from GitHub)
npx skills info vercel-labs/agent-skills@pr-review

What it shows

Installed skills:

  • Source, type, URL, path
  • Install/update timestamps
  • SKILL.md content (fetched from GitHub, frontmatter stripped)

Remote skills (owner/repo@skill):

  • Tries common paths (.claude/skills/, skills/, root)
  • Displays SKILL.md content

Changes

  • New src/info.ts with runInfo() function
  • Registered info command in src/cli.ts
  • Updated help text and examples

Add a new `skills info` command that retrieves and displays
skill metadata and SKILL.md content:

  npx skills info my-skill           # installed skill
  npx skills info owner/repo@skill   # remote skill

For installed skills, shows source, type, URL, path, and dates,
then fetches and displays the SKILL.md content.

For remote skills (owner/repo@skill format), tries common paths
(.claude/skills/, skills/, root) to find and display the SKILL.md.

Fixes vercel-labs#529
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add skills info <skill> command (or API endpoint) to retrieve skill content

1 participant