agentleFS
vltingvlting/claude-skills/skills/think/SKILL.md

think

Skill2 starsChanged 9 months agoMITView on GitHub

Lightweight plan-to-execution pipeline. Explores codebase, runs council deliberation, presents plan for approval, then executes via /run.

17 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use hunt, write and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ninehillsSkill

    hunt

    Finds root cause before applying fixes for errors, crashes, regressions, failing tests, broken behavior, and screenshot-reported defects. Use when users report in any language errors, crashes, broken behavior, regressions, failing tests, screenshot evidence, or something that used to work and now fails. Not for code review or new features.

    Also in 4 projects that use this

  • DockerSkill

    write

    Write or edit reader-facing technical prose for immediate comprehension. Use for documentation, PR titles and descriptions, release notes, design documents, user-facing explanations, and substantive comments. Also use when asked to make writing clearer, more natural, less AI-generated, or easier to read. For documentation fixes, handles edits, formatting, self-review, and commits after research identifies what to change. Do not use for code-only tasks with no prose deliverable.

    Also in 6 projects that use this

  • ninehillsSkill

    read

    Reads URLs and PDFs by fetching source content, defaulting to concise summaries for plain read requests and clean Markdown when asked to convert, save, quote, cite, or feed downstream work. Use when users ask in any language to read, fetch, check, summarize, quote, cite, convert, or save a URL or PDF. Not for local text files already in the repo.

    Also in 3 projects that use this

  • kt057Skill

    check

    lint, typecheck, test を一括実行して結果をサマリーする

    Also in 5 projects that use this

  • genomewalkerSkill

    health

    Soul system health check with remediation

    Also in 3 projects that use this

  • genomewalkerSkill

    learn

    Learn from web sources, generate SKILL.md, and store key patterns in soul memory. Trigger keywords: learn, skill-gen, web-learn, documentation, tutorial.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 5 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No flags. No modes. One input, one approval gate.

    line 19
  2. Distinctive:

    Read-only: No edits, no file creation.

    line 52
  3. Distinctive:

    No plan mode entry

    line 66
  4. Distinctive:

    All tensions resolved via domain authority

    line 67
  5. Distinctive:

    Read the recalled feedback carefully.

    line 90
  6. Very specific:

    IMMEDIATELY: call AskUserQuestion — no additional text, no delay:

    line 123
  7. Very specific:

    No queue files. No relay. No drain loop.

    line 163
  8. Very specific:

    Read ~/.claude/skills/memory/MEMORY_OPS.md for tool call templates.

    line 169
  9. Very specific:

    No plan mode: Never call EnterPlanMode. The skill is read-only by convention during EXPLORE/PLAN/PRESENT.

    line 183
  10. Very specific:

    Always council: Every task gets /council --subroutine.

    line 184
  11. Very specific:

    Lightweight: No roadmap files, no saga/epic hierarchy, no GitHub integration, no queue files.

    line 186

“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Think

One command from goal to execution. Plans read-only, approval gates the handoff, then executes via /run.

/think {goal}

No flags. No modes. One input, one approval gate.


Flow

/think {goal}
    |
    EXPLORE  — Explore agents research codebase (read-only)
    |
    PLAN     — /council {goal} --subroutine (multi-persona deliberation)
    |
    PRESENT  — Review card + plan summary
    |          User: approve / reject / refine (loop on refine)
    |
    EXECUTE  — /run spawns parallel agents, serializes merges

Phase 1: EXPLORE

Launch one Explore agent (subagent_type: "Explore", thoroughness: "very thorough"):

Explore the codebase for this task: {goal}
Produce: 1) Affected files/modules 2) Existing patterns 3) Constraints
4) Prior art 5) Open questions. Check tests, types, and usage sites.

Output: structured context brief. Stored for PLAN phase.

Read-only. No edits, no file creation.


Phase 2: PLAN

Invoke /council as a subroutine:

Skill: council
Args: {goal} --subroutine

Council runs its full EXPLORE → DELIBERATE → RECONCILE → PRESENT pipeline with --subroutine semantics:

  • No plan mode entry
  • All tensions resolved via domain authority
  • Returns reconciled plan directly

Feed the EXPLORE context brief into the council invocation so it doesn't duplicate exploration work. Prepend to the goal:

/council "Context from exploration:\n{explore_brief}\n\nGoal: {goal}" --subroutine

