
Context strategy
Guides an agent through huge codebases across many sessions without filling context
Context strategy is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 19
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Context strategy
This skill helps an agent work in repositories far larger than its context window, across engagements that span several sessions. It sets a budget first by counting tracked files and grouping the repository into a scale band, then chooses between reading, searching, scripting and delegating for each question. It asks the agent to name a small working set of files for each task and to keep a durable working guide with build commands, layout notes and landmines so later sessions do not rediscover the same map.
The workflow includes handoff discipline: when context is running low mid-task, the agent writes cited findings and next steps to disk so a fresh session can resume from files alone. It also warns against broad scoping of very large monorepos and against loops that run one git command per file. It points to companion skills for shared workspace conventions, evidence rules and stack detection, and to repo-recon for the full system map.
It expects a git checkout and shell access. The guidance is written around git ls-files, grep, wc and similar standard command-line tools, with examples in shell and optional Python-style scripting.
When your agent uses it
Work effectively in a codebase far larger than any context window, across an engagement that spans many sessions. Decide what to read versus search versus script versus delegate, maintain a durable working guide so each session does not re-derive the same map, define a working set, and hand off cleanly when context runs low. Use when a repository is too large to explore file-by-file, when context is filling up mid-task, when starting a multi-session engagement, when you catch yourself re-discovering something you already worked out, or when someone says "this repo is huge". Run before repo-recon when the tree is large; this sets the budget, it does not replace the system map.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (12 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the fde-core plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add rpraharaj/forward-deployed-engineer
/plugin install fde-core@fde-skillsOr copy only this skill to ~/.claude/skills/context-strategy:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/context-strategy &&
cp -R "$tmp/fde-core/skills/context-strategy" ~/.claude/skills/context-strategy &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/context-strategy inside it instead.
Copy the skill folder to ~/.agents/skills/context-strategy to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/context-strategy &&
cp -R "$tmp/fde-core/skills/context-strategy" ~/.agents/skills/context-strategy &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/context-strategy inside it instead.
Copy the skill folder to ~/.cursor/skills/context-strategy to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/context-strategy &&
cp -R "$tmp/fde-core/skills/context-strategy" ~/.cursor/skills/context-strategy &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/context-strategy inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/rpraharaj/forward-deployed-engineer.git --path fde-core/skills/context-strategyOr copy the folder to ~/.gemini/skills/context-strategy yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/context-strategy:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/context-strategy &&
cp -R "$tmp/fde-core/skills/context-strategy" ~/.copilot/skills/context-strategy &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/context-strategy inside it instead.
Get the folder:
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.gitThen copy forward-deployed-engineer/fde-core/skills/context-strategy into your agent's skills folder as context-strategy. Agents that support SKILL.md read one folder per skill.
What it does
- Scale-based budgeting
- Sizes the repository by tracked file count and sets how much to read versus search.
- Tool selection guidance
- Maps question types to grep, counting, scripts or delegated subagents.
- Working set discipline
- Limits each task to a short list of files that actually matter.
- Durable working guide
- Keeps build commands, layout and landmines in a file reused across sessions.
- Session handoff steps
- Persists cited findings and next steps before context runs out.
Good for
- Explore a monorepo too large to read file by file
- Resume a multi-week engagement without re-mapping the codebase
- Find every place a configuration value or retry policy is set
- Hand off a half-finished refactor to a fresh session cleanly
Context strategy FAQ
When should I use Context strategy instead of repo-recon?
Run it first on a large tree to set the budget. It does not replace repo-recon, which builds the system map.
What does Context strategy need to run?
It assumes a git checkout and command-line tools such as git, grep, wc and sed. It also refers to shared workspace conventions in companion files.
Does Context strategy change my code?
The skill describes writing notes and a working guide into a workspace and the repository's instruction file, not editing source code.
How do I install Context strategy in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/context-strategy to use it in all your projects, or to .claude/skills/context-strategy in one project. Or install the fde-core plugin, which includes it: /plugin marketplace add rpraharaj/forward-deployed-engineer, then /plugin install fde-core@fde-skills.
Does Context strategy run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Context strategy?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Context strategy?
The closest alternatives to Context strategy are Principle guard the context window, How, Repo recon, Context budget and Codebase index.
Where this comes from
- Description: from the skill's own SKILL.md.
More from rpraharaj/forward-deployed-engineer

Defines and tests the boundaries on what an AI agent's tool calls can do
- Open source
- 19 GitHub stars
- Security

Gives agents a procedure to test AI workflows against cases, thresholds and regression
- Open source
- 19 GitHub stars
- Developer tools

Turns access requests into a tracked, parallel critical path with workarounds
- Open source
- 19 GitHub stars
- Productivity

Plans how end users move to a new workflow, with barriers, pilot, support and measures
- Open source
- 19 GitHub stars
- Productivity

Maps what a proposed code change could break before you make it
- Open source
- 19 GitHub stars
- Developer tools

Maps an organization's change approval process so releases can be planned backwards from
- Open source
- 19 GitHub stars
- Productivity



