Initialize VectorCode with automatic configuration generation. Installs git hooks, generates vectorcode.include and vectorcode.exclude patterns based on project type. Use when user mentions "initialize VectorCode", "set up VectorCode", vectorcode.include, vectorcode.exclude, or VectorCode configuration.
/plugin marketplace add laurigates/claude-plugins/plugin install tools-plugin@lgates-claude-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
patterns.mdAutomate VectorCode setup with intelligent repository analysis and configuration generation.
This skill provides automatic VectorCode initialization for code repositories:
vectorcode init --hooksvectorcode.include with relevant file patternsvectorcode.exclude to skip common non-code files (build artifacts, dependencies, etc.)Invoke this skill when:
vectorcode.include or vectorcode.exclude filesBased on project type, create patterns like:
**/*.py, **/pyproject.toml, **/setup.py**/*.js, **/*.ts, **/*.jsx, **/*.tsx, **/package.json**/*.rs, **/Cargo.toml**/*.go, **/go.mod**/*.yaml, **/*.yml, **/*.json, **/*.toml**/*.md, **/*.rstCommon exclusions:
node_modules/, dist/, build/, .next/__pycache__/, *.pyc, .venv/, venv/, .pytest_cache/target/, out/, bin/, obj/vendor/, third_party/.vscode/, .idea/, *.swp.git/.cargo/, .npm/, pip-cache/Run vectorcode init --hooks to install:
After setup:
vectorcode ls to confirm project is indexedvectorcode vectorise for initial indexing✓ VectorCode initialized successfully!
**Git hooks installed:**
- post-commit → auto-index changed files
- post-merge → update index after merge
- post-checkout → refresh index on branch switch
**Configuration created:**
- `vectorcode.include` ({count} patterns for {project_types})
- `vectorcode.exclude` ({count} exclusion patterns)
**Next steps:**
1. Review patterns in `vectorcode.include` and `vectorcode.exclude`
2. Run `vectorcode vectorise .` to perform initial indexing
3. Use `vectorcode ls` to verify project is indexed
4. Query code with `vectorcode query "your search"`
VectorCode is already configured in this repository.
**Current setup:**
- Git hooks: {installed/not installed}
- Include patterns: {count} patterns in `vectorcode.include`
- Exclude patterns: {count} patterns in `vectorcode.exclude`
**Suggested improvements:**
{list any recommendations based on current project structure}
Would you like me to:
1. Add missing patterns for {detected project types}
2. Install/update git hooks
3. Regenerate configuration from scratch
When user has specific requirements:
I'll create a custom VectorCode configuration for your needs.
**Include patterns:** {custom patterns}
**Exclude patterns:** {custom patterns}
{explain reasoning for pattern choices based on user's requirements}
VectorCode uses gitignore-style patterns:
**/*.py - All Python files recursivelysrc/**/*.ts - TypeScript files under src/!important.log - Negation (include despite previous exclusion)*.test.js - Glob patterns supported! prefixHooks only index files matching include patterns and not matching exclude patterns. This keeps the index focused and performant.
If vectorcode command is not found:
VectorCode is not installed. Install it with:
**Using Homebrew:**
```bash
brew install vectorcode
Using cargo:
cargo install vectorcode
Then re-run initialization.
### Permission Issues
If hooks cannot be made executable:
```markdown
Failed to make git hooks executable. Run manually:
```bash
chmod +x .git/hooks/post-commit
chmod +x .git/hooks/post-merge
chmod +x .git/hooks/post-checkout
## Related Skills
- **VectorCode Search** - Semantic code search using VectorCode
- **Git Repo Detection** - Identify repository information
- **Shell Expert** - Shell scripting and command execution
## References
- [VectorCode Documentation](https://github.com/davidyz/vectorcode)
- [VectorCode MCP Server](https://github.com/modelcontextprotocol/servers/tree/main/src/vectorcode)
- `.claude/skills/vectorcode-init/patterns.md` - Common pattern reference
This skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.