Sources Configuration
Sources allow you to define where FastSkill should look for skills. The registry can discover skills from sources that providemarketplace.json files.
Configuration File
Create asources.toml file in your project root (same directory as .fastskill.yaml):
Source Types
Git Sources
Git sources reference a Git repository that contains skills:- Repository must contain
marketplace.jsonat the root - Marketplace.json should reference skills available in the repository
{url}/marketplace.json (fetched via raw content API)
Zip URL Sources
Zip URL sources reference a base URL where skills are available as ZIP files:- Base URL must serve
marketplace.json - Marketplace.json should include
download_urlfor each skill
{base_url}/marketplace.json
Local Sources
Local sources reference skills in a local directory:Marketplace.json Requirement
Only Git and Zip URL sources are supported in the registry because they can providemarketplace.json files. The registry will:
- Fetch
marketplace.jsonfrom the source URL - Cache the response for 5 minutes (TTL)
- Display skills from the marketplace in the web UI
marketplace.json will not appear in the registry.
Managing Sources
Adding a Source
Add a new source tosources.toml:
Removing a Source
Remove the source entry fromsources.toml or delete the file entry.
Best Practices
- Use descriptive names: Source names should clearly identify the source
- Version control: Keep
sources.tomlin version control - Update marketplace.json: Regularly regenerate marketplace.json when skills change
- HTTPS: Use HTTPS URLs for security
- Caching: Be aware that marketplace.json is cached for 5 minutes
Troubleshooting
Source Not Appearing in Registry
- Verify
marketplace.jsonexists at the expected URL - Check that the source type is
gitorzip-url(notlocal) - Ensure the URL is accessible and returns valid JSON
- Check server logs for fetch errors
Marketplace.json Not Found
- Verify the URL is correct
- Ensure
marketplace.jsonis at the root of the repository (for Git sources) - Check that the base URL is correct (for Zip URL sources)