Import custom skills from GitHub URLs#602
Merged
Merged
Conversation
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.
What
Add GitHub URL import support for custom skills, including folder imports with
SKILL.mdand optionalskill.jsonmetadata.Why
Paperhug should be usable as an external installable skill without shipping Paperhug-specific code inside CrewCMD. A user can paste a GitHub skill folder URL, keep env vars in CrewCMD's vault, assign the imported skill to an OpenClaw-backed agent, and let the runtime execute the installed CLI locally.
How
/api/skills/importnow supportsprovider: "github"withsourceUrlorurlpointing at a GitHub tree/blob/raw skill path.SKILL.md, strips frontmatter before storing content, reads optionalskill.jsonormetadata.json, and stores source metadata/config schema on the normal skill row.companyId.Checklist
pnpm typecheckpassespnpm testpassespnpm buildpassesNotes:
Exact targeted test command:
pnpm test -- src/app/api/skills/import/route.test.ts src/lib/skill-config-form.test.ts.pnpm lint:checkpasses with existing warnings.pnpm buildpasses with the existing Turbopack NFT warning fromnext.config.ts/src/lib/openclaw-config-parser.ts/src/app/api/runtimes/probe/route.ts.