Agent skill

Skill Router

by stevesolun in stevesolun/ctx

Repo-aware recommendation manager for ctx. An agent skill from stevesolun/ctx.

MITAuto-check passedAgent Workflows

Install Skill Router

skills CLI
$ npx skills add stevesolun/ctx --skill skill-router -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install stevesolun/ctx skill-router --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/stevesolun/ctx.git skills-src && mkdir -p .claude/skills && cp -r skills-src/docs .claude/skills/skill-router && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
skill-router
GitHub stars
588
Token cost
~2.4k tokens
SKILL.md length
936 words
Files
67 (incl. assets)
Skills in repo
26
Repo updated
First seen
Licence
MIT

At a glance

Repo-aware recommendation manager for ctx. An agent skill from stevesolun/ctx.

  • Works in 3 steps: Scanner - analyzes a repo and produces… → Resolver - scores graph/wiki entities… → Wiki/graph - persistent catalog of…
  • Tasks that involve MCP servers
  • SKILL.md covers Scope, Problem, Architecture and Startup Flow, plus 10 more sections
  • Runs JavaScript scripts from its folder

What it does

Skill Router is an agent skill from stevesolun/ctx. 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.

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 70 other files, including assets (for example `assets/javascripts/catalog.js`, `assets/javascripts/repo-stats-refresh.js` and `backup-hook-install.md`).

It sits in Agent Workflows, covering MCP servers and Skill management. It works with Model Context Protocol. The repository describes itself as: CTX Fit finds the cheapest AI coding setup that reliably works on your repository, then applies the winner as a reviewable change. The licence is MIT.

When your agent uses it

  • Tasks that involve MCP servers
  • Tasks that involve Skill management

Example prompts

  • “/skill-router”

Requirements

  • Python 3
  • Node.js
  • Docker

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Scanner - analyzes a repo and produces stack/task evidence.
  2. Resolver - scores graph/wiki entities and emits a capped manifest.
  3. Wiki/graph - persistent catalog of entities, usage, quality, and links.

What it can do on your machine

Read from SKILL.md and the folder at commit 11b582a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (JavaScript, from the files we listed), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Skill Router loads about 2.4k tokens when it runs. Until then it costs about 99 tokens; SKILL.md has 936 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~99
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from stevesolun/ctx at commit 11b582a, republished under its MIT licence (© stevesolun). 936 words, ~2,375 tokens.