Output: reconciled council plan.

⚠️ STOP. Do NOT proceed to ENQUEUE. The next step is PRESENT.


Phase 3: PRESENT — MANDATORY APPROVAL GATE

This phase is NON-NEGOTIABLE. Skipping it is a contract violation.

STEP 1 — RECALL (hard gate, do this FIRST, before anything else in this phase):

recall-constraints: query "think PRESENT gate AskUserQuestion approval", type: "feedback", limit: 5

Read the recalled feedback carefully. It will remind you of the approval gate requirement.

STEP 2 — FORMAT the review card below.

STEP 3 — CALL AskUserQuestion with approve / reject / refine options.

STEP 4 — WAIT for the user's response before doing anything else.

⚠️ Informal approval does NOT satisfy this gate. If the user said "looks good" or "implement it" in a normal message — that does NOT count. You MUST still call AskUserQuestion and receive a response through it. The gate requires a formal AskUserQuestion → user response round-trip. No exceptions, no rationalization.

Display the plan as a review card:

# Think: {goal_summary}

## Exploration Summary
{Key findings from EXPLORE — 3-5 bullets}

## Plan
{Numbered actionable steps from council output}

## Key Decisions
{From council reconciliation}

## Risk Summary
{Top 3-5 risks}

---
**approve** — start executing via /run
**reject** — abort, return to conversation
**refine: {feedback}** — re-run PLAN with feedback incorporated

IMMEDIATELY call AskUserQuestion — no additional text, no delay:

Review the plan above. Reply: approve, reject, or refine: {your feedback}

If you are about to invoke /run or write any files and have NOT yet called AskUserQuestion in this conversation — STOP. You skipped PRESENT. Go back and call it now.

Refinement Loop

On refine: {feedback}:

  1. Re-invoke /council "{goal}. Additional constraint: {feedback}" --subroutine
  2. Re-present updated plan
  3. Ask again

Loop until approve or reject. No limit on refinement rounds.

On reject: print "Aborted." and return to normal conversation.


Phase 4: EXECUTE

PREREQUISITE: User MUST have responded "approve" to an AskUserQuestion call. Informal approval via normal message does NOT count. If you have not called AskUserQuestion and received a response through it, STOP — go back to Phase 3.

On approve:

Invoke /run with the full plan text:

Skill: run
Args: Implement the following plan:\n\n{full_plan_text}\n\nGoal: {goal}

/run handles everything:

  • Splits plan into file-disjoint tasks
  • Spawns parallel agents in worktrees
  • Serializes merges (rebase before each merge — no race conditions)
  • Cleans up worktrees
  • Reports results

No queue files. No relay. No drain loop. /run is ephemeral and self-contained.


Memory Integration

Read ~/.claude/skills/memory/MEMORY_OPS.md for tool call templates.

PointAction
PRESENT phase, Step 1 (before formatting card)recall-constraints with "think PRESENT gate AskUserQuestion approval" (feedback, global). Hard gate — do this before anything else in PRESENT. Read results before formatting or calling AskUserQuestion.
After user approvesstore-decision if non-obvious plan choices were made
After user refinesstore-feedback with the refinement reasoning

Why recall at PRESENT entry? This is the exact failure point. Council output is long and can push skill instructions out of working memory. The recall restores the approval-gate constraint right when it matters — before the agent decides whether to ask or skip.


Rules

  1. No plan mode. Never call EnterPlanMode. The skill is read-only by convention during EXPLORE/PLAN/PRESENT. Code changes only happen in EXECUTE (via /run).
  2. Always council. Every task gets /council --subroutine. No complexity branching, no "too simple to council" shortcut.
  3. Single approval gate. One approve from user triggers execute. No intermediate confirmations.
  4. Lightweight. No roadmap files, no saga/epic hierarchy, no GitHub integration, no queue files. That's /scope's job.
  5. No edits before approval. EXPLORE and PLAN phases are strictly read-only. Code changes only happen via /run agents in EXECUTE.

Role Boundary

  • /think = plan → approve → hand off to /run
  • /council = deliberation engine (called as --subroutine)
  • /run = ephemeral parallel execution with serialized merges
  • /scope = full saga/epic lifecycle (not involved here)

/think is NOT an orchestrator in the /scope sense. It doesn't manage epics, stages, or GitHub tracking. It's a convenience pipeline: plan once, approve once, execute via /run.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.