Platform-aware skill composition layer for AI coding tools
Project description
weave-compose
Platform-aware skill composition layer for AI coding tools.
"Everyone's building skills. Weave makes them work together."
How It Works
Weave ingests skills from AI coding tools (Claude Code, Cursor, Codex, Windsurf) and normalises them into a universal schema — a single Skill object with a name, platform, capabilities, and semantic embedding. At query time it embeds your task description and selects the best skill(s) by cosine similarity against every loaded skill, with no manual routing required. When a task spans multiple skills, Weave composes their contexts into a single merged string ready for injection into any AI coding tool.
Demo
Record your own:
brew install vhs && vhs demo.tape
Installation
pip install weave-compose
Requires Python 3.11+. All embeddings run locally — no API key, no cloud dependency.
Quickstart
# 1. Create a minimal SKILL.md file
mkdir my-skills
cat > my-skills/SKILL.md << 'EOF'
---
description: React component design with Tailwind CSS and accessibility best practices.
capabilities: [react, tailwind, components, accessibility]
---
Always use semantic HTML. Never hardcode colours — use Tailwind tokens only.
EOF
# 2. Load and query
weave load ./my-skills
# Loaded 1 skill(s) from ./my-skills (platform: claude_code)
# Session saved to .weave_session.json
weave query "design a button component"
# [1] my-skills (claude_code) — score: 0.61
# React component design with Tailwind CSS and accessibility best practices.
# 3. Explore further
weave list # see all loaded skills
weave status # session info and embedding model in use
CLI Reference
| Command | Description |
|---|---|
weave load <path> [--platform] [--verbose] |
Load skills from a directory and save the session |
weave query "<text>" [--explain] [--top N] |
Query loaded skills and return the best match(es) |
weave list [--platform] |
List all skills in the current session |
weave status |
Show skill count, platform breakdown, and session info |
weave clear |
Clear all loaded skills and delete the session file |
weave detect <path> |
Auto-detect the platform of a skill directory |
weave run [--config <path>] |
Load skills from weave.yaml and start an interactive query loop |
weave serve [--port <n>] |
Start the local FastAPI server on localhost (default port: 7842) |
Session state is stored in .weave_session.json in your current working directory. Run weave load once; all subsequent query, list, and status calls restore the session automatically — no re-embedding required.
How Weave Selects Skills
Weave uses all-MiniLM-L6-v2 (runs on CPU, ~80 MB, cached after first use) to embed both your query and each skill's context. It returns the top match by default. If the confidence gap between the first and second result is less than 0.1, both skills are returned for composition — Weave assumes the task spans both domains.
Use --explain to see the full score table:
weave query "design a REST API" --explain
Use --top N to request at least N results:
weave query "build a feature" --top 2
Contributing
Contributions are welcome at every layer — new platform adapters, composition strategies, CLI improvements, and documentation.
- Contributor guide: docs/contributing.md
- Writing a new adapter: docs/adapters.md
- Architecture overview: docs/architecture.md
All code must pass pytest, ruff check ., and mypy --strict . before merging.
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file weave_compose-1.0.1.tar.gz.
File metadata
- Download URL: weave_compose-1.0.1.tar.gz
- Upload date:
- Size: 43.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23387de469f3dc22184174ca1b0aa6eec3ef14d812081e15a2d6bc2d399f2a4b
|
|
| MD5 |
0bc294a76c79c4ad40f6c90d82b92836
|
|
| BLAKE2b-256 |
5d1a069fc8eef472f36c774cfc0deb887e1fd319ac2f64f6134da53019489815
|
Provenance
The following attestation bundles were made for weave_compose-1.0.1.tar.gz:
Publisher:
release.yml on Adityaraj0421/weave-compose
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
weave_compose-1.0.1.tar.gz -
Subject digest:
23387de469f3dc22184174ca1b0aa6eec3ef14d812081e15a2d6bc2d399f2a4b - Sigstore transparency entry: 1239420115
- Sigstore integration time:
-
Permalink:
Adityaraj0421/weave-compose@296575162565a1884d4e910bdf9bb9eee1755a3a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Adityaraj0421
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@296575162565a1884d4e910bdf9bb9eee1755a3a -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file weave_compose-1.0.1-py3-none-any.whl.
File metadata
- Download URL: weave_compose-1.0.1-py3-none-any.whl
- Upload date:
- Size: 42.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b7d597bd5075f3b6060cfb4547ec0eeb06bbf808e2ecaabb3b1191e0189b98c
|
|
| MD5 |
23bd27f5260686161f8d81abcbcaeeb2
|
|
| BLAKE2b-256 |
05c41625352e817c33df9727f0c3a55cf342c9d8512069c4f6e73205474394c6
|
Provenance
The following attestation bundles were made for weave_compose-1.0.1-py3-none-any.whl:
Publisher:
release.yml on Adityaraj0421/weave-compose
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
weave_compose-1.0.1-py3-none-any.whl -
Subject digest:
0b7d597bd5075f3b6060cfb4547ec0eeb06bbf808e2ecaabb3b1191e0189b98c - Sigstore transparency entry: 1239420116
- Sigstore integration time:
-
Permalink:
Adityaraj0421/weave-compose@296575162565a1884d4e910bdf9bb9eee1755a3a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Adityaraj0421
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@296575162565a1884d4e910bdf9bb9eee1755a3a -
Trigger Event:
workflow_dispatch
-
Statement type: