Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new capsync install <reference> workflow for materializing a single skill into the configured skills_source/<slug>, complementing the existing repo-wide clone behavior.
Changes:
- Introduces a new
installservice that resolves explicit skill references, clones to a temp checkout, selects a skill directory, and copies it intoskills_source/<slug>. - Wires the
installcommand into the CLI with optional post-install sync via--no-sync. - Expands documentation and adds regression tests around reference parsing and install guardrails.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/install_test.rs | Adds parsing + checkout-install regression tests and guardrail coverage. |
| src/main.rs | Registers the new install module in the binary crate. |
| src/lib.rs | Exposes the new install module from the library crate. |
| src/install.rs | Implements install reference resolution, checkout scanning, and filesystem copy/install behavior. |
| src/cli.rs | Adds capsync install <reference> [--no-sync] command wiring and output. |
| README.md | Documents the clone vs install mental model and install usage. |
| documentation/how-it-works.md | Updates architecture + workflows to include install behavior. |
| documentation/agents.md | Updates command reference and troubleshooting to include install. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
capsync install <reference>as a new service for installing a single skill into the configuredskills_sourceskills.shskill URLs, GitHub tree URLs, andowner/repo/...skill refs) with temp-checkout-based installation and optional syncWhat changed
capsync install <reference> [--no-sync]SKILL.mdskills_source/<slug>skills_sourcethat is itself a git repo managed bycapsync clonecapsync syncautomatically unless--no-syncis passedclone= whole repo checkout inskills_sourceinstall= one skill copied intoskills_source/<slug>Supported install refs (v1)
https://skills.sh/owner/repo/skill-slughttp://skills.sh/owner/repo/skill-slughttps://github.com/owner/repo/tree/<branch>/path/to/skillowner/repo/skill-slugowner/repo/path/to/skillTesting
cargo fmtcargo clippycargo test