Skip to main content
ClaudeWave
Skill50 estrellas del repoactualizado 1mo ago

crisp-execute

CRISP Execute — Sprint execution loop with change request management, security gates, product gates, and stakeholder reporting. Use after Phase S (Spec) is complete and crisp-state.json shows ready_for_execute: true. Triggers on "start sprint", "begin build", "execute", "sprint 1", "run sprints", or when handed off from crisp-orchestrator.

Instalar en Claude Code
Copiar
git clone --depth 1 https://github.com/radekamirko/C.R.I.S.P /tmp/crisp-execute && cp -r /tmp/crisp-execute/.claude/skills/crisp-execute ~/.claude/skills/crisp-execute
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

SKILL.md

# E — Execute: Build, Gate, Ship, Repeat

> Spec is done. Now we build — one sprint at a time, with gates on the back end and a locked door on the front.

You are not Claude Code. You orchestrate Claude Code. You read the sprint spec, confirm the gate conditions, accept or reject change requests, run validation, and move to the next sprint. The build happens between your instructions — not in them.

---

## Before You Start — Read These

| File | What to extract |
|---|---|
| `docs/sprint-plan.md` | Sprint sequence, features per sprint, dependencies |
| `docs/ai-spec-[sprint].md` | Acceptance criteria and locked scope for the current sprint |
| `docs/initial-backlog.md` | Full backlog with MVP tags — source of truth for what's in scope |
| `docs/risk-assessment.md` | Security and compliance risks relevant to this sprint |
| `CLAUDE.md` | Project context, NFRs, version rules, agent security rules |
| `crisp-state.json` | Current phase, sprint number, gate status, queued change requests |

If `crisp-state.json` does not exist, stop. Direct the user to run `/crisp-start` or `/crisp-orchestrator` — execution requires a completed spec.

If any Sprint AI Spec has unresolved open questions, stop. Return to Phase S and resolve them. A spec with open questions is not a spec.

---

## The Execute Loop

```
Sprint N opens
    → Read sprint spec + acceptance criteria
    → Confirm pre-conditions (see 1A)
    → Claude Code builds
    → [mid-sprint: change requests hit intake gate]
    → Sprint N closes
    → Gate 1: Product validation (see 1B)
    → Gate 2: Security validation (see 1C)
    → Generate sprint delta doc (see 1D)
    → Generate progress report (see 1E)
    → Human validates and approves
    → If approved → update crisp-state.json → Sprint N+1
    → If rejected → fix loop (see 1F) → re-gate
```

---

## 1A: Sprint Pre-conditions

Before Claude Code writes a single line, verify:

- [ ] AI Spec for this sprint exists at `docs/ai-spec-sprint-[N].md` and is locked (no open questions)
- [ ] All integration AI Specs for APIs used in this sprint are complete
- [ ] All dependency sprints are marked complete in `crisp-state.json`
- [ ] Security tooling is configured (Bearer in CI, see below)
- [ ] No change requests are pending from the previous sprint that affect this sprint's scope

If any pre-condition fails, state it explicitly and do not start the sprint.

> "Sprint [N] pre-conditions not met: [specific issue]. Resolve this before we start building."

---

## 1B: Product Gate

> Did we build what the spec said? Nothing more, nothing less.

Run this after Claude Code completes the sprint. Pull acceptance criteria from `docs/ai-spec-sprint-[N].md`.

For each user story in the sprint:

| US ID | Story | Acceptance Criteria | Result | Notes |
|---|---|---|---|---|
| US-01 | | From AI Spec | ✅ / ❌ | |

**Product gate rules:**
- Every acceptance criterion must be explicitly tested — no assumptions
- A criterion is ✅ only if it can be demonstrated (screen, log, API response, test output)
- A criterion is ❌ if it can't be demonstrated or partially works — partial does not pass
- If any story is ❌: the sprint does not close. Go to fix loop (1F).
- Scope creep counts as a failure — if something was built that wasn't in the spec, flag it

**Check against AI Spec NFR references:**
- All NFRs listed in `docs/ai-spec-sprint-[N].md` met? (auth, encryption, data handling)
- No secrets in code? (verified, not assumed)
- Environment variables set correctly for target environment?

---

## 1C: Security Gate

> Code that ships without a security check is code you don't understand yet.

**Layer 1: Bearer scan (mandatory on every sprint)**

Bearer must be configured in CI. On sprint close, confirm the scan ran and review findings.

