Disha-1610

SpecWeft — AI skill for Claude Code

AI community

Predicts which files must change alongside your edit, and why, by combining shared-value agreements (env vars, routes, schemas, config keys) with navigation patterns from AI coding agent trajectories.

How to install SpecWeft

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Disha-1610/SpecWeft and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What SpecWeft does

Predicts which files must change alongside your edit, and why, by combining shared-value agreements (env vars, routes, schemas, config keys) with navigation patterns from AI coding agent trajectories. Each result comes with evidence; available as a CLI, REST API, web UI, Claude Code hook and Forge app.

Alternatives in AI

  • Startup Canvas — Generate Startup Canvas combining Product Strategy and Business Model 7.8k ★
  • Lpm — Start, stop, and duplicate dev projects with one click 167 ★
  • Vvriter — VV knowledge layer for AI agents — MCP server exposing Visualize Value frameworks, voice, and content 53 ★

README

# SpecWeft

**When you change a file, which other files must change too — and why?**

SpecWeft answers this with two independent signals fused into one ranked, evidence-backed list:

  • Broken Agreements (static). Files agree when they hold the same rare, specific token: an env var, route, table, column, proto field, topic, config key. Removing, renaming or changing the value of that token in one file breaks every other holder. Extracted from Python/TypeScript (tree-sitter), YAML/JSON/TOML/.env, SQL (sqlglot), OpenAPI/Protobuf/GraphQL/Avro, Terraform/Kubernetes/Docker/CI and Markdown inline code.
  • Waze for Code (behavioural). Agent trajectories (Claude Code, SWE-agent, OpenHands) show where agents went next after editing a file, and where they detoured after a failing test or build. Navigation edges are scored by lift over each file's baseline visit rate.

Every recommendation uses one shared evidence schema (`specweft/models.py: Recommendation`): changed file, related file, reason, agreement evidence with **both** source locations, navigation evidence with session counts and excerpts, cross-repo flag, features, ranking score, confidence level and confidence basis. The CLI, REST API, web UI and Claude Code Stop hook all return it.

Docs: [PROJECT_REQUIREMENTS.md](PROJECT_REQUIREMENTS.md) · [SYSTEM_ARCHITECTURE.md](SYSTEM_ARCHITECTURE.md) (formulas, schema) · [IMPLEMENTATION_PLAN.md](IMPLEMENTATION_PLAN.md) · [FEATURE_TRACKER.md](FEATURE_TRACKER.md) (status of every requirement).

Setup

Requires Python ≥ 3.11 and git on PATH. Tested on Python 3.14 / Windows 11.

pip install -r requirements.txt

Optional configuration: copy `.env.example` values into your environment (`SPECWEFT_DB`, `SPECWEFT_HOOK_MODE`, …). The SQLite database is created and migrated automatically on first use (`specweft/db.py`, schema v2).

Real data used by the pipeline

git clone https://github.com/fastapi/full-stack-fastapi-template dat