一键导入
skill-from-codebase
This skill should be used every time you generate, refresh, or validate codebase-derived SKILL.md documentation for this repository.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
This skill should be used every time you generate, refresh, or validate codebase-derived SKILL.md documentation for this repository.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | skill-from-codebase |
| description | This skill should be used every time you generate, refresh, or validate codebase-derived SKILL.md documentation for this repository. |
| compatibility | opencode |
Define a consistent standard for generating and maintaining SKILL.md as an instruction corpus for coding agents.
SKILL.md must help agents decide what to edit, how to use public entities, and how to avoid repo-specific mistakes.
SKILL.md at repo root.SKILL.md at repository root - Canonical corpus file..nexus/ai_harness/skills/<project-name>/skills-state.json - Generation state for incremental refresh.State file schema:
{
"skill_path": ".nexus/ai_harness/skills/<project-name>/SKILL.md",
"last_generated_commit": "<sha>",
"generated_at": "<ISO-8601>"
}
Generation is commit-based:
git status --porcelain is not empty, abort generation.last_generated_commit..HEAD.docs/, **/*.md) from domain generation.Use full mode when:
SKILL.md does not exist.nexus/ai_harness/skills/<project-name>/skills-state.json does not existlast_generated_commit is missing/invalidUse incremental mode when both SKILL.md and valid state exist:
last_generated_commit..HEADEscalate incremental -> full when changes are broad or affect global structure (workspace topology, core manifests, large docs reshuffle).
The main command agent is the orchestrator. It must not delegate orchestration itself.
SKILL.md.SKILL.md only after validator pass..nexus/ai_harness/skills/<project-name>/skills-state.json with current HEAD.SKILL.md SectionsUse this order:
# <Project Name>## Agent Operating Rules## Environment and Version Constraints## Quick Task Playbooks## Getting Started## Workspace Overview## Usage Cards## API Reference## Common Pitfalls## OptionalDo not assume component libraries. Infer dominant entity type (components, modules, endpoints, commands, services, models, etc).
Each usage card must include:
Use whenEnable/Install (if applicable)Import/InvokeMinimal flow (2-4 steps)Key APIsPitfalls (1-2 concrete mistakes)Source (verified internal repo path only; keep brief, non-catalog)Usage card constraints:
Source must point to existing internal files or directories in this repository.Key APIs must use exact full route identifiers only (for example /api/v1/users/{id}), never shorthand names.^19.2.4.llms-full.txt as part of this workflow.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.
Use this skill for all context planning, creation, updates, review, search, and sync work in 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.