Skip to content
Back to skills

Kuraka Modes

ASecurity

Kuraka workflow variants (Bootstrap, Brownfield, Ultra Ahorro, Lite, Retroactive, Reduced-by-risk). Defines when to use each based on project type or change surface.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 17, 2026
developmentpythongobashsqlreactrailsdockercode-reviewgitapi

Works with

  • claude code
  • api

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add CarlosNavarron1990/kuraka --skill kuraka-modes --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Kuraka Modes?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Kuraka Modes
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/carlosnavarron1990-kuraka-modes/badge)](https://www.skillsdirectory.com/skills/carlosnavarron1990-kuraka-modes)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: kuraka-modes
description: "Kuraka workflow variants (Bootstrap, Brownfield, Ultra Ahorro, Lite, Retroactive, Reduced-by-risk). Defines when to use each based on project type or change surface."
disable-model-invocation: true
user-invocable: false
---

# Kuraka — Modes

This file describes the variants of the main flow (`kuraka.md`). For an
incremental change in an existing project the pipeline is built **UP from
Lite**, escalating only on a named trigger — **Normal (8 phases) is the
ceiling, not the starting point** (see `kuraka.md` §Initial decision and
`rules/17` T13: a cycle costs ~150K per agent invocation, so the mode IS the
budget). The **Bootstrap** and **Brownfield** modes are entry points:
used **once** at the start of a new project or when integrating Kuraka
into a pre-existing codebase.

| Mode | When | Phases / agents |
|---|---|---|
| **Discovery** (Design-Thinking) | Only an idea, no requirement yet — want domain experts to shape the bases | `facilitate-discovery` (Tinkuy council) → po-analyst / inti |
| **Bootstrap** (Greenfield) | Project with no code yet (just an idea) | `inti` → `arki` → Normal Kuraka |
| **Brownfield** | Existing project without Kuraka | `kuraka-inspect` → `amauta` → Normal Kuraka |
| **Normal** | Change in a project with Kuraka already integrated | 8 phases (see `kuraka.md`) |
| **Reduced by risk** | Narrow change of low complexity | 3–5 phases |
| **Lite** | Change with no schema / contract / auth / integration surface (7 criteria) | 3 phases |
| **Ultra Ahorro** | User-selected. One localized low-risk task in an integrated project | 0 agents — direct execution |
| **Retroactive** | Code already implemented without Kuraka (anti-pattern) | 4 phases |
| **Deletion cycle** | Removing code / config / a dead path | Normal, with proof-of-death gates |
| **Partial-smoke** (front-ready / backend-pending) | Frontend done but its backend endpoint isn't deployed yet | Normal, smoke verdict pre-declared partial |
| **Incremental** | Trickled/ad-hoc work that would otherwise skip a REQ | Lightweight REQ + telemetry, still gated |

---

## Mode: Discovery (Design-Thinking — idea without a requirement)

**When**: the user has an **idea**, not a requirement ("quiero un software
de contabilidad"), and wants to discuss the bases of the system with the
right domain voices *before* anything is defined. This is the fuzzy
front-end that sits **before** `po-analyst`.

**Phase map**:

| Phase | Tool / Agent | Output | Gate |
|---|---|---|---|
| D1 | orchestrator + `facilitate-discovery` skill | proposed council (2–4 expert lenses) | User approves the council |
| D2 | ephemeral expert subagents (spawned by orchestrator) | diverge/converge synthesis per round | User reacts, resolves conflicts |
| D3 | orchestrator | `docs/discovery/design-brief-{slug}.md` | User approves the brief |
| D4 | orchestrator (opt-in) | promoted experts in `.claude/project/agents/` | User picks which experts to keep |

**Key architectural point**: the facilitator is a **skill the orchestrator
runs**, not a subagent — only the orchestrator can spawn the expert panel
(a subagent cannot spawn subagents). See `facilitate-discovery.md`.

**Hybrid by design**:
- *Ephemeral council* (default) — experts are throwaway subagents with
  prompts authored on the fly; you converse through the facilitator with
  **no restart**.
- *Promotion* (opt-in) — worthwhile experts are written to the consumer
  project's `.claude/project/agents/` as real reusable agents; one restart
  registers them.

**How to start**:

```text
# in the target project (Kuraka mounted, with or without kuraka.config.yaml)
# new session — tell the orchestrator your raw idea:
#   "Tengo una idea, no un requerimiento todavía: {idea}.
#    Quiero discutir las bases con expertos antes de definir nada."
# the orchestrator runs the facilitate-discovery skill (Discovery mode).
```

**Where it hands off**:
- **Existing / mid-project** → the brief feeds `po-analyst` (Phase 1).
- **Greenfield** → the brief feeds `inti` then `arki` (Bootstrap below).

**When NOT to use Discovery**:
- The requirement is already clear → go straight to `po-analyst`.
- You need to map existing code, not ideate → use Brownfield (`amauta`).

**Guardrails** (enforced by the skill): 2–4 experts, default 2 rounds,
mandatory facilitator synthesis, and every regulatory/legal/standard claim
tagged `⚠️ VALIDAR con experto humano` — the council reasons about
structure, it is not the source of truth for NIIF/IFRS, tax law, etc.

---

## Mode: Bootstrap (Greenfield — new project)

**When**: starting a project with no code yet. The user only has an idea,
a product brief, or a Figma. No stack chosen, no repo structure, no rules.

**Phase map**:

| Phase | Agent | Skill | Output | Gate |
|---|---|---|---|---|
| B1 | `inti` | (interview-driven) | `docs/discovery/vision.md` + `docs/discovery/requirements.md` | User approves discovery |
| B2 | `arki` | (stack proposal + bootstrap) | `kuraka.config.yaml` + `docs/arquitectura/` + `.claude/project/` skeleton + source skeletons + project root files | User approves stack + scaffolding |

After B2, the project is ready for **Normal** mode with `po-analyst` as
the first phase of the first REQ.

**How to start**:

```bash
# from the empty directory of the new project
bash ${KURAKA_VAULT}/mount-kuraka.sh    # mount agents + skills + stack-profiles
/exit                                    # restart Claude Code to register agents
# new session:
# invoke inti: "I want to start a new project: {description}"
```

**When NOT to use Bootstrap**:
- Code already exists in the directory → use Brownfield.
- A `kuraka.config.yaml` already exists → use Normal directly.

**Expected saving**: Bootstrap replaces ~2 weeks of "thinking architecture
from scratch" with a structured 2-phase flow. It's not a shortcut — it's
rigor applied from day 0.

---

## Mode: Brownfield (existing project without Kuraka)

**When**: the repo already has mature code but Kuraka has never been
used there. You need to generate `kuraka.config.yaml`, `.claude/project/`,
and `docs/` without inventing conventions — extracting them from real
code.

**Phase map**:

| Phase | Tool / Agent | Output | Gate |
|---|---|---|---|
| W0 | `kuraka-inspect.py` (script, not an agent) | `inspect-report.json` | User reviews the report |
| W1 | `amauta` | `kuraka.config.yaml` + `.claude/project/` skeleton + `docs/` skeleton + convention matrix with low-confidence findings flagged | User approves the generated rules |

After W1, the project is ready for **Normal** mode in its next REQ.

**How to start**:

```bash
# from the root of the existing repo
python3 ${KURAKA_VAULT}/kuraka-inspect.py > inspect-report.json
bash ${KURAKA_VAULT}/mount-kuraka.sh    # mount agents + skills + stack-profiles
/exit                                    # restart Claude Code
# new session:
# invoke amauta: "I just mounted Kuraka in this existing project.
#                 Read inspect-report.json and generate config + project layer."
```

**When NOT to use Brownfield**:
- No code yet → use Bootstrap.
- `kuraka.config.yaml` already exists → only sync agents, don't regenerate.

**Amauta's golden rule**: never invent conventions. If you didn't see it
in code, marking it as TODO is better than fabricating it.

---

## Mode: Reduced by risk (recommended for small structural changes)

**When:** the change surface is narrow and doesn't touch critical logic.

**How to choose**:

| Surface | Minimum pipeline | Omit (with reason) |
|---|---|---|
| UI-only restyle (CSS / classes, no logic) | 1 + 2 + 4b | 2.5, 3, 5, 5.5, 6, 6.5, 6.7, 7 (no new logic) |
| Type tightening (no logic) | 1 + 4b + 5 | 2.5, 3, 5.5, 6, 6.5, 6.7, 7 (review detects magic strings) |
| Mechanical rename (identifier / file) | 1 (combined with 2) + 4b + 5 | 2.5, 3, 5.5, 6.5, 6.7, 7 |
| Config edit (env var, docker-compose) | 1 + 4 + 6.7 | 2, 2.5, 3, 5.5, 6, 6.5, 7 |

**Rule**: propose the pipeline to the user with a table justifying each
omitted phase. Don't assume; ask before invoking agents.

**Spec-first in Reduced**: whenever the pipeline includes Phase 4 on a change
with new or changed behavior (anything but a pure restyle / rename / type
tightening), Phase 3.95 (`test-engineer` TEST_FIRST — acceptance tests RED
from the plan's oracles, locked) runs before it and replaces Phase 6.

**Do NOT use this mode** for changes that touch business logic, API
contracts, DB, auth, or integrations — Normal is mandatory there.

See also `rules/17-kuraka-token-optimizations.md` for patterns T1–T5
applicable in any mode.

---

## Mode: Lite (trivial changes, strict criteria)

> ⚠️ Mode for changes that meet ALL 7 criteria below. If any fails → use
> Reduced-by-risk or Normal. Do not use Lite to save time on a change that
> carries one of the prohibited surfaces.

### MANDATORY criteria (v2 — recalibrated 2026-09-11)

The v1 criteria (≤3 files, ≤50 LOC) qualified **0 of 100** archived cycles: a
mode nothing can reach saves nothing. The ceiling now sits where the risk
actually lives — the **surface**, not the line count:

- [ ] **≤ 8 source files affected**
- [ ] **≤ 200 LOC total**
- [ ] **0 DB migrations / 0 SQL schema changes**
- [ ] **0 new endpoints** (modifying an existing one is allowed only if its request/response stays stable)
- [ ] **0 API contract changes**
- [ ] **No impact on auth, permissions, or security code** (auth, encryption, tokens)
- [ ] **No changes to integrations / provider code**

If ANY fails → **NOT Lite**.

**What moved, and what did not**: the size ceilings grew (3→8 files, 50→200
LOC). The *surface* prohibitions — DB, contract, auth, integrations — did not
move a millimetre: they are precisely what makes the omitted phases safe to
omit, and they are non-negotiable. A 180-LOC change across 7 files touching no
schema, no contract and no auth is exactly as safe in 3 phases as a 40-LOC
one; v1 excluded it only because it used size as a proxy for risk.

### Cases that NEVER qualify

- Add / remove a DB column (even 1 line in the model).
- New endpoint, however trivial.
- Change in integration / provider code.
- Change to auth / JWT / tokens / CORS.
- Change to logging of sensitive data.
- Migration or seeding of production data.
- Change to shared frontend state stores.

### Phase Map Lite (3 agents vs 8)

| Lite Phase | Agents | Replaces |
|------------|--------|----------|
| L1 | `po-analyst` (mode: LITE_COMBINED) | Phase 1 + 2 + 2.5 |
| L2 | `backend-developer` / `frontend-developer` | Phase 4 |
| L3 | `code-reviewer` (+ the L2 agent for any missing tests) | Phase 3 + 5 + 6 + 7 |
| L2.5 | `e2e-tester` — recorrido (`recorrido-e2e`) | Phase 6.8 smoke, **only when the change is user-visible** |

**User-visible Lite change = 4 invocations (~600K), not 3.** The recorrido is
the 6.8 smoke for any change a user can see: L1 emits the RECORRIDO table in
its test plan, `e2e-tester` walks it in a real browser after L2 (UI +
backend re-fetch per step), and a FAIL goes back to L2 with the same spec
re-run. Announce the 4th invocation in the mode menu; never drop it to stay
at 3 — the smoke→fix→smoke loop by hand costs more than one invocation.

**Phases omitted** (justification inherent to the mode):
- Phase 3 (Architect) — L3 review covers it.
- Phase 5.5 (Security) — Lite doesn't allow security changes.
- Phase 6.5 (E2E) — Lite doesn't allow flow changes.
- Phase 6.7 (Deployment) — Lite doesn't allow config changes.
- Phase 7 (Final Audit) — replaced by a light note in L3.

### L1 — Combined PO + Stories + Test Plan

Agent: `po-analyst` (mode: LITE_COMBINED).

Output:
`${architecture.paths.docs_process_root}/REQ-LITE-{YYYYMMDD}-{slug}.md`
all-in-one with:
- Scope + 9 Lite criteria verified.
- List of affected files.
- 1–3 stories embedded with AC.
- Minimum test plan embedded.
- Confidence.

Gate: REQ-LITE matches the authorized scope and has no unresolved blockers.

### L2 — Implementation

Agent: `backend-developer` or `frontend-developer` (whichever applies).

Implements stories sequentially. If there's backend + frontend, both are
invoked (backend first if there's a contract). Each runs its checks.

**Test first, inside the same invocation (TDD).** Lite has no separate tester,
so the L2 agent FIRST writes the acceptance test(s) from the oracle rows of the
`REQ-LITE-*.md` (input → expected + source) — without writing production code
yet — runs them and pastes the RED evidence (failing assertion, not an import
error), locks them (`kuraka-testlock.py lock`), and only then implements until
they are green. The expected value comes from the REQ-LITE, never from the code
it is about to write. A value the REQ-LITE does not determine → stop and ask.

Gate: files modified + locked tests green (red evidence shown first) +
`kuraka-testlock.py verify` exit 0.

### L3 — Review + Audit

Agent: `code-reviewer` (mode: LITE_FINAL). A single invocation does:
1. 6D code review, including: the RED-first evidence from L2 exists for every
   acceptance test, each expected value cites the REQ-LITE oracle, and no
   locked test changed without an `unlock` record (else BLOCKER).
2. List any missing tests as findings with a concrete one-line assertion
   each. The reviewer does NOT write the tests (its harness denies
   Write/Edit, and a reviewer authoring the tests it then approves breaks
   role isolation) — the orchestrator routes the missing tests as a micro
   pass to the L2 agent (`backend-developer` / `frontend-developer`).
3. Short RETRO only if there's a preventable lesson — returned as report
   content; the orchestrator persists it (docs are its legitimate exception).

Output: review report with verdict + short RETRO (optional).

Gate: findings resolved.

### Lite Workflow Status Template

```markdown
## Workflow Status (Lite)
- [x] Lite Criteria: 9/9 VERIFIED ✓
- [ ] L1: REQ-LITE + Stories + Test Plan
- [ ] L2: Implementation — acceptance test(s) RED first (evidence) + locked, then green
- [ ] L2.5: Recorrido (user-visible change) — RECORRIDO-<REQ>.md verdict
- [ ] L3: Review + Tests + Audit
- [ ] 6.9: User validation — `kuraka-ajuste.py aceptar` (rounds · adjustments · faltó)
- [ ] Backup — `kuraka-backup.py` exit 0
```

**Phase 6.9 (user validation) is never cut, in any mode** — see `kuraka.md`
§Phase 6.9. It costs ~0 tokens (a script writes the ledger) and it is the only
measure of whether the cycle delivered what the user wanted.

### Expected saving (historical data)

Target: **~450K tokens** (3 invocations × the measured ~150K floor per
subagent) against a **median 1.81M** for a Normal cycle — ~75% reduction,
~3× faster, 3 technical gates instead of 8.

Baseline for v2, from the 100 archived cycles at the time of recalibration:
Normal median 1.81M / 13 runs, Reduced median 601K / 6 runs, Lite 0 cycles.
If Lite stays at 0 uses after a few cycles under v2, the criteria are still
wrong — reopen them rather than quietly returning to Normal.

### Golden rule

**If you doubt whether it qualifies as Lite → it does NOT qualify.** Use
Normal or Reduced-by-risk. An "expensive" workflow well-applied costs
less than a Lite badly-applied.

### Mid-cycle escalation

If during L2 / L3 you discover that the change is more complex than
expected (e.g., requires a new column):

1. **STOP immediately.**
2. Notify the user: "This change no longer qualifies as Lite. It needs
   to escalate. Proceed?"
3. Revert if necessary.
4. Re-start at Phase 1 of Normal with the known context.

---

## Mode: Ultra Ahorro (direct execution, zero subagents)

**This mode is never proposed by the pipeline-building logic above — the user
selects it.** Entry: `/kuraka-ahorro <tarea>`, `/kuraka <tarea> --modo
ultra-ahorro`, or `workflow.default_mode: ultra-ahorro`. The full definition
lives in `kuraka-ahorro.md`; this section only places it among the modes.

The main session analyses, implements and verifies a single localized task. No
subagent runs, so there are **no phases, no gates and no independent review**:
the executor reviews its own work. That is the trade the user accepted when
selecting it — do not present its output as a delegated cycle's coverage.

| | Lite | Ultra Ahorro |
|---|---|---|
| Agent invocations | 3 | 0 |
| Independent review | yes (`code-reviewer`) | **no** — same executor |
| Gates | 3 | none; the verification commands are the verdict |
| Process artifacts | REQ + story + RETRO + telemetry | one RETRO + telemetry |
| Chooses it | the orchestrator, by criteria | **the user**, explicitly |

Eligibility is Lite's safety criteria plus a tighter surface: one implementation
layer and its tests, no schema/contract/auth/integration/deploy/global-state
change, and reevaluation above 5 files or 200 changed lines. **If you doubt
whether it qualifies → it does not.** Lite remains the cheapest mode that still
provides independent review; Ultra Ahorro is for when the user judges that
review is not worth its cost on this particular change.

**User validation still applies**: when the user confirms the result, record
it in one line — `kuraka-ajuste.py aceptar <root> --req <id>` (or `add` for each
adjustment they ask for, verbatim). Zero tokens; it is how an Ultra Ahorro
change shows up in the effectiveness numbers instead of vanishing.

Escalation is the same rule as Lite: the moment the change stops qualifying,
stop, say so, and let the user choose the mode — never widen it silently, and
never spawn an agent from inside the mode to get around a difficulty.

Expected saving is **not yet measured**. Zero invocations is a fact of the
design; the token saving per cycle is not, and no percentage should be quoted
until piloted cycles exist. See `kuraka-ahorro.md` §5 on recording unknown
usage as `null` rather than `0`.

---

## Mode: Retroactive (code already implemented)

**Trigger**: the user says the implementation is already done, or you
detect that the modified files already contain the described changes.

**Anti-pattern**: avoid it when possible. The existence of this mode
implies the workflow was skipped — it is NOT a valid default. It exists
to reconstruct documentation retroactively, not to justify systematic
bypass.

### Phase Map Retroactive

| Retro Phase | Replaces | Agent | Function |
|------------|----------|-------|----------|
| R1 | Phase 1 + 2 + 2.5 | `po-analyst` | Generate REQ + stories + test plan in one pass by reading existing code |
| R2 | Phase 3 + 5 | `code-reviewer` | Joint review of stories, test plan, and implementation |
| R3 | Phase 6 | (skip if tests exist) | Validate existing tests, write missing ones |
| R4 | Phase 7 | `final-auditor` | Retrospective |

### R1 — Combined PO + Stories + Test Plan

Agent: `po-analyst` in a single pass. Reads the implemented code and
existing tests to extract function names, paths, and **real** test
cases (not fabricated).

Output: REQ + stories + test plan (same locations as Normal mode).

Gate: artifacts match the authorized scope and have no unresolved blockers before R2.

### R2 — Combined Review

Agent: `code-reviewer`. A single invocation reviews stories AND code
together (the code already exists; separate story review adds no
additional value).

Output: single review report covering story fidelity + code quality.

Gate: BLOCKER and IMPORTANT resolved.

### R3 — Test Validation

```bash
${stack.backend.lint_cmd}
${stack.backend.test_cmd}
```

If tests are missing, `test-engineer` writes them.

### R4 — Final Audit

Same as Phase 7 Normal. The `final-auditor` produces the RETRO with
special attention to why the workflow was skipped (to prevent
repetition).

### Retroactive Workflow Status Template

```markdown
## Workflow Status (Retroactive)
- [ ] R1: PO + Stories + Test Plan
- [ ] R2: Combined Review
- [ ] R3: Test Validation
- [ ] 6.9: User validation — `kuraka-ajuste.py aceptar`
- [ ] R4: Final Audit
```

### Estimated saving

Retroactive uses 2–3 agents vs 5–6 of Normal → −40 to −60% of tokens.
The savings come from:
- No separate story-refiner (merged into PO).
- No separate REVIEW_STORIES pass (merged into REVIEW_IMPLEMENTATION).
- Phase 4 entirely skipped (already implemented).
- Phase 6 reduced to validation, not writing.

---

## Mode: Deletion cycle (removing code / config / a dead path)

Removal is not the inverse of addition — it has its own failure mode (removing a
guard whose input still flows, orphaning config, breaking a live consumer). Run
Normal phases but with proof-of-death gates:

- **Enter on proof, not belief** — `po-analyst` GATE0 runs `grep -rn` for the
  symbol across code + tests + docs + migrations and confirms **no live consumer**
  before anything is removed. A single live reference blocks the cycle.
- **Remove the superseded path AND its config in the same cycle** — a still-REQUIRED
  config var feeding a deleted path is a finding.
- **A removed guard is safe only if its guarded input is also gone** — `security-reviewer`
  confirms this.
- **Sweep dead constants/imports** left behind; grep-verify zero references after removal.

## Mode: Partial-smoke (front-ready / backend-pending)

When the frontend ships complete but its backend endpoint / catalog isn't deployed,
Phase 6.8 can't prove create/update end-to-end. Instead of re-deriving "PASS —
partial, accepted risk" every cycle:

- `final-auditor` treats **front-ready/backend-pending as a first-class smoke
  verdict** — pre-declared, not re-litigated.
- The missing backend work is filed as an explicit follow-up task in the RETRO.
- The cycle still closes, but the partial state is recorded, not hidden.

## Mode: Incremental (trickled / ad-hoc work)

Small ad-hoc fixes that would otherwise run with no REQ, no stories, and no
telemetry (a whole cycle once ran untracked — guai db-refactor). Even trickled
work opens a **lightweight REQ** + telemetry JSON so it's auditable, and still
passes the non-skippable minimum gate (dev → code-reviewer → orchestrator verifies
the real result). After 2 ad-hoc fixes on the same surface, STOP and open a proper
delta-story group (reactive-fix circuit breaker).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.