thinking-log

thinking-log is a skill for Claude Code from mduongvandinh/claude-thinking-log-plugin. It costs 101 tokens per session (1,320 once invoked), scanned A, original, MIT.

A skill that creates and maintains a `THINKINGLOG.md` file describing an agent’s decisions and problem-solving process during implementation work.

In plain words
What is it for?
Recording decisions, actions, outcomes, and visual Mermaid diagrams for complex tasks. The first use asks whether the log should be stored in the project or in the default project documentation folder.
Why use it?
It provides a written record of why implementation choices were made, which can help with review, auditing, and knowledge transfer.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the thinking-log plugin — 1 skill, 1 command shipped together

Good fit Recording decisions, actions, outcomes, and visual Mermaid diagrams for complex tasks. The first use asks whether the log should be stored in the project or in the default project documentation folder.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mduongvandinh/claude-thinking-log-plugin/thinking-log
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mduongvandinh/claude-thinking-log-plugin --skill thinking-log
Clone the repo
git clone --depth 1 https://github.com/mduongvandinh/claude-thinking-log-plugin

Made for: Claude Code.

Or install thinking-log, the plugin that ships this one along with the rest of its 1 skill, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for thinking-log

README.md
[![agentmods](https://agentmods.dev/badge/skills/mduongvandinh/claude-thinking-log-plugin/thinking-log/github.svg)](https://agentmods.dev/skills/mduongvandinh/claude-thinking-log-plugin/thinking-log)
Your own site
<a href="https://agentmods.dev/skills/mduongvandinh/claude-thinking-log-plugin/thinking-log"><img src="https://agentmods.dev/badge/skills/mduongvandinh/claude-thinking-log-plugin/thinking-log/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for thinking-log

Your own site · 80×15
<a href="https://agentmods.dev/skills/mduongvandinh/claude-thinking-log-plugin/thinking-log"><img src="https://agentmods.dev/badge/skills/mduongvandinh/claude-thinking-log-plugin/thinking-log.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,320 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00101 $0.01320
Opus 5 $0.00051 $0.00660
Sonnet 5 $0.00020 $0.00264
Haiku 4.5 $0.00010 $0.00132

Measured 9d ago against content hash 1a92214410b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

thinking-log scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/thinking-log/SKILL.md · 215 lines

How it starts

The opening of the file, as written. The whole thing — 215 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Thinking Log Skill

This skill creates structured documentation of Claude's thinking process during implementation tasks, using visual diagrams and organized entries.

Purpose

  • Document reasoning and decision-making process
  • Create visual flows using Mermaid diagrams
  • Provide audit trail for implementation decisions
  • Help users understand the "why" behind code changes
  • Enable knowledge transfer and learning

File Location

Default: ~/.claude/projects/{project-name}/docs/THINKING_LOG.md

If user prefers project-local storage: {project-root}/docs/THINKING_LOG.md

Always ask user preference on first use if not specified.

Document Structure

# Thinking Log - {Project/Feature Name}

> Brief description of what this log documents.

---

## Visual Overview

### Workflow Diagram
[Main workflow Mermaid diagram]

---

## Session: {DATE}

### {Timestamp} - {Task Title}

**Flow:**
```mermaid
flowchart LR
    A[Input] --> B[Process] --> C[Output]

Thinking:

[Raw thinking content - what was analyzed, considered, decided]

Decision: [What was decided and why] Action: [What was done] Result: [Outcome - success/failure/partial]


Methodology Summary

[Mindmap or summary of patterns used]


Lessons Learned

[Key insights from this implementation]


## Entry Types

### 1. Analysis Entry
For understanding existing code or requirements.

```mermaid
flowchart TD
    A[Read/Analyze] --> B{Findings}
    B --> C[Key Insight 1]
    B --> D[Key Insight 2]
    C --> E[Next Action]
    D --> E

2. Decision Entry

For choosing between alternatives.

flowchart TD
    A[Problem/Choice] --> B{Options}
    B --> C[Option A]
    B --> D[Option B]
    C --> E{Evaluation}
    D --> E
    E --> F[Selected: Option X]
    F --> G[Rationale]

3. Implementation Entry

For tracking implementation steps.

flowchart LR
    A[Task] --> B[Step 1] --> C[Step 2] --> D[Verify] --> E{OK?}
    E -->|Yes| F[Complete]
    E -->|No| G[Fix] --> D

Read the full file on GitHub · 215 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 215 lines · 101 tokens per session scan A 1a92214410b5

Subscribe to this mod's changes

thinking-log is a skill published in the GitHub repository mduongvandinh/claude-thinking-log-plugin (2 stars, last pushed 7mo ago), licensed MIT. It adds 101 tokens to every session and 1,320 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

audit-session-metrics

Audit a session-metrics JSON export for token-usage waste and produce a plain-English findings report. Trigger when the user runs /audit-session-metrics, when session-metrics suggests an audit after an HTML export, or when the user asks to audit / review / find waste in a saved session-metrics JSON. Two modes: "quick"…

centminmod/claude-plugins · 147 tokens

task-breakdown

Group a session-metrics session's turns into higher-level SEMANTIC TASKS ("what was I actually trying to do") and render a Tasks companion page (tasks.html + tasks.md) with a worth-it / mixed / likely-waste verdict per task. Trigger when the user runs /task-breakdown, when session-metrics suggests a task breakdown…

centminmod/claude-plugins · 177 tokens

session-metrics

Tally Claude Code session token usage and cost estimates from the raw JSONL conversation log. Trigger when the user asks about session cost, token usage, API spend, cache hit rate, input/output tokens, or wants a breakdown of how much a Claude Code session has cost. Also trigger for "how much have we spent", "show me…

centminmod/claude-plugins · 182 tokens

pkpd-modeling

Pharmacokinetic and pharmacodynamic modelling and simulation - non-compartmental analysis, compartmental and population PK, PK/PD and exposure-response, TMDD, PBPK orientation, bioequivalence, allometric scaling and first-in-human dose, drug interaction prediction, and Bayesian therapeutic drug monitoring. Use when…

K-Dense-AI/scientific-agent-skills · 273 tokens

biopython

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use…

K-Dense-AI/scientific-agent-skills · 76 tokens

neuropixels-analysis

Analyze Neuropixels extracellular recordings end-to-end with SpikeInterface. Covers loading SpikeGLX/Open Ephys/NWB data, preprocessing, drift/motion correction, Kilosort4 (and CPU) spike sorting, quality metrics, and unit curation (threshold-based, model-based UnitRefine, and AI-assisted visual review). Use when…

K-Dense-AI/scientific-agent-skills · 98 tokens