refactor(skills): EN thin wrappers + shared common, discovery section
This commit is contained in:
1 parent
66048fd74c
commit
3289804909
4 files changed
+30
-102
No files matched your search
@@ -1,36 +1,12 @@
|
||||
---
|
||||
name: codex-consult
|
||||
description: Codex second opinion on an artifact — spec, plan, design, document, idea. Iterate to consensus. Use when user says «проверь у кодекса», «спроси codex», "second opinion", "have codex review the spec/plan", or when validating a spec/plan before execution.
|
||||
description: Second opinion via Codex on spec/plan/design. Use when user says "second opinion", "have codex review the spec/plan".
|
||||
---
|
||||
|
||||
# Consulting Codex
|
||||
|
||||
Spawn the `codex` subagent, iterate via SendMessage. Hard limit: 5 rounds.
|
||||
Spawn the `codex` subagent, iterate via SendMessage. Hard limit: 5 rounds (see `../references/common.md` for wait-loop/resume).
|
||||
|
||||
## First prompt — required parts
|
||||
|
||||
- First line — framing for the wrapper: "You are a wrapper around the codex
|
||||
CLI: do not solve the task yourself, launch codex and return its answer +
|
||||
thread_id".
|
||||
- `cwd: <absolute path>` — always required (the subagent won't launch codex
|
||||
without it); for a purely textual consultation — the relevant project root.
|
||||
- Role, requirements, and the artifact — in a block between markers
|
||||
`=== TASK FOR CODEX ===` and `=== END TASK ===`:
|
||||
- Role: "You are a second opinion, NOT an executor. Don't rewrite the
|
||||
artifact. Return findings with severity, and questions separately."
|
||||
- User requirements — verbatim (what the artifact must satisfy).
|
||||
- The artifact itself: full text or a file path.
|
||||
|
||||
## Iteration loop
|
||||
|
||||
1. Got findings → evaluate them critically yourself (use
|
||||
superpowers:receiving-code-review, don't agree blindly).
|
||||
2. Made changes to the artifact → SendMessage: what you accepted, what you
|
||||
rejected and WHY, plus the updated artifact or diff.
|
||||
3. Repeat until "no substantial remarks" or the 5-round limit.
|
||||
|
||||
## Finale — summary to the user
|
||||
|
||||
- What was agreed and applied.
|
||||
- What was rejected and why.
|
||||
- Unresolved disagreements, if stuck (the user decides).
|
||||
- `cwd:` mandatory; artifact inside `=== TASK FOR CODEX ===` with role "second opinion, not executor" + requirements + artifact text/path.
|
||||
- Evaluate findings critically (don't agree blindly), SendMessage with accepted/rejected + why + updated artifact.
|
||||
- Finale: agreed/applied, rejected+why, unresolved.
|
||||
Reference in new issue
Block a user