openspec-context-docs

Separate normative requirements into spec.md and narrative context into context.md files.

2.6k|399|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/Soju06/codex-lb --skill openspec-context-docs-soju06
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openspec-context-docs
Source: https://github.com/Soju06/codex-lb/tree/main/.agents/skills/openspec-context-docs
Command: npx skills add https://github.com/Soju06/codex-lb --skill openspec-context-docs-soju06

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenge of maintaining comprehensive documentation for specifications by separating normative requirements from essential narrative context, ensuring clarity and accessibility for all stakeholders.

Core Features & Use Cases

  • Two-Layer Documentation: Enforces a clear distinction between testable requirements (spec.md) and supporting narrative context (e.g., context.md, rationale.md).
  • Contextual Enrichment: Guides the inclusion of purpose, rationale, constraints, examples, and operational notes to aid understanding.
  • Use Case: When developing a new API specification, use this Skill to ensure that not only are the endpoints and parameters defined in spec.md, but also the design decisions, security considerations, and example request/response payloads are captured in context.md.

Quick Start

Use the openspec-context-docs skill to update the context documentation for a new API specification, ensuring it includes purpose, rationale, and at least one example.

Frequently Asked Questions about openspec-context-docs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I separate normative requirements from context in technical specification documents?

Separate normative requirements by placing testable rules in a spec.md file and moving narrative context to associated files like context.md or rationale.md, ensuring specification clarity without duplicating requirements.

What should be included in a context.md file for API specifications?

A context.md file should capture purpose, design rationale, security considerations, constraints, failure modes, operational notes, and example request or response payloads to enrich the API specification.

Why does my specification documentation mix testable rules with background information?

Specification documentation mixes these when a two-layer separation is not enforced; moving narrative context into context.md and keeping strict requirements in spec.md prevents duplication and maintains testability.

What is the best way to document design decisions and constraints for software requirements?

Document design decisions and constraints in associated context files like rationale.md, detailing the purpose and failure modes to support onboarding while keeping the primary spec strictly normative.

When do I need to use separate context files for my technical writing?

You need separate context files when your specification requires comprehensive onboarding materials and change artifacts, ensuring stakeholders understand the rationale without cluttering testable requirements.

Does OpenSpec context documentation support promoting stable context into the main spec?

Yes, OpenSpec context documentation adheres to a sync rule that promotes stable context into the main specification, preventing the duplication of established requirements across files.