hyperfocus
nextor2k · nextor2k/hyperfocus
Plugin Claude Code này cấu trúc lại đầu ra của tác nhân theo các định dạng thân thiện với người ADHD, nổi bật với cách trình bày câu trả lời trước, các phần rõ ràng và các đoạn ngắn để dễ đọc hơn.
Định dạng đầu ra thân thiện với ADHD cho Claude Code. Tái cấu trúc các phản hồi với khả năng tiếp cận nhận thức dựa trên bằng chứng.
Xem trước
Bạn có thể làm gì với nó
- Nhận các bản tóm tắt nhanh, dễ quét từ Claude để hiểu ngay lập tức.
- Cải thiện sự tập trung khi gỡ lỗi hoặc học tập bằng cách sử dụng chế độ "Flow" của Claude.
- Hấp thụ tài liệu kỹ thuật dày đặc dễ dàng hơn với chế độ "Zen" của Claude có các TL;DR và danh sách.
Kiểm tra an toàn
Không thấy dấu hiệu rủi ro trong các file đã quét.
Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.
Trích từ README
Hyperfocus
Your brain works differently. Your tools should too.
Hyperfocus restructures Claude's output so your brain can lock in. Not fewer words — better structure.
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
useMemohook 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. WithoutuseMemo, 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:
Clean Flow Zen
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.
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.
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
Install
Claude Code marketplace (recommended):
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:
npx skills add nextor2k/hyperfocus
Other agents (Codex, GitHub Copilot, manual)
Codex:
npx skills add nextor2k/hyperfocus -a codex
GitHub Copilot:
npx skills add nextor2k/hyperfocus -a github-copilot
Manual: Clone this repo. Copy skills/hyperfocus/ into your project's skills folder.
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