Install
$ agentstack add skill-aznatkoiny-zai-skills-prompt-optimizer ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Prompt 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.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: Aznatkoiny
- Source: Aznatkoiny/zAI-Skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.