context-setup

A guided setup skill for creating or refreshing a workspace’s identity, project information, reusable workflows, and weekly state files. A workspace is the project area where the agent reads files and performs its work.

In plain words
What is it for?
Use it when initializing a workspace or deliberately rebuilding its context. It helps prepare the files the agent needs to understand the project and its ongoing work.
Why use it?
It gives the agent consistent project context instead of making it rediscover the same background each time. It also checks that the correct repository directory is being used before setup work begins.

Skill for Claude CodeCodex

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/conorbronsdon/agent-context-os/context-setup
Any agent
npx skills add conorbronsdon/agent-context-os --skill context-setup
Clone the repo
git clone --depth 1 https://github.com/conorbronsdon/agent-context-os

Made for: Claude Code, Codex.

Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,118 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 $0.00044 $0.01118
Opus 5 $0.00022 $0.00559
Sonnet 5 $0.00009 $0.00224
Haiku 4.5 $0.00004 $0.00112

Measured yesterday against content hash bcbf5cf85e7a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

context-setup 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 yesterday.

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.

.agents/skills/context-setup/SKILL.md · 110 lines

How it starts

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

Set up workspace context

Execution roots (required)

Use the exact roots supplied by the host attachment: KernelRoot is the trusted Context OS product containing scripts/contextos.sh; ContextRoot owns tracked identity and lifecycle state; and WorkingRoot is the ordinary application. For an external attachment, require all three exact absolute paths and run:

bash <KernelRoot>/scripts/contextos.sh --context-root <ContextRoot> --working-root <WorkingRoot> <command>

Do not search upward or infer a root from cwd or the skill installation. The kernel must validate the ignored local binding before strict lifecycle work. A missing, moved, stale, linked, nested, or mismatched binding stops the workflow; use the explicit project rebind proposal after a legitimate move. ContextRoot owns all lifecycle writes. WorkingRoot is read-only evidence. The colocated bash scripts/contextos.sh <command> compatibility form remains valid.

Throughout this procedure, resolve every context path beneath ContextRoot. In split mode, spell local paths as absolute <ContextRoot>/... paths and invoke every lifecycle command through the absolute KernelRoot wrapper with both exact role options. In colocated mode, run the relative compatibility commands from the colocated root, where ContextRoot and WorkingRoot are the same directory.

Build useful context without silently overwriting user data.

Guardrails

  • Ask questions one at a time and inspect existing files before proposing changes.
  • Preserve the user's wording; do not embellish credentials, goals, or biography.
  • Require approval before replacing populated files, broad writes, commits, or pushes.
  • Never request or store credentials or ingest a raw account export into tracked context.

Procedure

1. Confirm storage and audience

Explain that tracked identity, project, state, session, and imported context is visible to repository collaborators and configured agents. Deleting it later does not erase git history. Recommend local-only or private storage by default; a public remote requires deliberately sanitized content. Stop before collecting personal information unless the user explicitly confirms the audience.

Read the full file on GitHub · 110 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. yesterday Changed · +23 lines bcbf5cf85e7a
  2. 3d ago First seen · 87 lines · 44 tokens per session scan A 45ad41bc67e6

Subscribe to this mod's changes

context-setup is a skill published in the GitHub repository conorbronsdon/agent-context-os (17 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 1,118 once invoked, about $0.0002 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.