ワンクリックで
cortex
Adaptive reasoning engine -- classifies task complexity via Cynefin and applies structured thinking frameworks
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Adaptive reasoning engine -- classifies task complexity via Cynefin and applies structured thinking frameworks
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Initialize a Megazord project with configuration and planning structure
Systematic four-phase debugging (reproduce, isolate, root-cause, fix)
Socratic brainstorming to explore approaches before implementation
Execute the current phase plan (subagent or Agent Teams mode)
Show all available Megazord skills with descriptions and usage examples
Complete milestone lifecycle -- audit, archive, deferred items, and next version preparation
| name | cortex |
| description | Adaptive reasoning engine -- classifies task complexity via Cynefin and applies structured thinking frameworks |
| disable-model-invocation | true |
CORTEX classifies every task through Cynefin domains (Clear/Complicated/Complex/Chaotic) and applies appropriate mental models from untools.co. It is a protocol reference consumed by the executor during task execution when cortex_enabled: true.
CORTEX is NOT a manually invocable skill. It activates automatically as part of the executor flow before each task when the config flag is enabled.
Before every task, assess the domain using these concrete heuristics. Each signal is evaluated independently.
| Signal | Clear | Complicated | Complex | Chaotic |
|---|---|---|---|---|
| LOC estimate | <50 | 50-300 | >300 or new architecture | N/A (broken state) |
| Files affected | 1-2 | 3-5 | 6+ or new module structure | N/A |
| New APIs/interfaces | 0 | 1-2 internal | External API or new public interface | N/A |
| Module scope | Same module | 2-3 modules | 4+ modules or cross-system | N/A |
| Pattern familiarity | Well-known, done before | 2+ valid patterns to choose from | No clear pattern, novel territory | N/A |
| Existing test coverage | Tests exist, minor modification | Tests need modification | No existing test patterns | Tests failing on unrelated code |
| Side effects | None | Localized, predictable | Distributed, hard to trace | Cascading failures |
| External dependencies | None new | Internal packages | External services, 3rd-party APIs | External service down/corrupt |
CORTEX: Complicated -- 30 LOC but new external API integration elevates from ClearCORTEX -> Clear -- {2+ concrete signals} (NO visible output beyond this internal classification -- user sees nothing)CORTEX -> Complicated | {signals} | Applying: {framework list}CORTEX -> Complex | {signals} | Applying: {framework list}CORTEX: Chaotic -- {description}. Requesting user input. (STOP execution)For Complicated+ tasks, the classification line is the <summary> of a collapsible <details> block.
<details>, then execute.<details>, select approach, proceed.For every Complicated or Complex task, produce this block:
<details>
<summary>CORTEX -> {domain} | {signals} | Applying: {framework list}</summary>
<challenge domain="{complicated|complex}">
INVERSION (Pre-mortem):
1. "This fails when {specific scenario 1}"
2. "This fails when {specific scenario 2}"
3. "This fails when {specific scenario 3}"
ASSUMPTIONS (Ladder of Inference):
For each key assumption:
- Data: {observable fact}
- Interpretation: {what we read into the data}
- Assumption: {inference we're making}
- Status: {verified (checked in code/docs) | unverified (guessed)}
SECOND-ORDER (Consequence trace):
If we do X:
-> First-order: {immediate effect}
-> Second-order: {what follows from that}
-> Third-order: {what follows from that} (if relevant)
COUNTER: {strongest argument against this approach}
VERDICT: proceed | modify | reject
</challenge>
</details>
When a task is classified as Complex, produce this block AFTER the challenge block and BEFORE execution:
<details>
<summary>CORTEX Complex Analysis</summary>
<complex-analysis>
FIRST-PRINCIPLES:
Irreducible truths about this problem:
1. {fundamental truth}
2. {fundamental truth}
3. {fundamental truth}
Decomposition method: {Five Whys | Socratic Questioning}
{Show the chain of questions that reached these fundamentals}
ABSTRACTION-LADDERING:
WHY (move up): {What's the real problem behind the stated problem?}
REFRAMED: {The problem restated at a higher abstraction level}
HOW (move down): {What specific approaches address the reframed problem?}
ALTERNATIVES:
1. {approach} -- tradeoffs: {pro/con}
2. {approach} -- tradeoffs: {pro/con}
3. {approach} -- tradeoffs: {pro/con}
SELECTED: {N} -- {rationale with evidence}
</complex-analysis>
</details>
Trigger condition: Task touches a module/area that was flagged as problematic in a prior SUMMARY.md (mentioned in "Deviations from Plan", "Issues Encountered", or "Deferred Issues" sections -- NOT merely listed as modified). This distinguishes recurring problems from normal development iteration.
Skip Iceberg Analysis on fresh tasks with no prior history.
<details>
<summary>CORTEX Iceberg Analysis: {area}</summary>
<iceberg area="{module/area name}">
EVENT: {What happened -- the surface symptom}
PATTERN: {Has this happened before? Evidence from SUMMARY.md, git history, or prior tasks}
STRUCTURE: {What system dynamics cause this pattern? Dependencies, coupling, tech debt, missing abstractions}
MENTAL-MODEL: {What assumption about this area keeps producing the pattern?}
LEVERAGE: {Where to intervene for a lasting fix, not just symptom treatment}
</iceberg>
</details>
When they fit naturally, CORTEX may complement with:
No other additions -- keep the set focused.