# hyperfocus

Adopt this skill: https://proskills.md/skills/other/nextor2k-hyperfocus-skills-hyperfocus

Page: https://proskills.md/skills/other/nextor2k-hyperfocus-skills-hyperfocus
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: skills/hyperfocus/SKILL.md
size: 2701
upstream: https://github.com/nextor2k/hyperfocus/blob/main/skills/hyperfocus/SKILL.md

```text
---
name: hyperfocus
description: >
  ADHD-friendly output formatting. Restructures responses with chunking, visual
  hierarchy, and front-loaded key points. Modes: clean, flow (default), zen.
  Use when user says "hyperfocus", "focus mode", "adhd mode", "adhd friendly",
  or invokes /hyperfocus.
argument-hint: "[clean|flow|zen|off|persistent [project] [mode]|disable|status]"
---

Format responses for ADHD-optimized reading: structure beats brevity. Parse `$ARGUMENTS` against the table below.

## Commands

| Argument | Effect |
|----------|--------|
| *(none)*, `clean`, `flow`, or `zen` | Activate/switch mode for this session only. Default mode: flow |
| `off` | Deactivate hyperfocus for this session |
| `persistent [mode]` | Enable global auto-injection at every future session start (default mode: flow) |
| `persistent project [mode]` | Same, scoped to this project only |
| `disable` | Turn off persistent mode in both global and project state, wherever present |
| `status` | Report session mode plus persistent state |

Plain "stop hyperfocus" or "normal mode" is equivalent to `off`.

## Session activation

On activation or mode switch, read `references/core.md` and `references/<mode>.md` (relative to this skill's directory) and apply their rules to every subsequent response until the user says "stop hyperfocus", "normal mode", or `/hyperfocus off`.

## Persistent, disable, status

Run `scripts/hyperfocus-state`, resolved at `${CLAUDE_PLUGIN_ROOT}/scripts/hyperfocus-state` when installed as a plugin:

- `persistent [mode]` → `hyperfocus-state enable [mode]`
- `persistent project [mode]` → `hyperfocus-state enable [mode] --project`
- `disable` → `hyperfocus-state disable --all`
- `status` → `hyperfocus-state status`

If `${CLAUDE_PLUGIN_ROOT}` is unset (standalone skill install, no plugin root), there is no hook to attach persistence to: tell the user persistent mode isn't available in this install, and apply the requested mode for the current session only.

## Legacy migration (≤0.2)

Check for `~/.claude/hyperfocus-rules.txt` or a `settings.json` hook whose command contains `hyperfocus-rules`. If found, tell the user it's a leftover from hyperfocus ≤0.2 and offer to remove it. Only edit settings.json after the user confirms.

## Boundaries

Code blocks, error messages, technical output, commits, PRs, and code reviews: write normally, without hyperfocus formatting.

## Auto-Clarity

Drop hyperfocus formatting for security warnings and irreversible-action confirmations — use full prose. Numbered steps stay allowed elsewhere; only symbol-substitution and density compression are dropped for safety-critical sequences. Resume formatting after.
```

## File: README.md
upstream: https://github.com/nextor2k/hyperfocus/blob/main/README.md

````text
<h1 align="center">Hyperfocus</h1>

<p align="center">
  <strong>Your brain works differently. Your tools should too.</strong>
</p>

<p align="center">
  <img src="https://img.shields.io/badge/ADHD-friendly-7C3AED?style=flat" alt="ADHD Friendly">
  <img src="https://img.shields.io/badge/evidence-based-0EA5E9?style=flat" alt="Evidence Based">
  <img src="https://img.shields.io/github/stars/nextor2k/hyperfocus?style=flat&color=7C3AED" alt="Stars">
  <img src="https://img.shields.io/github/last-commit/nextor2k/hyperfocus?style=flat" alt="Last Commit">
  <img src="https://img.shields.io/github/license/nextor2k/hyperfocus?style=flat" alt="License">
</p>

---

Hyperfocus restructures Claude's output so your brain can lock in. Not fewer words — **better structure.**

```bash
claude plugin marketplace add nextor2k/hyperfocus
claude plugin install hyperfocus@hyperfocus
```

Then type `/hyperfocus` in any conversation. Done.

---

## What It Does

Hyperfocus changes **how** Claude talks to you.

Every response gets:

- **Answer first** — key point up top, context after
- **Clear sections** — subheadings you can scan in 2 seconds
- **Short chunks** — one idea per paragraph, short sentences
- **Lists over walls** — bullet points instead of dense prose

> [!IMPORTANT]
> Same depth. Same technical accuracy. Just structured so your brain can absorb it.

---

## Three Modes

Pick your level of structure. Switch anytime with `/hyperfocus clean|flow|zen`.

### Clean

**For:** quick answers, PR summaries, terse professional prose.

Shorter paragraphs, front-loaded points, bullet lists. Professional tone stays intact.

### Flow *(default)*

**For:** learning, debugging, technical explanations.

Each section follows **What → Why → How**. Subheadings every 2–3 paragraphs for easy re-entry after breaks.

### Zen

**For:** dense docs, architecture discussions, long sessions.

**TL;DR at the top** of every response. Almost everything in lists or tables. Every section stands alone.

---

## Before & After

This is what the same Claude response looks like **without** and **with** hyperfocus.

**Without hyperfocus (default Claude):**

