mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-25 19:48:33 +08:00
feat: standardize request_user_input schema across all codex skills and add config reminder
- Update all 68 .codex/skills files to use correct request_user_input schema (header, id, question, options with label/description) - Remove deprecated multiSelect, type, value, prompt fields - Add mandatory confirmation gates to planning-only skills - Add Codex config.toml reminder to ccw install CLI - Add Codex configuration section to README.md and README_CN.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
name: session-sync
|
||||
description: Quick-sync session work to specs/*.md and project-tech.json
|
||||
argument-hint: "[-y|--yes] [\"what was done\"]"
|
||||
allowed-tools: AskUserQuestion, Read, Write, Edit, Bash, Glob, Grep
|
||||
allowed-tools: request_user_input, Read, Write, Edit, Bash, Glob, Grep
|
||||
---
|
||||
|
||||
# Session Sync
|
||||
@@ -136,8 +136,18 @@ Target files:
|
||||
`)
|
||||
|
||||
if (!AUTO_YES) {
|
||||
const approved = CONFIRM("Apply these updates? (modify/skip items if needed)") // BLOCKS (wait for user response)
|
||||
if (!approved) {
|
||||
const answer = request_user_input({
|
||||
questions: [{
|
||||
header: "确认同步",
|
||||
id: "confirm_sync",
|
||||
question: "Apply these updates? (modify/skip items if needed)",
|
||||
options: [
|
||||
{ label: "Apply(Recommended)", description: "Apply all extracted updates to specs and project-tech.json" },
|
||||
{ label: "Cancel", description: "Abort sync, no changes made" }
|
||||
]
|
||||
}]
|
||||
}) // BLOCKS (wait for user response)
|
||||
if (answer.answers.confirm_sync.answers[0] !== "Apply(Recommended)") {
|
||||
console.log('Sync cancelled.')
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user