By varunvekaria
Rewrites LLM prompts to reduce token consumption. Delivers a ready-to-use optimized rewrite with an estimated savings percentage. Triggered by 'optimize prompt', 'reduce tokens', 'make this prompt efficient', etc.
A Claude Code plugin + Agent Skill that rewrites prompts to reduce token consumption.
Given any LLM prompt, this plugin:
/plugin marketplace add https://github.com/VarunVekaria/optimize-prompt-skill
/plugin install optimize-prompt-skill@optimize-prompt-skill
/plugin install https://github.com/VarunVekaria/optimize-prompt-skill
# Clone into your skills directory
git clone https://github.com/VarunVekaria/optimize-prompt-skill ~/.claude/skills/prompt-optimizer
# Or for VS Code
git clone https://github.com/VarunVekaria/optimize-prompt-skill .agents/skills/prompt-optimizer
optimize-prompt-skill/
├── .claude-plugin/
│ ├── plugin.json # Claude Code plugin manifest
│ └── marketplace.json # Marketplace catalog (enables /plugin marketplace add)
├── skills/
│ └── prompt-optimizer/
│ ├── SKILL.md # Agent Skills entry point
│ ├── references/
│ │ └── REFERENCE.md
│ └── assets/
│ └── CHEATSHEET.md
├── README.md
└── LICENSE
| Dimension | Example addition |
|---|---|
| Length constraint | Under 150 words |
| Format instruction | Code only / JSON only / Bullet list |
| Scope limit | Assume CS background / Skip background |
| Negative instructions | No preamble, no caveats, no examples |
| Single focus | Split or drop bundled sub-questions |
| Persona / tone | Be terse / Be direct |
| Response prefill | Start the expected output structure |
Before:
"Can you explain how transformers work in machine learning?"
After:
"Explain how transformers work in ML. Assume CS background. Under 150 words. No preamble, no analogies, no examples unless essential."
Estimated token savings: ~55%
MIT — see LICENSE.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub varunvekaria/optimize-prompt-skill --plugin optimize-prompt-skillAnalyze and optimize AI prompts for better results
Professional AI/ML Engineering toolkit: Prompt engineering, LLM integration, RAG systems, AI safety with 12 expert plugins
Testany AI/LLM 工具集:Prompt 优化
+ask +deep +web <- modifiers | optimize your prompts
UI/UX design intelligence. 67 styles, 161 palettes, 57 font pairings, 25 charts, 15 stacks (React, Next.js, Vue, Svelte, Astro, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, Nuxt, Jetpack Compose). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.