aradotso/trending-skills/claude-token-efficient
Claude Code and agent skill by aradotso/trending-skills
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install aradotso/trending-skills/claude-token-efficientSKILL.md
curl -o CLAUDE.md https://raw.githubusercontent.com/drona23/claude-token-efficient/main/CLAUDE.md
git clone https://github.com/drona23/claude-token-efficient cd your-project
Universal
cp ../claude-token-efficient/CLAUDE.md .
Dev/coding projects
cp ../claude-token-efficient/profiles/CLAUDE.coding.md CLAUDE.md
Automation pipelines and agent loops
cp ../claude-token-efficient/profiles/CLAUDE.agents.md CLAUDE.md
Data analysis and research
cp ../claude-token-efficient/profiles/CLAUDE.analysis.md CLAUDE.md
mkdir -p ~/.claude curl -o ~/.claude/CLAUDE.md https://raw.githubusercontent.com/drona23/claude-token-efficient/main/CLAUDE.md
your-project/ ├── CLAUDE.md <- behavior rules, read automatically by Claude Code ├── src/ └── ...
~/.claude/CLAUDE.md <- global preferences (tone, ASCII, format) your-project/CLAUDE.md <- project-level constraints your-project/src/CLAUDE.md <- task/module-specific rules
Output Rules
- Answer is always line 1. No openers.
- No closing statements or offers to help further.
- Do not restate the prompt. Execute immediately.
- ASCII only. No em dashes, smart quotes, or Unicode symbols.
- Never say "As an AI".
- No disclaimers unless genuine safety risk.
- Do not add suggestions outside the requested scope.
- Write the simplest working solution. No unsolicited abstractions.
- On uncertain facts: say "I don't know". Do not guess.
- User corrections become session ground truth immediately.
- Never read the same file twice in one session.
- Do not touch code outside the explicit request.
import os import anthropic
def load_claude_rules(path: str = "CLAUDE.md") -> str: if os.path.exists(path): with open(path, "r") as f: return f.read() return ""
client = anthropic.Anthropic(api_key=os.environ["ANTHROPIC_API_KEY"])
rules = load_claude_rules()
response = client.messages.create( model="claude-sonnet-4-5", max_tokens=1024, system=rules, messages=[ {"role": "user", "content": "Review this function for bugs: def add(a, b): return a - b"} ] )
print(response.content[0].text)
Output: Bug: subtraction used instead of addition. Fix: return a + b
import anthropic import os
client = anthropic.Anthropic(api_key=os.environ["ANTHROPIC_API_KEY"])
def load_rules() -> str: with open("CLAUDE.md") as f: return f.read()
def process_prompts(prompts: list[str]) -> dict: rules = load_rules() total_input = 0 total_output = 0 results = []
for prompt in prompts: response = client.messages.create( model="claude-sonnet-4-5", max_tokens=512, system=rules, messages=[{"role": "user", "content": prompt}] ) total_input += response.usage.input_tokens total_output += response.usage.output_tokens results.append(response.content[0].text)
return { "results": results, "total_input_tokens": total_input, "total_output_tokens": total_output, }
prompts = [ "What is a closure in JavaScript?", "Review: for(let i=0; i<=arr.length; i++) console.log(arr[i])", "What does REST stand for?", ]
stats = process_prompts(prompts) for i, result in enumerate(stats["results"]): print(f"--- Prompt {i+1} ---") print(result)
print(f"\nTotal input tokens: {stats['total_input_tokens']}") print(f"Total output tokens: {stats['total_output_tokens']}")
import Anthropic from "@anthropic-ai/sdk"; import { readFileSync, existsSync } from "fs";
const client = new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY });
function loadRules(path = "CLAUDE.md") { if (existsSync(path)) { return readFileSync(path, "utf-8"); } return ""; }
async function ask(prompt) { const rules = loadRules();
const response = await client.messages.create({ model: "claude-sonnet-4-5", max_tokens: 512, system: rules, messages: [{ role: "user", content: prompt }], });
return { text: response.content[0].text, inputTokens: response.usage.input_tokens, outputTokens: response.usage.output_tokens, }; }
const result = await ask("Explain async/await in one paragraph."); console.log(result.text); console.log(Output tokens: ${result.outputTokens});
cat CLAUDE.md > CLAUDE.project.md cat >> CLAUDE.project.md << 'EOF'
Project-Specific Rules
- Never modify files under /config without explicit confirmation.
- When a step fails, stop immediately and report the full error with traceback before attempting any fix.
- All database queries must use parameterized statements. Never interpolate user input into SQL strings.
- Output only valid JSON when the task involves data transformation. No prose before or after.
EOF
mv CLAUDE.project.md CLAUDE.md
"Give me a detailed explanation with examples for each point." "Walk me through the pros and cons — I want the full analysis." "Be verbose — I'm learning and want all the context."
ls -la CLAUDE.md # confirm it exists in project root pwd # confirm your working directory
with open("CLAUDE.md") as f: rules = f.read()
Pass as system param
response = client.messages.create( model="claude-sonnet-4-5", system=rules, ... )
Global rules
~/.claude/CLAUDE.md
Project-level overrides (Claude merges both)
your-project/CLAUDE.md
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/claude-token-efficient/SKILL.md
Popularity
- Repository stars
- 75
- Repository forks
- 13
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 4 Sep 2026, a month ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aradotso/trending-skills/claude-token-efficient)