@rkarim08/sia 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +35 -0
- package/.claude-plugin/plugin.json +27 -0
- package/.mcp.json +13 -0
- package/CLAUDE.md +226 -0
- package/LICENSE +202 -0
- package/PLUGIN_README.md +253 -0
- package/README.md +1013 -0
- package/agents/sia-changelog-writer.md +89 -0
- package/agents/sia-code-reviewer.md +86 -0
- package/agents/sia-conflict-resolver.md +100 -0
- package/agents/sia-convention-enforcer.md +69 -0
- package/agents/sia-debug.md +106 -0
- package/agents/sia-decision-reviewer.md +101 -0
- package/agents/sia-dependency-tracker.md +80 -0
- package/agents/sia-explain.md +126 -0
- package/agents/sia-feature.md +116 -0
- package/agents/sia-knowledge-capture.md +117 -0
- package/agents/sia-lead-architecture-advisor.md +93 -0
- package/agents/sia-lead-team-health.md +107 -0
- package/agents/sia-migration.md +100 -0
- package/agents/sia-onboarding.md +115 -0
- package/agents/sia-orientation.md +99 -0
- package/agents/sia-pm-briefing.md +106 -0
- package/agents/sia-pm-risk-advisor.md +82 -0
- package/agents/sia-qa-analyst.md +116 -0
- package/agents/sia-qa-regression-map.md +94 -0
- package/agents/sia-refactor.md +115 -0
- package/agents/sia-regression.md +112 -0
- package/agents/sia-security-audit.md +125 -0
- package/agents/sia-test-advisor.md +91 -0
- package/hooks/hooks.json +98 -0
- package/migrations/bridge/001_initial.sql +34 -0
- package/migrations/episodic/001_initial.sql +35 -0
- package/migrations/meta/001_initial.sql +68 -0
- package/migrations/semantic/001_initial.sql +292 -0
- package/migrations/semantic/002_ontology.sql +89 -0
- package/migrations/semantic/003_freshness.sql +63 -0
- package/migrations/semantic/004_v5_unified_schema.sql +194 -0
- package/migrations/semantic/005_backfill_event_kinds.sql +8 -0
- package/migrations/semantic/006_tree_sitter.sql +6 -0
- package/migrations/semantic/007_branch_snapshots.sql +22 -0
- package/package.json +110 -0
- package/scripts/branch-switch.sh +13 -0
- package/scripts/build-wasm-grammars.sh +81 -0
- package/scripts/post-compact.sh +8 -0
- package/scripts/post-tool-use.sh +10 -0
- package/scripts/pre-compact.sh +8 -0
- package/scripts/session-end.sh +8 -0
- package/scripts/session-start.sh +8 -0
- package/scripts/start-mcp.ts +45 -0
- package/scripts/stop-hook.sh +8 -0
- package/scripts/user-prompt-submit.sh +8 -0
- package/scripts/viz-server.ts +152 -0
- package/skills/sia-brainstorm/SKILL.md +156 -0
- package/skills/sia-brainstorm/scripts/frame-template.html +214 -0
- package/skills/sia-brainstorm/scripts/helper.js +95 -0
- package/skills/sia-brainstorm/scripts/server.cjs +338 -0
- package/skills/sia-brainstorm/scripts/start-server.sh +153 -0
- package/skills/sia-brainstorm/scripts/stop-server.sh +55 -0
- package/skills/sia-brainstorm/spec-document-reviewer-prompt.md +49 -0
- package/skills/sia-brainstorm/visual-companion.md +286 -0
- package/skills/sia-capture/SKILL.md +64 -0
- package/skills/sia-compare/SKILL.md +33 -0
- package/skills/sia-conflicts/SKILL.md +38 -0
- package/skills/sia-debug-workflow/SKILL.md +120 -0
- package/skills/sia-debug-workflow/root-cause-tracing.md +70 -0
- package/skills/sia-debug-workflow/scripts/find-polluter.sh +64 -0
- package/skills/sia-debug-workflow/temporal-investigation.md +72 -0
- package/skills/sia-digest/SKILL.md +23 -0
- package/skills/sia-dispatch/SKILL.md +69 -0
- package/skills/sia-dispatch/agent-task-template.md +99 -0
- package/skills/sia-doctor/SKILL.md +39 -0
- package/skills/sia-execute/SKILL.md +70 -0
- package/skills/sia-execute-plan/SKILL.md +85 -0
- package/skills/sia-export-import/SKILL.md +49 -0
- package/skills/sia-export-knowledge/SKILL.md +46 -0
- package/skills/sia-finish/SKILL.md +100 -0
- package/skills/sia-finish/pr-summary-template.md +54 -0
- package/skills/sia-freshness/SKILL.md +38 -0
- package/skills/sia-history/SKILL.md +42 -0
- package/skills/sia-impact/SKILL.md +70 -0
- package/skills/sia-index/SKILL.md +54 -0
- package/skills/sia-install/SKILL.md +39 -0
- package/skills/sia-lead-compliance/SKILL.md +16 -0
- package/skills/sia-lead-drift-report/SKILL.md +16 -0
- package/skills/sia-lead-knowledge-map/SKILL.md +16 -0
- package/skills/sia-learn/SKILL.md +58 -0
- package/skills/sia-plan/SKILL.md +68 -0
- package/skills/sia-plan/plan-reviewer-prompt.md +63 -0
- package/skills/sia-playbooks/SKILL.md +29 -0
- package/skills/sia-playbooks/reference-feature.md +100 -0
- package/skills/sia-playbooks/reference-flagging.md +50 -0
- package/skills/sia-playbooks/reference-orientation.md +92 -0
- package/skills/sia-playbooks/reference-regression.md +115 -0
- package/skills/sia-playbooks/reference-review.md +64 -0
- package/skills/sia-playbooks/reference-tools.md +239 -0
- package/skills/sia-pm-decision-log/SKILL.md +28 -0
- package/skills/sia-pm-risk-dashboard/SKILL.md +24 -0
- package/skills/sia-pm-sprint-summary/SKILL.md +27 -0
- package/skills/sia-prune/SKILL.md +45 -0
- package/skills/sia-qa-coverage/SKILL.md +28 -0
- package/skills/sia-qa-flaky/SKILL.md +20 -0
- package/skills/sia-qa-report/SKILL.md +26 -0
- package/skills/sia-reindex/SKILL.md +30 -0
- package/skills/sia-review-respond/SKILL.md +88 -0
- package/skills/sia-review-respond/pushback-patterns.md +90 -0
- package/skills/sia-search/SKILL.md +47 -0
- package/skills/sia-setup/SKILL.md +82 -0
- package/skills/sia-setup/setup-checklist.md +97 -0
- package/skills/sia-stats/SKILL.md +36 -0
- package/skills/sia-status/SKILL.md +44 -0
- package/skills/sia-sync/SKILL.md +46 -0
- package/skills/sia-team/SKILL.md +64 -0
- package/skills/sia-test/SKILL.md +92 -0
- package/skills/sia-test/testing-anti-patterns.md +104 -0
- package/skills/sia-tour/SKILL.md +29 -0
- package/skills/sia-upgrade/SKILL.md +43 -0
- package/skills/sia-verify/SKILL.md +81 -0
- package/skills/sia-visualize/SKILL.md +28 -0
- package/skills/sia-visualize-live/SKILL.md +55 -0
- package/skills/sia-visualize-live/scripts/graph-template.html +389 -0
- package/skills/sia-visualize-live/scripts/start-visualizer.sh +161 -0
- package/skills/sia-visualize-live/scripts/stop-visualizer.sh +55 -0
- package/skills/sia-visualize-live/scripts/visualizer-server.cjs +264 -0
- package/skills/sia-workspace/SKILL.md +57 -0
- package/src/agent/claude-md-template-flagging.md +219 -0
- package/src/agent/claude-md-template.md +213 -0
- package/src/agent/modules/sia-feature.md +100 -0
- package/src/agent/modules/sia-flagging.md +50 -0
- package/src/agent/modules/sia-orientation.md +92 -0
- package/src/agent/modules/sia-regression.md +115 -0
- package/src/agent/modules/sia-review.md +64 -0
- package/src/agent/modules/sia-tools.md +239 -0
- package/src/ast/extractors/c-include.ts +189 -0
- package/src/ast/extractors/csharp-project.ts +260 -0
- package/src/ast/extractors/prisma-schema.ts +44 -0
- package/src/ast/extractors/project-manifest.ts +111 -0
- package/src/ast/extractors/sql-schema.ts +67 -0
- package/src/ast/extractors/tier-a.ts +423 -0
- package/src/ast/extractors/tier-b.ts +289 -0
- package/src/ast/extractors/tier-dispatch.ts +247 -0
- package/src/ast/index-worker.ts +108 -0
- package/src/ast/indexer.ts +484 -0
- package/src/ast/languages.ts +408 -0
- package/src/ast/pagerank-builder.ts +125 -0
- package/src/ast/path-utils.ts +137 -0
- package/src/ast/tree-sitter/backends/native.ts +57 -0
- package/src/ast/tree-sitter/backends/wasm.ts +39 -0
- package/src/ast/tree-sitter/call-walker.ts +44 -0
- package/src/ast/tree-sitter/edit-computer.ts +55 -0
- package/src/ast/tree-sitter/query-runner.ts +46 -0
- package/src/ast/tree-sitter/service.ts +174 -0
- package/src/ast/tree-sitter/tree-cache.ts +39 -0
- package/src/ast/tree-sitter/types.ts +79 -0
- package/src/ast/watcher.ts +322 -0
- package/src/capture/chunker.ts +169 -0
- package/src/capture/consolidate.ts +127 -0
- package/src/capture/edge-inferrer.ts +161 -0
- package/src/capture/embedder.ts +166 -0
- package/src/capture/embedding-cache.ts +73 -0
- package/src/capture/flag-processor.ts +64 -0
- package/src/capture/hook.ts +67 -0
- package/src/capture/pipeline.ts +450 -0
- package/src/capture/prompts/consolidate.ts +25 -0
- package/src/capture/prompts/edge-infer.ts +29 -0
- package/src/capture/prompts/extract-flagged.ts +36 -0
- package/src/capture/prompts/extract.ts +42 -0
- package/src/capture/tokenizer.ts +147 -0
- package/src/capture/track-a-ast.ts +93 -0
- package/src/capture/track-b-llm.ts +149 -0
- package/src/capture/types.ts +64 -0
- package/src/cli/commands/community.ts +137 -0
- package/src/cli/commands/compare.ts +123 -0
- package/src/cli/commands/conflicts.ts +41 -0
- package/src/cli/commands/digest.ts +197 -0
- package/src/cli/commands/disable-flagging.ts +34 -0
- package/src/cli/commands/doctor.ts +240 -0
- package/src/cli/commands/download-model.ts +161 -0
- package/src/cli/commands/enable-flagging.ts +34 -0
- package/src/cli/commands/export-knowledge.ts +208 -0
- package/src/cli/commands/export.ts +85 -0
- package/src/cli/commands/freshness.ts +164 -0
- package/src/cli/commands/graph.ts +51 -0
- package/src/cli/commands/history.ts +139 -0
- package/src/cli/commands/import.ts +335 -0
- package/src/cli/commands/install.ts +156 -0
- package/src/cli/commands/lead-report.ts +241 -0
- package/src/cli/commands/learn.ts +321 -0
- package/src/cli/commands/pm-report.ts +413 -0
- package/src/cli/commands/prune.ts +75 -0
- package/src/cli/commands/qa-report.ts +278 -0
- package/src/cli/commands/reindex.ts +104 -0
- package/src/cli/commands/rollback.ts +70 -0
- package/src/cli/commands/search.ts +103 -0
- package/src/cli/commands/server.ts +91 -0
- package/src/cli/commands/share.ts +33 -0
- package/src/cli/commands/stats.ts +79 -0
- package/src/cli/commands/status.ts +176 -0
- package/src/cli/commands/sync.ts +96 -0
- package/src/cli/commands/team.ts +118 -0
- package/src/cli/commands/tour.ts +157 -0
- package/src/cli/commands/visualize-live.ts +162 -0
- package/src/cli/commands/workspace.ts +117 -0
- package/src/cli/index.ts +424 -0
- package/src/cli/learn-progress.ts +87 -0
- package/src/community/detection-bridge.ts +344 -0
- package/src/community/leiden.ts +462 -0
- package/src/community/raptor.ts +210 -0
- package/src/community/scheduler.ts +74 -0
- package/src/community/summarize.ts +115 -0
- package/src/decay/archiver.ts +73 -0
- package/src/decay/bridge-orphan-cleanup.ts +212 -0
- package/src/decay/consolidation-sweep.ts +112 -0
- package/src/decay/decay.ts +116 -0
- package/src/decay/deep-validator.ts +62 -0
- package/src/decay/episodic-promoter.ts +132 -0
- package/src/decay/maintenance-scheduler.ts +326 -0
- package/src/decay/scheduler.ts +6 -0
- package/src/decay/session-sweeper.ts +79 -0
- package/src/decay/types.ts +17 -0
- package/src/freshness/confidence-decay.ts +122 -0
- package/src/freshness/cuckoo-filter.ts +176 -0
- package/src/freshness/deep-validation.ts +345 -0
- package/src/freshness/dirty-tracker.ts +237 -0
- package/src/freshness/file-watcher-layer.ts +119 -0
- package/src/freshness/firewall.ts +64 -0
- package/src/freshness/git-reconcile-layer.ts +161 -0
- package/src/freshness/inverted-index.ts +158 -0
- package/src/freshness/stale-read-layer.ts +222 -0
- package/src/graph/audit.ts +69 -0
- package/src/graph/bridge-db.ts +141 -0
- package/src/graph/communities.ts +195 -0
- package/src/graph/db-interface.ts +259 -0
- package/src/graph/edges.ts +163 -0
- package/src/graph/entities.ts +327 -0
- package/src/graph/episodic-db.ts +113 -0
- package/src/graph/flags.ts +31 -0
- package/src/graph/meta-db.ts +200 -0
- package/src/graph/semantic-db.ts +101 -0
- package/src/graph/session-resume.ts +56 -0
- package/src/graph/snapshots.ts +342 -0
- package/src/graph/staging.ts +151 -0
- package/src/graph/types.ts +128 -0
- package/src/hooks/adapters/claude-code.ts +21 -0
- package/src/hooks/adapters/cline.ts +43 -0
- package/src/hooks/adapters/cursor.ts +65 -0
- package/src/hooks/adapters/generic.ts +12 -0
- package/src/hooks/agent-detect.ts +34 -0
- package/src/hooks/claude-md-directives.ts +32 -0
- package/src/hooks/event-router.ts +182 -0
- package/src/hooks/extractors/pattern-detector.ts +111 -0
- package/src/hooks/handlers/post-compact.ts +30 -0
- package/src/hooks/handlers/post-tool-use.ts +403 -0
- package/src/hooks/handlers/pre-compact.ts +100 -0
- package/src/hooks/handlers/session-end.ts +47 -0
- package/src/hooks/handlers/session-start.ts +154 -0
- package/src/hooks/handlers/stop.ts +128 -0
- package/src/hooks/handlers/user-prompt-submit.ts +68 -0
- package/src/hooks/plugin-branch-switch.ts +68 -0
- package/src/hooks/plugin-common.ts +47 -0
- package/src/hooks/plugin-post-compact.ts +28 -0
- package/src/hooks/plugin-post-tool-use.ts +38 -0
- package/src/hooks/plugin-pre-compact.ts +37 -0
- package/src/hooks/plugin-session-end.ts +37 -0
- package/src/hooks/plugin-session-start.ts +75 -0
- package/src/hooks/plugin-stop.ts +61 -0
- package/src/hooks/plugin-user-prompt-submit.ts +47 -0
- package/src/hooks/types.ts +43 -0
- package/src/knowledge/discovery.ts +238 -0
- package/src/knowledge/external-refs.ts +98 -0
- package/src/knowledge/freshness.ts +221 -0
- package/src/knowledge/ingest.ts +330 -0
- package/src/knowledge/markdown-export.ts +229 -0
- package/src/knowledge/markdown-import.ts +359 -0
- package/src/knowledge/patterns.ts +74 -0
- package/src/knowledge/templates.ts +307 -0
- package/src/llm/ai-sdk-adapter.ts +46 -0
- package/src/llm/config.ts +88 -0
- package/src/llm/cost-tracker.ts +110 -0
- package/src/llm/prompts/extraction.ts +55 -0
- package/src/llm/prompts/summarization.ts +36 -0
- package/src/llm/prompts/validation.ts +37 -0
- package/src/llm/provider-registry.ts +68 -0
- package/src/llm/reliability.ts +179 -0
- package/src/llm/schemas.ts +52 -0
- package/src/mcp/freshness-annotator.ts +69 -0
- package/src/mcp/server.ts +949 -0
- package/src/mcp/tools/sia-ast-query.ts +225 -0
- package/src/mcp/tools/sia-at-time.ts +151 -0
- package/src/mcp/tools/sia-backlinks.ts +87 -0
- package/src/mcp/tools/sia-batch-execute.ts +169 -0
- package/src/mcp/tools/sia-by-file.ts +89 -0
- package/src/mcp/tools/sia-community.ts +113 -0
- package/src/mcp/tools/sia-doctor.ts +73 -0
- package/src/mcp/tools/sia-execute-file.ts +122 -0
- package/src/mcp/tools/sia-execute.ts +104 -0
- package/src/mcp/tools/sia-expand.ts +158 -0
- package/src/mcp/tools/sia-fetch-and-index.ts +241 -0
- package/src/mcp/tools/sia-flag.ts +65 -0
- package/src/mcp/tools/sia-index.ts +111 -0
- package/src/mcp/tools/sia-note.ts +134 -0
- package/src/mcp/tools/sia-search.ts +105 -0
- package/src/mcp/tools/sia-stats.ts +63 -0
- package/src/mcp/tools/sia-sync-status.ts +44 -0
- package/src/mcp/tools/sia-upgrade.ts +247 -0
- package/src/mcp/truncate.ts +231 -0
- package/src/native/bridge.ts +167 -0
- package/src/native/fallback-ast-diff.ts +144 -0
- package/src/native/fallback-graph.ts +325 -0
- package/src/ontology/constraints.ts +56 -0
- package/src/ontology/errors.ts +8 -0
- package/src/ontology/middleware.ts +266 -0
- package/src/retrieval/bm25-search.ts +151 -0
- package/src/retrieval/context-assembly.ts +76 -0
- package/src/retrieval/graph-traversal.ts +168 -0
- package/src/retrieval/pagerank.ts +40 -0
- package/src/retrieval/query-classifier.ts +106 -0
- package/src/retrieval/reranker.ts +156 -0
- package/src/retrieval/search.ts +236 -0
- package/src/retrieval/throttle.ts +102 -0
- package/src/retrieval/vector-search.ts +203 -0
- package/src/retrieval/workspace-search.ts +130 -0
- package/src/sandbox/context-mode.ts +285 -0
- package/src/sandbox/credential-pass.ts +55 -0
- package/src/sandbox/executor.ts +235 -0
- package/src/security/pattern-detector.ts +127 -0
- package/src/security/rule-of-two.ts +50 -0
- package/src/security/sanitize.ts +46 -0
- package/src/security/semantic-consistency.ts +93 -0
- package/src/security/staging-promoter.ts +154 -0
- package/src/shared/config.ts +302 -0
- package/src/shared/diagnostics.ts +210 -0
- package/src/shared/errors.ts +48 -0
- package/src/shared/git-utils.ts +143 -0
- package/src/shared/llm-client.ts +120 -0
- package/src/shared/logger.ts +99 -0
- package/src/shared/types.ts +79 -0
- package/src/sync/client.ts +43 -0
- package/src/sync/conflict.ts +106 -0
- package/src/sync/dedup.ts +183 -0
- package/src/sync/hlc.ts +117 -0
- package/src/sync/keychain.ts +144 -0
- package/src/sync/pull.ts +232 -0
- package/src/sync/push.ts +131 -0
- package/src/types/chokidar.d.ts +23 -0
- package/src/visualization/graph-renderer.ts +312 -0
- package/src/visualization/subgraph-extract.ts +208 -0
- package/src/visualization/views/community-clusters.ts +246 -0
- package/src/visualization/views/dependency-map.ts +189 -0
- package/src/visualization/views/graph-explorer.ts +364 -0
- package/src/visualization/views/timeline.ts +247 -0
- package/src/workspace/api-contracts.ts +226 -0
- package/src/workspace/cross-repo.ts +61 -0
- package/src/workspace/detector.ts +190 -0
- package/src/workspace/manifest.ts +141 -0
package/PLUGIN_README.md
ADDED
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
# SIA — Claude Code Plugin
|
|
2
|
+
|
|
3
|
+
Persistent graph memory for AI coding agents. SIA gives Claude Code cross-session memory via a bi-temporal knowledge graph.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
claude plugin add sia
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or for local development:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
claude --plugin-dir /path/to/sia
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Features
|
|
18
|
+
|
|
19
|
+
### MCP Tools (always available)
|
|
20
|
+
|
|
21
|
+
#### Search & Retrieval
|
|
22
|
+
|
|
23
|
+
| Tool | Description |
|
|
24
|
+
|---|---|
|
|
25
|
+
| `sia_search` | Semantic search across the knowledge graph |
|
|
26
|
+
| `sia_by_file` | Look up knowledge for a specific file |
|
|
27
|
+
| `sia_expand` | Explore entity neighborhoods (1-3 hops) |
|
|
28
|
+
| `sia_community` | Get community-level summaries |
|
|
29
|
+
| `sia_at_time` | Query the graph at a historical point |
|
|
30
|
+
| `sia_backlinks` | Find incoming edges to a node |
|
|
31
|
+
|
|
32
|
+
#### Knowledge Capture
|
|
33
|
+
|
|
34
|
+
| Tool | Description |
|
|
35
|
+
|---|---|
|
|
36
|
+
| `sia_note` | Record a Decision, Convention, Bug, Solution, or Concept |
|
|
37
|
+
| `sia_flag` | Flag current session for human review (writes to session_flags only) |
|
|
38
|
+
| `sia_index` | Index markdown/text content by chunking and scanning for entity references |
|
|
39
|
+
| `sia_fetch_and_index` | Fetch a URL, convert to markdown, and index |
|
|
40
|
+
|
|
41
|
+
#### Sandbox Execution
|
|
42
|
+
|
|
43
|
+
| Tool | Description |
|
|
44
|
+
|---|---|
|
|
45
|
+
| `sia_execute` | Execute code in an isolated sandbox |
|
|
46
|
+
| `sia_execute_file` | Execute an existing file in a sandbox subprocess |
|
|
47
|
+
| `sia_batch_execute` | Execute multiple operations in one call with precedes edges |
|
|
48
|
+
|
|
49
|
+
#### AST & Code Analysis
|
|
50
|
+
|
|
51
|
+
| Tool | Description |
|
|
52
|
+
|---|---|
|
|
53
|
+
| `sia_ast_query` | Run tree-sitter queries against source files for structural code analysis |
|
|
54
|
+
|
|
55
|
+
#### Branch Snapshots
|
|
56
|
+
|
|
57
|
+
| Tool | Description |
|
|
58
|
+
|---|---|
|
|
59
|
+
| `sia_snapshot_list` | List branch snapshots with timestamps and entity counts |
|
|
60
|
+
| `sia_snapshot_restore` | Restore graph state from a branch snapshot |
|
|
61
|
+
| `sia_snapshot_prune` | Remove snapshots for deleted or merged branches |
|
|
62
|
+
|
|
63
|
+
#### Diagnostics & Maintenance
|
|
64
|
+
|
|
65
|
+
| Tool | Description |
|
|
66
|
+
|---|---|
|
|
67
|
+
| `sia_stats` | Graph metrics — node/edge counts by type, optional session stats |
|
|
68
|
+
| `sia_doctor` | Run diagnostic checks on the installation |
|
|
69
|
+
| `sia_upgrade` | Self-update SIA to the latest version |
|
|
70
|
+
| `sia_sync_status` | Check team sync configuration and connection status |
|
|
71
|
+
|
|
72
|
+
### Skills (46 slash commands)
|
|
73
|
+
|
|
74
|
+
#### Core
|
|
75
|
+
|
|
76
|
+
| Skill | Description |
|
|
77
|
+
|---|---|
|
|
78
|
+
| `/sia-install` | Initialize SIA in current project |
|
|
79
|
+
| `/sia-search` | Guided search with examples |
|
|
80
|
+
| `/sia-stats` | Graph statistics |
|
|
81
|
+
| `/sia-status` | Knowledge graph health dashboard |
|
|
82
|
+
| `/sia-reindex` | Re-index repository code |
|
|
83
|
+
| `/sia-learn` | Build or refresh the complete knowledge graph |
|
|
84
|
+
| `/sia-playbooks` | Load task-specific playbooks (regression, feature, review, orientation) |
|
|
85
|
+
|
|
86
|
+
#### Knowledge Management
|
|
87
|
+
|
|
88
|
+
| Skill | Description |
|
|
89
|
+
|---|---|
|
|
90
|
+
| `/sia-capture` | Guided knowledge capture — decisions, conventions, bugs, solutions |
|
|
91
|
+
| `/sia-execute` | Run code in sandbox with knowledge capture |
|
|
92
|
+
| `/sia-index` | Index external content (text, URLs) |
|
|
93
|
+
| `/sia-workspace` | Manage cross-repo workspaces |
|
|
94
|
+
| `/sia-export-import` | Export/import graphs as portable JSON |
|
|
95
|
+
| `/sia-export-knowledge` | Export graph as human-readable KNOWLEDGE.md |
|
|
96
|
+
| `/sia-history` | Explore temporal knowledge evolution |
|
|
97
|
+
| `/sia-impact` | Analyze impact of planned code changes |
|
|
98
|
+
| `/sia-compare` | Compare graph state between two time points |
|
|
99
|
+
|
|
100
|
+
#### Development Workflow
|
|
101
|
+
|
|
102
|
+
| Skill | Description |
|
|
103
|
+
|---|---|
|
|
104
|
+
| `/sia-brainstorm` | Brainstorm features using graph context |
|
|
105
|
+
| `/sia-plan` | Write implementation plans with graph topology |
|
|
106
|
+
| `/sia-execute-plan` | Execute plans with staleness detection and convention checks |
|
|
107
|
+
| `/sia-dispatch` | Dispatch parallel agents with community-based independence verification |
|
|
108
|
+
| `/sia-test` | TDD guided by known edge cases and test conventions |
|
|
109
|
+
| `/sia-verify` | Verify work completeness against area-specific requirements |
|
|
110
|
+
| `/sia-debug-workflow` | Systematic debugging with temporal root-cause tracing |
|
|
111
|
+
| `/sia-finish` | Finish branches — semantic PR summaries from graph entities |
|
|
112
|
+
| `/sia-review-respond` | Respond to code review feedback with graph-backed evidence |
|
|
113
|
+
|
|
114
|
+
#### Maintenance
|
|
115
|
+
|
|
116
|
+
| Skill | Description |
|
|
117
|
+
|---|---|
|
|
118
|
+
| `/sia-doctor` | System health diagnostics |
|
|
119
|
+
| `/sia-digest` | Daily knowledge summary |
|
|
120
|
+
| `/sia-visualize` | Generate HTML graph visualization |
|
|
121
|
+
| `/sia-visualize-live` | Launch interactive browser-based graph visualizer |
|
|
122
|
+
| `/sia-freshness` | Graph freshness report |
|
|
123
|
+
| `/sia-conflicts` | List and resolve knowledge conflicts |
|
|
124
|
+
| `/sia-prune` | Remove archived entities |
|
|
125
|
+
| `/sia-upgrade` | Self-update SIA |
|
|
126
|
+
|
|
127
|
+
#### Onboarding
|
|
128
|
+
|
|
129
|
+
| Skill | Description |
|
|
130
|
+
|---|---|
|
|
131
|
+
| `/sia-setup` | Guided first-time setup with checklist |
|
|
132
|
+
| `/sia-tour` | Interactive guided tour of the knowledge graph |
|
|
133
|
+
|
|
134
|
+
#### Team Sync
|
|
135
|
+
|
|
136
|
+
| Skill | Description |
|
|
137
|
+
|---|---|
|
|
138
|
+
| `/sia-team` | Join, leave, or check team sync status |
|
|
139
|
+
| `/sia-sync` | Manual push/pull to/from team server |
|
|
140
|
+
|
|
141
|
+
#### QA & Testing Intelligence
|
|
142
|
+
|
|
143
|
+
| Skill | Description |
|
|
144
|
+
|---|---|
|
|
145
|
+
| `/sia-qa-report` | QA-focused report — risky areas, test priorities |
|
|
146
|
+
| `/sia-qa-coverage` | Test coverage gap analysis from the knowledge graph |
|
|
147
|
+
| `/sia-qa-flaky` | Track flaky test patterns and recurring failures |
|
|
148
|
+
|
|
149
|
+
#### Project Management Intelligence
|
|
150
|
+
|
|
151
|
+
| Skill | Description |
|
|
152
|
+
|---|---|
|
|
153
|
+
| `/sia-pm-sprint-summary` | Sprint summary in plain language for PMs |
|
|
154
|
+
| `/sia-pm-decision-log` | Chronological decision log with rationale |
|
|
155
|
+
| `/sia-pm-risk-dashboard` | Technical risk dashboard scored by impact |
|
|
156
|
+
|
|
157
|
+
#### Tech Lead Intelligence
|
|
158
|
+
|
|
159
|
+
| Skill | Description |
|
|
160
|
+
|---|---|
|
|
161
|
+
| `/sia-lead-drift-report` | Architecture drift report — decisions vs current code |
|
|
162
|
+
| `/sia-lead-knowledge-map` | Knowledge distribution map with bus-factor risks |
|
|
163
|
+
| `/sia-lead-compliance` | Convention compliance audit across the codebase |
|
|
164
|
+
|
|
165
|
+
### Subagents (23 agents)
|
|
166
|
+
|
|
167
|
+
| Agent | Purpose | Category |
|
|
168
|
+
|---|---|---|
|
|
169
|
+
| **Before Coding** | | |
|
|
170
|
+
| `sia-orientation` | Quick architecture Q&A — single focused answers | Onboarding |
|
|
171
|
+
| `sia-onboarding` | Comprehensive multi-topic onboarding session | Onboarding |
|
|
172
|
+
| `sia-decision-reviewer` | Decision archaeology — past choices and rejected alternatives | Planning |
|
|
173
|
+
| `sia-explain` | Explains SIA's tools, graph structure, and workflows | Meta |
|
|
174
|
+
| **During Coding** | | |
|
|
175
|
+
| `sia-feature` | Feature dev with convention awareness and dependency context | Development |
|
|
176
|
+
| `sia-refactor` | Impact analysis via dependency graph before structural changes | Development |
|
|
177
|
+
| `sia-convention-enforcer` | Convention compliance check against known standards | Quality |
|
|
178
|
+
| `sia-test-advisor` | Test strategy from past failures and known edge cases | Testing |
|
|
179
|
+
| `sia-dependency-tracker` | Cross-repo dependency monitoring and API contract tracking | Architecture |
|
|
180
|
+
| **During Debugging** | | |
|
|
181
|
+
| `sia-debug` | Active bug investigation with temporal root-cause tracing | Debugging |
|
|
182
|
+
| `sia-regression` | Proactive regression risk analysis for code changes | Prevention |
|
|
183
|
+
| **During Review** | | |
|
|
184
|
+
| `sia-code-reviewer` | Code review with historical context and convention enforcement | Review |
|
|
185
|
+
| `sia-security-audit` | Security review with paranoid mode and Tier 4 exposure tracking | Security |
|
|
186
|
+
| `sia-conflict-resolver` | Resolve contradicting knowledge entities | Quality |
|
|
187
|
+
| **After Coding** | | |
|
|
188
|
+
| `sia-knowledge-capture` | Systematic session capture — decisions, conventions, bugs, solutions | Capture |
|
|
189
|
+
| `sia-changelog-writer` | Graph-powered changelogs and release notes | Documentation |
|
|
190
|
+
| `sia-migration` | Graph maintenance during major refactors | Maintenance |
|
|
191
|
+
| **QA & Testing** | | |
|
|
192
|
+
| `sia-qa-analyst` | QA intelligence — regression risks, coverage gaps, test recommendations | QA |
|
|
193
|
+
| `sia-qa-regression-map` | Scored regression risk map (0-100) per module for test prioritization | QA |
|
|
194
|
+
| **Project Management** | | |
|
|
195
|
+
| `sia-pm-briefing` | Plain-language project briefings for PMs | PM |
|
|
196
|
+
| `sia-pm-risk-advisor` | Technical risk advisor — debt, fragile modules, dependency risks | PM |
|
|
197
|
+
| **Tech Lead** | | |
|
|
198
|
+
| `sia-lead-architecture-advisor` | Architecture drift detection against captured decisions | Leadership |
|
|
199
|
+
| `sia-lead-team-health` | Team knowledge health — coverage gaps, bus-factor risks | Leadership |
|
|
200
|
+
|
|
201
|
+
All subagents primarily retrieve from the knowledge graph and can run simultaneously.
|
|
202
|
+
The feature agent may flag decisions via `sia_flag` when flagging is enabled.
|
|
203
|
+
The knowledge-capture agent is designed for end-of-session use rather than parallel execution.
|
|
204
|
+
Invoke via `@sia-code-reviewer`, `@sia-orientation`, etc.
|
|
205
|
+
|
|
206
|
+
### Automatic Hooks
|
|
207
|
+
|
|
208
|
+
| Hook | Trigger | Purpose |
|
|
209
|
+
|---|---|---|
|
|
210
|
+
| **PostToolUse** | Write/Edit | Captures knowledge from file changes |
|
|
211
|
+
| **PostToolUse** | Bash | Detects branch switches and saves/restores graph snapshots |
|
|
212
|
+
| **Stop** | Session stop | Detects uncaptured knowledge patterns |
|
|
213
|
+
| **SessionStart** | Session begin | Injects recent decisions/conventions as context |
|
|
214
|
+
| **PreCompact** | Before compaction | Scans transcript tail for unextracted knowledge before context compaction |
|
|
215
|
+
| **PostCompact** | After compaction | Logs compaction coverage for observability |
|
|
216
|
+
| **SessionEnd** | Session exit | Records session statistics and entity counts |
|
|
217
|
+
| **UserPromptSubmit** | User prompt | Captures user prompts and detects correction/preference patterns |
|
|
218
|
+
|
|
219
|
+
## Team Sync
|
|
220
|
+
|
|
221
|
+
SIA supports team knowledge sharing via a self-hosted sqld (libSQL) server.
|
|
222
|
+
|
|
223
|
+
### Setup
|
|
224
|
+
|
|
225
|
+
1. DevOps deploys a sqld server (see `TEAM-SYNC-DEPLOYMENT.md`)
|
|
226
|
+
2. DevOps provides a server URL and auth token
|
|
227
|
+
3. Developer runs: `/sia-team` → follow setup instructions
|
|
228
|
+
|
|
229
|
+
### Automatic Sync
|
|
230
|
+
|
|
231
|
+
| Event | Action |
|
|
232
|
+
|---|---|
|
|
233
|
+
| Session start | Auto-pulls latest team knowledge |
|
|
234
|
+
| Session end | Auto-pushes locally captured knowledge |
|
|
235
|
+
| `/sia-sync` | Manual push/pull on demand |
|
|
236
|
+
|
|
237
|
+
### Skills & Tools
|
|
238
|
+
|
|
239
|
+
| Component | Purpose |
|
|
240
|
+
|---|---|
|
|
241
|
+
| `/sia-team` | Join, leave, or check team status (see Skills section above) |
|
|
242
|
+
| `/sia-sync` | Manual push/pull operations (see Skills section above) |
|
|
243
|
+
| `sia_sync_status` MCP tool | Programmatic sync status check |
|
|
244
|
+
|
|
245
|
+
## Requirements
|
|
246
|
+
|
|
247
|
+
- [Bun](https://bun.sh/) runtime installed
|
|
248
|
+
- Git repository (for repo identification and change tracking)
|
|
249
|
+
|
|
250
|
+
## Data Storage
|
|
251
|
+
|
|
252
|
+
- **Per-project:** Graph database in `~/.sia/repos/{repo-hash}/`
|
|
253
|
+
- **Plugin-global:** Configuration and models in `$CLAUDE_PLUGIN_DATA/`
|