█

AI/TLDR

Buy me a coffee
Buy me a coffee

ADHD

A coding-agent skill and npm CLI that brainstorms in isolated parallel branches, then scores and prunes the ideas

Agent Skills & PluginsOpen source
Latest
v0.1.4
Updated
30 May 2026
Language
TypeScript
License
MIT
$npx skills add UditAkhourii/adhd

What's new

v0.1.430 May 2026

Shortened the SKILL.md description to a single line because some Codex builds truncated or rejected the multi-paragraph form, and documented a quick install path for Codex.

IN SHORT

What is ADHD?

ADHD is a skill for coding agents such as Claude Code, Cursor, Codex and Gemini CLI, and it also ships as the adhd-agent npm package with a CLI and a TypeScript library. It sits in the Agent Skills & Plugins category of the Agents & Automation tools and is open-source, written in TypeScript and licensed MIT.

Updated Markdown version ↗

Overview

ADHD is a skill for coding agents such as Claude Code, Cursor, Codex and Gemini CLI, and it also ships as the adhd-agent npm package with a CLI and a TypeScript library. It is meant for questions with no single right answer: design decisions, fuzzy debugging, naming, API surface design, strategy, and any prompt of the form "give me a few ways to…". You hand it a problem. It sends that problem to several reasoning branches at once and returns a ranked shortlist, one flagged non-obvious pick, and a list of traps, which are ideas that look good but fail for a stated reason.

The project's argument is that a single chain of thought anchors on whatever it says first, and that tree-of-thought prompting still runs every branch in one shared context, so the anchoring carries over. ADHD separates the branches instead. In the diverge phase it picks a set of cognitive frames, such as a hardware engineer, a regulator, a 10-year-old, biology, logistics, markets, a speedrunner or a 3am on-call engineer. It starts one isolated Agent SDK call per frame, and each call gets a system prompt that forbids evaluation. The branches never see each other's output.

In the focus phase, separate critic calls with the opposite system prompt take over. They score every idea on novelty, viability and fit, mark traps with reasons, cluster the ideas by their underlying angle, and expand the top few into sketches with a risk, a first step and child ideas. A default run is about N + K + 2 model calls (around 10 with the defaults). The docs point out that inside an agent session every branch reloads the session's base context, so the cost grows with the number of branches. The project is written in TypeScript and released under the MIT license.

What it does

  • Installs as an agent skill with one command through the skills CLI, which detects Claude Code, Cursor, Codex, Gemini CLI, Windsurf and many other agents; it can also be installed by hand by copying SKILL.md
  • Diverge phase: parallel, isolated Agent SDK calls, one per cognitive frame, with no shared context and a system prompt that forbids ranking or hedging
  • Focus phase: separate critic calls score each idea on novelty / viability / fit, flag traps with reasons, cluster ideas by angle and deepen the top-K
  • A CLI (adhd) with flags for frames, ideas per frame, top-K, concurrency, a context file, generator and critic models, frame packs and JSON output
  • A TypeScript library whose run() returns structured results (shortlist, nonObviousPick, traps, deepened, clusters) that you can call at decision points inside your own agent
  • Frames are plain prompts grouped in packs under src/packs/, so you can write your own frames for another domain

Getting started

ADHD ships three ways: as an agent skill, as a CLI and as a Node/TypeScript library. The CLI picks up ANTHROPIC_API_KEY from the environment or reuses the auth of a local Claude Code install.

Add the skill to your agent

The skills CLI detects which agent you use and puts skills/adhd/SKILL.md in the right place. Restart the agent afterwards. Add -g to install globally, or -a to pick specific agents.

bashbash
npx skills add UditAkhourii/adhd

# install globally, or target specific agents
npx skills add UditAkhourii/adhd -g
npx skills add UditAkhourii/adhd -a claude-code -a cursor

Or install it for Codex

Some Codex builds are stricter about discovering skills. Force the Codex target, or copy the skill file into Codex's skills directory yourself.

bashbash
npx skills add UditAkhourii/adhd -a codex -g

# manual fallback
mkdir -p ~/.codex/skills/adhd
curl -fsSL https://raw.githubusercontent.com/UditAkhourii/adhd/main/skills/adhd/SKILL.md \
  -o ~/.codex/skills/adhd/SKILL.md

Invoke it from the agent

The skill triggers on its own for brainstorm, ideate, design, naming and refactor requests. You can also call it explicitly.

texttext
/adhd "design a rate limiter that survives a leader election"

Run it from the terminal

Install the CLI globally. Flags set the number of frames, the ideas per frame and how many ideas get deepened. --context adds a file as context and --json writes the full result.

bashbash
npm install -g adhd-agent

adhd "design a rate limiter that survives a leader election"
adhd "name this function" --frames 3 --ideas 8 --top 2
adhd "..." --json > result.json

Call it from your own code

Install the library and call run(). The result is structured, so you can render it as text or pass the shortlist, traps and deepened sketches to another agent.

tsts
npm install adhd-agent

import { run, renderText } from "adhd-agent";

const result = await run({ problem: "How should we shard this queue under bursty load?", framesPerRun: 5, topK: 3 });
console.log(renderText(result));
// result.shortlist · result.nonObviousPick · result.traps · result.deepened · result.clusters

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Widen an architecture or design decision, such as a storage layer, sharding scheme, auth model or retry strategy, before settling on the textbook answer
  • Generate classes of hypotheses for a fuzzy bug that an agent has failed to fix after several attempts
  • Name functions, services or products, or design an API, SDK or CLI surface
  • Call run() inside a planning, review or refactor agent at decision points where settling on the first idea is costly

How ADHD compares

ADHD alongside other open-source agent skills & plugins tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Skills for Real Engineers★ 336kMatt Pocock's everyday agent skills for coding agents, covering alignment grilling, planning, code review and research — small, composable and meant to be edited.
Superpowers★ 331kA composable skills plugin that installs a spec-first, TDD, subagent-driven development methodology into Claude Code, Codex, Cursor, Gemini CLI and other coding harnesses.
ECC★ 313kAn installable plugin that adds 68 agents, 286 skills, hooks, rules, memory and an agent-config security scanner to Claude Code, Codex and other coding harnesses.
Karpathy Coding Guidelines★ 237kA Claude Code plugin and CLAUDE.md rule set built from Andrej Karpathy's observations on LLM coding pitfalls: think before coding, keep it simple, make surgical changes, and work to verifiable success criteria.
Ponytail★ 202kA skill and plugin that makes a coding agent take the laziest correct route — a seven-rung ladder from "does this need to exist?" to "the minimum that works" — while keeping validation, security and accessibility off the chopping block.
Caveman★ 124kA skill plus local proxy that shortens an AI coding agent's prose while leaving code, commands and paths untouched — the rule file cuts what the agent writes, the proxy compresses what it reads.
Taste Skill★ 124kA collection of portable Agent Skills for frontend work: design direction, layout, typography, motion and density dials, plus image-generation skills that produce reference boards for a coding agent to implement.
ADHD★ 4.6kA coding-agent skill and npm CLI that brainstorms in isolated parallel branches, then scores and prunes the ideas