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

@@ -2,7 +2,7 @@
name: team-tech-debt
description: Systematic tech debt governance with CSV wave pipeline. Scans codebase for tech debt across 5 dimensions, assesses severity with priority matrix, plans phased remediation, executes fixes in worktree, validates with 4-layer checks. Supports scan/remediate/targeted pipeline modes with fix-verify GC loop.
argument-hint: "[-y|--yes] [-c|--concurrency N] [--continue] [--mode=scan|remediate|targeted] \"scope or description\""
allowed-tools: spawn_agents_on_csv, spawn_agent, wait, send_input, close_agent, Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
allowed-tools: spawn_agents_on_csv, spawn_agent, wait, send_input, close_agent, Read, Write, Edit, Bash, Glob, Grep, request_user_input
---
## Auto Mode
@@ -259,13 +259,13 @@ Write(`${sessionFolder}/wisdom/decisions.md`, '# Decisions\n')
2. **Clarify scope** (skip if AUTO_YES):
```javascript
AskUserQuestion({
request_user_input({
questions: [{
question: "Tech debt governance scope:",
header: "Scope Selection",
multiSelect: false,
question: "Select tech debt governance scope.",
header: "Scope",
id: "debt_scope",
options: [
{ label: "Full project scan", description: "Scan entire codebase" },
{ label: "Full scan (Recommended)", description: "Scan entire codebase" },
{ label: "Specific module", description: "Target specific directory" },
{ label: "Custom scope", description: "Specify file patterns" }
]
@@ -517,15 +517,15 @@ Session: ${sessionFolder}
// Completion action
if (!AUTO_YES) {
AskUserQuestion({
request_user_input({
questions: [{
question: "What next?",
header: "Completion",
multiSelect: false,
question: "Tech debt governance complete. Choose next action.",
header: "Done",
id: "completion",
options: [
{ label: "Close (Recommended)", description: "Archive session" },
{ label: "New target", description: "Run another scan/fix cycle" },
{ label: "Deep fix", description: "Continue fixing remaining items" },
{ label: "Close", description: "Archive session" }
{ label: "Deep fix", description: "Continue fixing remaining items" }
]
}]
})

View File

@@ -36,7 +36,7 @@ Interactive agent for reviewing the tech debt remediation plan at the plan appro
| Tool | Type | Purpose |
|------|------|---------|
| `Read` | built-in | Load plan artifacts and context |
| `AskUserQuestion` | built-in | Get user approval decision |
| `request_user_input` | built-in | Get user approval decision |
| `Write` | built-in | Store approval result |
### Tool Usage Patterns
@@ -91,13 +91,13 @@ Read("<session>/assessment/priority-matrix.json")
2. Present decision:
```javascript
AskUserQuestion({
request_user_input({
questions: [{
question: "Remediation plan generated. Review and decide:",
header: "Plan Approval Gate",
multiSelect: false,
header: "Plan Approval",
id: "plan_approval",
options: [
{ label: "Approve", description: "Proceed with fix execution in worktree" },
{ label: "Approve (Recommended)", description: "Proceed with fix execution in worktree" },
{ label: "Revise", description: "Re-run planner with specific feedback" },
{ label: "Abort", description: "Stop pipeline, keep scan/assessment results" }
]