# Context Setup

Install context files from registry.

- Repository: https://github.com/darrenhinde/OpenAgentsControl (4967 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-10-26
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add darrenhinde/OpenAgentsControl --skill context-setup -g -a claude-code -y`
Codex: `npx skills add darrenhinde/OpenAgentsControl --skill context-setup -g -a codex -y`
Cursor: `npx skills add darrenhinde/OpenAgentsControl --skill context-setup -g -a cursor -y`
Gemini CLI: `npx skills add darrenhinde/OpenAgentsControl --skill context-setup -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add darrenhinde/OpenAgentsControl`

## Description

Install context files from registry. Use when user runs /install-context, says "install context", "setup context", or when context is missing and the user needs to get started.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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:

```bash
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)

The rest: https://github.com/darrenhinde/OpenAgentsControl/blob/HEAD/plugins/claude-code/skills/context-setup/SKILL.md
