# Cognitive Flow

> Orchestratore dei sottosistemi cognitivi (goal-stack, inhibit, self-monitor, outcome-eval, error-check, cleanup-check, calibrate, handoff-audit). Invocala a session start, dopo un compact/clear, prima di affrontare un task non triviale, o quando vuoi un "reset disciplinato" del proprio modo di lavorare. Use to set up which cognitive sub-skill fires at which moment of the task lifecycle — prevents…

- **Type:** Skill
- **Install:** `agentstack add skill-tommasobbianchi-claude-cognitive-skills-cognitive-flow`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [tommasobbianchi](https://agentstack.voostack.com/s/tommasobbianchi)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [tommasobbianchi](https://github.com/tommasobbianchi)
- **Source:** https://github.com/tommasobbianchi/claude-cognitive-skills/tree/main/skills/cognitive-flow

## Install

```sh
agentstack add skill-tommasobbianchi-claude-cognitive-skills-cognitive-flow
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Cognitive Flow — orchestratore dei sottosistemi di controllo

**Principio**: le skill cognitive non sono moduli isolati, sono fasi di un ciclo. Ogni fase del task ha la sua skill, e saltarne una significa rischiare l'errore di quella fase.

## I 4 momenti del ciclo, e la skill di ciascuno

```
        ┌─────────────────────────────────────────────────────┐
        │                                                     │
        ▼                                                     │
   [PRE-task]              [DURING]            [POST-action] [PRE-handoff]
        │                     │                       │           │
   /goal-stack          /self-monitor          /outcome-eval  /handoff-audit
   /inhibit             (every 5-7 steps)     /error-check        │
   (irreversible?)                            /cleanup-check      │
        │                     │              /calibrate           │
        └─────────────────────┴───────────────────┴───────────────┘
                                  loop until done
```

### Fase 1 — PRE-task (prima di iniziare)

1. `/goal-stack` → carica P0/P1, definisci P2 per il task corrente, verifica che P2 serva P1 serva P0.
2. **REGOLA HARDCODED CORE** → cerca memorie, ispeziona stato.
3. `/inhibit` → se l'azione che stai per fare è irreversibile, pausa esplicita.

### Fase 2 — DURING (esecuzione)

4. Esegui in step piccoli.
5. Ogni 5-7 azioni o ogni svolta importante → `/self-monitor`: stai ancora servendo P2? cicli? deriva?
6. Prima di ogni azione irreversibile dentro il loop → `/inhibit` di nuovo.

### Fase 3 — POST-action (dopo ogni azione concreta)

7. `/outcome-eval` → atteso vs osservato? Se diverge, ferma.
8. Se errore rilevato → `/error-check` (causa radice, post-error slowing, memorizza pattern).
9. Se l'azione ha toccato stato/filesystem/processi/SSH → `/cleanup-check`.

### Fase 4 — PRE-handoff (prima di dire "fatto")

10. `/calibrate` → distingui OSSERVATO da PATTERN/ASSUNTO in ciò che stai per affermare.
11. `/handoff-audit` → wrapper finale che integra: scopo+deliverable, efficacia, cleanup, confidence, consegna onesta.

## Regola di priorità sui conflitti

Vedi `/goal-stack`: in conflitto P0 > P1 > P2 > P3. Se la skill della fase corrente ti dice "fermati" ma il piano dice "vai", **vince la skill** (è il sottosistema di controllo che fa il suo lavoro).

## Costo cognitivo

Tutte le skill cognitive sono brevi (≤25 righe). Sono pensate per essere caricate al bisogno via il trigger nelle loro `description`, NON tutte insieme. Se invocate in massa appesantiscono il contesto — usa quella che serve in quella fase.

## Cosa fare se ti accorgi di aver saltato una fase

Non recuperare in silenzio. Riconosci esplicitamente all'utente cosa hai saltato, esegui la skill saltata ora, e — se ha prodotto problemi — applica `/error-check`.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [tommasobbianchi](https://github.com/tommasobbianchi)
- **Source:** [tommasobbianchi/claude-cognitive-skills](https://github.com/tommasobbianchi/claude-cognitive-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-tommasobbianchi-claude-cognitive-skills-cognitive-flow
- Seller: https://agentstack.voostack.com/s/tommasobbianchi
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
