/simplicio:simplicio-clifrom simplicio
Wraps code edits in simplicio-cli's 6-layer contract (mapper, precedent, prompts, tests, verify loop) for verified, higher-quality changes. Triggers on code edits, diff+test requests, or explicit simplicio commands.
Ships in simplicio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
simplicio-cliWrap a code task in simplicio-cli's 6-layer contract instead of asking the LLM to guess. Same model, same task — only the prompt structure changes. Measured: +51 pts average gain across 14 models (sub-4B to frontier 2026).
Source: this repo (
simplicio-cli, PyPIsimplicio-cli, MIT, v0.2.10). SeeREADME.mdfor the full bench table and methodology,docs/benchmark-4quadrant.mdfor the 4-quadrant decomposition.
Always when the user asks for a code edit that fits all of these:
Explore.angular, react, next, vue, django, laravel, springboot, nestjs, dotnet, flutter, etc. — anything with skills under SIMPLICIO_SKILLS_DIR) or a generic edit (--stack generic).Also trigger on:
$simplicio-py, /simplicio-py, "use simplicio-py", "rode o simplicio-py", "via simplicio-cli".Do NOT trigger on:
architect agent + ADR.ralph-loop and explicitly wants edits by hand — respect.# is simplicio-py on PATH?
command -v simplicio-py \
|| pip install --user simplicio-cli \
|| pip install -e . # fallback: editable install from repo root (locked venv / no PyPI)
# config check (one-shot, costs 1 LLM call)
simplicio-py smoke
If smoke fails: set the env vars and retry. Read ~/.config/simplicio/.env or current shell env. Required:
| Provider | SIMPLICIO_MODEL | SIMPLICIO_BASE_URL | Key env var |
|---|---|---|---|
| OpenRouter | anthropic/claude-opus-4 (or any) | https://openrouter.ai/api/v1 | OPENROUTER_API_KEY |
| GLM (z.ai) | glm-4.6 | https://api.z.ai/api/paas/v4 | OPENAI_API_KEY |
| DeepSeek | deepseek-chat | https://api.deepseek.com | OPENAI_API_KEY |
| OpenAI | gpt-4.1 | https://api.openai.com/v1 | OPENAI_API_KEY |
| Ollama local | llama3 (or any) | http://localhost:11434/v1 | OPENAI_API_KEY=dummy |
| Anthropic native | claude-opus-4-7 | (unset) | ANTHROPIC_API_KEY |
base_url unset + ANTHROPIC_API_KEY present → native Anthropic SDK. Else OpenAI-compatible client.
First run on the repo (or after large changes): index once. Re-runs reuse embeddings keyed by content hash — unchanged blocks cost zero.
simplicio-py index --stack <stack> # e.g. angular | react | django | dotnet | generic
Skip if .simplicio/ already exists and the affected files were not modified since last index (ls .simplicio/ 2>/dev/null non-empty → cache warm).
Map the user's natural-language goal into the four flags:
| Flag | Meaning | Pull from |
|---|---|---|
| positional goal | one-line objective in user's words | the user's request |
--stack | indexed stack name | detected from repo (look for package.json, *.csproj, pyproject.toml, composer.json, etc.) |
--target | exact file path that holds the code to change | user said it, or Explore → grep for the affected symbol |
--criteria | bullet list of mensurable success criteria | rephrase user's success into checkable bullets |
--constraints | bullet list of guardrails | "don't touch X", "build still passes", "preserve public API" |
simplicio-py task "<one-line goal>" \
--stack <stack> \
--target <path/to/file> \
--criteria "- <check 1>
- <check 2>" \
--constraints "- <guardrail 1>
- <guardrail 2>"
simplicio internally: precedent (from cache) → skill match → stacks the 6 layers → LLM generates diff + test + Playwright → applies → runs SIMPLICIO_TEST_CMD → pass = done, fail = sends error back, fixes, retries up to 3×.
Output stream contains, in order:
MAPPER — what file was identified as the target + neighbors.PRECEDENT — the in-repo snippet picked as the "this is how we already do it" example.SKILL — the one mapper skill matched and injected.PROMPT — the full 6-layer prompt sent (cache-friendly).DIFF — the patch the LLM emitted.APPLY — git apply result.TEST — SIMPLICIO_TEST_CMD exit code + stderr.VERIFY — pass/fail summary. If fail, loop up to 3× with the error appended.Canonical labels live in
simplicio/cli.py— if the CLI output format changes, update this list against that file.
If VERIFY: pass → report to user with the diff and test artefacts. If VERIFY: fail after 3 retries → bubble up the last error + suggest splitting the task.
Whatever the project's normal validation is — run it. The simplicio test command is a fast inner loop; the full project validation is the outer truth.
| Stack | Command |
|---|---|
| Node/TS | npm run lint && npm test |
| Python | ruff check . && pytest |
| .NET | dotnet build && dotnet test |
| Go | go vet ./... && go test ./... |
| Rust | cargo clippy && cargo test |
If it's a UI change, also run Playwright (npx playwright test --reporter=list,html) with trace + screenshot + video (this repo's hard DoD rule).
--target pointing at a 10k-line file unless it actually is the target.UserService"). Without constraints, models drift.generic is fine for non-listed stacks — skips skill router but keeps mapper + precedent + 6-layer + test + verify..simplicio/ directory holds embeddings. Don't .gitignore-ignore it casually; sharing the cache speeds team runs.simplicio-py task without --target on an ambiguous goal → mapper guesses, often wrong on big repos.--criteria "make it work" → no signal for the verify loop. Pass-rate collapses.execute step (use .agents/simplicio-ralph.agent.md composition), or simplicio runs standalone.node_modules / .venv / target/ — bloats cache, slows precedent. Use .simplicioignore (same syntax as .gitignore).simplicio-py smoke returned a clean provider config print + one successful test call.simplicio-py task ... ran with --stack + --target + --criteria + --constraints all set.VERIFY: pass in the output, OR a clear "fail after 3 retries — escalate" message.git diff shows the change) and project's normal validation (lint + test) is green.playwright-report/..agents/simplicio-ralph.agent.md — Ralph drives the outer read → plan → execute → lint → unit → e2e → fix loop, delegates the execute step to simplicio-py task instead of editing by hand. Best for tasks where Ralph's autonomy + simplicio's per-call precision compound.python3 bench/run_offline.py (no API key needed for the offline scoring), or simplicio-py bench --cases bench/cases.json --stack <s> for real-test pass-rate.python3 bench/run_4quadrant.py decomposes prompt-effect vs. loop-effect vs. composition. Q4 (simplicio + loop) wins on pass-rate AND stays close to Q2 on cost.prompt.py::_mapper (real mapper), pipeline.py::_aplicar_e_testar (real diff/test), skill_router.py (your skills dir via SIMPLICIO_SKILLS_DIR).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub simpletibr/simplicio --plugin simplicio9 skills in this plugin
/simplicio-desktopScript the running Simplicio Desktop through its local authenticated API. Use when an agent needs Desktop snapshots, execution reports, reviews, managed worktrees, or a health check without driving the UI./simplicio-dev-cliPerform deterministic Simplicio code changes and validation through the Dev CLI. Use for file edits, patches, implementation, formatting, tests, diagnostics, pre-effect validation, retries, evidence files, and safe mutation workflows. The agent decides intent; Dev CLI owns the mutation and verification./simplicio-fastAccelerate Simplicio retrieval with indexed search, ranking, cache, mmap, and bounded parallel reads. Use for repeated or large context lookups, low-latency symbol/file retrieval, snapshot-backed ranking, and cache-aware discovery. Do not use it as the source of truth or as a file mutation tool.Other plugins' skills for the same job