원클릭으로
context-driven-development
Use this skill for all context planning, creation, updates, review, search, and sync work in this repository.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use this skill for all context planning, creation, updates, review, search, and sync work in this repository.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Comprehensive guide for the ratkit Rust TUI component library built on ratatui 0.29, including feature flags, APIs, and implementation patterns. Use when building, debugging, or extending ratkit applications and examples.
This skill should be used every time you generate, refresh, or validate codebase-derived SKILL.md documentation for this repository.
Use this skill when working on Nexus context workflows, CDD specifications, or deriving reusable skills from repository code.
This skill should be used every time you create, update, or review end-to-end tests in this repository.
This skill should be used every time you work on justfile projects or just command changes in this repository.
This skill should be used every time you work on Next.js projects or Next.js app code changes in this repository.
| name | context-driven-development |
| description | Use this skill for all context planning, creation, updates, review, search, and sync work in this repository. |
| compatibility | opencode |
This is the single source of truth for CDD in this repository.
CDD separates:
PRJ_NNN-*.md): define desired outcomes and E2E-observable next actions.index.md): document how projects/features work and how to operate/debug them.SKILL.md or skill/SKILL.md, optional): document how a project should be consumed by other projects.lessons_learned.md, optional): capture non-obvious problems and validated workarounds.CDD also supports explicit blocking dependencies between contexts.
Use CDD to describe what success looks like, not how code should be implemented.
.nexus/context/<project>/
├── index.md # Project operational knowledge
├── lessons_learned.md # Optional non-obvious execution lessons and workarounds
├── SKILL.md # Optional project integration guide (alternative to skill/SKILL.md)
├── design_references/
│ └── design_reference.md # Required visual design contract for the project
├── skill/
│ └── SKILL.md # Optional cross-project wrapper/integration contract
├── <feature>/
│ ├── index.md # Feature operational knowledge
│ ├── lessons_learned.md # Optional feature-level execution lessons and workarounds
│ ├── SKILL.md # Optional feature integration guide (alternative to skill/SKILL.md)
│ ├── skill/
│ │ └── SKILL.md # Optional feature wrapper/integration contract
│ └── PRJ_NNN-*.md # Context specifications
└── _reference/ # Optional reference docs (research/design/notes)
Mapping:
<project>: crate/package/system name (kebab-case)<feature>: feature/domain name (kebab-case)Rules:
.nexus/context/<project>/<feature>/..nexus/context/<project>/design_references/design_reference.md..nexus/context/<project>/SKILL.md or .nexus/context/<project>/skill/SKILL.md.lessons_learned.md is optional but allowed at .nexus/context/<project>/lessons_learned.md..nexus/context/<project>/<feature>/lessons_learned.md.nexus/context/<project>/<feature>/SKILL.md or .nexus/context/<project>/<feature>/skill/SKILL.mdInterpretation:
ui or data when those concerns belong inside domain features.Use .nexus/context/<project>/SKILL.md or .nexus/context/<project>/skill/SKILL.md when a project is intended to be wrapped or reused by other projects.
Purpose:
Rules:
depends_on.contexts), not in wrapper skill prose.SKILL.md and skill/SKILL.md exist, they must not conflict.Use lessons_learned.md at project or feature level to record non-obvious execution issues discovered while implementing or operating.
Allowed paths:
.nexus/context/<project>/lessons_learned.md.nexus/context/<project>/<feature>/lessons_learned.mdScope:
Do not use this file for:
Recommended entry shape:
Use vertical feature modules as the default baseline for web apps.
Example:
my-web-appplatform, auth, profile-pageExample file structure:
.nexus/context/my-web-app/
├── index.md
├── lessons_learned.md
├── SKILL.md
├── design_references/
│ └── design_reference.md
├── platform/
│ ├── index.md
│ ├── lessons_learned.md
│ ├── SKILL.md
│ ├── PLA_001-bootstrap-project.md
│ ├── PLA_002-configure-database-migrations.md
│ └── PLA_003-expose-rest-and-sse-contract.md
├── auth/
│ ├── index.md
│ ├── lessons_learned.md
│ ├── SKILL.md
│ ├── AUT_001-email-login-success.md
│ ├── AUT_002-facebook-login.md
│ ├── AUT_003-register-email-password.md
│ └── AUT_004-password-reset-request.md
└── profile-page/
├── index.md
├── lessons_learned.md
├── SKILL.md
├── PRF_001-load-profile-page.md
├── PRF_002-edit-profile-fields.md
└── PRF_003-subscribe-profile-updates-sse.md
Example dependency semantics:
profile-page depends on platform and auth.auth depends on platform.Example context granularity under auth:
email-login-successfacebook-loginregister-email-passwordpassword-reset-requestUse .nexus/context/<project>/design_references/design_reference.md as the written design source of truth (figma-like contract in markdown).
Purpose:
Required content:
globals.css, component style files).Rules:
design_reference.md.PRJ_NNN-brief-description.md or FTR_NNN-brief-description.mdPRJ or FTR: 3-letter uppercase prefix from project or feature nameNNN: zero-padded sequence number (scoped to the chosen prefix)brief-description: kebab-case, concise001 and increments within that prefix only.Prefix choice:
CLI_001, CLI_002): Use when contexts span multiple featuresRAL_001, MKT_002): Use when each feature has independent context trackingExamples:
CLI_007-marketplace-search.md (project-scoped)RAL_001-ralph-command-surface.md (feature-scoped)KNO_012-sync-workflow.md (project-scoped)Required YAML fields:
---
context_id: PRJ_001
title: Human-Readable Title
project: project-name
feature: feature-name
created: "YYYY-MM-DD"
---
Optional dependency metadata (blocking prerequisites only):
skills:
- justfile
- nextjs
depends_on:
contexts:
- ABC_001
- XYZ_014
Rules:
depends_on is optional; omit when there are no prerequisites.depends_on.contexts only.depends_on.contexts entries must be context IDs (for example ABC_001).skills is optional; use it to reference implementation guidance by skill name only.skills entries must be bare names (for example justfile, nextjs, pnpm) and must map to files under skills/**/<name>/SKILL.md.Context specs must use this order:
# PRJ_NNN: Title## Desired Outcome## Reference (optional; remove when empty)## Next ActionsUse a table:
| Description | Test |
|---|---|
| ... | ... |
Rules:
Description: starts with an action verb.Test: snake_case, no test_ prefix.Dependencies are strict prerequisites, not suggestions.
depends_on.contexts.skills using skill names.index.mdindex.md files store operational knowledge, not context specs.
Both project and feature index.md files must start with YAML frontmatter using this exact schema:
---
project_id: project-or-subproject-id
title: Human-Readable Title
created: "YYYY-MM-DD"
status: active
dependencies:
- other-project-id
---
Rules for index frontmatter and dependency content:
dependencies entries must be project or feature identifiers only.dependencies must list only direct operational prerequisites.Examples:
profile-page depends on platform and auth.auth depends on platform.Project index.md should include:
Feature index.md should include:
Rules:
index.md files only.index.md dependency sections are informational only.index.md as the authoritative source for blocking context dependencies.depends_on.contexts.auth, profile-page) over horizontal layers (ui, data).Do not put these in numbered context specs:
nexus -> select context/nexus-context-create -> create context specs/nexus-context-update -> update context/index docs/nexus-context-generate-red-tests -> generate red-only tests from Next Actions/nexus-context-sync-from-chat -> propose updates from conversation/nexus-context-sync-with-code -> propose updates from git/code changes/nexus-context-review -> audit CDD compliance/nexus-context-search -> search contexts by outcome/actions/nexus-context-from-code -> recommend contexts from code scope/nexus-context-validate-unstaged -> validate unstaged code/tests against Next Actions and language rulesWhen working on any context command or context file: