AGENT SKILL

think

Structured reasoning strategies (tree-of-thoughts, trilemma, self-consistency, step-back, ReAct). Use when facing complex decisions, weighing trade-offs, comparing multiple approaches, balancing competing objectives, or stuck. `/think <mode>` runs one strategy; `/think` alone shows the menu.

使用场景前端开发
License 许可
AGPL-3.0
所属仓库
aaronsb/agent-ways
最近更新
2026-11-14
Stars
★ 26
Forks
13

01 前言 Front Matter

name
think
description
Structured reasoning strategies (tree-of-thoughts, trilemma, self-consistency, step-back, ReAct). Use when facing complex decisions, weighing trade-offs, comparing multiple approaches, balancing competing objectives, or stuck. `/think <mode>` runs one strategy; `/think` alone shows the menu.
allowed-tools
Read, Bash, Glob, Grep
argument-hint
[ "tree|trilemma|consistency|stepback|react" ]

03 SKILL.md 正文

Think Strategies

One skill, five structured reasoning strategies. Each surfaces your reasoning step-by-step instead of jumping to an answer. The think way's metacognitive check normally escalates here on its own; /think is the manual override — use it to force an external strategy, choose a specific one, or make the reasoning visible.

Modes

Mode Strategy When
tree Tree of Thoughts Multiple viable approaches — branch, evaluate, prune, select
trilemma Trilemma Three competing objectives — satisfice, don't optimize all
consistency Self-Consistency High-stakes — run independent paths, take consensus
stepback Step-Back Stuck — abstract to principles, then apply back
react ReAct Investigation / debugging — reason → act → observe

/think with no mode: present this table, ask which shape fits the problem, then run that mode.

Running a mode

Each mode maps to a strategy id (written to the session file) and a definition file under hooks/ways/meta/think/strategies/:

Mode Strategy id Definition file
tree tree-of-thoughts tree-of-thoughts.md
trilemma trilemma trilemma.md
consistency self-consistency self-consistency.md
stepback step-back step-back.md
react react react.md

1. Session guard — only one think session at a time:

cat /tmp/.claude-think-session 2>/dev/null

If a session is active, ask the user to finish or abandon it before starting another. Do NOT start a second concurrent session.

2. Register the chosen strategy id:

echo "<strategy-id>" > /tmp/.claude-think-session

3. Work the stages. Read the strategy definition and follow its numbered stages in order — present your work for each stage before moving to the next:

cat ~/.claude/hooks/ways/meta/think/strategies/<definition-file>

4. Complete or abandon. After the final stage — or if the user says "never mind" / "skip it" / changes topic — clean up so the think way can fire again for new problems:

rm -f /tmp/.claude-think-session /tmp/.claude-way-meta-think-*"${CLAUDE_SESSION_ID:+-$CLAUDE_SESSION_ID}" 2>/dev/null

Not for

  • Routine work that doesn't need structured reasoning — the strategies add deliberation overhead. Reach for them on genuinely hard problems (branching approaches, competing objectives, high-stakes calls, being stuck), not every task.

04 同仓库更多 Skills

aaronsb
aaronsb/agent-ways

my-skill

A hand-built skill the user keeps in ~/.claude/skills. The fixture asserts it survives the install.

Skill与智能体开发
★ 26
aaronsb
aaronsb/agent-ways

work-skill

A skill in a second Claude Code config directory. The fixture asserts the directory is untouched.

Skill与智能体开发
★ 26
aaronsb
aaronsb/agent-ways

wrap

Wrap up a session at a natural seam — land in-flight work, square the TaskList honestly, write a copy-paste continuation prompt, then hand off to a directed /compact. Use when the user says "wrap up", "wrap this up", "let's wrap", "end of session", "checkpoint and compact", "hand off", or invokes /wrap.

Skill与智能体开发
★ 26
aaronsb
aaronsb/agent-ways

ways-update

Update the agent-ways installation to the latest version — preview the update with `ways manage update --what-if` (versions, release notes, the commits, local changes, the actions, dev links), read it back to the user, then apply it with `ways manage update --commit`, which pulls the app source in $XDG_DATA, refreshes the binaries and corpus, and reprojects ~/.claude. Use when the user wants to update agent-ways, pull the latest ways/hooks, or refresh their ways framework install. Not for editing or authoring individual ways (that is the ways skill) or upgrading project dependencies.

Skill与智能体开发
★ 26
aaronsb
aaronsb/agent-ways

ways-tests

Score way matching via embedding similarity, analyze vocabulary, and validate frontmatter. Use when testing how well a way matches prompts, checking cosine similarity scores, inspecting the embedding engine status, or validating way files.

★ 26
aaronsb
aaronsb/agent-ways

ways-localize

Localize agent-ways into the operator's language — translate every way's matching metadata against the English root, tune it clean, and switch ways (and Claude Code) into that language. Use when the operator asks to run ways in their language ("set up ways in Spanish", "localiza ways al español", "ways auf Deutsch"). Not for authoring or editing individual ways (that is the ways skill), not for English installs (already built), and not for changing Claude Code's language alone (that is a settings.json edit).

★ 26