claude-code-practices

skill
Security Audit
Fail
Health Warn
  • License — License: MIT
  • No description — Repository has no description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Fail
  • rm -rf — Recursive force deletion command in install.sh
Permissions Pass
  • Permissions — No dangerous permissions requested
Purpose
This project is a collection of best practices, prompt templates, and ready-made slash commands designed to help developers use Claude Code more efficiently and reduce token consumption.

Security Assessment
The overall security risk is Medium. The tool does not request dangerous account permissions, nor does it appear to handle sensitive user data or contain hardcoded secrets. However, the automated rule-based scan flagged a critical failure: the presence of a recursive force deletion command (`rm -rf`) inside its `install.sh` script. While this might simply be used to clean up temporary installation files, blindly executing unverified shell scripts with force deletion capabilities always poses a risk to your local filesystem. It does not appear to make external network requests outside of standard Git operations.

Quality Assessment
The project is actively maintained, with its most recent push happening just today. It is properly licensed under the permissive and standard MIT license. On the downside, community trust and visibility are currently very low. It has only accumulated 5 GitHub stars and lacks a proper repository description. Developers considering this tool should be prepared to read through the shell scripts and templates themselves, as it has not yet been widely vetted by a large open-source audience.

Verdict
Use with caution—review the `install.sh` script thoroughly before executing it to ensure the `rm -rf` command does not target unintended directories.
README.md

Claude Code Practices

A field-tested playbook for using Claude Code without burning tokens.

Stars
Forks
License
Skills
Made with Claude Code
Sponsor


English · Türkçe · Full Guide · Cheatsheet · Skills · Contributing


Week 1 with Claude Code, I typed: "improve this project."

Claude read 4 files, edited 2, broke 1. 34,000 tokens. Nothing was fixed.
I typed /cost. $0.09 for zero work.

After a month of figuring out what actually works, the same changes now ship with 60–70% fewer tokens. This repo is the condensed version.


The 3 Things That Mattered Most

1. Specific prompts cost 8.5× less

- "improve this project"                             → 34,000 tokens
+ "add RFC 5322 validation to validateEmail()
+  at src/auth/login.ts:87"                          →  4,000 tokens

Same outcome. One-eighth the cost.

2. /compact is useless without an instruction

# Trims almost nothing
/compact

# Cuts 70% of context, quality unchanged
/compact Keep only changed functions and relevant test output

In one long session this took me from 82,000 → 11,000 tokens.

3. .claudeignore is doing nothing for you right now

node_modules/
dist/
*.log
coverage/
*.lock

Six lines. File reads drop 3× to 10× depending on the project.


What's In This Repo

Skill Library →

82 ready-made slash commands.
Copy to .claude/skills/, invoke with /name.

Prompt Templates →

Copy-paste prompt shapes for bug fixes, refactors, reviews, migrations.

CLAUDE.md Gallery →

Framework-ready memory files for Next 16, React 19, Django 5.2, Go 1.26, Rust.

Hook Recipes →

Drop-in settings.json snippets: auto-format, auto-test, secret blocker.

Full Guide →

Shortcuts, CLAUDE.md, permission modes, MCP, subagents — all in one file.

Cheatsheet →

Bookmark-worthy one-pager. Everything you'll reach for twice a day.


Skill Library

82 skills across categories — click to fold
Category Count Examples
Git & GitHub 13 /fix-issue · /pr-review · /commit · /release-notes
Testing 7 /test-generate · /test-coverage · /test-e2e
Frontend 9 /component-gen · /seo-check · /state-audit
Backend 10 /api-endpoint · /auth-middleware · /rate-limiter
Mobile 4 /react-native-component · /mobile-perf · /expo-setup
Security 3 /security-audit · /secret-scan · /dependency-audit
Database 6 /migration-gen · /query-optimize · /schema-review
+ more ... See all →

The Workflow

flowchart LR
    A["Vague prompt"] -.->|Wastes tokens| X(["Fail"])
    B["CLAUDE.md<br/>+ .claudeignore"] --> C["Specific prompt"]
    C --> D["Run a skill"]
    D -->|Long session| E["compact with hint"]
    E --> F(["Ship"])
    D --> F

    style X fill:#ff6b6b,stroke:#000,color:#fff
    style F fill:#51cf66,stroke:#000,color:#000
    style B fill:#7B4FFF,stroke:#000,color:#fff

Quick Start

One command (installs core skills, .claudeignore, and CLAUDE.md scaffold):

curl -fsSL https://raw.githubusercontent.com/berkcangumusisik/claude-code-practices/main/install.sh | bash

Flags: --all for every skill, --skills a,b,c to pick.

Or manually:

git clone https://github.com/berkcangumusisik/claude-code-practices.git
cp -r claude-code-practices/skills ./.claude/skills
claude
> /cost-audit

Where To Start

If you're... Start here
New to Claude Code Cheatsheet
Paying too much in tokens Run /cost-audit on your session
Rewriting the same prompts Prompt templates · Skill Library
Starting a new project CLAUDE.md gallery
Tired of running formatters by hand Hook recipes
Looking for more resources Awesome Claude Code

FAQ

Does this work with Claude 4.6 / 4.7?


Yes. Every skill and pattern here is model-agnostic — they're about how you prompt Claude Code, not which model it's pointed at.

Do I need to copy all 82 skills?


No. Start with 3–5 you'd actually use this week. Add more as the pain points show up.

Will .claudeignore break anything?


No. It only controls what Claude reads — your build and editor are unaffected.

How do I measure the savings?


Run /cost before and after a session. The numbers in this README are from my own /cost outputs, not estimates.

Can I use this for a team?


Yes. Commit .claude/skills/ and a CLAUDE.md to your repo and the whole team picks them up automatically.


Support the project

If this repo saved you tokens or hours, there are three ways to give back:

Contributing

Found a better pattern, wrote a skill, spotted a bug? PRs welcome. See CONTRIBUTING.md.

Contributors

Star History

Star History Chart

If this saved you tokens, drop a star. That's how the next person finds it.

Built by @berkcangumusisik · MIT License


↑ back to top

Reviews (0)

No results found