openspec-continue-change
npx skills add https://smithery.ai
Agent 安装分布
Skill 文档
éè¿å建ä¸ä¸ä¸ªäº§åºç©ç»§ç»å¤çåæ´ã
è¾å ¥ï¼å¯éæå®åæ´åç§°ã妿çç¥ï¼æ£æ¥æ¯å¦å¯ä»¥ä»å¯¹è¯ä¸ä¸æä¸æ¨æãå¦ææ¨¡ç³æä¸æç¡®ï¼ä½ å¿ é¡»æç¤ºè·åå¯ç¨åæ´ã
æ¥éª¤
-
å¦ææ²¡ææä¾åæ´åç§°ï¼æç¤ºéæ©
è¿è¡
openspec-cn list --jsonè·åææè¿ä¿®æ¹æåºçå¯ç¨åæ´ãç¶åä½¿ç¨ AskUserQuestion tool è®©ç¨æ·éæ©è¦å¤çåªä¸ªåæ´ãå±ç¤ºå 3-4 个æè¿ä¿®æ¹çåæ´ä½ä¸ºéé¡¹ï¼æ¾ç¤ºï¼
- åæ´åç§°
- Schemaï¼å¦æåå¨
schemaåæ®µï¼å¦å为 “spec-driven”ï¼ - ç¶æï¼ä¾å¦ï¼”0/5 tasks”, “complete”, “no tasks”ï¼
- æè¿ä¿®æ¹æ¶é´ï¼æ¥èª
lastModifiedåæ®µï¼
å°æè¿ä¿®æ¹çåæ´æ 记为 “(æ¨è)”ï¼å 为å®å¾å¯è½æ¯ç¨æ·æ³è¦ç»§ç»çã
éè¦æç¤ºï¼ä¸è¦çæµæèªå¨éæ©åæ´ãå§ç»è®©ç¨æ·éæ©ã
-
æ£æ¥å½åç¶æ
openspec-cn status --change "<name>" --jsonParse the JSON to understand current state. The response includes:
schemaName: The workflow schema being used (e.g., “spec-driven”)artifacts: Array of artifacts with their status (“done”, “ready”, “blocked”)isComplete: Boolean indicating if all artifacts are complete
-
æ ¹æ®ç¶æè¡å¨ï¼
妿ææäº§åºç©å·²å®æ (
isComplete: true)ï¼- ç¥è´ºç¨æ·
- æ¾ç¤ºæç»ç¶æï¼å æ¬ä½¿ç¨ç Schema
- 建议4ææäº§åºç©å·²åå»ºï¼æ¨ç°å¨å¯ä»¥å®ç°æ¤åæ´æå°å ¶å½æ¡£ã”
- 忢
å¦æäº§åºç©åå¤å¥½å建ï¼ç¶ææ¾ç¤ºæ
status: "ready"ç产åºç©ï¼ï¼- ä»ç¶æè¾åºä¸éæ©ç¬¬ä¸ä¸ª
status: "ready"ç产åºç© - è·åå
¶æä»¤ï¼
openspec-cn instructions <artifact-id> --change "<name>" --json - Parse the JSON. The key fields are:
context: Project background (constraints for you – do NOT include in output)rules: Artifact-specific rules (constraints for you – do NOT include in output)template: The structure to use for your output fileinstruction: Schema-specific guidanceoutputPath: Where to write the artifactdependencies: Completed artifacts to read for context
- Create the artifact file:
- Read any completed dependency files for context
- Use
templateas the structure – fill in its sections - Apply
contextandrulesas constraints when writing – but do NOT copy them into the file - Write to the output path specified in instructions
- Show what was created and what’s now unlocked
- STOP after creating ONE artifact
å¦ææ²¡æäº§åºç©åå¤å¥½ï¼å ¨é¨åé»ï¼ï¼
- 卿æç Schema ä¸ä¸åºåçè¿ç§æ åµ
- æ¾ç¤ºç¶æå¹¶å»ºè®®æ£æ¥é®é¢
-
å建产åºç©åï¼æ¾ç¤ºè¿åº¦
openspec-cn status --change "<name>"
è¾åº
æ¯æ¬¡è°ç¨åï¼æ¾ç¤ºï¼
- å建äºåªä¸ªäº§åºç©
- æ£å¨ä½¿ç¨ç Schema 工使µ
- å½åè¿åº¦ï¼N/M 宿ï¼
- ç°å¨è§£éäºåªäºäº§åºç©
- æç¤ºï¼”æ³è¦ç»§ç»åï¼åªé让æç»§ç»æåè¯æä¸ä¸æ¥åä»ä¹ã”
产åºç©å建æå
产åºç©ç±»ååå
¶ç¨éåå³äº Schemaãä½¿ç¨æä»¤è¾åºä¸ç instruction åæ®µæ¥äºè§£è¦å建ä»ä¹ã
常è§ç产åºç©æ¨¡å¼ï¼
spec-driven schema (proposal â specs â design â tasks):
- proposal.md: Ask user about the change if not clear. Fill in Why, What Changes, Capabilities, Impact.
- The Capabilities section is critical – each capability listed will need a spec file.
- specs//spec.md: Create one spec per capability listed in the proposal’s Capabilities section (use the capability name, not the change name).
- design.md: Document technical decisions, architecture, and implementation approach.
- tasks.md: Break down implementation into checkboxed tasks.
For other schemas, follow the instruction field from the CLI output.
Guardrails
- Create ONE artifact per invocation
- Always read dependency artifacts before creating a new one
- Never skip artifacts or create out of order
- If context is unclear, ask the user before creating
- Verify the artifact file exists after writing before marking progress
- Use the schema’s artifact sequence, don’t assume specific artifact names
- IMPORTANT:
contextandrulesare constraints for YOU, not content for the file- Do NOT copy
<context>,<rules>,<project_context>blocks into the artifact - These guide what you write, but should never appear in the output
- Do NOT copy