.claude/skills/graph-query/SKILL.md
--- context: fork --- # /graph-query Query the vault's knowledge graph index using natural language or structured queries. ## Usage ``` /graph-query ADRs with status proposed /graph-query high priority tasks /graph-query orphaned notes /graph-query broken links /graph-query backlinks to Project - MyProject /graph-query --type=Adr --status=accepted ``` ## Instructions When the user invokes `/graph-query` or asks to query the graph index: ### Phase 1: Ensure Index Exists Before executing a
npx skillsauth add DavidROliverBA/ArchitectKB .claude/skills/graph-queryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Query the vault's knowledge graph index using natural language or structured queries.
/graph-query ADRs with status proposed
/graph-query high priority tasks
/graph-query orphaned notes
/graph-query broken links
/graph-query backlinks to Project - MyProject
/graph-query --type=Adr --status=accepted
When the user invokes /graph-query or asks to query the graph index:
Before executing any query, check if the graph index exists:
Check if .graph/index.json exists
If not found, inform the user and offer to build it:
The graph index needs to be generated first.
Running: npm run graph:build
Execute: npm run graph:build
If index exists but is stale (>1 day old), optionally suggest rebuilding
Understand what the user is asking for. The query system supports:
Natural Language Patterns:
| Pattern | Interpretation |
|---------|----------------|
| "ADRs with status proposed" | --type=Adr --status=proposed |
| "high priority tasks" | --type=Task --priority=high |
| "active projects" | --type=Project --status=active |
| "orphaned notes" | --orphans |
| "broken links" | --broken-links |
| "stale notes" | --stale |
| "meetings about kafka" | --type=Meeting --search=kafka |
| "backlinks to X" | --backlinks="X" |
| "notes mentioning aws" | --search=aws |
Structured Parameters:
| Parameter | Description | Example |
|-----------|-------------|---------|
| --type= | Filter by note type | --type=Adr, --type=Project |
| --status= | Filter by status | --status=proposed, --status=active |
| --priority= | Filter by priority | --priority=high |
| --search= | BM25 relevance search (ranked results) | --search="kafka integration" |
| --backlinks= | Find notes linking to target | --backlinks="Project - MyProject" |
| --orphans | List orphaned notes | |
| --broken-links | List broken wiki-links | |
| --stale | List notes >6 months old | |
| --stats | Show index statistics | |
| --json | Output as JSON with scores | |
Run the appropriate command:
# Natural language query
node scripts/graph-query.js "ADRs with status proposed"
# Structured query
node scripts/graph-query.js --type=Adr --status=proposed
# Special queries
node scripts/graph-query.js --orphans
node scripts/graph-query.js --broken-links
node scripts/graph-query.js --stats
# JSON output (for further processing)
node scripts/graph-query.js --type=Task --priority=high --json
Present results as a markdown table. For search queries, results are ranked by BM25 relevance score:
## Search Results
Found **X** result(s) for: "kafka integration"
| Score | Type | Title |
|-------|------|-------|
| 14.65 | Page | Kafka Integration Solution Architecture |
| 11.32 | Integration | ERP → Data Lake |
| 9.45 | System | Data Platform |
*Results ranked by BM25 relevance score (higher = more relevant)*
For type/status queries (no search term), show standard format:
## Query Results
Found **X** result(s) for: "ADRs with status proposed"
| Type | Status | Priority | Title |
|------|--------|----------|-------|
| Adr | proposed | high | ADR - API Gateway Selection |
| Adr | proposed | medium | ADR - Event Streaming Platform |
### Quick Actions
- View a note: `[[ADR - API Gateway Selection]]`
- Find related: `/graph-query backlinks to "ADR - API Gateway Selection"`
- Check quality: `/graph-query --stats`
For special queries like orphans or broken links, format appropriately:
## Orphaned Notes Report
Found **8** orphaned notes (notes with no backlinks)
| Type | Title | Last Modified |
|------|-------|---------------|
| Page | Database Migration Checklist | 2025-11-15 |
| Project | Research - Event-Driven Architecture | 2025-10-20 |
### Recommendations
- Consider linking from relevant MOCs
- Archive if no longer needed
- Use `/archive <note>` to soft-archive
/graph-query all ADRs
/graph-query projects
/graph-query active tasks
/graph-query meetings
/graph-query ADRs with status proposed
/graph-query high priority tasks
/graph-query completed projects
/graph-query draft ADRs
/graph-query notes about kafka
/graph-query mentions of aws bedrock
/graph-query "integration pattern"
/graph-query backlinks to Project - MyProject
/graph-query orphaned notes
/graph-query broken links
/graph-query stale notes
/graph-query --stats
.graph/ directory (git-ignored)npm run graph:buildnpm run graph:watch for automatic rebuilding during active work--json for full results/orphans - Dedicated orphan analysis with recommendations/broken-links - Detailed broken link analysis with fixes/quality-report - Comprehensive vault quality report/vault-maintenance - Full maintenance check including graph analysistools
--- context: fork --- # /youtube Save a YouTube video as both a Weblink (quick reference) and a detailed Page (full analysis). ## Usage ``` /youtube <url> /youtube <url> <optional title override> ``` ## Examples ``` /youtube https://www.youtube.com/watch?v=0TpON5T-Sw4 /youtube https://youtu.be/abc123 AWS re:Invent Keynote ``` ## Prerequisites This skill uses the MCP Docker YouTube tools: - `mcp__MCP_DOCKER__get_video_info` - Video metadata - `mcp__MCP_DOCKER__get_transcript` - Full trans
data-ai
Create and manage git worktrees for parallel agent sessions
testing
--- context: fork --- # /wipe Generate a context handoff summary, clear the session, and resume in a fresh conversation. Detects environment and provides automated (tmux) or manual workflow. ## Usage ``` /wipe /wipe quick # Minimal handoff, just essentials /wipe detailed # Comprehensive handoff with full context ``` ## Instructions When the user invokes `/wipe`: ### Phase 1: Detect Environment First, check the terminal environment: ```bash echo "Environment Detection:"
data-ai
--- context: fork --- # /weekly-summary Generate comprehensive weekly summary from daily notes, meetings, tasks, and project updates using parallel sub-agents. ## Usage ``` /weekly-summary /weekly-summary --last-week /weekly-summary --from 2026-01-01 --to 2026-01-07 /weekly-summary --output page # Create Page note instead of just outputting ``` ## Instructions This skill uses **5 parallel sub-agents** to gather data concurrently from different vault areas, then synthesizes a comprehensi