ask-matt
MAmattpocock/skills336k5,004 new stars in the last 7 days
Repo-aware recommendation manager for ctx. Scans the active repository, identifies stack and workflow signals, recommends a capped set of skills, agents, and MCP servers, and unloads helpers that no longer match the current work after user confirmation. Harnesses are recommended by the custom-model onboarding flow or loop adapters and then attach to the same recommendation layer.
Scan a repo. Know what the current work needs. Recommend only that. Keep the wiki and graph as the durable catalog behind the decision.
The router manages runtime recommendations for:
Harnesses are separate catalog entities. They are recommended when a user wants to run ctx with a non-Claude-Code host, local model, API model, or external loop adapter. Once attached, the harness calls the same skills/agents/MCP recommendation engine.
Every loaded helper costs tokens, attention, and operational surface area. Most sessions need a small top-scored bundle from the shipped graph, not every entity ctx knows about. Loading too much:
ctx/
|-- src/scan_repo.py # Repo scanner -> stack profile
|-- src/ctx/core/resolve/resolve_skills.py # Profile -> load/unload manifest
|-- src/ctx/core/resolve/recommendations.py # Shared scoring/ranking engine
|-- src/ctx/adapters/ # Host adapters + generic tools
|-- src/harness_install.py # Custom-model harness install flow
`-- graph/wiki-graph-runtime.tar.gz # Shipped graph/wiki runtime
The router has three halves:
ctx-scan-repo --repo . --recommend for the active repo.The scanner reads repo structure and files to produce a stack profile. Detection is evidence-based: every claim should map to a file, dependency, config value, or import pattern.
.git, node_modules,
__pycache__, venv, and .venv.The resolver produces a manifest containing the exact helper set to load or unload.
{
"generated_at": "ISO-8601",
"repo_path": "/absolute/path",
"profile_hash": "sha256 of stack profile",
"load": [
{
"name": "fastapi",
"type": "skill",
"reason": "FastAPI detected in pyproject.toml dependencies",
"score": 0.94
}
],
"unload": [
{
"name": "react",
"type": "skill",
"reason": "No active frontend signal in the current repo window"
}
],
"suggestions": [
{
"name": "github",
"type": "mcp",
"reason": ".github/workflows exists and the repo uses GitHub Actions",
"install_command": "python -m mcp_add ..."
}
],
"warnings": []
}
Candidates can be scored by:
always_load, never_load)Recommendations are capped. ctx should not recommend at all costs; below-threshold candidates should be withheld and the gap should be explained.
The wiki follows a Karpathy-style durable memory pattern: schema, purpose, index, log, lint, review items, and entity pages that are machine-readable.
llm-wiki/
|-- SCHEMA.md
|-- index.md
|-- log.md
|-- raw/
| |-- scans/
| `-- external-catalogs/
|-- entities/
| |-- skills/
| |-- agents/
| |-- mcp-servers/
| `-- harnesses/
|-- concepts/
|-- comparisons/
`-- queries/
Entity pages use YAML frontmatter with at least:
title: Entity Name
type: skill | agent | mcp-server | harness | external-catalog
status: installed | available | deprecated | broken
tags: []
source: local | shipped | github | curated
source_url: ""
path: ""
quality_score: null
usage_score: 0
last_used: null
always_load: false
never_load: false
Entity sources include shipped skill/MCP/harness sources, GitHub
entity repositories, and local user assets. The public reference page is
marketplace-registry.md, kept under that filename
for backwards-compatible links.
Source rules:
Every added or updated skill must pass the configured line-count gate before it
is packed into the shipped wiki. The default threshold is 180 lines, read from
ctx config. Skills above the threshold are converted into a short orchestrator
plus staged reference files. Local .original backups may be preserved for
traceability, but packaged runtime archives must omit those backups.
Triggers: repo open, repo switch, ctx-scan-repo --repo . --recommend, or explicit user
request.
Triggers: changed config files, new dependencies, new MCP config, new tests, new infrastructure files, or user task change.
If a helper is no longer useful, ctx should suggest unloading it and ask for confirmation. If the user asks to skip unload prompts, ctx should respect that preference.
always_load: true.never_load: true.When the user asks what exists for a task:
find-skills and configured sources for remote freshness when needed.always_load.After a scan, report only actionable details:
Skill Router Report - repo-name
Scanned: YYYY-MM-DD HH:MM
Loaded:
1. fastapi skill - score 0.94 - pyproject.toml dependency
2. github MCP - score 0.91 - GitHub Actions workflows detected
Unload candidates:
1. react skill - no active frontend signal
Suggestions:
1. openapi-generator skill - OpenAPI spec found
Warnings:
None
Router behavior is controlled by ctx config and user overrides. Important knobs:
recommendations:
max_total: 5
min_score: 0.85
micro_skills:
max_lines: 180
router:
auto_scan: true
auto_apply: false
ask_before_unload: true
never_load and user rejection history.MAmattpocock/skills336k5,004 new stars in the last 7 days
MAmattpocock/skills336k5,004 new stars in the last 7 days
MAmattpocock/skills336k5,004 new stars in the last 7 days
OBobra/superpowers331k5,757 new stars in the last 7 days
AFaffaan-m/ECC314k4,125 new stars in the last 7 days
AFaffaan-m/ECC314k4,125 new stars in the last 7 days