Skip to content

feat: support custom install directory with --dir flag#651

Open
elliotllliu wants to merge 1 commit intovercel-labs:mainfrom
elliotllliu:feat/custom-install-dir
Open

feat: support custom install directory with --dir flag#651
elliotllliu wants to merge 1 commit intovercel-labs:mainfrom
elliotllliu:feat/custom-install-dir

Conversation

@elliotllliu
Copy link
Contributor

Summary

Closes #650

Adds a --dir <path> (-d) option to skills add that installs skills directly to a user-specified directory, bypassing agent detection.

Use cases

  • Custom agent platforms not yet in the registry
  • Self-hosted agent apps with non-standard skill locations
  • Testing and development workflows

Usage

npx skills add owner/repo --dir ./my-skills
npx skills add owner/repo -d /absolute/path/to/skills

When --dir is specified, skills are copied to <dir>/<skill-name>/ and agent selection is skipped entirely.

Changes

  • src/add.ts: Add dir to AddOptions, implement direct-to-directory installation in runAdd, parse --dir in parseAddOptions
  • src/cli.ts: Add --dir to help text

Testing

All 375 tests pass.

Add a `--dir <path>` option to `skills add` that installs skills
directly to a user-specified directory, bypassing agent detection.

This is useful for:
- Custom agent platforms not yet in the registry
- Self-hosted agent apps with non-standard skill locations
- Testing and development workflows

Usage:
  npx skills add owner/repo --dir ./my-skills
  npx skills add owner/repo --dir /absolute/path/to/skills

When `--dir` is specified, skills are copied (not symlinked) to
`<dir>/<skill-name>/`, and agent selection is skipped entirely.

Closes vercel-labs#650
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]: Support user-specified directory.

1 participant