MuhammadUsmanGM/claude-code-best-practices

A comprehensive best-practices wiki for Claude Code - setup, CLAUDE.md templates, workflows, multi-agent patterns, and cost optimization.

76Stars on the repository
13Mods indexed here, across every type
2mo agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

PreToolUse

01

MuhammadUsmanGM/claude-code-best-practices

Hook Claude Code

Runs before the agent uses a tool for Write and Edit tool calls, executing block-secrets.sh via bash. From MuhammadUsmanGM/claude-code-best-practices.

76 +2 2mo ago A tokens not measured original MIT

PostToolUse

02

MuhammadUsmanGM/claude-code-best-practices

Hook Claude Code

Runs after a tool call finishes for Write and Edit tool calls, executing format-on-write.sh via bash. From MuhammadUsmanGM/claude-code-best-practices.

76 +2 2mo ago A tokens not measured original MIT

lint-docs

04

MuhammadUsmanGM/claude-code-best-practices

Skill Claude CodeCodex

Run this repo's documentation and shell quality gates (shellcheck, markdownlint, lint-claude-md) the same way CI runs them. Invoke before opening a PR, or when the user asks to lint, validate, or pre-flight the docs.

76 +2 2mo ago A 55 tokens original MIT

changelog

06

MuhammadUsmanGM/claude-code-best-practices

Skill Claude CodeCodex

Generate or update CHANGELOG.md with an entry for the unreleased changes since the last git tag. Invoke when the user asks to cut a release, update the changelog, or summarize changes since v-something.

76 +2 2mo ago A 46 tokens original MIT

pr-describe

07

MuhammadUsmanGM/claude-code-best-practices

Skill Claude CodeCodex

Write a pull-request title and body from the current branch's commits and diff against the base branch. Invoke when the user asks to open a PR, draft a PR description, or summarize a branch.

76 +2 2mo ago A 44 tokens original MIT

test-triage

08

MuhammadUsmanGM/claude-code-best-practices

Skill Claude CodeCodex

Classify failing tests as flaky vs. real regressions and propose a next step for each. Invoke when the user pastes failing test output, asks to triage CI failures, or asks "are these tests flaky".

76 +2 2mo ago A 49 tokens original MIT

conventional-commit

09

MuhammadUsmanGM/claude-code-best-practices

Skill Claude CodeCodex

Generate a Conventional Commits message for the staged diff and (optionally) create the commit. Invoke when the user asks to commit, write a commit message, or finalize staged work.

76 +2 2mo ago A 42 tokens original MIT

add-handler

10

MuhammadUsmanGM/claude-code-best-practices

Skill Claude CodeCodex

Scaffold a new HTTP handler with service function, store method (if needed), and table-driven test, following the project's internal/{api,service,store} layout. Invoke when the user asks to add an endpoint, handler, or route.

76 +2 2mo ago A 52 tokens original MIT

api-endpoint

11

MuhammadUsmanGM/claude-code-best-practices

Skill Claude CodeCodex

Scaffold a new API endpoint with request/response Pydantic schemas, service function, route handler, and a pytest test — following the project's layered layout. Invoke when the user asks to add an endpoint, route, or API method.

76 +2 2mo ago A 52 tokens original MIT

component-new

12

MuhammadUsmanGM/claude-code-best-practices

Skill Claude CodeCodex

Scaffold a new React component with matching test file and consistent folder layout, following the project's conventions in src/features or src/components. Invoke when the user asks to create, scaffold, or add a new component.

76 +2 2mo ago A 45 tokens original MIT

test-component

13

MuhammadUsmanGM/claude-code-best-practices

Skill Claude CodeCodex

Write React Testing Library tests for an existing component, following the project's RTL conventions (prefer role/label queries, mock at network boundary, no act()). Invoke when the user asks to test, add tests for, or cover a component.

76 +2 2mo ago A 50 tokens original MIT

At most 3 mods per repository are shown here — the rest are on their repository pages: