复制安装命令
用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。
复制前请先查看来源、License 和安全提示。
A small collection of output styles for Claude Code that change how it talks to you, not how it...
用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。
复制前请先查看来源、License 和安全提示。
来源文件:README.md

A small collection of output styles for Claude Code that change how it talks to you, not how it codes. Answer-first, plain English, easy to skim. Each one is a single markdown file you drop in and switch on.
The concise-by-default rules are kind to your attention first. Trimming Claude's output is a welcome side effect, not the point.
Three so far: Attention-kind (the flagship), Spartan (terse, zero warmth), and Rundown (TL;DR briefings). Each has its own section below.
An ADHD-friendly style. Claude answers first, keeps it short, drops the jargon, and expands only on what's actually worth your attention. Every point is spaced out and marked with a →, and the important words are bold, so you can skim just the bold and still get the whole answer.
Same engineering ability underneath. Only the delivery changes.
Who it's for: anyone whose attention is a limited resource. ADHD, tired, deep in flow, or just done with walls of text.
The question: "Which database should I use for a new social app, PostgreSQL or MongoDB?" Same answer, before and after the style.
| Default · 430 words | Attention-kind · 94 words |
|---|---|
|
For a new social app, start with PostgreSQL, and the bar for choosing MongoDB instead is high. Social apps are relationship-heavy by nature: users follow users, posts belong to users, comments belong to posts, likes connect users to posts. That's a web of connections, exactly what a relational database is built for. In MongoDB you either cram related data into one record and fight size limits, or split it out and end up stitching it back together in your app code anyway. The feed problem makes this worse: timelines, "posts from people you follow," and mutual-friend lookups all lean on the kind of cross-referencing Postgres does in a single query. You also get consistency for free, since follow counts and "did I already like this" checks want real transactions… [and it keeps going like this] |
→ Use PostgreSQL. A social app is all relationships (friends, follows, likes), and Postgres handles those natively. Right for ~90% of new social apps. → You keep flexibility. Its JSONB column stores schema-less data inside the same database, so you get MongoDB's looseness without leaving Postgres. → Pick MongoDB only if your data is self-contained documents with no links, and you need massive write volume on day one. → The early trap with MongoDB: six months in, five different shapes of "user" and no clean fix. Postgres forces the structure. → Next: start on managed Postgres (Supabase, Neon, RDS). |
Same information. One of them you can read at a glance.
The benchmark measures the work and the output separately, and the headline numbers use no LLM judge. Every figure is reproducible from this repo. Full writeup and runnable harness.
It's shorter, clearer, and easy to grasp at a glance, with the work untouched. We don't claim it produces better answers, that isn't what it's for.
→ markers, heavy bold, real spacing between points.
Terse mode with the warmth stripped out. Same arrows and bold as Attention-kind, but blunt and imperative, no cushioning, no transitions, maximum compression. For heads-down work when you want signal, not conversation.
The question: "Three priorities this week, room for two, how do I decide what to cut?" Both real Opus 5 eval outputs.
| Default · 310 words | Spartan · 168 words |
|---|---|
|
Cut the one that fails the cheapest test: if it slipped a week, who actually feels it, and how much? Run all three through four quick filters and the loser usually falls out on its own. Consequence of delay: two of your three probably have soft deadlines you invented and one has a real one, a person waiting, a dependency downstream, a window that closes. Cut from the self-imposed pile, never the someone-is-blocked-on-me pile. Reversibility: some things get harder the longer they wait, others are exactly as easy next week, so cut the one whose cost curve is flat. Who owns it besides you: if a priority can be delegated or done at 80% by someone else, it is a better cut than one only you can do… [and it keeps going like this] |
→ Rank by cost of NOT doing it, not by effort or interest. Ask each: what breaks if this slips a week? The one with the softest consequence gets cut. → Kill the reversible one. If a task can wait, be delegated, or restarted later with no penalty, cut it. Protect anything with a hard deadline or a dependency where others are blocked on you. → Run the regret test. Friday night, which un-done task stings most? Keep that one. The one you'd shrug at is your cut. → Separate loud from important. The priority screaming at you is often just the most anxious, not the most valuable. Cut by impact, not by volume. → Do not half-do all three. Two finished beats three at 66%. Partial work on the third is the trap, it feels productive and ships nothing. → Cut it out loud. Tell whoever's affected now, not Friday. A cut you flag is a decision, a cut you hide is a failure with a delay. |
Same style-only guarantee as Attention-kind: shorter, more scannable, the work untouched. See the benchmark.

