npx claudepluginhub aznatkoiny/zai-skills --plugin AI-ToolkitWant just this skill?
Then install: npx claudepluginhub u/[userId]/[slug]
Optimize prompts for Claude 4.x models using Anthropic's official best practices. Use when users want to improve, refine, or create effective prompts for Claude. Triggers include requests to optimize prompts, make prompts more effective, fix underperforming prompts, create system prompts, improve instruction following, reduce verbosity, control output formatting, or enhance agentic/tool-use behaviors. Also use when users report Claude is being too verbose, not following instructions, not using tools properly, or producing generic outputs.
This skill uses the workspace's default tool permissions.
references/agentic.mdreferences/formatting.mdreferences/patterns.mdPrompt Optimizer
Optimize prompts for Claude 4.x models (Sonnet 4.5, Haiku 4.5, Opus 4.5) using Anthropic's official guidance.
Core Principles
1. Be Explicit
Claude 4.x models follow instructions precisely. Request behaviors explicitly rather than hoping Claude infers them.
Less effective: Create an analytics dashboard
More effective: Create an analytics dashboard. Include as many relevant features and interactions as possible. Go beyond the basics to create a fully-featured implementation.
2. Provide Context for Why
Explain motivation behind instructions to help Claude generalize appropriately.
Less effective: NEVER use ellipses
More effective: Your response will be read aloud by a text-to-speech engine, so never use ellipses since the text-to-speech engine will not know how to pronounce them.
3. Align Examples with Desired Behavior
Claude pays close attention to examples. Ensure they demonstrate exactly what you want, without patterns you want to avoid.
Optimization Workflow
- Diagnose the issue (verbosity, formatting, tool use, instruction following)
- Select relevant patterns from references/patterns.md
- Apply the appropriate prompt snippets
- Test the optimized prompt
Quick Fixes by Issue
Too Verbose
Add: Keep responses concise and direct. Avoid unnecessary elaboration.
Too Much Markdown/Bullets
See references/formatting.md for detailed prompts to control output style.
Not Using Tools
Add: By default, implement changes rather than only suggesting them. Use tools to take action.
Generic "AI Slop" Output
Add creativity guidance or use the frontend-aesthetics pattern from references/patterns.md.
Not Following Instructions
Make instructions explicit, add context for why, frame positively (what TO do, not what NOT to do).
Reference Files
- references/patterns.md - Complete prompt snippets organized by use case
- references/formatting.md - Output format control patterns
- references/agentic.md - Tool use, parallel execution, and multi-context workflows
Load the appropriate reference file based on the optimization need.
Similar Skills
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.