Agent skill · Workflow & Productivity

ggg

Smart context filter - reduce tokens 50-90% before sending to Claude. Use when reading large files (>1000 lines), analyzing complex codebases, or when user types 'ggg'. Saves ~69% cost per task.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill ggg --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: none
Path: skills/ai-llm/ggg/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# GGG - Gatekeeper (Smart Context Filter) ## Purpose Reduce token count by 50-90% before sending context to Claude using Gemini Flash or Local LLM. This dramatically reduces costs while maintaining quality. ## When to Use - User explicitly types `ggg` - Before reading large files (>1000 lines) - When analyzing complex codebases - Fixing bugs in specific areas - Adding features to existing code - Any task where you need focused context ## Cost Comparison ``` Before Gatekeeper: - Read 20k tokens: $0.06 (Claude input) - Total: $0.075/task After Gatekeeper: - Filter 20k→2k: $0.0021 (Gemini Flash) - Read 2k tokens: $0.006 (Claude input) - Total: $0.0231/task - SAVINGS: 69% 🎉 ``` ## Steps ### 1. Check Prerequisites Verify Python script exists: ```bash test -f gatekeeper.py && echo "✅ Found" || echo "❌ Missing: gatekeeper.py" ``` ### 2. Get Task Details Ask user (if not already provided): - What file to analyze? - What task to perform? (e.g., "Fix login bug", "Add rate limiting") ### 3. Run Gatekeeper **Mode Selection:** - `auto` (default): Try Gemini Flash → fallback to Local LLM - `flash`: Force Gemini Flash (best quality) - `local`: Force Local LLM (offline/privacy) **Execute:** ```ba

What's inside
Steps it walks through
  1. Purpose
  2. When to Use
  3. Cost Comparison
  4. Steps
  5. 1. Check Prerequisites
  6. 2. Get Task Details
  7. 3. Run Gatekeeper
  8. 4. Review Output
  9. 5. Use Filtered Content
  10. Important Notes
  11. Quality
  12. Modes
  13. Environment Variables
  14. When NOT to Use
Ships with 1 file
  • metadata.json
Commands it runs
test -f gatekeeper.py && echo "✅ Found" || echo "❌ Missing: gatekeeper.py"
python gatekeeper.py [file-path] "[task description]" --mode auto
Auto mode (recommended)
python gatekeeper.py src/auth.ts "Fix login bug" --mode auto
Force Gemini Flash
python gatekeeper.py api/routes.ts "Add rate limiting" --mode flash
Force Local LLM
python gatekeeper.py utils.js "Refactor error handling" --mode local
Extract specific keywords
python gatekeeper.py large_file.py "token,auth,jwt" --extract
More from claude-skill-registry
All skills →
About this skill
What does the ggg skill do?

Smart context filter - reduce tokens 50-90% before sending to Claude. Use when reading large files (>1000 lines), analyzing complex codebases, or when user types 'ggg'. Saves ~69% cost per task.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill ggg --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going