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:
catlog22
2026-03-24 15:19:18 +08:00
parent ccb5f1e615
commit fe7945eaa2
72 changed files with 1020 additions and 901 deletions

View File

@@ -7,12 +7,12 @@ description: |
interactive verification. Produces IMPL_PLAN.md with Red-Green-Refactor cycles,
task JSONs, TODO_LIST.md.
argument-hint: "[-y|--yes] [--session ID] \"task description\" | verify [--session ID]"
allowed-tools: spawn_agent, wait, send_input, close_agent, AskUserQuestion, Read, Write, Edit, Bash, Glob, Grep
allowed-tools: spawn_agent, wait, send_input, close_agent, request_user_input, Read, Write, Edit, Bash, Glob, Grep
---
## Auto Mode
When `--yes` or `-y`: Skip all confirmations, use defaults, auto-verify, auto-continue to execute if PROCEED.
When `--yes` or `-y`: Skip all confirmations, use defaults, auto-verify. **This skill is planning-only — it NEVER executes implementation. Output is the plan for user review.**
# Workflow TDD Plan
@@ -75,9 +75,9 @@ Multi-mode TDD planning pipeline using subagent coordination. Plan mode runs 6 s
│ ├─ Validate Red-Green-Refactor structure │
│ └─ Present Plan Confirmation Gate │
│ │
│ Plan Confirmation Gate
│ Plan Confirmation Gate (PLANNING ENDS HERE)
│ ├─ "Verify TDD Compliance" → Phase 7 │
│ ├─ "Start Execution" → workflow-execute
│ ├─ "Done" → Display next-step command for user
│ └─ "Review Status" → Display inline │
│ │
│ ═══ Verify Mode ═══ │
@@ -228,11 +228,10 @@ if (existingSessionId) {
sessionFolder = sessions[0]
sessionId = sessions[0].split('/').pop()
} else {
const answer = AskUserQuestion({
const answer = request_user_input({
questions: [{
question: "Multiple sessions found. Select one:",
header: "Session",
multiSelect: false,
options: sessions.slice(0, 4).map(s => ({
label: s.split('/').pop(),
description: s
@@ -422,11 +421,10 @@ TASK DESCRIPTION: ${taskDescription}" --tool gemini --mode analysis --rule analy
console.log(` Strategy: ${c.strategy} | Impact: ${c.impact}`)
})
const answer = AskUserQuestion({
const answer = request_user_input({
questions: [{
question: "Accept conflict resolution strategies?",
header: "Conflicts",
multiSelect: false,
options: [
{ label: "Accept All", description: "Apply all recommended strategies" },
{ label: "Review Each", description: "Approve strategies individually" },
@@ -556,11 +554,10 @@ if (validationErrors.length > 0) {
validationErrors.forEach(e => console.log(` - ${e}`))
if (!AUTO_YES) {
const answer = AskUserQuestion({
const answer = request_user_input({
questions: [{
question: "TDD structure validation failed. Continue anyway?",
header: "Validation",
multiSelect: false,
options: [
{ label: "Fix and Retry", description: "Regenerate tasks with correct structure" },
{ label: "Continue", description: "Proceed despite errors" },
@@ -590,27 +587,26 @@ if (AUTO_YES) {
console.log(` [--yes] Auto-verifying TDD compliance...`)
// → Fall through to Phase 7
} else {
const nextStep = AskUserQuestion({
const nextStep = request_user_input({
questions: [{
question: "TDD plan generated. What's next?",
header: "Next Step",
multiSelect: false,
options: [
{ label: "Verify TDD Compliance (Recommended)", description: "Run full TDD compliance verification" },
{ label: "Start Execution", description: "Proceed to workflow-execute" },
{ label: "Done", description: "Planning complete — show next-step command" },
{ label: "Review Status", description: "Display plan summary inline" }
]
}]
})
if (nextStep['Next Step'] === 'Start Execution') {
console.log(`\nReady to execute. Run: $workflow-execute --session ${sessionId}`)
return
if (nextStep['Next Step'] === 'Done') {
console.log(`\nPlanning complete. To execute, run: $workflow-execute --session ${sessionId}`)
return // STOP — this skill is planning-only
}
if (nextStep['Next Step'] === 'Review Status') {
const plan = Read(`${sessionFolder}/IMPL_PLAN.md`)
console.log(plan)
return
return // STOP — this skill is planning-only
}
// Verify → continue to Phase 7
}
@@ -703,10 +699,8 @@ BLOCKED: Critical failures, must fix before execution
console.log(` Quality gate: ${qualityGate}`)
console.log(` Report: ${sessionFolder}/.process/TDD_COMPLIANCE_REPORT.md`)
if (AUTO_YES && qualityGate === 'APPROVED') {
console.log(` [--yes] TDD compliance verified. Ready for execution.`)
console.log(` Run: $workflow-execute --session ${sessionId}`)
}
console.log(`\nPlanning complete. To execute, run: $workflow-execute --session ${sessionId}`)
// STOP — this skill is planning-only, NEVER proceed to execution
}
```