Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/agentis-tools/ctxnpx agentmods add skills/agentis-tools/ctx/templatesWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/agentis-tools/ctx/templates)<a href="https://agentmods.dev/skills/agentis-tools/ctx/templates"><img src="https://agentmods.dev/badge/skills/agentis-tools/ctx/templates/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/agentis-tools/ctx/templates"><img src="https://agentmods.dev/badge/skills/agentis-tools/ctx/templates.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00060 | $0.01556 |
| Opus 5.5 | $0.00024 | $0.00622 |
| Sonnet 5.5 | $0.00012 | $0.00311 |
| Haiku 4.5 | $0.00006 | $0.00156 |
Grade A, and why
ctx scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 27d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to ctx — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ctx — code intelligence and governance
Use ctx's indexed symbol and relationship model before text-only search. Treat its quality metrics as evidence to investigate, not automatic proof that code is wrong.
Exit codes are 0 clean, 1 findings, 2 operational error, and 3 only for an unmet
ctx harness compat version requirement. Never report a gate as passed after an operational error.
Keep the index fresh
ctx index # incremental; run after pulling or material edits
ctx index --force # full rebuild after schema changes or corruption
Route the question
| Question | Start with |
|---|---|
| How is this repository organized? | ctx map --budget 2000 |
| Where is a symbol or concept? | ctx query find, ctx search, ctx source |
| What depends on this code? | ctx query callers, ctx query impact |
| Does an implementation already exist? | ctx similar, then ctx duplicates |
| Did this branch make quality worse? | ctx score --against <base> |
| Does this change violate policy? | ctx check --against <base> |
| Where is current maintenance pressure? | ctx hotspots |
| Is health changing across commits? | ctx sql --snapshots=<dir> |
Load the verified recipe for the problem
The cookbook pages are executable workflows with observed limitations, not command advertisements. Open the matching page when the task needs more than the routing command:
| Symptom | Recipe |
|---|---|
| Unfamiliar repository | Orientation |
| Context is too large or incomplete | Smallest useful context |
| Behavior may already exist | Existing implementations |
| A small edit may have hidden consumers | Blast radius |
| Implementing with an uncertain working set | Evidence-backed implementation |
| Failing test in a large subsystem | Focused debugging |
| Large branch review | Risk-routed review |
| PR gate inherits old debt | PR governance |
| Gate blocks a legitimate change | Gate recovery |
| Fork PR needs a published report | Untrusted CI |
| Boundaries are eroding | Architecture drift |
| The same code keeps changing | Chronic hotspots |
| High complexity may be intentional | Intentional complexity |
| Duplication is growing | Duplication trajectories |
| Health direction or release decision | Continuous health and release health |
What ships with it
22 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents-md-block.md 322 B
- claude-md-block.md 933 B
- codex-hooks.json 625 B
- codex-marketplace.json 280 B
- codex-plugin-hooks.json 538 B
- codex-plugin-mcp.json 717 B
- codex-plugin-README.md 775 B
- codex-plugin.json 679 B
- codex-post-tool-use.sh 656 B runs code
- codex-session-start.sh 232 B runs code
- codex-stop.sh 981 B runs code
- hooks.json 644 B
- marketplace.json 696 B
- mcp.json 102 B
- plugin-README.md 2.5 KB
- plugin-settings.json 224 B
- plugin.json 742 B
- post-tool-use.sh 1.2 KB runs code
- rules.toml 1.3 KB
- session-start.sh 1004 B runs code
- settings-snippet.json 895 B
- stop.sh 1.9 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 27d ago Changed ce63393cc602
- 1mo ago First seen · 140 lines · 60 tokens per session scan A b2f16f049637
ctx is a skill published in the GitHub repository agentis-tools/ctx (13 stars, last pushed 5d ago), licensed Apache-2.0. It adds 60 tokens to every session and 1,556 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to ctx, differing in 2 lines, and is treated as a copy.
Other skills, from other repositories
diagnose-windows-sandbox-acl
Use on Windows for unexpected ALEGO sandbox access denials: workspace writes or listing fail, or an ordinarily readable path cannot be read. One bundled command inspects the path and every ancestor and repairs the ACL problems it proves in that same run. Expected confinement denials need no ACL repair.
md-audit
Read-only code quality audit — scan the current working directory for common issues (bugs, dead code, security hotspots, missing error handling) and return a prioritised findings report. No files are edited. Use when asked to "audit the code", "quick audit", "find issues", "code scan", or "what's wrong with this…
monitoring-observability
OpenTelemetry, structured logging, distributed tracing, alerting, and dashboards. Use when instrumenting services, designing logs/traces/metrics, defining SLOs and alerts, or debugging production behavior from telemetry.
aster-fix-workflow
Pipe aster review findings into aster fix to generate and apply patches safely, using review --json, fix --findings-json, dry-run inspection, --apply, and permission gating. Use when asked to auto-fix review findings, apply aster's suggested edits, or build a review-then-fix pipeline.
debug-systematic
Systematic 4-phase debugging methodology for complex, intermittent, or mysterious issues. Use when investigating bugs, race conditions, or unexplained failures.
office-docx
Create, read, edit, and validate Word documents (.docx).