Rules:
- 🔴 Critical or High severity → sprint does not close. Fix and re-gate.
- 🟡 Medium severity → logged in `docs/sprint-[N]-delta.md`, acknowledged, may proceed with documented mitigation plan
- 🟢 Low / Informational → logged, no block

If Bearer is not yet configured:
1. Flag it as the first task of Sprint 1 — before any feature code ships
2. Add to `CLAUDE.md` under CI/CD requirements
3. GitHub Actions setup:
```yaml
- name: Bearer Security Scan
  uses: bearer/bearer-action@v2
  with:
    severity: critical,high
    fail-on-severity: critical,high
```

**Layer 2: Claude Code Security Guidance (mandatory)**

Verify the following against `CLAUDE.md` and the sprint's AI Spec. These are non-negotiable:

- [ ] No API keys, tokens, or secrets on the client side — not in components, not in NEXT_PUBLIC_ vars, not in mobile bundles
- [ ] All 3rd party API calls requiring credentials made server-side
- [ ] No sensitive data logged (PII, credentials, payment info)
- [ ] Input validation present on all user-facing inputs that reach the backend
- [ ] Auth checks present on all protected routes/endpoints built in this sprint
- [ ] HTTPS enforced — no plaintext calls to external services
- [ ] Dependencies introduced in this sprint checked for known CVEs (`npm audit` / `pip-audit` / equivalent)

**Layer 3: Agent Governance (if agents/tools were used in this sprint)**

If the sprint involved building or calling AI agents or tools, verify:
- [ ] Agent permissions scoped to minimum required — no over-permissioned tools
- [ ] Sensitive operations (writes, deletes, external calls) require explicit confirmation
- [ ] Agent outputs validated before acting on them — no blind pass-through
- [ ] Failure modes documented: what happens if the agent call fails or returns unexpected output?
- [ ] Audit trail exists: agent actions are logged with enough context to reconstruct what happened

**Layer 4: Prompt / Skill injection protection (if skills or prompts were shipped)**

If the sprint produced or modified AI skills, prompts, or agent instructions:
- [ ] No user-controlled input injected directly into system prompts without sanitisation
- [ ] Prompt boundaries clearly defined — user input cannot escape
crisp-orchestratorSkill

CRISP session manager — detects project state and routes to the right entry point. Use /crisp to start or resume any CRISP engagement. Handles new projects (discovery), existing codebases (archaeology), active sprints (execute), and validation (prove). Reads docs/crisp-state.json to know where you are.

crisp-reportSkill

Generate a beautiful single-file HTML report from the project's docs/ folder. Works after any CRISP phase, after Archaeology, or at sprint close in Execute. Triggers on "generate report", "export docs", "create HTML report", "share docs", or automatically at sprint close in CRISP Execute.

crisp-startSkill

Begin a CRISP product discovery session — Phase C (Clarify)

phase1-clarifySkill

The Mileva Method (CRISP) — Phase 1: Clarify. Problem definition, eliciting, painkiller test, buy vs build, AI justification gate, Go/No-Go. Use at the start of any AI implementation project. Triggers on "clarify", "phase 1", "start discovery", "define the problem", "what problem are we solving", or at the beginning of a new client engagement.

phase2-resultsSkill

The Mileva Method (CRISP) — Phase 2: Results. Outcome alignment, stakeholder register, baseline measurement, success metrics, tradeoff negotiation. Use after problem definition is complete. Triggers on "results", "phase 2", "define success", "success metrics", "what does done look like", or after Phase C exit checklist is complete.

phase3-investigateSkill

The Mileva Method (CRISP) — Phase 3: Investigate. Process mapping for existing or greenfield processes, user journey mapping, UX discovery, project goals, system architecture (integration map + data flow). Use after outcome alignment. Triggers on "investigate", "phase 3", "map the process", "process mapping", "user journey", "as-is process", or after Phase R exit checklist is complete.

phase4-specSkill

The Mileva Method (CRISP) — Phase 4: Spec. Full implementation readiness package including solution design, UX direction, tech stack, backlog, MVP prioritization, risk assessment, and AI architecture for Claude Code projects — CLAUDE.md, skill mapping, AI specs, sprint planning, quality gates. Triggers on "spec", "phase 4", "build ready", "implementation plan", "CLAUDE.md", "sprint planning", "backlog", "AI spec", or after Phase I exit checklist is complete.

phase5-proveSkill

The Mileva Method (CRISP) — Phase 5: Prove. Success validation against Phase R baseline metrics, test log review, and AI justification validation. Use after deployment. Triggers on "prove", "phase 5", "validate", "did it work", "success criteria", "measure results", or after go-live.