project-context

project-context is a skill for Claude Code from egorfedorov/claude-context-optimizer. It costs 81 tokens per session (495 once invoked), scanned A, original, MIT.

A reusable set of project instructions and reference materials for starting new chats with the same background, rules, style, and terminology.

In plain words
What is it for?
Use it to collect recurring user details, audience information, constraints, style guides, glossaries, and other reference text into instructions and files.
Why use it?
It removes the need to repeat or re-paste the same context in every conversation and helps keep responses consistent.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions Claude Code.

Part of the context-optimizer plugin — 6 skills, 24 commands, 3 agents, 6 hooks shipped together

Good fit Use it to collect recurring user details, audience information, constraints, style guides, glossaries, and other reference text into instructions and files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/egorfedorov/claude-context-optimizer/project-context
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.

Any agent
npx skills add egorfedorov/claude-context-optimizer --skill project-context
Clone the repo
git clone --depth 1 https://github.com/egorfedorov/claude-context-optimizer

Made for: Claude Code.

Or install context-optimizer, the plugin that ships this one along with the rest of its 6 skills, 24 commands, 3 agents, 6 hooks.

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 project-context

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/egorfedorov/claude-context-optimizer/project-context"><img src="https://agentmods.dev/badge/skills/egorfedorov/claude-context-optimizer/project-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 495 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00081 $0.00495
Opus 5.5 $0.00032 $0.00198
Sonnet 5.5 $0.00016 $0.00099
Haiku 4.5 $0.00008 $0.00049

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

Security

Grade A, and why

project-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 1mo 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.

skills/project-context/SKILL.md · 45 lines

What it actually says

Project context

Context pasted into every new chat is paid for again in every chat, and drifts each time it is retyped. Written once as instructions, it costs nothing to bring along and stays the same.

Collect

From this conversation, gather what the user keeps supplying: who they are and what they work on, the audience, rules and constraints, tone and format preferences, terms and names, recurring reference material. Ask one question at most, and only for something essential that isn't in the conversation.

Write two things, in the user's language

1. Instructions, in one code block, under 250 words: short imperative lines grouped as Context, Always, Never and Output. Keep only what changes the answers. No pleasantries, no restating what Claude does anyway.

2. Reference material: the long texts (a style guide, a spec, a glossary, a price list) listed by name, to upload as files rather than paste into the instructions.

Where it goes

  • claude.ai or the desktop app: create a Project, paste the instructions into its custom instructions, and add the reference files to its knowledge. Every chat started in that Project begins with both. For preferences that apply everywhere, use Settings → Profile instead.
  • Cowork: start each task with the instructions, and keep the reference files in the folder you give it.
  • Claude Code: a CLAUDE.md loads into every session, so keep there only the lines that matter on most tasks (build and test commands, conventions, hard rules). Long references belong in files that CLAUDE.md points to, read when needed.

End with one line on what this saves: for example, "This replaces the ~1,200-token briefing you've been pasting into each new chat."

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. 1mo ago First seen · 45 lines · 81 tokens per session scan A 99088c5e8b0b

Subscribe to this mod's changes

project-context is a skill published in the GitHub repository egorfedorov/claude-context-optimizer (142 stars, last pushed 2d ago), licensed MIT. It adds 81 tokens to every session and 495 once invoked, about $0.0003 per session on Opus 5.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-10-18.

Related

project-context compared with skills from other repositories

project-context next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
project-contextegorfedorov/claude-context-optimizerSkill1422d agoMITA81Claude Code
savealivecontext/aliveSkill13215d agoMITA76Claude Code
capture-contextalivecontext/aliveSkill13215d agoMITA72Claude Code
session-historyalivecontext/aliveSkill13215d agoMITA74Claude Code
load-contextalivecontext/aliveSkill13215d agoMITA79Claude Code
mine-for-contextalivecontext/aliveSkill13215d agoMITA61Claude Code
my-context-graphalivecontext/aliveSkill13215d agoMITA48Claude Code