openspec-ff-change
npx skills add https://smithery.ai
Agent 安装分布
Skill 文档
å¿«éå®æäº§åºç©å建 – 䏿¬¡æ§çæå¼å§å®ç°æéçä¸åã
è¾å ¥ï¼ç¨æ·ç请æ±åºå å«åæ´åç§°ï¼kebab-caseï¼æå¯¹ä»ä»¬æ³è¦æå»ºå 容çæè¿°ã
æ¥éª¤
-
å¦ææ²¡ææä¾æç¡®çè¾å ¥ï¼è¯¢é®ä»ä»¬æ³è¦æå»ºä»ä¹
ä½¿ç¨ AskUserQuestion toolï¼å¼æ¾å¼ï¼æ é¢è®¾é项ï¼è¯¢é®ï¼
“æ¨æ³è¦å¤çä»ä¹åæ´ï¼è¯·æè¿°æ¨æ³è¦æå»ºæä¿®å¤çå 容ã”
æ ¹æ®ä»ä»¬çæè¿°ï¼æ¨å¯¼åºä¸ä¸ª kebab-case åç§°ï¼ä¾å¦ï¼”add user authentication” â
add-user-authï¼ãéè¦æç¤ºï¼å¨ä¸äºè§£ç¨æ·æ³è¦æå»ºä»ä¹çæ åµä¸ï¼è¯·å¿ç»§ç»ã
-
åå»ºåæ´ç®å½
openspec-cn new change "<name>"è¿å°å¨
openspec/changes/<name>/å建ä¸ä¸ªèææ¶åæ´ã -
è·å产åºç©æå»ºé¡ºåº
openspec-cn status --change "<name>" --jsonè§£æ JSON 以è·åï¼
applyRequires: å®ç°åæéç产åºç© ID æ°ç»ï¼ä¾å¦ï¼["tasks"]ï¼artifacts: ææäº§åºç©åå ¶ç¶æåä¾èµé¡¹çå表
-
æé¡ºåºå建产åºç©ç´å°åå¤å¥½åºç¨
ä½¿ç¨ TodoWrite tool è·è¸ªäº§åºç©çè¿åº¦ã
æä¾èµé¡ºåºå¾ªç¯éå产åºç©ï¼æ²¡æå¾ å¤çä¾èµé¡¹ç产åºç©ä¼å ï¼ï¼
a. å¯¹äºæ¯ä¸ª
readyï¼ä¾èµé¡¹å·²æ»¡è¶³ï¼ç产åºç©ï¼- è·åæä»¤ï¼
openspec-cn instructions <artifact-id> --change "<name>" --json - The instructions JSON includes:
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 guidance for this artifact typeoutputPath: Where to write the artifactdependencies: Completed artifacts to read for context
- Read any completed dependency files for context
- Create the artifact file using
templateas the structure - Apply
contextandrulesas constraints – but do NOT copy them into the file - Show brief progress: “â Created “
b. ç»§ç»ç´å°ææ
applyRequires产åºç©å®æ- å建æ¯ä¸ªäº§åºç©åï¼éæ°è¿è¡
openspec-cn status --change "<name>" --json - æ£æ¥
applyRequiresä¸çæ¯ä¸ªäº§åºç© ID å¨ artifacts æ°ç»ä¸æ¯å¦å ·æstatus: "done" - 彿æ
applyRequires产åºç©å®ææ¶åæ¢
c. å¦æäº§åºç©éè¦ç¨æ·è¾å ¥ï¼ä¸ä¸æä¸æ¸ æ¥ï¼ï¼
- ä½¿ç¨ AskUserQuestion tool è¿è¡æ¾æ¸
- ç¶åç»§ç»å建
- è·åæä»¤ï¼
-
æ¾ç¤ºæç»ç¶æ
openspec-cn status --change "<name>"
è¾åº
宿ææäº§åºç©åï¼æ»ç»ï¼
- åæ´åç§°åä½ç½®
- å·²å建产åºç©çå表åç®è¦æè¿°
- åå¤å°±ç»ªï¼”ææäº§åºç©å·²å建ï¼åå¤å¥½å®ç°ã”
- æç¤ºï¼”è¿è¡
/opsx:applyæè¦æ±æå®ç°ä»¥å¼å§å¤çä»»å¡ã”
产åºç©å建æå
- Follow the
instructionfield fromopenspec instructionsfor each artifact type - The schema defines what each artifact should contain – follow it
- Read dependency artifacts for context before creating new ones
- Use
templateas the structure for your output file – fill in its sections - 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
æ¤æ
- å建å®ç°æéçææäº§åºç©ï¼ç± Schema ç
apply.requireså®ä¹ï¼ - å¨å建æ°äº§åºç©ä¹åå§ç»é 读ä¾èµäº§åºç©
- 妿ä¸ä¸ææå ¶ä¸æ¸ æ¥ï¼è¯¢é®ç¨æ· – ä½å¾åäºååºåççå³å®ä»¥ä¿æå¿å¤´
- 妿åååæ´å·²åå¨ï¼å»ºè®®ç»§ç»å¤çè¯¥åæ´
- å¨ç»§ç»ä¸ä¸ä¸ªä¹åï¼éªè¯åå ¥åæ¯ä¸ªäº§åºç©æä»¶æ¯å¦åå¨