Overview
Discovery commands help you find, index, and manage skills in your FastSkill ecosystem. These commands provide semantic search, vector indexing, and repository management capabilities.For detailed documentation on specific commands, see the dedicated command pages linked below.
Command Reference
fastskill search
Search for installed skills using semantic similarity with OpenAI embeddings. Returns ranked results based on semantic relevance.See search Command for complete documentation with output formats.
- Embeds query text using OpenAI’s
text-embedding-3-smallmodel - Searches vector index (SQLite database at
.claude/.fastskill/index.db) - Returns ranked results using cosine similarity
- File content is hashed (SHA256) to detect changes
<QUERY>: Search query (natural language)--format <FORMAT>: Output format:json,xml, ortext(default: text)--limit <N>: Maximum number of results to return (default: 10)--min-score <SCORE>: Minimum relevance threshold (0.0-1.0)
- text: Human-readable table with skill details
- json: Machine-readable array with relevance scores
- xml: Structured XML for API integration
fastskill reindex
Rebuild the vector search index by scanning all installed skills. Updates embeddings and similarity database.See reindex Command for complete documentation with concurrency options.
- Scans
.claude/skills/for all installed skills - Generates embeddings for SKILL.md content using OpenAI API
- Stores embeddings in SQLite database at
.claude/.fastskill/index.db - Tracks file hashes (SHA256) for change detection
- Skips unchanged files based on hash comparison
<SKILL_ID>: Reindex specific skill only (optional)--force: Force reindex all files (ignore hash cache)--max-concurrent <N>: Maximum concurrent embedding API requests (default: 10)
- After installing new skills
- After updating existing skills
- When search results are stale or incomplete
- When skill content has changed
fastskill sources
Manage skill sources (repositories) for discovering and installing skills. Supports multiple repository types with authentication and priority-based resolution.See sources Command for complete documentation with subcommands and authentication.
- Manages repository configuration in
skill-project.toml[tool.fastskill.repositories] - Supports multiple repository types:
git-marketplace,http-registry,zip-url,local - Handles authentication: PAT, SSH key, SSH, Basic Auth, API Key
- Implements priority-based conflict resolution (lower priority = higher precedence)
- Creates marketplace.json for git-marketplace repositories
pat: Personal Access Token (for git repositories)ssh-key: SSH key pathssh: SSH connectionbasic: Basic authentication (username/password)api-key: API key (for HTTP registries)
- Lower priority numbers are checked first
- Default priority: 0
- Higher priority values are checked later
fastskill registry
Legacy alias for sources command. Provides same functionality with different subcommand names.Search and Reindex Workflow
Initial Setup
After Updates
Adding New Skills
Performance Considerations
Reindexing
File Hash Detection:- Files are hashed with SHA256 to detect changes
- Unchanged files are skipped during reindex
- Use
--forceto bypass hash cache
- Embedding API requests are concurrent (default: 10)
- Use
--max-concurrentto control API rate limiting - Lower values reduce API rate limit errors
- Higher values speed up reindexing
Searching
Semantic Search:- Uses cosine similarity for ranking
- Embeddings are cached in SQLite database
- Search is O(log n) with vector index
- Use natural language queries (similar to SKILL.md descriptions)
- Include relevant domain terms
- Try different query phrasings for better results
Troubleshooting
Search returns no results
Search returns no results
Reindex fails
Reindex fails
OpenAI API key not set: Set
OPENAI_API_KEY environment variable.API rate limit errors: Reduce concurrent requests with
--max-concurrent 3.Network errors: Check internet connectivity and OpenAI API status.
Repository not found
Repository not found
Best Practices
Reindex after changes
Always run
fastskill reindex after installing, updating, or modifying skills to keep search index current.Use natural language queries
Search queries work best with natural language that matches skill descriptions in SKILL.md files.
Organize repositories by priority
Set lower priority numbers for primary repositories to ensure preferred skills are discovered first.
Test repositories after configuration
Use
fastskill sources test <name> to verify repositories are accessible before using them.See Also
- Install Command - Install skills from repositories
- Sources Command - Complete sources management documentation
- Search Command - Detailed search command documentation
- Embedding Search - Semantic search architecture details
- Repository System - Repository types and configuration