# Context strategy

> Context strategy is an open-source agent skill for developer tools. Guides an agent through huge codebases across many sessions without filling context. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/rpraharaj/forward-deployed-engineer/tree/main/fde-core/skills/context-strategy
- **Repository:** https://github.com/rpraharaj/forward-deployed-engineer
- **GitHub stars:** 19
- **License:** MIT
- **Skill name:** context-strategy
- **Collection:** https://github.com/rpraharaj/forward-deployed-engineer
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/rpraharaj/forward-deployed-engineer/tree/HEAD/fde-core/skills/context-strategy)
- [License: MIT](https://github.com/rpraharaj/forward-deployed-engineer/tree/HEAD/fde-core/skills/context-strategy)

## Features

- **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

## Install

### Claude Code

This skill ships in the `fde-core` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add rpraharaj/forward-deployed-engineer
/plugin install fde-core@fde-skills
```

Or copy only this skill to `~/.claude/skills/context-strategy`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/context-strategy` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/context-strategy` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/rpraharaj/forward-deployed-engineer.git --path fde-core/skills/context-strategy
```

Or copy the folder to `~/.gemini/skills/context-strategy` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/context-strategy`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git
```

Then 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.

## 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.

## Alternatives

- [Principle guard the context window](https://ai-powered.com/skills/principle-guard-the-context-window): Principle guard the context window is an open-source agent skill for developer tools.
- [How](https://ai-powered.com/skills/how): How is an open-source agent skill for developer tools.
- [Repo recon](https://ai-powered.com/skills/repo-recon): Repo recon is an open-source agent skill for developer tools.
- [Context budget](https://ai-powered.com/skills/context-budget): Context budget is an open-source agent skill for developer tools.
- [Codebase index](https://ai-powered.com/skills/codebase-index): Codebase index is an open-source agent skill for developer tools.
- [AI team orchestration](https://ai-powered.com/skills/ai-team-orchestration): AI team orchestration is an open-source agent skill for developer tools.
- [Context map](https://ai-powered.com/skills/context-map): Context map is an open-source agent skill for developer tools.
- [Repo story time](https://ai-powered.com/skills/repo-story-time): Repo story time is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/context-strategy
