ワンクリックで
agent-context-brief
Context brief pattern for delegating structural/non-code tasks to coding agents (OpenCode, Claude Code, Codex).
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Context brief pattern for delegating structural/non-code tasks to coding agents (OpenCode, Claude Code, Codex).
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Reconcile split-brain truth sources in a multi-organ federation — when arifOS capability_map, Hermes config.yaml providers block, MCP server registry, and runtime env all claim to be the canonical source for "what's configured". Load when Arif reports "Hermes says 1 provider, arifOS says 28", when a tool call fails with unknown provider, or when fixing audit findings about API key / model / organ coverage.
Add, fix, or migrate custom/third-party LLM providers in a Hermes Agent install so they appear in `/model` (CLI) and the Telegram gateway picker. Covers providers block shape, env-var key mapping, security-blocker on direct config writes, three-tier multimodal fallback chains, MiMo UltraSpeed/Pro/v2.5 capability matrix and supports_vision flag for forced auxiliary routing, vault→hermes.env key sync pattern, picker zen with 5-state failure classification (OK/PAUSED/BROKEN/CHAT_INCOMPATIBLE/EXC) and dedupe by route priority, MoA preset cross-dependency on provider models, MiniMax direct provider + mmx-cli for multimodal generation, OpenCode Go vs Zen tier verification, and dead fallback cleanup.
MiniMax multimodal via mmx-cli — TTS, video, music, image, vision, search
Test whether a proposed improvement actually beats the existing baseline BEFORE committing to build it. Spawn parallel forge agents that each compare challenger vs baseline on the same data. Kill ideas that don't improve; forge only what measurably helps.
Map of the arifOS federation — organs, ports, roles, MCP surfaces, health probes. Load when Arif asks 'what organs are alive', 'show me the federation', 'is X running', 'what port is Y', or when you need to route a task to the right organ.
Probe live state BEFORE proposing fixes, additions, or changes. Read configs, test commands, check what exists — then act only on real gaps. Use ALWAYS. This is not optional. Arif corrected multiple times (2026-07-04, 2026-07-08, 2026-07-11) for proposing fixes to things that already worked, for citing stale audits as live state, and for accepting 'first time' / 'novel' / 'pick from N options' prompts without probing disk.
| name | agent-context-brief |
| description | Context brief pattern for delegating structural/non-code tasks to coding agents (OpenCode, Claude Code, Codex). |
| version | 1.0.0 |
| author | Hermes Agent |
| license | MIT |
| platforms | ["linux","macos","windows"] |
| metadata | {"hermes":{"tags":["Delegation","Context-Brief","Structural-Tasks","Coding-Agents"],"related_skills":["opencode","claude-code","codex"]}} |
When delegating structural/non-code tasks (filesystem reorganization, directory restructuring, git hygiene, config cleanup) to a coding agent, write a context brief file first. Coding agents excel at code but need explicit doctrine for structural work — they don't share your mental model of what each directory "means."
Write _CONTEXT_BRIEF_FOR_[AGENT].md in the target workdir with these sections:
Brief identity/context so the agent understands the stakes.
Tree output with descriptions of each file/folder. Don't just list — explain what each thing is.
The semantic meaning behind the structure. What would break if something moved wrong? What relationships exist?
Dependencies, hierarchies, naming conventions. So the agent doesn't accidentally sever connections.
Concrete action items in priority order.
Explicit NOs:
What "done" looks like:
tree output matching proposed structuregit status clean or expected changesgit check-ignore for sensitive files# OpenCode
opencode run 'Read the full context brief at /path/to/_CONTEXT_BRIEF.md and execute...' --thinking
# Claude Code
claude 'Read the full context brief at /path/to/_CONTEXT_BRIEF.md and execute...'
# Codex
codex run 'Read the full context brief at /path/to/_CONTEXT_BRIEF.md and execute...'
Files already tracked before adding .gitignore rules REMAIN TRACKED. Gitignore only affects untracked files.
When any task involves .gitignore:
git ls-files <dir>/ — what's STILL tracked?git rm --cached <file> (removes from index, keeps on disk)git check-ignore -v <file> confirms the rule appliesThis caught 3 family files (CV, index.html) that were previously git added and would have leaked to GitHub despite the .gitignore.
If a subdirectory has its own .gitignore with broad rules like * + !*.md, it can OVERRIDE the parent .gitignore. Example: PROPA/.gitignore had *\n!*.md rules that leaked PROPA/STRUCTURAL_REALITY.md (a private file) into the tracked set even though the root .gitignore said PROPA/*.
Always probe BOTH layers when auditing gitignore after the agent acts:
git check-ignore -v <file> # shows which .gitignore rule matched
If a tracked file should be private but git check-ignore says "not ignored", suspect the nested gitignore.
After reorganization, the canonical correctness check is:
# What WOULD be pushed:
git ls-files | sort > /tmp/tracked.txt
# What is currently UNTRACKED but not ignored (should be empty for clean state):
git ls-files --others --exclude-standard
# What is gitignored (should include ALL private content):
git ls-files --others --ignored --exclude-standard
If --others --exclude-standard returns non-empty untracked files, agent forgot to gitignore something. If files in --ignored --exclude-standard include sensitive paths (CVs, transcripts), the gitignore is correct.
When the directory uses unconventional names — HAMPA/, PROPA/, SOVEREIGNTY/ — the coding agent treats them as opaque unless the brief explains the doctrine. The agent WILL try to:
Brief must explicitly list each non-obvious directory name + its meaning + the rule that protects it.
Coding agents produce reports that say "moved X, created Y, verified Z." Never trust the report alone for SECURITY-CRITICAL operations. The /root/ariffazil reorganization agent reported everything staged and gitignored — but it missed the 3 already-tracked family files. Only an OUTSIDE check (git ls-files <private-dir>/) caught it.
Mandatory post-execution probes for sensitive operations:
git ls-files <private-dir>/ — any tracked files = privacy leakgit check-ignore -v <representative-private-file> — confirm rule is livegrep -rn "<sensitive-content>" /root/.openclaw/media/inbound/ — confirm no content duplicated to public channelstree <private-dir>/ — confirm no public artifacts accidentally moved into privateIf any probe fails, the task is NOT complete regardless of what the agent said.
The MBR 2026 → GEOX MCP update session produced a "chaos report" that opened with the user saying "this is chaos for me." Root cause: the brief listed _EXPECTED_CANONICAL + llms.txt updates as part of the scope, and OpenCode also took the SOT date-bumps on 6 doctrine files as legitimate housekeeping. Every touched file landed in the dirty tree with related-but-not-asked-for changes.
Fix: Every brief for a delegated agent MUST include an explicit "OFF-LIMITS" section. Format:
## OFF-LIMITS (do NOT touch)
These files are sovereign or out-of-scope. Do not edit, do not bump dates, do not "while-I'm-here" them:
- `AGENTS.md` — sovereign manifest, only Arif signs commits here
- `BOUNDARY.md` — domain boundary doc, separate commit authority
- `GENESIS/000_MANIFESTO.md` through `GENESIS/003_CONSTITUTIONAL_ALIGNMENT.md` — constitutional doctrine
- `llms.txt` — canonical tool list, separate docs commit
If you think any of the above should change, STOP and report it. Do not edit.
The default delegation prompt should assume the agent WILL scope-creep on any file it can plausibly link to the task. The off-limits list is your defense.
Task: Reorganize /root/ariffazil/ — private human-reality filesystem.
Result: OpenCode autonomously:
Key insight: With a good context brief, coding agents handle structural filesystem work autonomously — better than manual execution because they reason about git semantics (tracked vs untracked vs ignored) and catch edge cases you'd miss.