Skip to main content

Skill and agent recommendation system for Claude Code — knowledge graph, wiki, and intake quality gates

Project description

ctx — Skill, Agent, MCP & Harness Recommendations

License: MIT Python 3.11+ PyPI Tests Graph Docs

ctx watches what you are building, walks a 102,696-node graph, and recommends a small, top-scored bundle of skills, agents, and MCP servers for the current task. If you use your own local/API model instead of Claude Code, ctx has a separate harness catalog flow: tell it the model and goal, review the recommended harness, then install with dry-run/update/uninstall controls.

Current shipped snapshot:

  • 91,432 skills: 1,969 curated/imported skills plus 89,463 body-backed Skills.sh skills.
  • 464 agents, 10,787 MCP servers, and 13 cataloged harnesses.
  • 2.9M graph edges across semantic similarity, tags, slug tokens, source overlap, direct links, quality, usage, type affinity, and graph structure.
  • 89,463 hydrated SKILL.md bodies in the shipped LLM-wiki; long entries are converted through the micro-skill gate instead of loading raw long prompts.
  • Entity updates for skills, agents, MCPs, and harnesses print benefits/risks and skip replacement unless you explicitly approve the update.

Why it exists

  • Discovery — with 91K+ skill nodes, 460+ agents, 10K+ MCP servers, and 13 cataloged harnesses, you can't possibly know which exist or which apply to your current work.
  • Context budget — loading everything wastes tokens and degrades quality. You need the right 10–15 per session.
  • Skill rot — skills you installed months ago and never used are cluttering context. Stale ones should be flagged automatically.

Install

pip install claude-ctx
ctx-init                    # terminal wizard: hooks, graph, model, harness goal
ctx-init --graph --hooks --model-mode skip  # fast runtime graph + Claude Code hooks
ctx-init --graph --graph-install-mode full  # expand the full markdown wiki locally
ctx-init --wizard           # force the same wizard from scripts/tests
ctx-init --model-mode custom --model openai/gpt-5.5 --goal "build a CAD agent"

Optional extras: pip install "claude-ctx[embeddings]" for the semantic backend, pip install "claude-ctx[harness]" for local/API model harness runs, pip install "claude-ctx[dev]" for the test toolchain.

Pre-built knowledge graph

Graph-backed recommendations need the pre-built graph. By default, ctx-init --graph installs the fast runtime artifact: graph/wiki-graph-runtime.tar.gz in source checkouts, or the matching GitHub release asset from pip installs. It contains graphify-out/* plus the external Skills.sh catalog needed for recommendations and the 13 cataloged harness pages needed by ctx-harness-install:

ctx-init --graph

The full LLM-wiki artifact remains available for local browsing, Obsidian, and expanded markdown pages:

ctx-init --graph --graph-install-mode full

The full wiki-graph.tar.gz includes external-catalogs/skills-sh/catalog.json, 89,463 body-backed Skills.sh skill pages under entities/skills/skills-sh-*.md, 89,463 hydrated installable Skills.sh SKILL.md files under converted/skills-sh-*/, and 13 cataloged harness pages under entities/harnesses/.

Windows: PowerShell's built-in tar.exe does not support --force-local; use tar -xzf graph\wiki-graph.tar.gz -C "$env:USERPROFILE\.claude\skill-wiki". In Git Bash or MSYS, use --force-local only when your -C target is a drive-letter path such as C:/Users/....

Use

After ctx-init --hooks or the wizard hook step, ctx observes Claude Code's PostToolUse + Stop events. Typical flow:

ctx-scan-repo --repo .     # scan current repo and stack signals
ctx-scan-repo --repo . --recommend  # include skill/agent/MCP recommendations
ctx-agent-add --agent-path ./code-reviewer.md --name code-reviewer
ctx-harness-add --repo https://github.com/earthtojake/text-to-cad --tag cad
ctx-harness-install text-to-cad --dry-run   # inspect before cloning/running anything
ctx-harness-install text-to-cad             # install after reviewing the plan
ctx-harness-install text-to-cad --update --dry-run
ctx-harness-install text-to-cad --uninstall --dry-run
ctx-skill-quality list     # four-signal quality score for every skill
ctx-skill-quality explain python-patterns   # drill into a single skill
ctx-skill-health dashboard # structural health + drift detection
ctx-toolbox run --event pre-commit          # run a council on the current diff
ctx-monitor serve          # local dashboard: http://127.0.0.1:8765/

The ctx-monitor dashboard shows currently loaded skills, agents, MCP servers, installed harness records, and generic-harness validation/escalation state. It provides load/unload buttons where ctx owns the live action, a cytoscape graph view (/graph?slug=…), the LLM-wiki entity browser (/wiki/<slug>), a filterable skills grid, a session timeline, audit/runtime log views, and a live SSE event stream. Installed harness records appear in /loaded; cataloged harnesses appear in /wiki and /graph. Harness install/update/uninstall actions stay in ctx-harness-install.

When ctx-skill-add, ctx-agent-add, ctx-mcp-add, or ctx-harness-add finds an existing entity, ctx prints a benefits/risks update review and skips replacement by default. Re-run with --update-existing to apply the catalog or local asset update after review.

Step-by-step entity onboarding: https://stevesolun.github.io/ctx/entity-onboarding/

Full docs, architecture, and every module: https://stevesolun.github.io/ctx/

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_ctx-1.0.2.tar.gz (522.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_ctx-1.0.2-py3-none-any.whl (592.3 kB view details)

Uploaded Python 3

File details

Details for the file claude_ctx-1.0.2.tar.gz.

File metadata

  • Download URL: claude_ctx-1.0.2.tar.gz
  • Upload date:
  • Size: 522.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for claude_ctx-1.0.2.tar.gz
Algorithm Hash digest
SHA256 9d85e87de58f89fb62cc7568e1edce7cf3d66ec4116df43533e2533544db8763
MD5 71c3707485be4dfee31283f33a7c1953
BLAKE2b-256 21ade20d493f74ff44247d0eef9a3cd99e8a855565804a22b5ab144f9f5311a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_ctx-1.0.2.tar.gz:

Publisher: publish.yml on stevesolun/ctx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file claude_ctx-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: claude_ctx-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 592.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for claude_ctx-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 66324de695ca32c18d89ec29cbd5a01072da879e09e0620812d4f48e3b494290
MD5 a0a9d7fa443a3748bb94349f3734c763
BLAKE2b-256 bb3ac0f8f965d7050ff8341df6ceee1e3dfbd713c3dfc0430323653e7750c5fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_ctx-1.0.2-py3-none-any.whl:

Publisher: publish.yml on stevesolun/ctx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page