vibetrace-navigator
Skill1 starsChanged 15 days agoMITView on GitHub
Surgical codebase discovery, execution tracepath analysis, blast-radius verification, token-efficient source slicing, polyglot security & taint auditing (audit security), Sonar-grade code quality & cognitive complexity checks (audit quality), unified PR quality gates (review), LSP server management (tools install-lsp), and documentation RAG via VibeTrace CLI and MCP tools. Use this skill whenever exploring a repository, running security or code quality audits, consulting project or master documentation, tracing how an entry point reaches a target function, checking callers before refactoring, or reading specific symbol definitions without loading entire files.
- Reads credentials
In this repository9 other files it gives its agents.
- egm-bootstrapSkill
- egm-brainstormSkill
- egm-draftSkill
- egm-drift-reportSkill
- egm-resolveSkill
- egm-review-loopSkill
- egm-reviewSkill
- mcp-builderSkill
- open-code-reviewSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
When starting a coding task or refactoring, use the dedicated Vibecoding superpowers to complete tasks in one shot with zero broken callers:
- Very specific: line 23
When you need to thoroughly investigate an existing function or method before refactoring, get a complete 360° dossier—source slice, callee …
- Distinctive: line 30
Rule 1 Requirement: Never modify a function or method signature without inspecting all incoming callers first.
- Distinctive: line 37
Verify that modified function signatures across all staged git changes do not break or orphan incoming callers:
- Distinctive: line 143
Before modifying code or planning architecture, consult project-specific requirements, design specs, or global master tech-stack guidelines:
- Very specific: line 192
Before modifying a function or debugging a multi-hop flow, trace the exact hop-by-hop execution chain (Node_0 -> ...
- Very specific: line 274
When working in a workspace with multiple repositories (e.g.
- Distinctive: line 297
Before modifying a data model, API route, or function in one repository, check all callers across all member repositories:
- Distinctive: line 303
Search across all repositories simultaneously or limit search to a single member service:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
VibeTrace Navigator Skill
VibeTrace indexes the repository's Tree-sitter AST via its native hybrid Rust engine (vibetrace._rust_core, parallel ignore walker + rayon AST extraction + single-transaction SQLite WAL batching), call/inheritance graph (with exact 1-indexed call_line numbers), incremental & persistent LSP type resolution, SQLite FTS5 BM25 lexical index, documentation RAG catalogs (.md, .txt, .pdf), and optional local EmbeddingGemma 2 (256d Matryoshka) vectors in SQLite databases.
⚡ Supercharged 100% Vibecoding Workflow
When starting a coding task or refactoring, use the dedicated Vibecoding superpowers to complete tasks in one shot with zero broken callers:
1. One-Shot Task Bundle (bundle)
Get everything needed for a task—relevant architecture specs, target code implementation, callee contracts, caller blast radius, and sibling test fixtures—in a single token-budgeted payload (<= 1,500 tokens):
- MCP Tool:
vibetrace_get_vibe_bundle(intent="add auth token to middleware", token_budget=1500) - CLI:
uv run vibetrace bundle "add auth token to middleware" --budget 1500
2. 360° Symbol Diagnosis Meta-Endpoint (diagnose)
When you need to thoroughly investigate an existing function or method before refactoring, get a complete 360° dossier—source slice, callee contracts, all incoming callers with exact :L<line> call sites, transitive blast radius, linked architectural specs, and exercising test fixtures—in 1 single call:
- MCP Tool:
vibetrace_diagnose_symbol(symbol_name="upsert_node", max_depth=2) - REST API:
GET /api/diagnose?symbol=upsert_node - CLI:
uv run vibetrace diagnose upsert_node
3. Pre-Flight Caller Guard (guard)
Rule 1 Requirement: Never modify a function or method signature without inspecting all incoming callers first. The Caller Guard checks every caller in the AST graph, highlights exact call lines, and computes an active blast-radius advisory:
- MCP Tool:
vibetrace_check_caller_guard(symbol_name="upsert_node") - MCP Staged Check:
vibetrace_check_caller_guard(staged=True) - CLI:
uv run vibetrace guard upsert_node
3. Git Pre-Commit Blast-Radius Gate (guard --staged)
Verify that modified function signatures across all staged git changes do not break or orphan incoming callers:
- CLI (Advisory Check):
uv run vibetrace guard --staged - CLI (Strict Pre-Commit Gate):
uv run vibetrace guard --staged --strict
4. Architectural Split Path Audit & Code Review (audit splits)
Detect cross-module execution bifurcations (functions branching into 2+ external modules) and verify their normalized AST SHA-256 tripwires against .vibetrace/splits.toml:
- MCP Tool (Audit):
vibetrace_audit_splits(symbol="") - MCP Tool (Approve):
vibetrace_approve_split(symbol="reindex_all", status="approved", rationale="Verified orchestrator") - CLI:
uv run vibetrace audit splits/uv run vibetrace audit splits --approve/uv run vibetrace audit splits --ci --strict
5. Polyglot Security, IaC, Git Secret, Inter-Procedural Taint & CVE Audit (audit security)
Run Tree-sitter AST SAST (py, js, ts, tsx, go, rs), zero-dependency IaC scanning (Dockerfile, docker-compose.yml, K8s, GitHub Actions), Gitleaks-style git secret & Shannon entropy scanning (working tree + last 10 commits + tracked .env), regex ReDoS & complexity analysis (S6353, S5843, S8786/CWE-1333), inter-procedural positional argument-to-parameter taint reachability, language-aware auto-syncing CWE Top 25 / Semgrep YAML rules (.vibetrace/rules/*.yaml), and hydrated OSV.dev lockfile CVE scanning (uv.lock, bun.lock, poetry.lock, requirements.txt):
- MCP Tool (Audit):
vibetrace_audit_security(scope_path="", check_dependencies=True, analyze_taint=True) - MCP Tool (Remediate):
vibetrace_remediate_vulnerability(finding_id="", scope_path="") - MCP Tool (Approve Exception with Disposition Tag):
vibetrace_approve_security_exception(finding_id="SEC-...", rationale="No alternative API", tag="no-alternative") - Inline Auditable Suppression Tag:
# nosec [no-alternative]: reason(orrisk-accepted,false-positive,compensating-control) - CLI:
uv run vibetrace audit security --summary # <1 KB high-density findings matrix uv run vibetrace audit security --file <path> # Single-file Markdown audit report uv run vibetrace audit security --file <path> --json # Surgical single-file JSON for remediation uv run vibetrace audit security --staged # Pre-commit staged secret blocker uv run vibetrace audit security --image myapp:latest # Deep container OS CVE audit via Trivy uv run vibetrace audit security --skip-deps --ci uv run vibetrace audit security --fix uv run vibetrace audit security --sarif uv run vibetrace audit security --approve --tag no-alternative --rationale "Verified safe"
6. Transitive Dependency Graph Resolution & Diamond Conflict Detector (deps)
Locate upstream causation paths for any sub-dependency, render direct manifest trees, and detect multi-version diamond collisions:
- MCP Tool:
vibetrace_explain_dependency(package_name="certifi", action="why") - MCP Tool (Tree):
vibetrace_explain_dependency(action="tree", max_depth=3) - MCP Tool (Conflicts):
vibetrace_explain_dependency(action="conflicts") - CLI:
uv run vibetrace deps why certifi uv run vibetrace deps tree --depth 3 uv run vibetrace deps conflicts
7. Dependency Vulnerability Auto-Patcher & Reachability Triage (audit fix-deps)
Automatically bump vulnerable packages via native package managers (uv, bun, cargo, go) or safely record unpatched CVEs with 0 call edges in .vibetrace/security.toml:
- MCP Tool:
vibetrace_patch_dependency(package_name="requests", apply=True) - CLI:
uv run vibetrace audit fix-deps --apply - CLI (Suppress Unpatched):
uv run vibetrace audit fix-deps --suppress-unpatched
8. Automated PR Taint Bot & Inline Remediation Generator (audit pr-taint)
Generate ready-to-merge GitHub PR comments containing complete 3-hop taint traces and synthesized parameterized replacements:
- MCP Tool:
vibetrace_audit_pr_taint(base_ref="main") - CLI (Inspect PR diff):
uv run vibetrace audit pr-taint --base main - CLI (Auto-apply remediations):
uv run vibetrace audit pr-taint --apply - CLI (CI Summary):
uv run vibetrace audit pr-taint --output-md pr-review.md
9. Unified 1-Call AI Self-Review & Quality Gate (review)
Before completing any coding task or committing, run the single unified Quality Gate that executes Security + IaC + Git Secret + Inter-Procedural Taint, Split Path Audit, Hybrid Test Coverage Gate (instant AST test-caller reachability + coverage.xml/lcov.info line coverage with an 80% default target), and Caller Guard in one pass:
- MCP Tool:
vibetrace_review_changes(scope="changed", check_dependencies=False, min_coverage=80.0, enforce_coverage=False) - REST API:
GET /api/review?scope=changed&min_coverage=80 - CLI:
uv run vibetrace review/uv run vibetrace review --ci --strict --min-coverage 80
10. Sonar-Grade Code Quality & Cognitive Complexity Audit (audit quality)
Audit code for Cognitive Complexity (RSPEC-3776), deeply nested control flow (RSPEC-134), mergeable conditionals (RSPEC-1066), identical function bodies (RSPEC-4144), string literal duplication (RSPEC-1192), regex complexity & backtracking (RSPEC-6353, RSPEC-5843, RSPEC-8786), POSIX file permissions (RSPEC-2612), and dead code (RSPEC-1144) using native AST visitors combined with polyglot linters (Ruff, Biome, Clippy, PHPStan, RuboCop, ShellCheck, SQLFluff):
🤖 AI Agent Token-Efficient 2-Step Remediation Workflow:
To avoid context/terminal truncation on large repositories, follow this 2-step workflow:
- Phase 1: Executive Overview (
--summary, changed Git files by default or--allfor full repo):
Returns a 20-line matrix table (<1 KB) summarizing unapproved and approved counts by rule across all languages, without dumping full text.uv run vibetrace audit quality --summary uv run vibetrace audit quality --all --summary - Phase 2: Surgical Target Extraction (
--file <path>/--file <path> --json):
Returns focused single-file findings or compact, parseable JSON containing exactuv run vibetrace audit quality --file <target_file> uv run vibetrace audit quality --file <target_file> --json uv run vibetrace audit quality --file <target_file> --sonar # Optional Tier-2 SonarLint Java Enginestart_line,end_line,non_compliant_snippet,compliant_snippet, andremediation_guidancefor that file. - Automated Safe Fixes (
--fix):
Applies safe AST/linter transformations automatically (redundant parens, chained startswith tuples, import cleanup).uv run vibetrace audit quality --fix - Baseline Exceptions (
--approve):
Records unapproved findings intouv run vibetrace audit quality --approve --tag legacy --rationale "Technical debt baseline verified".vibetrace/quality.toml.
11. Automated Polyglot Tool & LSP Binary Installer (tools)
Auto-detects project languages and installs missing quality sub-engines (ruff, biome, phpstan, sonarlint-ls.jar) and Language Server Protocol binaries (basedpyright, typescript@7.0.2 native Go tsc --lsp) via vibetrace tools:
- CLI:
uv run vibetrace tools status # Check status of all ecosystem engines & SonarLint uv run vibetrace tools status --json # Machine-readable JSON status uv run vibetrace tools install sonar # Provision standalone SonarLint Java engine + analyzers uv run vibetrace tools install php # Provision standalone phpstan.phar uv run vibetrace tools install-lsp # Auto-install missing LSP servers for detected languages
Standard 4-Step Surgical Workflow (Docs -> Locate -> Trace/Impact -> Slice)
Step 0: Consult Project & Master Docs (docs)
Before modifying code or planning architecture, consult project-specific requirements, design specs, or global master tech-stack guidelines:
Scoping & Cross-Contamination Guardrails
- Default (
scope="local"): Searches only the current project's documentation catalogs defined in.vibetrace.toml. This prevents global generalities from contaminating project-specific truths. - Master Stack (
scope="global"): Explicitly queries your personal master documentation catalogs in~/.vibetrace/config.tomlfor standard stack playbooks. - Combined (
scope="all"): Searches both local and global documentation simultaneously using 2-stream hybrid Reciprocal Rank Fusion (RRF). - Answer Scope Tags: Each returned chunk is tagged with
[LOCAL:catalog]or[GLOBAL:catalog]so you always know the provenance of every document snippet.
Via MCP Tool
vibetrace_search_docs(query="<architecture, API contract, or standard>", scope="local", limit=5)vibetrace_list_doc_catalogs()vibetrace_check_docs_drift(sync=True)(audits documentation for dead or broken codebase symbol references)
Via CLI
# Add folders to local project catalog and index
uv run vibetrace docs catalog add core docs/
uv run vibetrace docs index
# Search documentation (defaults to local project docs)
uv run vibetrace docs search "authentication flow"
# Search master stack documentation
uv run vibetrace docs search "rust error handling pattern" --scope global
# Audit documentation for broken symbol references and sync links
uv run vibetrace docs check
uv run vibetrace docs sync-linksStep 1: Locate Symbols (search / summary)
Find the exact symbol name, qualified_name (ClassName.method_name), file path, and start_line..end_line using Hybrid Reciprocal Rank Fusion (RRF):
Via MCP Tool
vibetrace_semantic_search(query="<symbol or natural language intent>", limit=15)vibetrace_get_structural_summary(file_path="<path/to/file.py>")
Via CLI
uv run vibetrace search "database connection pool"
uv run vibetrace summary src/vibetrace/indexer/db.pyStep 2: Trace Execution Paths & Assess Blast Radius (trace / impact)
Before modifying a function or debugging a multi-hop flow, trace the exact hop-by-hop execution chain (Node_0 -> ... -> Node_k with :L<call_line>) or compute the 3-level caller blast radius:
Via MCP Tool
vibetrace_trace_path(from_symbol="<entry_point>", to_symbol="<target_symbol>", max_depth=6)vibetrace_get_call_stack(node_name="<symbol>", direction="both", depth=3)vibetrace_get_dependencies(file_path="<path/to/file.py>", reverse=False)vibetrace_impact_analysis(file_path="<path/to/file.py>")vibetrace_find_references(symbol_name="<ClassName.method_name>")
Via CLI
uv run vibetrace trace vibetrace_get_structural_summary get_file_structure
uv run vibetrace call-stack DocIndexService.index_catalog
uv run vibetrace dependencies src/vibetrace/docs/service.py --reverse
uv run vibetrace impact src/vibetrace/indexer/db.pyStep 3: Surgical Source Read (slice)
Once you know the target symbol, read only its exact source lines (start_line..end_line) and direct outgoing callee contracts—saving 85–95% of context window tokens compared to reading whole files:
Via MCP Tool
vibetrace_get_code_slice(symbol_name="IndexerDB.upsert_node", include_callees=True)
Via CLI
uv run vibetrace slice IndexerDB.upsert_node
uv run vibetrace slice extract --file src/vibetrace/indexer/parsers/python.pyKeeping the Index Fresh
VibeTrace uses its native Rust parallel workspace scanner (_rust_core.scan_and_parse_workspace) with SHA-256 content-hash tracking (indexed_files), incremental LSP resolution, and real-time throughput telemetry (files/s, elapsed time, nodes/edges summary):
# Full incremental index (LSP hybrid bridge is enabled by default; pass --no-lsp for AST-only)
uv run vibetrace index .
# Step-by-step diagnostic logging on stderr + .vibetrace/vibetrace.log (works on any subcommand)
uv run vibetrace index . --verbose
# Structured JSON telemetry output for CI / automation
uv run vibetrace index . --json
# Optional: encode local EmbeddingGemma 2 (256d MRL) vectors
uv run vibetrace index . --embed
# Watch mode with persistent warm LSP daemons
uv run vibetrace watch .Configuration (.vibetrace.toml) & Exclusions
Customize indexing, vectors, and quality/security gates in .vibetrace.toml (or via vibetrace config):
[indexer]
# Gitignore-style globs excluded from AST/LSP indexing and dead-code analysis
exclude_patterns = ["scratch/**", "scripts/**", "tests/e2e/**", "*.generated.*"]
lsp_mode = "auto" # "auto" | "always" | "off"
[vectors]
codebase = false # true to compute 256d EmbeddingGemma 2 vectors during index
device = "gpu" # "gpu" (default, DirectML) | "cpu"
[lsp]
bin_dir = ".vibetrace/bin"
[lsp.servers.python]
mode = "local" # "local" (.vibetrace/bin or .vibetrace/tools) | "global" (PATH or explicit path)
path = ""
[quality]
include_tests = false
sonar_enabled = falseNote: After adding new paths to
exclude_patterns(or passvibetrace index . --exclude "scripts/**" --forceto update.vibetrace.tomland reindex in one step), runvibetrace index . --forceso previously indexed files in those folders are purged fromvibetrace.db.
🌐 Monorepos & Multi-Repo Federation Workflow
When working in a workspace with multiple repositories (e.g. frontend/, backend/, shared/) or a monorepo (packages/*, apps/*):
1. Zero-Complexity Workspace Setup (project init)
Initialize the umbrella .vibetrace-project.toml manifest with zero configuration. It automatically adopts the directory name as the project name and discovers all sub-packages:
# Auto-detects all member repos and names the project after the current folder:
uv run vibetrace project init
# Or initialize as a federated project directly:
uv run vibetrace init --project
# Index all member repositories into federated storage:
uv run vibetrace project index2. Inspecting Cross-Repository Contract Links (project links)
VibeTrace automatically matches client-side HTTP calls (e.g. Next.js fetch("/api/v1/orders")) to backend server route handlers (FastAPI @app.post("/api/v1/orders")):
- MCP Tool:
vibetrace_project_links() - CLI:
uv run vibetrace project links
3. Federated Cross-Repo Blast Radius Guard (project guard)
Before modifying a data model, API route, or function in one repository, check all callers across all member repositories:
- MCP Tool:
vibetrace_project_guard(symbol="process_payment") - CLI:
uv run vibetrace project guard process_payment
4. Federated vs. Scoped Search (project search)
Search across all repositories simultaneously or limit search to a single member service:
- MCP Tool:
vibetrace_project_search(query="checkout", repo="backend") - CLI (All Repos):
uv run vibetrace project search "checkout" - CLI (Scoped):
uv run vibetrace project search "checkout" --repo backend
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

