Skip to content
Skill

Context modes

Switch an agent session into structured work modes like TDD, debugging or review

Context modes is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
311
Last commit
License
MIT
Listing updated

Similar skills

About Context modes

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.

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 12 files (17 KB) on GitHub on 3 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 lacp-hardening plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

gemini skills install https://github.com/0xNyk/lacp.git --path plugin/skills/context-modes

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Context modes 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.

More from 0xNyk/lacp

  1. Scores agent session work at stop, flags unverified test claims, and writes handoffs

    • Open source
    • 311 GitHub stars
    • Developer tools
  2. Guards agent sessions with pretool blocks, periodic test runs and startup context

    • Open source
    • 311 GitHub stars
    • Developer tools