Download SKILL.mdSave it as .claude/skills/skill-router/SKILL.md (or your agent's skills folder). This skill also uses 66 other files; get the full folder from GitHub.
name
skill-router
description
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.

Skill Router

Scan a repo. Know what the current work needs. Recommend only that. Keep the wiki and graph as the durable catalog behind the decision.

Scope

The router manages runtime recommendations for:

  • skills
  • agents
  • MCP servers

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.

Problem

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:

  • wastes context on irrelevant instructions,
  • causes misfires when a helper matches the wrong task,
  • slows the agent loop, and
  • creates conflicting instructions.

Architecture

text
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:

  1. Scanner - analyzes a repo and produces stack/task evidence.
  2. Resolver - scores graph/wiki entities and emits a capped manifest.
  3. Wiki/graph - persistent catalog of entities, usage, quality, and links.

Startup Flow

  1. Read the shipped graph/wiki metadata and local user overrides.
  2. Run ctx-scan-repo --repo . --recommend for the active repo.
  3. Resolve a load/unload manifest with the shared recommendation engine.
  4. Present changes with reasons and require confirmation unless the user enabled automatic mode.
  5. Record usage/quality changes after the user accepts or rejects suggestions.

Scanner

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.

Detection Categories
  • Languages - file extensions, shebangs, lock files.
  • Frameworks and libraries - package manifests, imports, config files.
  • Infrastructure and DevOps - Docker, CI/CD, IaC, cloud, Kubernetes.
  • Data and storage - databases, migrations, queues, pipelines.
  • Documentation and content - MkDocs, Docusaurus, Sphinx, API specs.
  • Testing and quality - pytest, Jest, Playwright, Ruff, mypy, TypeScript.
  • AI and agent tooling - MCP configs, LangGraph, CrewAI, prompt dirs, model config names.
  • Build and package - package managers, build tools, monorepos.
Scanning Rules
  1. Start with filenames and config files. Read source only when needed to disambiguate.
  2. Do not include speculative signals below the configured confidence floor.
  3. Skip generated/vendor directories such as .git, node_modules, __pycache__, venv, and .venv.
  4. Keep initial scans bounded for large repos.
  5. Redact secret values; only record secret/key names as evidence.

Resolver

The resolver produces a manifest containing the exact helper set to load or unload.

json
{
  "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": []
}
Ranking Signals

Candidates can be scored by:

  • tag/category/subcategory match
  • semantic similarity edge weight
  • direct wiki links
  • source overlap
  • type affinity
  • usage score
  • quality/security score
  • user overrides (always_load, never_load)
  • configured caps and minimum score gates

Recommendations are capped. ctx should not recommend at all costs; below-threshold candidates should be withheld and the gap should be explained.

Wiki And Graph Contract

The wiki follows a Karpathy-style durable memory pattern: schema, purpose, index, log, lint, review items, and entity pages that are machine-readable.

text
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:

yaml
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

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:

  1. Search the shipped graph/wiki first.
  2. Use additional sources only when the local graph is missing or stale.
  3. Deduplicate before adding.
  4. If an entity exists, emit an update review instead of replacing it.
  5. Run security checks before promotion.
  6. Rebuild and validate graph/wiki artifacts before shipping.
Show full SKILL.md (380 more words)Show less

Micro-Skill Gate

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.

Core Operations

Full Scan

Triggers: repo open, repo switch, ctx-scan-repo --repo . --recommend, or explicit user request.

  1. Read wiki orientation and local overrides.
  2. Scan the target repo.
  3. Save the scan result.
  4. Resolve load/unload recommendations.
  5. Present reasons, scores, and install/update commands.
  6. Apply only after confirmation unless configured otherwise.
  7. Record usage and decisions.
Incremental Scan

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.

Manual Override
  • "Always load the docker skill" -> set always_load: true.
  • "Never load the react skill" -> set never_load: true.
  • "Load the terraform skill for this session" -> temporary load.
  • "What is loaded?" -> show current manifest with reasons.
Discovery

When the user asks what exists for a task:

  1. Search graph/wiki entity pages by tags and text.
  2. Use find-skills and configured sources for remote freshness when needed.
  3. Show status, score, source, and risk notes.
  4. Suggest install/update commands, not silent installs.
  5. Log the query.

Maintenance Checks

  • Stale installed helpers - used rarely or not used recently.
  • Ghost helpers - installed status but missing local path.
  • Orphan local helpers - present locally but missing entity page.
  • Skill index freshness - shipped skill snapshot older than policy.
  • Conflicts - overlapping helpers both marked always_load.
  • Usage cold spots - low usage/quality score candidates for unload review.
  • Wiki lint - broken links, missing frontmatter, index drift.

Reporting

After a scan, report only actionable details:

text
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

Configuration

Router behavior is controlled by ctx config and user overrides. Important knobs:

yaml
recommendations:
  max_total: 5
  min_score: 0.85
micro_skills:
  max_lines: 180
router:
  auto_scan: true
  auto_apply: false
  ask_before_unload: true

Pitfalls

  • Never load all helpers just in case.
  • Never replace an existing entity without an update review.
  • Never execute external repo scripts while cataloging.
  • Never treat conversation history as the source of workflow state.
  • Never ship graph/wiki artifacts before validation passes.
  • Respect never_load and user rejection history.

© stevesolun, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 66 other files (assets) in docs of stevesolun/ctx.

  • SKILL.md
  • assets/javascripts/catalog.js
  • assets/javascripts/repo-stats-refresh.js
  • backup-hook-install.md
  • catalog.md
  • ctx-fit/ARCHITECTURE_CANDIDATES.md
  • ctx-fit/ARCHITECTURE_GAP_ANALYSIS.md
  • ctx-fit/CTX_AUDIT.md
  • ctx-fit/CURRENT_STATE.md
  • ctx-fit/DECISIONS.md
  • ctx-fit/GOOD_FIRST_ISSUES.md
  • ctx-fit/IMPLEMENTATION_TRACKER.md
  • ctx-fit/MAP.md
  • ctx-fit/PRD.md
  • ctx-fit/STATE.md
  • ctx-fit/milestones/M1_SPIKE_FRICTION_LOG.md
  • ctx-fit/milestones/MILESTONE_00_AUDIT.md
  • … and 50 more

Open the folder on GitHubat commit 11b582a

Compare with similar skills

Skill Router next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Skill Router compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Skill Router this skillstevesolun/ctx588—~2.4kAutomated safety check: PassMIT
Skillsharerunkids/skillshare2.8k—~2.2kAutomated safety check: PassMIT
PicoClaw Agentsipeed/picoclaw30k—~7.2kAutomated safety check: NotesMIT
AgentSkillsHub Skill Finderzhuyansen/agent-skills-hub410—~1kAutomated safety check: PassMIT
Sandboxed.sh Library ManagementTh0rgal/sandboxed.sh516—~931Automated safety check: PassNone
Mistral Vibe CLI Referencemistralai/mistral-vibe5.1k—~14kAutomated safety check: NotesApache-2.0

Similar skills

  • Skillshare

    runkids/skillshare

    Manage skills, agents, extras, hooks, plugins, and MCP connection settings with the Skillshare CLI.

    2.8k GitHub stars~2.2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • PicoClaw Agent

    sipeed/picoclaw

    Answers questions about running and changing PicoClaw, from onboarding and model selection to MCP server setup, skill loading and scheduled jobs.

    30k GitHub stars~7.2k tokensUpdated 14 days ago
    Agent WorkflowsAuto-check: notes
  • AgentSkillsHub Skill Finder

    zhuyansen/agent-skills-hub

    Searches a locally cached, security-graded catalog of agent skills and MCP servers, and returns install commands after checking each one's grade.

    410 GitHub stars~1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Reads and updates the Sandboxed.sh Library, a git-backed store of skills, agents, commands, tools, rules and MCP servers, through its library tools.

    516 GitHub stars~931 tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Mistral Vibe CLI Reference

    mistralai/mistral-vibe

    Official

    Reference for Mistral Vibe, the CLI agent it runs inside: config files, env vars, agents, skills, tools, hooks and MCP servers, so the agent can explain and troubleshoot its own setup.

    5.1k GitHub stars~14k tokensUpdated yesterday
    Agent WorkflowsAuto-check: notes
  • Superset Plugins and Tools

    superset-sh/superset

    Installs Superset plugins, connects the accounts they need and calls their MCP tools through the credential proxy, without writing tokens to your machine.

    15k GitHub stars~1.3k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from stevesolun/ctx

All 26 skills in this repo
  • Diagnosing Bugs

    stevesolun/ctx

    Diagnose hard bugs and performance regressions with reproducible evidence, focused hypotheses, and proportional instrumentation.

    588 GitHub stars~596 tokensUpdated 5 days ago
    Auto-check passed
  • Repo Stats Autoupdate

    stevesolun/ctx

    Keeps README badge + inline counts in sync with the real number of skills, agents, graph nodes/edges, communities, converted pipelines, and test inventory.

    588 GitHub stars~724 tokensUpdated 5 days ago
    Auto-check passed
  • Code Review

    stevesolun/ctx

    Review a Git diff against repository standards and its originating requirements.

    588 GitHub stars~466 tokensUpdated 5 days ago
    Auto-check passed
  • No Mistakes

    stevesolun/ctx

    Validate committed feature-branch changes through the no-mistakes pipeline: intent, rebase, review, test, docs, lint, push, PR, and CI.

    588 GitHub stars~458 tokensUpdated 5 days ago
    Auto-check passed
  • Codebase Design

    stevesolun/ctx

    Design or improve module interfaces using deep-module heuristics.

    588 GitHub stars~662 tokensUpdated 5 days ago
    Auto-check passed
  • Design or audit a repo-local markdown knowledge graph with wiki links, source-code backlinks, drift checks, and searchable sections.

    588 GitHub stars~466 tokensUpdated 5 days ago
    Auto-check passed

Categories

Questions about Skill Router

What does Skill Router do?

Repo-aware recommendation manager for ctx. An agent skill from stevesolun/ctx. Skill Router is an agent skill from stevesolun/ctx. Repo-aware recommendation manager for ctx.

When should I use Skill Router?

Skill Router fits situations like: tasks that involve MCP servers; tasks that involve Skill management.

How do I install Skill Router in Claude Code?

Run `npx skills add stevesolun/ctx --skill skill-router -a claude-code`. Or copy the skill folder (docs in stevesolun/ctx) into .claude/skills/skill-router in your project. Claude Code loads it when a task matches its description.

How do I install Skill Router in Codex?

Run `npx skills add stevesolun/ctx --skill skill-router -a codex`. Or copy the skill folder (docs in stevesolun/ctx) into .agents/skills/skill-router in your project. Codex loads it when a task matches its description.

Can I use Skill Router in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add stevesolun/ctx --skill skill-router -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/skill-router, .gemini/skills/skill-router, .github/skills/skill-router and .opencode/skills/skill-router in your project.

What does Skill Router need to run?

Going by SKILL.md and its folder, Skill Router needs JavaScript for the scripts in its folder. Our summary lists: Python 3; Node.js; Docker.

Does Skill Router access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Skill Router safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Skill Router use?

Skill Router is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Skill Router use?

About 2.4k tokens (SKILL.md is roughly 9.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Skill Router?

Skills that share tags, products or a category with Skill Router: Skillshare (runkids/skillshare, 2.8k stars), PicoClaw Agent (sipeed/picoclaw, 30k stars), AgentSkillsHub Skill Finder (zhuyansen/agent-skills-hub, 410 stars) and Sandboxed.sh Library Management (Th0rgal/sandboxed.sh, 516 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Skill Router?

stevesolun (a GitHub user) maintains it in stevesolun/ctx, which has 588 GitHub stars. The repository holds 26 skills in this directory. The repository was last updated on October 4, 2026.

Source: stevesolun/ctx on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.