topos
БесплатноБез исполняемых скриптовНе проверенEvaluate and improve code with Topos. Use for complexity reduction, security checks, refactor verification, and PLATINUM/GOLD goals.
от krv-labs2 296 установок в других каталогахОб этом скилле
Topos
Topos scores code on four pillars — SIMPLE, COMPOSABLE, SECURE, NAVIGABLE — and maps results to a medal lattice (SLOP → PLATINUM). Use it in a closed loop: measure, edit, re-measure.
Use Case
Developers and AI coding agents use this skill to improve structural code quality, reduce complexity, verify refactors, and optimize toward PLATINUM or GOLD medals. It supports both CLI and MCP agent loops on local repositories.
Deployment geography: Global (local execution; no region-restricted services).
When to Use
Load this skill when the user asks to improve code quality, reduce complexity, check structural security footguns, verify a refactor, or optimize toward PLATINUM/GOLD medals.
Requirements / Dependencies
Requires API Key or External Credential: No
Credential Type(s): None
Runtime dependencies:
curl -fsSL https://docs.krv.ai/topos/install.sh | bash
npm install -g gitnexus # enables COMPOSABLE / PLATINUM scoring
toposCLI onPATH(install via docs.krv.ai/topos/install.sh)- Git repository for MCP baseline comparisons (
topos_assess_worktree_change; untracked baselines viatopos_begin_refactor→topos_assess_snapshot) .gitnexusdependency graph for COMPOSABLE / PLATINUM scoring (generated automatically whengitnexusis installed; force refresh withtopos depgraph generateortopos_generate_depgraph)
COMPOSABLE is scored by default: evaluate / inspect and the MCP evaluate
tools detect a missing or stale .gitnexus and regenerate it before scoring.
Run topos depgraph generate only to force a refresh.
Optional MCP setup (for tool-based agents, not required for CLI-only use):
topos install --all # registers the MCP server in every supported harness
topos status # verify registration
Do not include secrets in prompts, logs, or output. Topos reads local source files and git state only; it does not transmit code to external services.
Known Risks and Mitigations
Risk: The skill may guide agents to apply structural refactors that change behavior; Topos measures structure, not functional correctness.
Mitigation: Run project tests or linters after each edit; treat Topos verdicts as structural signals, not proof of correctness.
Risk: Agents may trust SECURE medal findings as full security assurance; Topos SECURE checks are structural heuristics, not full SAST.
Mitigation: Pair with dedicated security tooling for high-stakes code; acknowledge remaining SECURE findings explicitly.
Risk: Without GitNexus installed, COMPOSABLE scores are unavailable and PLATINUM is unreachable.
Mitigation: Install gitnexus (npm install -g gitnexus); check MCP warnings and coupling_available before trusting composability scores.
Risk: Cosmetic edits (whitespace, rename-only) may appear as improvements but do not move the lattice.
Mitigation: Stop when MCP returns SUSPICIOUS_NO_STRUCTURAL_CHANGE; require IMPROVEMENT or IMPROVEMENT_SCORE before accepting a change.
Skill Output
Output type(s): Analysis, markdown reports, JSON (MCP), shell commands
Output format: CLI tables and ranked file lists; MCP structured payloads with agent_contract fields; per-function inspect detail
Output parameters: Medal verdict (SLOP → PLATINUM), pillar scores (SIMPLE, COMPOSABLE, SECURE, NAVIGABLE), ranked refactor targets, assessment status (IMPROVEMENT, REGRESSION, etc.)
Other properties: Writes .gitnexus graph artifacts when depgraph is generated; does not modify source files unless the agent chooses to edit based on guidance
References
Agent Loop
- Measure —
topos evaluate <path> -r(CLI) ortopos_evaluate_file/topos_evaluate_project(MCP). COMPOSABLE is included by default; run the CLI from the repo root. MCP derives the project from the tool's absolute file/directory path (TOPOS_MCP_FILE_ROOTis only an optional maximum boundary). Pass--gitnexus-dir/gitnexus_dirto select a store; its parent becomes the COMPOSABLE project root. - Inspect —
topos inspect <file>ortopos_inspect_codefor per-function complexity and metric detail. - Edit — one focused structural change (extract helper, simplify branch, decouple import).
- Verify — re-run evaluate, or use
topos_assess_worktree_change(baselineHEAD) for MCP loops. For untracked baselines:topos_begin_refactor→ edit →topos_assess_snapshot. - Behavior check — run project tests or linters; Topos does not prove correctness.
Stop when the target medal is reached, the priority pillar passes, or further iterations plateau. Prefer structured agent_contract fields over parsing prose.
Lattice (v0.5.0)
- **
Установить topos в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл topos?
Evaluate and improve code with Topos. Use for complexity reduction, security checks, refactor verification, and PLATINUM/GOLD goals.
Как установить скилл topos?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл topos запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic