Context Modes
Agent Buildingcontext-modesContext Modes is an Agent Skill for agent building published in the 0xNyk/lacp repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
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.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/0xNyk/lacp/blob/HEAD/plugin/skills/context-modes/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/context-modes, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Context Modes
Set LACP_CONTEXT_MODE environment variable to activate a mode:
| Mode | Purpose |
|---|---|
tdd | Strict RED-GREEN-REFACTOR — no code without a failing test |
debugging | 4-phase systematic root cause investigation |
sprint | Pre-agreed completion criteria evaluated at stop |
verification | Evidence-before-claims discipline |
brainstorm | Design exploration — no code until design approved |
think | Pause-and-reflect before every action chain |
orchestrate | Decompose into subtasks before executing |
implementation | Focused implementation partner |
review | Code review mode |
thinking-partner | Challenge assumptions, surface blind spots |
handoff-resume | Continue from previous session handoff |
Each mode is a markdown file that gets injected as system context at session start.