> The `useMemo` hook in React is used to memoize expensive computations so that they are only recalculated when their dependencies change. This is particularly useful when you have a component that re-renders frequently but has some computation that doesn't need to run on every render. Without `useMemo`, React would recalculate the value on every render, which could lead to performance issues. You should use it when you have computationally expensive operations that depend on specific props or state values, but be careful not to overuse it as the memoization itself has a small cost.

**With hyperfocus — all three modes side by side:**

<table>
<tr>
<th width="33%">Clean</th>
<th width="34%">Flow</th>
<th width="33%">Zen</th>
</tr>
<tr>
<td>

`useMemo` **caches expensive computations** between re-renders. React only recalculates when dependencies change.

Use it when the computation is expensive and the component re-renders frequently. Don't overuse it — memoization itself has a small cost.

</td>
<td>

**`useMemo` prevents unnecessary recalculation on re-renders.**

**What It Does**

It caches a computed value. React only recalculates when dependencies change.

**When To Use It**

Use `useMemo` when:

- The computation is **expensive** (sorting, filtering, complex math)
- The component **re-renders frequently**
- The result **depends on specific props or state**

**Watch Out**

Don't overuse it. Memoization has a small cost. Only apply it where you can measure a difference.

</td>
<td>

**TL;DR:** `useMemo` caches expensive computations. Only recalculates when dependencies change.

**What**
- **Caches** a computed value between re-renders
- **Recalculates** only when dependencies change

**When**
- **Expensive** computations (sort, filter, math)
- **Frequent** re-renders
- Result **depends on** specific props/state

**Caution**
- Memoization has a **small cost**
- Only use where you can **measure** improvement

</td>
</tr>
</table>

---

## Install

**Claude Code marketplace** (recommended):

```bash
claude plugin marketplace add nextor2k/hyperfocus
claude plugin install hyperfocus@hyperfocus
```

When installed from the marketplace, the command appears as `/hyperfocus:hyperfocus` in the marketplace UI, but bare `/hyperfocus` usually works in your prompt.

**Or install the skill directly:**

```bash
npx skills add nextor2k/hyperfocus
```

<details>
<summary><strong>Other agents (Codex, GitHub Copilot, manual)</strong></summary>

**Codex:**

```bash
npx skills add nextor2k/hyperfocus -a codex
```

**GitHub Copilot:**

```bash
npx skills add nextor2k/hyperfocus -a github-copilot
```

**Manual:** Clone this repo. Copy `skills/hyperfocus/` into your project's skills folder.

</details>

---

## Usage

| Command | Effect | Scope |
|---|---|---|
| `/hyperfocus` | Activate in flow mode | This session only |
| `/hyperfocus clean\|flow\|zen` | Switch mode | This session only |
| `/hyperfocus off` or `stop hyperfocus` | Deactivate | This session only |
| `/hyperfocus persistent [mode]` | Enable global auto-activation | All future sessions |
| `/hyperfocus persistent project [mode]` | Enable project-scoped auto-activation | This project, all sessions |
| `/hyperfocus disable` | Disable all auto-activation | Both scopes (if they exist) |
| `/hyperfocus status` | Check session mode + persistent state | — |

You can also say **"focus mode"**, **"adhd mode"**, or **"adhd friendly"** in your prompt to trigger activation.

---

## Persistent Mode

Want hyperfocus on **every session** without typing `/hyperfocus` each time?

```
/hyperfocus persistent
```

This enables a plugin-owned SessionStart hook that re-injects the formatting rules at the start of every session. Your settings.json is never modified — hyperfocus stores its state in a dedicated plugin data directory.

| Command | What it does |
|---|---|
| `/hyperfocus persistent` | Auto-activate globally (all projects) |
| `/hyperfocus persistent project` | Auto-activate for this project only |
| `/hyperfocus disable` | Remove auto-activation |

**How it works:** When you install hyperfocus from the Claude Code marketplace, the plugin ships a SessionStart hook that reads your persistent state at session start and re-injects the rules automatically. Your state lives in the plugin's data directory (separate from your settings). Uninstalling the plugin removes its state entirely.

**Note:** Persistent mode requires a POSIX shell (`sh`) and is available on macOS, Linux, and WSL. Standalone skill installations (via `npx skills`) do not include persistent hooks.

Hyperfocus is a **skill** — formatting rules that load into Claude's context. No code, no build step. Code blocks, commits, and PRs stay untouched. Only prose gets restructured.

---

## Capability Matrix

| Feature | Marketplace Plugin | Standalone Skill |
|---|---|---|
| Session modes (clean/flow/zen) | ✓ | ✓ |
| Persistent auto-activation | ✓ | — |
| Project-scoped persistence | ✓ | — |
| SessionStart hook | ✓ | — |

---

## Migrating from Hyperfocus ≤0.2

If you're upgrading from an older version, you may need to clean up legacy configuration:

1. **Remove old settings hook**: If your `~/.claude/settings.json` contains a `UserPromptSubmit` hook for hyperfocus-rules, delete it. The new version uses SessionStart instead.

2. **Remove old rules file**: If `~/.claude/hyperfocus-rules.txt` exists, you can safely delete it. Rules are now managed by the plugin.

After upgrading, persistent mode will work automatically with the new hook. No manual configuration needed.

---

## Supported Agents

- **Claude Code** — fully tested, mode persists all session
- **Codex** — supported, mode persists all session
- **GitHub Copilot** — supported via npx skills

> [!WARNING]
> Some agents (Opencode, omp) may need re-activation each turn. That's an agent limitation, not
````
