# Context Readiness Gate

> Checks whether a downstream task has the minimum context contract and routes to context-builder when it does not.

- Skill: `munlucky/context-readiness-gate` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add munlucky/context-readiness-gate`
- Raw SKILL.md: https://api.skillmd.com/api/skills/munlucky/context-readiness-gate/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: munlucky (https://skillmd.com/u/munlucky)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/munlucky/context-readiness-gate

---


# Context Readiness Gate

## Role
Prevent downstream implementation from starting without a minimal `context.md`.

## When to use
- `executionPlane == product_project`
- Before `implementation-runner`

## Inputs
- `analysisContext.signals.executionPlane`
- `analysisContext.signals.contextReady`
- `analysisContext.artifacts.contextDocPath`

## Minimum Context Sections
- `Goal`
- `Constraints`
- `Acceptance Criteria`
- `Out of Scope`
- `Target Files`
- `Verification Plan`

## Gate logic
1. If `executionPlane != product_project`, pass with note.
2. If `contextReady == true`, pass.
3. Otherwise:
   - keep the workflow in planning
   - recommend or auto-insert `context-builder`
   - record which minimum sections are missing

## Output (patch)
```yaml
notes:
  - "context-readiness-gate: blocked -> run context-builder"
missingInfo:
  - category: task-context
    priority: HIGH
    question: "Generate `{tasksRoot}/{feature-name}/context.md` with the minimum context schema."
decisions:
  recommendedAgents:
    - context-builder
```

## Rules
- This gate is policy-only.
- Read `docs/public/guidelines/context-readiness-schema.md` for the exact section contract.

