Llm Prompt Optimizer
Provides LLMs guidance and assistance for building AI and machine learning applications.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add jmsktm-llm-prompt-optimizer npx -- -y @trustedskills/jmsktm-llm-prompt-optimizer
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"jmsktm-llm-prompt-optimizer": {
"command": "npx",
"args": [
"-y",
"@trustedskills/jmsktm-llm-prompt-optimizer"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The LLM Prompt Optimizer skill refines prompts provided to Large Language Models (LLMs) to improve response quality and relevance. It automatically adjusts prompt wording, structure, and context based on predefined rules and heuristics. The goal is to elicit more accurate, detailed, and useful outputs from the underlying language model.
When to use it
- Improving creative writing: Enhance story generation or poem creation by optimizing prompts for better narrative flow and thematic consistency.
- Refining code generation: Get cleaner and more functional code snippets by ensuring the prompt clearly defines requirements and constraints.
- Boosting question answering accuracy: Optimize questions to reduce ambiguity and increase the likelihood of receiving precise and informative answers.
- Generating structured data: Improve the formatting and completeness of generated lists, tables, or other structured outputs.
Key capabilities
- Automated prompt refinement
- Rule-based optimization heuristics
- Contextual adjustment of prompts
- Improved response quality
Example prompts
- "Optimize this prompt: 'Write a short story about a cat.'"
- "Refine the following code generation request: 'Generate Python function to calculate Fibonacci sequence.'"
- "Improve this question for better accuracy: 'What is the capital of France?'"
Tips & gotchas
The skill's effectiveness depends on the clarity and specificity of the initial prompt. While it automates refinement, providing a well-defined starting point will yield the best results.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.