five

five is a command for Claude Code from wesammustafa/Claude-Code-Everything-You-Need-to-Know. It costs 15 tokens per session (374 once invoked), scanned A, original, MIT.

A command that uses the Five Whys method: repeatedly asking why a problem happened until its underlying cause is clearer. It can then validate that cause and suggest solutions aimed at it.

In plain words
What is it for?
Use it to investigate problems such as application crashes, failed deployments, missing configuration, or other issues described in the command input.
Why use it?
It helps distinguish the original cause of an issue from visible symptoms, so teams do not stop at a quick but incomplete fix.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to investigate problems such as application crashes, failed deployments, missing configuration, or other issues described in the command input.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/wesammustafa/claude-code-everything-you-need-to-know/five
About the project

Claude Code: Everything You Need to Know is a practical guide to using Claude Code, an AI coding assistant that can be extended with commands, skills, hooks, subagents, workflows, and external tool servers. Developers use it to learn Claude Code from basic prompting through team and automation setups. The catalogue entries are examples of the guide's Claude Code extensions and workflows.

wesammustafa/Claude-Code-Everything-You-Need-to-Know · 2,969 stars · on GitHub

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.

Clone the repo
git clone --depth 1 https://github.com/wesammustafa/Claude-Code-Everything-You-Need-to-Know

Made for: Claude Code.

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 five

README.md
[![agentmods](https://agentmods.dev/badge/commands/wesammustafa/claude-code-everything-you-need-to-know/five.svg)](https://agentmods.dev/commands/wesammustafa/claude-code-everything-you-need-to-know/five)
Your own site
<a href="https://agentmods.dev/commands/wesammustafa/claude-code-everything-you-need-to-know/five"><img src="https://agentmods.dev/badge/commands/wesammustafa/claude-code-everything-you-need-to-know/five.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 374 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.00015 $0.00374
Opus 5 $0.00008 $0.00187
Sonnet 5 $0.00003 $0.00075
Haiku 4.5 $0.00002 $0.00037

Measured 8d ago against content hash 33347c0bbf41, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

five 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 8d 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.

.claude/commands/five.md · 48 lines

What it actually says

Five Whys Analysis

Apply the Five Whys root cause analysis technique to investigate issues.

Description

This command implements the Five Whys problem-solving methodology, iteratively asking "why" to drill down from symptoms to root causes. It helps identify the fundamental reason behind a problem rather than just addressing surface-level symptoms.

Usage

five [issue_description]

Variables

  • ISSUE: The problem or symptom to analyze (default: prompt for input)
  • DEPTH: Number of "why" iterations (default: 5, can be adjusted)

Steps

  1. Start with the problem statement
  2. Ask "Why did this happen?" and document the answer
  3. For each answer, ask "Why?" again
  4. Continue for at least 5 iterations or until root cause is found
  5. Validate the root cause by working backwards
  6. Propose solutions that address the root cause

Examples

Example 1: Application crash analysis

Problem: Application crashes on startup
Why 1: Database connection fails
Why 2: Connection string is invalid
Why 3: Environment variable not set
Why 4: Deployment script missing env setup
Why 5: Documentation didn't specify env requirements
Root Cause: Missing deployment documentation

Example 2: Performance issue investigation

Systematically trace why a feature is running slowly by examining each contributing factor.

Notes

  • Don't stop at symptoms; keep digging for systemic issues
  • Multiple root causes may exist - explore different branches
  • Document each "why" for future reference
  • Consider both technical and process-related causes
  • The magic isn't in exactly 5 whys - stop when you reach the true root cause
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. 8d ago First seen · 48 lines · 15 tokens per session scan A 33347c0bbf41

Subscribe to this mod's changes

five is a command published in the GitHub repository wesammustafa/Claude-Code-Everything-You-Need-to-Know (2,969 stars, last pushed 1mo ago), licensed MIT. It adds 15 tokens to every session and 374 once invoked, about $0.0001 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-30.