contexts

contexts is a skill for Claude Code, Codex from OutlineDriven/odin-claude-plugin. It costs 26 tokens per session (882 once invoked), scanned A, original, Apache-2.0.

A context-gathering workflow for understanding a codebase, documentation, or both before implementation. It classifies the request and selects the relevant source of background information.

In plain words
What is it for?
Answering questions about how something works, explaining architecture, and collecting code or documentation context before a change.
Why use it?
It gives the agent architectural orientation before coding, reducing work based on incomplete understanding.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: names the AskUserQuestion tool.

Part of the odin plugin — 36 skills, 2 agents, 7 plugins shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/outlinedriven/odin-claude-plugin/contexts
Any agent
npx skills add OutlineDriven/odin-claude-plugin --skill contexts
Clone the repo
git clone --depth 1 https://github.com/OutlineDriven/odin-claude-plugin

Made for: Claude Code, Codex.

Or install odin, the plugin that ships this one along with the rest of its 36 skills, 2 agents, 7 plugins.

Wrote 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.

agentmods badge for contexts

README.md
[![agentmods](https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/contexts.svg)](https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/contexts)
Your own site
<a href="https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/contexts"><img src="https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/contexts.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 882 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00882
Opus 5 $0.00013 $0.00441
Sonnet 5 $0.00005 $0.00176
Haiku 4.5 $0.00003 $0.00088

Measured 6d ago against content hash e7795791d738, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

contexts 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 6d 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.

skills/contexts/SKILL.md · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Context Command

Auto-router for pre-implementation context gathering. Classify the input as codebase-oriented, doc-oriented, or both; invoke the appropriate workflow; emit a detected: acknowledgement as the first output line.

When to Apply / NOT

Apply:

  • Any request for context, background, or orientation before implementing, fixing, or refactoring
  • "How does X work", "get me context on Y", "what's the architecture of Z"

NOT apply:

  • Bug reproduction or root-cause investigation: use a debugging workflow
  • Already-in-progress implementation: gather context first, then proceed
  • Analysis-only output with no pre-implementation intent

Detected Mode Acknowledgement [LOAD-BEARING]

First output line before ANY work:

detected: <mode> — scope=<paths|libs|both> sources=<brief summary>

Mode values: code-ref, doc-ref, both, ambiguous.

For both mode, also append: (sequential dispatch: codebase first, then external)

Input Classifier

First-match wins. Check in order: both must come before leaf modes so mixed-signal inputs are reachable.

Priority Mode Minimum condition
1 both Repo-local signal (path, glob, symbol, or module) AND external signal (library, framework, SDK, API, CLI, or service name) both present and non-trivial
2 code-ref Repo-local signal present; no external signal
3 doc-ref External signal present; no repo-local signal
4 ambiguous Neither signal cleanly detected, OR signals present but neither dominant

Worked examples:

  • "How does our /autoresearch skill use LangGraph's interrupt for HITL pauses?" → repo signal + external signal → both
  • "Refactor claude/skills/contexts/SKILL.md" → repo signal only → code-ref
  • "Latest Pydantic v2 model_validator signature" → external signal only → doc-ref
  • "Give me context on routing" → no concrete signal → ambiguous → gate fires

Auto-Detect Gate

Fire AskUserQuestion (single-select, NEVER multiSelect) when classifier returns ambiguous OR when both signals are present but one is dominant and the mode is unclear:

Read the full file on GitHub · 76 lines

Files

What ships with it

1 file 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.

Changes

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.

  1. 6d ago First seen · 76 lines · 26 tokens per session scan A e7795791d738

Subscribe to this mod's changes

contexts is a skill published in the GitHub repository OutlineDriven/odin-claude-plugin (35 stars, last pushed today), licensed Apache-2.0. It adds 26 tokens to every session and 882 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

java-clean-arch

Reviews or implements Clean Architecture / Hexagonal Architecture (Ports & Adapters) and DDD tactical patterns for Java projects. Use when user asks to "apply clean architecture", "implement hexagonal architecture", "add ports and adapters", "apply DDD", "refactor to clean arch", "review architecture", or "add value…

ducpm2303/claude-java-plugins · 68 tokens

java-jpa

Reviews Spring Data JPA for N+1 queries, fetch strategies, projections, and Specifications. Use when user asks to "review JPA", "check for N+1", "JPA performance", "review my entities", "check fetch strategy", or "review my repositories".

ducpm2303/claude-java-plugins · 57 tokens

java-logging

Reviews Java logging for SLF4J best practices, MDC context, structured logging, and PII safety. Use when user asks to "review logging", "check my logs", "logging review", "is my logging correct", "MDC setup", or "check for PII in logs".

ducpm2303/claude-java-plugins · 60 tokens

java-security

Reviews or implements Spring Security configuration — JWT authentication, OAuth2, method-level security, CORS, and CSRF. Use when user asks to "add authentication", "secure this API", "implement JWT", "configure Spring Security", "add OAuth2 login", "protect endpoints", or "review security config".

ducpm2303/claude-java-plugins · 63 tokens

java-adr

Creates, lists, and manages Architecture Decision Records for Java projects. Use when user asks to "create an ADR", "document this decision", "write an architecture decision", "add ADR", "list decisions", "show ADRs", or "record this architectural choice".

ducpm2303/claude-java-plugins · 54 tokens

java-health

Runs a holistic code health check scoring Security, Tests, Performance and Quality with A-F grades. Use when user asks to "check health", "score this project", "health check", "how good is this code", "overall assessment", or "code quality score".

ducpm2303/claude-java-plugins · 54 tokens