context-setup

context-setup is a skill for Claude Code from darrenhinde/OpenAgentsControl. It costs 40 tokens per session (1,136 once invoked), scanned C, original, MIT.

A setup skill that installs project-specific context files from a registry. Context files are instructions about a project's standards, structure, and working practices.

In plain words
What is it for?
Use it to install missing context files, run the setup check, or respond to commands such as /install-context.
Why use it?
It prevents coding agents from starting without the project's conventions and security or quality requirements.

Skill for Claude Code

Written for Claude Code: $CLAUDE_PLUGIN_ROOT variable. Also seen: reads .claude/ paths.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

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

Good fit Use it to install missing context files, run the setup check, or respond to commands such as /install-context.

Compare 6 skills from other repositories ↓
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

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add darrenhinde/OpenAgentsControl
Claude Code
/plugin install oac

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-setup

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/darrenhinde/openagentscontrol/context-setup"><img src="https://agentmods.dev/badge/skills/darrenhinde/openagentscontrol/context-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,136 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00040 $0.01136
Opus 5.5 $0.00016 $0.00454
Sonnet 5.5 $0.00008 $0.00227
Haiku 4.5 $0.00004 $0.00114

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

Security

Grade C, and why

context-setup scanned grade C with 2 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

Linux: sudo apt install git

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

&& echo "Project: ✓ installed — $(grep -o '"profile": "[^"]*"' .claude/.context-manifest.json | head -1 | cut -d'"' -f4) profile" \
plugins/claude-code/skills/context-setup/SKILL.md · 129 lines

How it starts

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

Install Context

Announce: "Let me set up your context files."


Why Context Files Matter

Context files are project-specific standards that every AI agent loads before writing code. Without them:

  • Code won't follow your team's naming conventions or architecture patterns
  • Security and quality standards won't be applied automatically
  • Every agent starts from scratch instead of building on established patterns

With context files, every agent — coder, reviewer, tester — follows the same standards without you repeating yourself.


Quick Check

Run this single command to see everything relevant at once:

echo "=== Environment ===" && \
  { command -v git >/dev/null 2>&1 && echo "✓ git $(git --version | cut -d' ' -f3)" || echo "✗ git: not found — required"; } && \
  { command -v node >/dev/null 2>&1 && echo "✓ node $(node --version)" || echo "  node: not found (bash installer works without it)"; } && \
  echo "=== Context Status ===" && \
  { [ -f .claude/.context-manifest.json ] \
    && echo "Project: ✓ installed — $(grep -o '"profile": "[^"]*"' .claude/.context-manifest.json | head -1 | cut -d'"' -f4) profile" \
    || echo "Project: not installed"; } && \
  { [ -f ~/.claude/.context-manifest.json ] \
    && echo "Global:  ✓ installed — $(grep -o '"profile": "[^"]*"' ~/.claude/.context-manifest.json | head -1 | cut -d'"' -f4) profile" \
    || echo "Global:  not installed"; } && \
  { [ -f .oac.json ] && echo ".oac.json: ✓ exists" || echo ".oac.json: not found"; }

If already installed: show the status, ask if they want to reinstall (--force) or switch profiles.

If git is missing: stop and show the install instructions for git. Nothing else will work.


Ask Two Questions (then install)

Present both together as one message:

Where do you want to install context?

  1. This project only  — .claude/context/ (just for this repo)
  2. Globally           — ~/.claude/context/ (shared by all your projects)

Which profile?

  standard  — Core coding standards, security patterns, dev workflows  (recommended, ~30s)
  extended  — Everything above + UI, data, content, product domains    (~1 min)
  all       — The full library                                         (~2 min)

Read the full file on GitHub · 129 lines

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 · 129 lines · 40 tokens per session scan C 05b44153c327

Subscribe to this mod's changes

context-setup is a skill published in the GitHub repository darrenhinde/OpenAgentsControl (4,992 stars, last pushed 5d ago), licensed MIT. It adds 40 tokens to every session and 1,136 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 2 findings (asks for root, reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

context-setup compared with skills from other repositories

context-setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
context-setupdarrenhinde/OpenAgentsControlSkill5.0k5d agoMITC40Claude Code
knowledge-basewonderwhy-er/DesktopCommanderMCPSkill10ktodayMITA112Claude Code
obsidian-vaultwonderwhy-er/DesktopCommanderMCPSkill10ktodayMITA171Claude Code
context-exclusionteaql/teaql-agent-kitSkill2.8k20d agoMITA41Claude Code
mnemosyneWrongStack/WrongStackSkill444todayMITA67Claude Code, Codex
taiyi-compressDong90/oh-my-taiyiforgeSkill85514d agoMITA51Claude Code, Codex
context-lifecycleteaql/teaql-agent-kitSkill2.8k20d agoMITA51Claude Code