Feature Request: Support for Private Git Repositories and npm Packages #2
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rtlabs-llm-agents/agent-skills-cli#2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🎯 Summary
Add support for installing skills from:
🔍 Current Limitation
Currently,
agent-skills-clionly supports:Example that doesn't work:
💡 Use Cases
1. Enterprise Private GitLab/Bitbucket
Many organizations use self-hosted Git servers for internal tools:
2. npm Registry Distribution
Organizations often distribute internal tools via npm registries:
🛠️ Proposed Solution
Option 1: Generic Git URL Support
Support any Git URL format with authentication:
Option 2: npm Package Support
Add npm as a source type:
Option 3: Configuration File
Support a
.skillsrcconfig file:📝 Implementation Details
Git Authentication
GIT_TOKEN,GITLAB_TOKENnpm Authentication
~/.npmrcfor registry config.npmrcin project directoryPackage Structure Detection
Both Git and npm sources should support the same skill structure:
🌟 Benefits
📚 Related Projects
npx,bunx,degit🙏 Additional Context
We're building a comprehensive code review skill (
@sqb/code-review-skills) distributed via:git.wosai-inc.com/ITFE/code-review-skills@sqb/code-review-skillsCurrently, users without GitLab access cannot use agent-skills-cli, forcing them to use alternative installation methods. Supporting npm would enable broader adoption.
Hi @yorickshan, Thank you for the feature suggestion! I really appreciate the idea. I'll add this new feature and have it ready by tomorrow. Great suggestion!
Hey! @yorickshan, This feature has been fully implemented and is now available. Here's what's included:
Note on
--registry: You only need this flag if your private registry isn't already configured in your.npmrc. Ifnpm install @sqb/...works in your terminal,npx agent-skills-cli@latest installwill automatically pick it up without the flag!🔐 Private Git Repos
npx agent-skills-cli@latest install [email protected]:team/repo.gitnpx agent-skills-cli@latest install https://git.company.com/team/repo --token=xxxnpx agent-skills-cli@latest install https://bitbucket.org/team/repogit.wosai-inc.com/owner/repo--tokenflag → env vars (GH_TOKEN,GITLAB_TOKEN,BITBUCKET_TOKEN,GIT_TOKEN) → SSH keys → git credential helper →.netrc📦 npm Packages
npx agent-skills-cli@latest install npm:chalknpx agent-skills-cli@latest install npm:@company/[email protected]npx agent-skills-cli@latest install npm:@company/skills --registry https://npm.company.com⚙️
.skillsrcConfigurationTry it out, test it, and feel free to suggest any new features or improvements! 🚀
Nice work, thx for your efforts!
You're welcome! Glad you found it helpful! 😊