think-better: Skill for Claude Code

.agents/skills/code-solving/SKILL.md

code-solving is a skill for Claude Code, Codex from HoangTheQuyen/think-better. It costs 215 tokens per session (3,578 once invoked), scanned A, original, MIT.

A structured workflow for non-trivial coding tasks such as fixing bugs, adding features, refactoring, migrations, and reviews. It breaks work into steps and requires evidence, such as test or build results, before moving on.

In plain words
What is it for?
Use it to investigate errors, plan and make code changes, handle migrations, review code, and verify the result.
Why use it?
It reduces guesswork and unverified claims during code changes. It also helps identify the project's own test, lint, and build commands.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is HoangTheQuyen/think-better's own configuration. It tells Claude Code and Codex how to work on think-better itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything think-better configures →

Reuse

Borrowing it

Nothing to install: this file belongs to HoangTheQuyen/think-better. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/HoangTheQuyen/think-better/main/.agents/skills/code-solving/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/HoangTheQuyen/think-better

Made for: Claude Code, Codex.

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 code-solving

README.md
[![agentmods](https://agentmods.dev/badge/skills/hoangthequyen/think-better/code-solving/github.svg)](https://agentmods.dev/skills/hoangthequyen/think-better/code-solving)
Your own site
<a href="https://agentmods.dev/skills/hoangthequyen/think-better/code-solving"><img src="https://agentmods.dev/badge/skills/hoangthequyen/think-better/code-solving/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 code-solving

Your own site · 80×15
<a href="https://agentmods.dev/skills/hoangthequyen/think-better/code-solving"><img src="https://agentmods.dev/badge/skills/hoangthequyen/think-better/code-solving.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 215 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,578 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.00215 $0.03578
Opus 5.5 $0.00086 $0.01431
Sonnet 5.5 $0.00043 $0.00716
Haiku 4.5 $0.00021 $0.00358

Measured 19d ago against content hash 312a8481e6f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-solving 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 19d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/advisor.py, scripts/context.py, scripts/core.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/code-solving/SKILL.md · 236 lines

How it starts

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

Goal

Make code changes the way a careful senior engineer does: define done before coding, map the change, work in small verified steps, and prove the result with evidence instead of claiming it.

code-solving

A 7-step method (Define → Decompose → Prioritize → Plan → Execute → Verify → Communicate) applied to 12 task types: debug, feature, refactor, performance, flaky-test, incident, migration, review, test, explain, security and quick-fix. Every step has a gate: a concrete piece of evidence that must exist before moving on. The knowledge base has 149 records: debugging techniques, change techniques (feature flags, expand-contract, strangler fig…), testing strategies, design principles, engineering biases, a review checklist, hand-off templates and 44 common error messages across languages with their likely causes. The script also detects the project's own test, lint and build commands.

Prerequisites

Detect the Python command first: python3 --version 2>/dev/null || python --version. Use whichever works (python on most Windows machines) in every command below. The scripts use only the standard library. If neither works, tell the user that Python 3.9+ is needed and ask before installing anything; do not install it yourself.


Running the Scripts

Run every command from the project root with the path shown, e.g. python3 .agents/skills/code-solving/scripts/search.py ... (the installer adjusts this path for your AI tool). Saved plans are written to the project, never inside the skill folder. Saving again never overwrites files that already exist (they hold your notes); add --force to replace them.

Passing the user's text

When the query is the user's own words (a request, an error message, a pasted log), pass it on stdin with --stdin instead of quoting it, so quotes, backticks and $ never reach the shell. Every example below does this.

Use exactly this delimiter, THINK_BETTER_EOF_7f3a, quoted as shown:

python3 .agents/skills/code-solving/scripts/search.py --stdin --plan <<'THINK_BETTER_EOF_7f3a'
<the user's text, unchanged>
THINK_BETTER_EOF_7f3a

Read the full file on GitHub · 236 lines

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. 19d ago First seen · 236 lines · 215 tokens per session scan A 312a8481e6f5

Subscribe to this mod's changes

code-solving is a skill published in the GitHub repository HoangTheQuyen/think-better (125 stars, last pushed 6d ago), licensed MIT. It adds 215 tokens to every session and 3,578 once invoked, about $0.0009 per session on Opus 5.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-10-09.

Related

Other skills, from other repositories

agent-qa-debug-fix

Debug, patch, and verify failed Agent QA runs from MCP evidence, artifacts, logs, and local code without hiding product or infrastructure defects.

sickn33/agentic-awesome-skills · 35 tokens

agent-qa-result-triage

Triage failed Agent QA runs with MCP evidence, artifacts, logs, fixed failure categories, confidence, and actionable next steps.

sickn33/agentic-awesome-skills · 33 tokens

ulw-qa

This is an OMH ultraqa workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

rlaope/oh-my-hermes · 57 tokens

evidence-audit

Evidence-led audit/fix rounds for any codebase in any language. Finds only defects that a runnable proof reproduces on current code, applies the narrowest in-scope patch, verifies with a second proof, promotes high-risk proofs to permanent regression tests, and reports exact validation results. Use whenever the user…

WrongStack/WrongStack · 152 tokens

debugging

Use this skill when something is broken and the cause is unknown — a failing test, a crash, an error message, wrong output, a regression, a hang, or behaviour that differs between environments — and it has to be found and fixed at the root. Also use it to build the failing proof for a suspected defect before fixing…

WrongStack/WrongStack · 148 tokens

squid-triage-issue

Bug intake — localise the suspected code, capture a deterministic reproducer, and emit a groomed bug task with a regression-test acceptance criterion, ready for /squid-implement-task or the full pipeline.

iusztinpaul/squid · 50 tokens