context-discovery

context-discovery is a skill for Claude Code from darrenhinde/OpenAgentsControl. It costs 23 tokens per session (631 once invoked), scanned A, original, MIT.

A skill for finding project standards, security patterns, and conventions before implementing a coding task.

In plain words
What is it for?
Use it before work such as authentication, form validation, or database changes to locate and read the relevant guidance.
Why use it?
It reduces the chance of making changes that conflict with existing rules or established project patterns.

Skill for Claude Code

Written for Claude Code: context: fork in frontmatter. Also seen: agent in frontmatter; mentions subagents; mentions OpenCode.

Part of the oac plugin — 12 skills, 6 commands, 7 agents, 1 hook shipped together

Good fit Use it before work such as authentication, form validation, or database changes to locate and read the relevant guidance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darrenhinde/openagentscontrol/context-discovery
About the project

OpenAgents Control is a framework that adds plan-first, approval-based coding workflows to OpenCode, an AI coding framework. Developers and teams use it to make agents follow shared coding patterns, work across several programming languages, and validate changes through testing and review. The catalogue includes its agents, skills, commands, plugin, and hook.

darrenhinde/OpenAgentsControl · 4,992 stars · on GitHub

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.

Any agent
npx skills add darrenhinde/OpenAgentsControl --skill context-discovery
Clone the repo
git clone --depth 1 https://github.com/darrenhinde/OpenAgentsControl

Made for: Claude Code.

Or install oac, the plugin that ships this one along with the rest of its 12 skills, 6 commands, 7 agents, 1 hook.

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 context-discovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/darrenhinde/openagentscontrol/context-discovery/github.svg)](https://agentmods.dev/skills/darrenhinde/openagentscontrol/context-discovery)
Your own site
<a href="https://agentmods.dev/skills/darrenhinde/openagentscontrol/context-discovery"><img src="https://agentmods.dev/badge/skills/darrenhinde/openagentscontrol/context-discovery/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.

agentmods 80×15 button for context-discovery

Your own site · 80×15
<a href="https://agentmods.dev/skills/darrenhinde/openagentscontrol/context-discovery"><img src="https://agentmods.dev/badge/skills/darrenhinde/openagentscontrol/context-discovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 631 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00023 $0.00631
Opus 5.5 $0.00009 $0.00252
Sonnet 5.5 $0.00005 $0.00126
Haiku 4.5 $0.00002 $0.00063

Measured 3mo ago against content hash f2b516e1696e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

context-discovery 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 3mo 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.

plugins/claude-code/skills/context-discovery/SKILL.md · 114 lines

How it starts

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

Context Discovery

Overview

Discover project standards and patterns before implementing features. Context-scout resolves the context root using the OAC Context Discovery Protocol, then finds and ranks relevant files based on your request.

Announce at start: "I'm using the context-discovery skill to find relevant standards for [feature/task]."

The Process

Step 1: Invoke Context-Scout

Run the skill with your implementation topic:

/context-discovery [what you're implementing]

Examples:

  • /context-discovery JWT authentication
  • /context-discovery React form validation
  • /context-discovery database migration workflow

Step 2: Load Critical Priority Files

Read EVERY file marked Critical Priority (paths returned by context-scout, relative to the resolved context root):

Read: {context_root}/core/standards/code-quality.md
Read: {context_root}/core/standards/security-patterns.md

These are mandatory—proceed only after loading.

Step 3: Load High Priority Files

Read files marked High Priority:

Read: {context_root}/core/workflows/approval-gates.md

These are strongly recommended for your implementation.

Step 4: Load Medium Priority (If Needed)

Read Medium Priority files for additional context:

Read: {context_root}/project-intelligence/architecture.md

These are optional but helpful.

Step 5: Apply to Implementation

  • Follow standards from loaded files
  • Apply patterns to your code
  • Use naming conventions discovered
  • Check workflows before executing

Delegation Pattern

When invoking subagents, pass discovered context files:

Invoke coder-agent:

Task: Implement JWT service

Context to load:
- .opencode/context/core/standards/code-quality.md
- .opencode/context/core/standards/security-patterns.md

Instructions: Follow functional patterns and security best practices.

Error Handling

"No context files found"

  • Run /install-context to download context first

Read the full file on GitHub · 114 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. 3mo ago First seen · 114 lines · 23 tokens per session scan A f2b516e1696e

Subscribe to this mod's changes

context-discovery is a skill published in the GitHub repository darrenhinde/OpenAgentsControl (4,992 stars, last pushed 5d ago), licensed MIT. It adds 23 tokens to every session and 631 once invoked, about $0.0001 per session on Opus 5.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

context-discovery compared with skills from other repositories

context-discovery next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
context-discoverydarrenhinde/OpenAgentsControlSkill5.0k5d agoMITA23Claude Code
knowledge-basewonderwhy-er/DesktopCommanderMCPSkill10ktodayMITA112Claude Code
dd-code-generationDataDog/pupSkill1.0ktodayApache-2.0A16Claude Code
build-teaql-appteaql/teaql-agent-kitSkill2.8k20d agoMITA112Codex
taiyi-ui-designDong90/oh-my-taiyiforgeSkill85514d agoMITA35Claude Code, Codex
output-standardsWrongStack/WrongStackSkill444todayMITA77Claude Code, Codex
web-platform-baselineWrongStack/WrongStackSkill444todayMITA110Claude Code, Codex