context

context is a skill for Claude Code, Codex from chan4lk/specclaw. It costs 61 tokens per session (800 once invoked), scanned A, original, MIT.

A shared project document at .specclaw/context.md that stores coding rules, patterns, style choices, architecture decisions, and constraints.

In plain words
What is it for?
Viewing, adding, or editing project rules and architecture notes, or restoring the document from its template.
Why use it?
It keeps important project decisions in one place so the planning, building, and checking steps use the same guidance.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the specclaw plugin — 19 skills, 8 agents shipped together

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

Made for: Claude Code, Codex.

Or install specclaw, the plugin that ships this one along with the rest of its 19 skills, 8 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/chan4lk/specclaw/context.svg)](https://agentmods.dev/skills/chan4lk/specclaw/context)
Your own site
<a href="https://agentmods.dev/skills/chan4lk/specclaw/context"><img src="https://agentmods.dev/badge/skills/chan4lk/specclaw/context.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 800 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.00061 $0.00800
Opus 5 $0.00030 $0.00400
Sonnet 5 $0.00012 $0.00160
Haiku 4.5 $0.00006 $0.00080

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

Security

Grade A, and why

context 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 5d 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/specclaw/skills/context/SKILL.md · 60 lines

How it starts

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

specclaw context

First, run specclaw-ensure-init .specclaw — idempotently creates .specclaw/ if it doesn't exist.

Manage .specclaw/context.md — the project's living architecture document. All lifecycle skills (plan, build, verify) load this file automatically. It is committed to the project repo so it is shared across the team.

Sub-commands

show

Print the current contents of .specclaw/context.md.

If the file does not exist, print: No context.md found. Run '/specclaw:context add' to create one.

add

Add a new rule, pattern, decision, or constraint to the context document.

  1. If .specclaw/context.md does not exist, seed it from $CLAUDE_PLUGIN_ROOT/templates/context.md first.
  2. Ask the operator: "What would you like to add? Describe the rule, pattern, or decision — and which section it belongs in (Architecture, Style, Patterns, Decisions, Constraints)."
  3. Read the current context.md.
  4. Write the new entry into the correct section. Keep the entry concise (1-5 lines). Preserve all other sections unchanged.
  5. Write the updated file back to .specclaw/context.md.
  6. Show the updated section to the operator for confirmation.
  7. Commit: git add .specclaw/context.md && git commit -m "docs(context): add <brief description of what was added>".

edit

Rewrite a specific section of the context document.

  1. If .specclaw/context.md does not exist, seed it from $CLAUDE_PLUGIN_ROOT/templates/context.md first.
  2. Ask the operator: "Which section do you want to edit? (Architecture Overview / Coding Style / Key Patterns / Technology Decisions / Constraints / Recent Decisions)" and "What should the new content be?"
  3. Read the current context.md.
  4. Replace only the specified section's content. Preserve all other sections and the document structure (headings, Last updated line).
  5. Update the _Last updated_ line to today's date.
  6. Write the updated file back to .specclaw/context.md.
  7. Show the diff (old vs new section) to the operator.
  8. Commit: git add .specclaw/context.md && git commit -m "docs(context): update <section name> section".

Read the full file on GitHub · 60 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. 5d ago First seen · 60 lines · 61 tokens per session scan A a1e1cf771b1e

Subscribe to this mod's changes

context is a skill published in the GitHub repository chan4lk/specclaw (12 stars, last pushed 20d ago), licensed MIT. It adds 61 tokens to every session and 800 once invoked, about $0.0003 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.