Briefing style. Opens with a TL;DR, shows state as a ✅ / 🟡 / ⬜ / ❔ checklist, tags the next choices with emoji and numbers them so you can pick by number. Built for status updates and standups. It optimizes for readability and scannability, not brevity, so reach for it when clarity matters more than length. Includes a guard against inventing status it wasn't given.
The question: "Summarize where hiring stands: 20 applicants, 5 screened, 2 interviews, no offer, one strong candidate slipping." Both real Opus 5 eval outputs.
| Default · a paragraph you read | Rundown · a board you scan |
|---|---|
|
Hiring stands at the top of the funnel and thin at the bottom. Twenty applicants in, five screened, two interviews booked. No offer has gone out yet, and that gap is the problem: one of the strongest candidates is cooling off while the process idles. The numbers: applicants 20, screened 5, interviews booked 2, offers out 0, at risk 1 strong candidate slipping away. The read: this is a speed problem, not a supply problem. The pipeline is healthy up top, but nothing has converted to an offer, and the best prospect is drifting. The highest-value move is to fast-track the slipping candidate before the delay decides for us. Bottleneck: the offer stage… [and it keeps going like this] |
TL;DR: Pipeline is healthy up top but the finish line is stalling, and your best candidate is about to walk. Hiring funnel
🔴 Blocker: One strong candidate is slipping. No offer motion means you lose them by default. Your move:
Pick a number: save the candidate now (1), or run the full process and risk losing them? |
Attention Span is here to make your agents' answers readable and easy to grasp at a glance. The lighter token bill on those answers is a welcome side effect. If cutting token spend is your actual goal, the bigger cost is the work your agent does, not how it talks, and two sister tools go right at it, pairing naturally with these styles:

