# Context modes

> Context modes is an open-source agent skill for developer tools. Switch an agent session into structured work modes like TDD, debugging or review. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/0xNyk/lacp/tree/main/plugin/skills/context-modes
- **Repository:** https://github.com/0xnyk/lacp
- **GitHub stars:** 311
- **License:** MIT
- **Skill name:** context-modes
- **Collection:** https://github.com/0xNyk/lacp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

Context Modes is a set of behavioral presets for agent sessions. Setting the LACP_CONTEXT_MODE environment variable selects one mode, and that mode's rules are injected as system context when the session starts. The modes cover test-first development, a four-phase root cause debugging routine, sprint sessions with completion criteria checked at stop, evidence-based verification, design-before-code brainstorming, pause-and-reflect thinking, and splitting work into subtasks before execution. Some additional modes such as implementation, review, thinking-partner and handoff-resume are also listed in the documentation.

Each mode is a markdown file bundled in the skill folder, so the skill itself runs no scripts. Its effect depends on the agent reading the injected context at session start and following it for the rest of the session. Nothing needs to be installed beyond the skill folder and the environment variable.

## When your agent uses it

> Structured work modes for agent sessions. Set LACP_CONTEXT_MODE to activate: tdd (red-green-refactor), debugging (4-phase root cause), sprint (pre-agreed criteria), verification (evidence-before-claims), brainstorm (design first), think (pause-and-reflect), orchestrate (task decomposition). Each mode injects behavioral rules at session start.

## What it can access

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

- [Instructions only, no scripts](https://github.com/0xNyk/lacp/tree/HEAD/plugin/skills/context-modes)
- [License: MIT](https://github.com/0xNyk/lacp/tree/HEAD/plugin/skills/context-modes)

## Features

- **Test-first mode:** Enforces a red-green-refactor cycle so code is written only against a failing test.
- **Systematic debugging:** Guides the agent through a four-phase root cause investigation before proposing fixes.
- **Sprint completion criteria:** Lets a session start with agreed completion criteria that are checked when the agent stops.
- **Evidence before claims:** Requires the agent to back up statements about results with observed evidence.
- **Design-first brainstorming:** Holds code back until a design has been explored and approved.
- **Task decomposition:** Has the agent break a larger request into subtasks before executing them.

## Good for

- Write a feature test-first with a strict red-green-refactor loop
- Track down the root cause of a bug before changing any code
- Plan a sprint with agreed done criteria checked at session end
- Design a new module through discussion before implementation starts
- Break a large refactor into ordered subtasks before editing files

## Install

### Claude Code

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

```sh
/plugin marketplace add 0xNyk/lacp
/plugin install lacp-hardening@lacp-plugins
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/0xNyk/lacp.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/context-modes &&
cp -R "$tmp/plugin/skills/context-modes" ~/.claude/skills/context-modes &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/context-modes` inside it instead.

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/0xNyk/lacp.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/context-modes &&
cp -R "$tmp/plugin/skills/context-modes" ~/.agents/skills/context-modes &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/context-modes` inside it instead.

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/0xNyk/lacp.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/context-modes &&
cp -R "$tmp/plugin/skills/context-modes" ~/.cursor/skills/context-modes &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/context-modes` 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/0xNyk/lacp.git --path plugin/skills/context-modes
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/0xNyk/lacp.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/context-modes &&
cp -R "$tmp/plugin/skills/context-modes" ~/.copilot/skills/context-modes &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/context-modes` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/0xNyk/lacp.git
```

Then copy `lacp/plugin/skills/context-modes` into your agent's skills folder as `context-modes`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How is a mode activated?

Set the LACP_CONTEXT_MODE environment variable to the name of the mode, such as tdd or debugging.

### What does a mode change in the session?

Each mode's behavioral rules are injected as system context at session start, shaping how the agent works for that session.

### Does the skill include scripts or external tools?

No scripts are included. The skill consists of markdown files only, and the listing does not name any required tools.

### How do I install Context modes in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/context-modes to use it in all your projects, or to .claude/skills/context-modes in one project. Or install the lacp-hardening plugin, which includes it: /plugin marketplace add 0xNyk/lacp, then /plugin install lacp-hardening@lacp-plugins.

### Does Context modes 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 modes?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Context modes?

The closest alternatives to Context modes are Manage context, Context strategy, Mode selection, Automate me and Intent layer.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Manage context](https://ai-powered.com/skills/manage-context): Manage context is an open-source agent skill for developer tools.
- [Context strategy](https://ai-powered.com/skills/context-strategy): Context strategy is an open-source agent skill for developer tools.
- [Mode selection](https://ai-powered.com/skills/mode-selection): Mode selection is an open-source agent skill for developer tools.
- [Automate me](https://ai-powered.com/skills/automate-me): Automate me is an open-source agent skill for developer tools.
- [Intent layer](https://ai-powered.com/skills/intent-layer): Intent layer is an open-source agent skill for developer tools.
- [Poteto mode](https://ai-powered.com/skills/poteto-mode): Poteto mode 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.
- [Retro](https://ai-powered.com/skills/retro-mattpocock): Retro is an open-source agent skill for developer tools.

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