-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathskill.yaml
More file actions
150 lines (142 loc) · 8.52 KB
/
skill.yaml
File metadata and controls
150 lines (142 loc) · 8.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
name: ospec
title: OSpec
description: Document-driven OSpec workflow skill for AI-assisted development with Codex, Claude Code, and similar AI tools.
author: OSpec Team
license: MIT
interface:
display_name: "OSpec"
short_description: "Inspect, initialize, and operate OSpec projects"
default_prompt: "Use $ospec to initialize this directory according to OSpec rules: use ospec init so the repository ends in change-ready state, reuse existing project docs when available, map an explicit language request or the current conversation language to --document-language during AI-assisted init instead of assuming a brand-new repo will infer it, ask one concise follow-up for missing summary or tech stack in AI-assisted flows, fall back to placeholder docs when the user skips that context, do not assume a web template when the project type is unclear, and do not create the first change automatically."
requires_local:
node: ">=18.0.0"
npm: ">=8.0.0"
protocol:
project_files:
- ".skillrc"
- "SKILL.md"
- "SKILL.index.json"
- ".ospec/tools/build-index-auto.cjs"
- "for-ai/ai-guide.md"
- "for-ai/execution-protocol.md"
- "for-ai/naming-conventions.md"
- "for-ai/skill-conventions.md"
- "for-ai/workflow-conventions.md"
- "for-ai/development-guide.md"
feature_files:
- "changes/active/<feature>/proposal.md"
- "changes/active/<feature>/tasks.md"
- "changes/active/<feature>/state.json"
- "changes/active/<feature>/verification.md"
feature_name_format: "kebab-case"
commands:
- id: status
command: "ospec status [project-dir]"
purpose: "Show project knowledge, execution status, and the recommended next step."
- id: init
command: "ospec init [root-dir]"
purpose: "Initialize the repository to a change-ready state from CLI."
- id: docs_generate
command: "ospec docs generate [project-dir]"
purpose: "Refresh, repair, or backfill the project knowledge layer for an already initialized repository."
- id: new
command: "ospec new <feature-name> [root-dir]"
purpose: "Create a new change under changes/active with proposal/tasks/state/verification/review."
- id: changes_status
command: "ospec changes status [project-dir]"
purpose: "Show PASS/WARN/FAIL protocol status for every active change."
- id: docs_status
command: "ospec docs status [project-dir]"
purpose: "Show project-doc coverage and missing knowledge docs."
- id: skills_status
command: "ospec skills status [project-dir]"
purpose: "Show layered SKILL coverage, module skills, and index status."
- id: index_check
command: "ospec index check [project-dir]"
purpose: "Show whether the skill index exists, is stale, or needs rebuild."
- id: index_build
command: "ospec index build [project-dir]"
purpose: "Rebuild the project skill index."
- id: progress
command: "ospec progress [changes/active/<feature>]"
purpose: "Show progress for a single active feature."
- id: verify
command: "ospec verify [changes/active/<feature>]"
purpose: "Check protocol completeness and optional-step coverage."
- id: archive
command: "ospec archive [changes/active/<feature>] [--check]"
purpose: "Archive a completed change after gate checks; use --check for readiness only."
- id: finalize
command: "ospec finalize [changes/active/<feature>]"
purpose: "Run verify + index refresh + archive as the standard closeout flow before commit."
- id: workflow_show
command: "ospec workflow show"
purpose: "Show workflow configuration for the current project."
- id: workflow_flags
command: "ospec workflow list-flags"
purpose: "List supported workflow feature flags."
- id: skill_status
command: "ospec skill status"
purpose: "Check whether a Codex-installed OSpec skill is present and in sync. Managed defaults are ospec and ospec-change."
- id: skill_install
command: "ospec skill install"
purpose: "Install or sync one OSpec skill package into ~/.codex/skills/. Managed defaults are ospec and ospec-change."
- id: skill_status_claude
command: "ospec skill status-claude"
purpose: "Check whether a Claude Code-installed OSpec skill is present and in sync. Managed defaults are ospec and ospec-change."
- id: skill_install_claude
command: "ospec skill install-claude"
purpose: "Install or sync one OSpec skill package into ~/.claude/skills/. Managed defaults are ospec and ospec-change."
workflow:
read_order:
- ".skillrc"
- "changes/active/<feature>/proposal.md"
- "changes/active/<feature>/tasks.md"
- "changes/active/<feature>/state.json"
- "changes/active/<feature>/verification.md"
archive_requirements:
- "state.json.status must be ready_to_archive"
- "verification.md must be fully passed"
- "activated optional steps must appear in tasks.md and verification.md"
- "activated optional steps must be listed in verification.md.passed_optional_steps"
preferred_entry:
- "Run ospec init [path] when the directory is uninitialized or not yet change-ready."
- "Pass --summary, --tech-stack, or --architecture during init when CLI users already know the missing project context."
- "Run your project deployment and validation flow before archiving the active change."
- "Run ospec verify [changes/active/<change>] before archiving."
- "Use ospec status [path] when you want an explicit textual summary or troubleshooting snapshot."
- "Run ospec docs generate [path] later when you only need a docs maintenance pass."
- "Create the first change explicitly instead of assuming initialization will do it."
guardrails:
- "Treat init as change-ready initialization, not protocol-shell-only initialization."
- "If the user intent is simply to initialize the project or current directory, still trigger the mandatory init flow without asking for a longer prompt."
- "When the user asks to initialize, use ospec init to take the repository to change-ready state and verify the managed protocol-shell files plus docs/project/* on disk before declaring success."
- "In AI-assisted flows, ask at most one concise follow-up for missing summary or tech stack before init when that context is unavailable."
- "If the user declines or no AI follow-up is possible, continue with placeholder docs instead of blocking init."
- "Do not assume the project is a web or Next.js project unless the repository or user makes that explicit."
- "Do not apply business scaffold during plain init."
- "Do not generate docs/project/bootstrap-summary.md during plain init or docs generate."
- "Do not create the first change automatically unless the user explicitly asks for a change."
- "Treat presets as planning defaults, not as init-time templates."
prompt_profiles:
minimal: "Initialize this project with ospec. Use ospec init and verify the managed files before saying it is initialized."
standard: "Initialize this project with ospec according to current OSpec rules. Use ospec init so the repository ends in change-ready state, and do not create the first change automatically."
guided_init: "Use ospec to initialize this project. If the repository lacks project context, ask me for a short summary or tech stack first. If I skip it, continue with placeholder docs."
knowledge_backfill: "Use ospec to refresh or repair the project knowledge layer for this directory. Focus on docs, layered skills, and index state. Do not create a change yet."
change_creation: "Use ospec to create and advance a change for this requirement. Respect the current project state and do not treat init as auto-change creation."
usage:
new_project_flow:
- "Initialize the repository with ospec init [path]."
- "If AI can ask follow-up questions and project context is missing, provide a short summary or tech stack once, or skip it and let placeholder docs be generated."
- "Create the first active change explicitly."
- "Run your project deployment and validation flow, then use ospec verify [changes/active/<change>]."
- "Archive the validated change with ospec finalize [changes/active/<change>]."
- "Verify .skillrc, changes/, .ospec/, .ospec/tools/build-index-auto.cjs, for-ai docs, and docs/project/* before claiming init is complete."
- "Use presets only as planning defaults; scaffold still requires explicit intent."
prompt_shortcuts:
- "initialize this project"
- "initialize this directory"
- "initialize the current project"
- "使用 ospec 初始化项目"
- "使用 ospec 初始化这个目录"
- "use ospec to initialize this directory"
- "use ospec to refresh or repair the project knowledge layer"