# Cognitive Toolkit

> Guided CBT and DBT practice exercises — thought record, opposite action, TIPP, DEAR MAN (with roleplay), wise mind, chain analysis and behavioral activation — with configurable Socratic pushback and optional health context. Triggers on "/cbt", "/dbt", "/thought-record", "/record", "/opposite", "/opposite-action", "/tipp", "/dear-man", "/wise-mind", "/chain", "/activate", "I need to work through something", "help me with a thought", "cognitive distortion", "I'm spiraling", "can we do a thought record", "I need to calm down", "help me ask for something", "how do I say no", "I can't decide", "why did I do that", "I don't feel like doing anything".

- Skill: `glebis/cognitive-toolkit-2` (Agent Skill, multi-file: 32 files)
- Install (CLI): `npx get-skill add glebis/cognitive-toolkit-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/glebis/cognitive-toolkit-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: glebis (https://skillmd.com/u/glebis)
- Updated: 2026-11-15
- Page: https://skillmd.com/skills/glebis/cognitive-toolkit-2

---


# Cognitive Toolkit

Interactive CBT and DBT guided exercises with configurable pushback and optional health data context. A practice tool for between therapy sessions — not a therapist, not a diagnostic tool.

## Usage

```
/cbt                        # check-in → technique recommendation
/cbt thought-record         # jump directly to thought record
/cbt opposite-action        # jump directly to opposite action
/cbt tipp                   # calm the body first (acute distress)
/cbt dear-man               # prepare a request or a no; optional roleplay
/cbt wise-mind              # a decision pulled two ways
/cbt chain-analysis         # reconstruct something you did and regret
/cbt behavioral-activation  # plan one small activity when mood is low
/cbt overview dear-man      # show a one-page map of a technique
/cbt --pushback firm        # override pushback level (off|gentle|moderate|firm)
/cbt --no-health            # skip health data even if available
/cbt --lang ru              # run the session in Russian (en|ru)
```

## What to read

Always read first:

1. `references/session-engine.md` — the session state machine, safety rules, navigation commands, and the **only** definition of the saved-session format and path.
2. `references/pushback-config.md` — the **only** definition of pushback levels and the default.

Then read only what the session needs:

3. The reference file of the chosen technique (table below) — after the technique is chosen, not before.
4. `references/health-integration.md` — only if a health MCP is available and `--no-health` was not passed.
5. `references/language-ru.md` — only when the session language is Russian. How the language is chosen, including the optional question at first start, is in `session-engine.md`.

## Available Techniques

| Command | Technique | Reference |
|---|---|---|
| `thought-record` | Thought Record (7 steps, CBT) | `references/thought-record.md` |
| `opposite-action` | Opposite Action (4 steps, DBT) | `references/opposite-action.md` |
| `tipp` | TIPP (body-based, for acute distress, DBT) | `references/tipp.md` |
| `dear-man` | DEAR MAN (7 steps + optional roleplay, DBT) | `references/dear-man.md` |
| `wise-mind` | Wise Mind (6 steps, DBT) | `references/wise-mind.md` |
| `chain-analysis` | Chain Analysis (6 steps, DBT) | `references/chain-analysis.md` |
| `behavioral-activation` | Behavioral Activation (6 steps, CBT) | `references/behavioral-activation.md` |

Each file says when the technique is the wrong tool (a "When NOT to use" section, or a "Not for" line). Read it before the first step and follow it even when the user asked for the technique by name.

### Anything else

A technique that is not in this table has **no protocol file**. Do not run it from memory or improvise a version. Say it is not built and offer an available technique or an unstructured conversation instead.

## Technique overview (optional)

`/cbt overview [technique]`, or a request such as "show me the map of DEAR MAN", shows a one-page picture of the technique: when to use it, when not to, the steps, which steps are core, and where it can branch.

The pictures are ready-made files, `assets/overviews/<technique>.svg`, one per technique in the table above.

1. If the sketch canvas tools are available (`sketch_open_canvas`, `sketch_set_svg`), open a canvas named `cbt-<technique>`, load the file's content into it, and call `sketch_zoom_to_fit`. The user can then annotate it.
2. Otherwise open the file in the system viewer (`open <path>` on macOS) or, failing that, give its path.

Rules:

- Use the file as it is. Do not redraw a technique from memory, and do not restyle it. If the file is missing, say so.
- Without a technique name, list the seven and ask which.
- Offer the overview at most once per session, when the user asks what a technique involves before choosing. Never offer it during a safety response or acute distress; a picture is not what is needed then.
- Showing an overview is not a session: no check-in, no rating, nothing saved.

The files are generated by `scripts/build_overviews.py` from the protocol files and `assets/overviews/captions.json`. After changing a technique's steps, run the script; `--check` reports a mismatch.

## Session Flow

Defined in `references/session-engine.md`. In short: check-in → safety screen → technique selection → guided protocol → close → save.

With a technique argument, skip the recommendation step but keep the check-in and the safety screen.

## Pushback

- Levels: `off` (0), `gentle` (1), `moderate` (2, default), `firm` (3) — defined in `references/pushback-config.md`.
- Per-session override: `/cbt --pushback [off|gentle|moderate|firm]`.
- Mid-session: `softer`, `harder`, `no pushback`.
- Pushback is Socratic, never confrontational, and always yields.

## Health Data

Optional context only — never a gate, never a score of how the session went. Rules in `references/health-integration.md`.

## Telegram Entry Points

| Command | Maps to |
|---|---|
| `/record` | `thought-record` |
| `/opposite` | `opposite-action` |
| `/tipp` | `tipp` |
| `/dearman` | `dear-man` |
| `/wise` | `wise-mind` |
| `/chain` | `chain-analysis` |
| `/activate` | `behavioral-activation` |
| `/checkin` | full check-in flow |
| `/settings` | adjust pushback level, health toggle and language |

When running under Hermes, also read `hermes/HERMES_ADAPTER.md`.

## Boundaries

- Not a diagnostic tool — never assess, label, or diagnose.
- Not a therapist replacement.
- Frame suggestions as "research suggests", not "you should".
- Safety overrides every protocol: the crisis rules in `references/session-engine.md` apply at every step of every technique.