Token Optimizer tackles the three layers of token waste most tools never touch:
...and more in each. On top of that it compresses your output stack, checkpoints and restores your work so your sessions stay continuous across compaction, and puts every token and dollar saved on a live dashboard. It's also the only tool that measures your context quality and adjusts to it, because a cheaper session that does worse work is no saving at all.
Runs on Claude Code, Codex, OpenCode, OpenClaw, Hermes and Copilot.
Outsourcerer — stay in one session of whatever agent you like best. In the background it:
You keep the cockpit; the grunt work happens elsewhere.
Works across Claude Code, Codex, Antigravity, Devin, Droid, Cursor, Warp and Hermes.
Attention Span trims how much Claude says. These two govern what your whole stack spends.
Easiest: install the plugin. One step gets all three styles, the /style switcher, and the
user-invoked skills (/attention-kind, /spartan, /rundown, /tldr). In Claude Code:
/plugin marketplace add alexgreensh/attention-span
/plugin install attention-span
Then activate a style under /config → Output style, or just type a skill like /attention-kind
for one conversation. Prefer wiring it up by hand? The manual steps below still work and are unchanged.
1. Drop the style into your output-styles folder. Global (every project):
mkdir -p ~/.claude/output-styles
curl -o ~/.claude/output-styles/attention-kind.md \
https://raw.githubusercontent.com/alexgreensh/attention-span/main/output-styles/attention-kind.md
Or put it in .claude/output-styles/ inside a single project.
2. Set it as your default in ~/.claude/settings.json. Do this once and it's on every session, forever:
{ "outputStyle": "Attention-kind" }
3. Restart or /clear. That's it.
Rather not edit JSON? Install the /style command and it does step 2 for you:
mkdir -p ~/.claude/commands
curl -o ~/.claude/commands/style.md \
https://raw.githubusercontent.com/alexgreensh/attention-span/main/commands/style.md
Then /style shows a popup of the styles you have installed. /style spartan sets one straight away. /style default puts the built-in style back.
It looks in ~/.claude/output-styles/ and in a project's .claude/output-styles/. A global style is written to ~/.claude/settings.json. A project style is written to .claude/settings.local.json, so it stays out of your teammates' checkouts.
Already have it installed? The styles get updated. Check which version you're on and compare it to the version badge above:
grep attention-span ~/.claude/output-styles/*.md
Behind? Re-run the install command in step 1 to overwrite with the latest.
Want to try it for one session first? Run /config and pick it under Output style instead, then set the default above once you're sold.
Cost: ~650 tokens, added once per session and cached after the first request. The benchmark measured ~43% shorter output, so the input cost is negligible after the first reply.
The styles also ship as skills, so they work in the Claude apps (claude.ai, desktop, mobile), not just Claude Code. Install the plugin above, or add the skill files directly, then just type the command:
/attention-kind, /spartan, or /rundown — talk in that style for the rest of the conversation./tldr — compress a document, thread, transcript, or pasted text into a scannable briefing. (The
styles shape how Claude reports its own work; /tldr compresses something someone else wrote.)The skills are user-invoked only (disable-model-invocation), so they cost zero passive context
until you call one, and they're generated from the same style sources (scripts/gen-skills.py), so they
never drift from the flagship wording.
The style body is plain markdown with no Claude-specific behavior. The only Claude-Code part is the YAML frontmatter at the top of each file (the name/description block the /config picker reads). Other agents ignore or choke on frontmatter, so the install strips it.
Each style file has a <!-- body-start --> marker after the frontmatter. The strip command is one sed:
curl -sfL <raw-url> | sed '1,/<!-- body-start -->/d'
That gives you clean body markdown, ready to drop into any agent's rules or instructions file.
Devin (global, via Windsurf compatibility):
mkdir -p ~/.codeium/windsurf/memories
curl -sfL https://raw.githubusercontent.com/alexgreensh/attention-span/main/output-styles/attention-kind.md -o /tmp/attention-span.md \
&& sed '1,/<!-- body-start -->/d' /tmp/attention-span.md > ~/.codeium/windsurf/memories/attention-kind.md
Or project-level: .windsurf/rules/attention-kind.md in your repo root.
Codex (append to global AGENTS.md, idempotent via fenced markers):
mkdir -p ~/.codex
curl -sfL https://raw.githubusercontent.com/alexgreensh/attention-span/main/output-styles/attention-kind.md -o /tmp/attention-span.md \
&& { printf '\n<!-- attention-span:start -->\n'; sed '1,/<!-- body-start -->/d' /tmp/attention-span.md; printf '<!-- attention-span:end -->\n'; } >> ~/.codex/AGENTS.md
To update later, remove the old block first (in place), then re-run the install: sed -i.bak '/<!-- attention-span:start -->/,/<!-- attention-span:end -->/d' ~/.codex/AGENTS.md.
Antigravity CLI (agy) (project-level GEMINI.md, idempotent via fenced markers):
curl -sfL https://raw.githubusercontent.com/alexgreensh/attention-span/main/output-styles/attention-kind.md -o /tmp/attention-span.md \
&& { printf '\n<!-- attention-span:start -->\n'; sed '1,/<!-- body-start -->/d' /tmp/attention-span.md; printf '<!-- attention-span:end -->\n'; } >> GEMINI.md
Run this in your repo root. agy discovers GEMINI.md (or AGENTS.md) by walking up from the current directory to the repo root, so the style applies to that project and all subdirectories.
To update later, remove the old block first (in place), then re-run the install: sed -i.bak '/<!-- attention-span:start -->/,/<!-- attention-span:end -->/d' GEMINI.md.
For a global install (all projects under your home directory), append to ~/GEMINI.md instead, agy will find it on the walk-up from any project.
Swap attention-kind.md for spartan.md or rundown.md to install a different style. Same commands, different filename.
Notes:
~/.codeium/windsurf/memories/ path is global; .windsurf/rules/ is per-project.AGENTS.md, so the fenced markers (<!-- attention-span:start --> / <!-- attention-span:end -->) let you update or remove the block without duplicates.GEMINI.md or AGENTS.md it finds. No frontmatter support for standalone rules. Global install works by placing GEMINI.md in a parent directory (e.g. ~/) that's always in the walk-up path.sed strip assumes macOS/Linux. On Windows, use WSL or Git Bash.| Style | File | Best for |
|---|---|---|
| Attention-kind | output-styles/attention-kind.md | ADHD, attention fatigue, anyone tired of walls of text |
| Spartan | output-styles/spartan.md | Spartan mode: maximum signal, zero warmth, heads-down work |
| Rundown | output-styles/rundown.md | Briefings, standups, progress updates (TL;DR + checkboxes) |
Each is one readable markdown file, easy to adapt.
keep-coding-instructions: true).AGPL-3.0. See LICENSE.
name: spartan
description: Answer in the terse, zero-warmth Spartan style for the rest of this chat.
disable-model-invocation: trueAdopt this style for the rest of the conversation, starting with your next reply. It changes how you talk, not how you code or what you can do.
The reader is a human with a hard attention limit, not an LLM. Spend it like it runs out, because it does. Overwhelm them and they miss the one line that mattered. Two failures, both fatal: drop what they need to act, or bury it so deep they never reach it. A wall of text loses information as surely as a cut does, you just don't notice. Signal, not comfort. Every word earns its place or gets cut.
→ as its own paragraph (**→ Point.** rest), blank line between each. Not - bullets; they collapse in some terminals.
评论 (0)
暂无评论,成为第一个评论者吧!