prompt-improver
Improve prompts for AI agents and Telegram bots using OpenAI's prompt engineering best practices. Analyzes clarity, specificity, context, and output format. Returns structured improvements.
Best use case
prompt-improver is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Improve prompts for AI agents and Telegram bots using OpenAI's prompt engineering best practices. Analyzes clarity, specificity, context, and output format. Returns structured improvements.
Teams using prompt-improver should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/prompt-improver/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How prompt-improver Compares
| Feature / Agent | prompt-improver | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Improve prompts for AI agents and Telegram bots using OpenAI's prompt engineering best practices. Analyzes clarity, specificity, context, and output format. Returns structured improvements.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Prompt Improver Skill **Version:** 1.0 **Domain:** AI Prompting & Bot Communication **Focus:** Optimize prompts for Telegram bots, increase clarity and response quality ## Overview The Prompt Improver skill enhances prompts designed for bots by applying OpenAI's prompt engineering best practices, domain-specific optimizations, and bot-communication patterns. It analyzes prompts against a systematic framework and provides structured improvements. ## Core Capabilities ### 1. **Prompt Analysis Framework** - **Clarity Assessment** - Measures clarity on 1-10 scale - **Specificity Check** - Evaluates technical detail level - **Context Sufficiency** - Validates background information - **Role Definition** - Confirms actor/persona clarity - **Output Format** - Checks expected response structure - **Constraint Identification** - Lists limitations and requirements ### 2. **Improvement Strategies** #### ✅ Clarity Enhancements - Remove ambiguous language - Define technical terms inline - Use concrete examples - Replace vague phrases with specific actions #### ✅ Specificity Optimization - Add measurable outcomes - Include input/output examples - Define edge cases to handle - Specify tone and style #### ✅ Bot-Specific Optimizations - Telegram command syntax (`/start`, `/help`) - Message formatting (markdown, buttons, keyboards) - Conversation flow patterns - Error handling strategies - Response length constraints (4096 char limit) #### ✅ Context Enrichment - Suggest background information - Include relevant examples - Define expected user scenarios - Add domain-specific terminology ### 3. **Analysis Output Structure** ```markdown ## 📊 ORIGINAL PROMPT ANALYSIS - Clarity Score: [1-10] - Specificity Level: [Low/Medium/High] - Context Richness: [Insufficient/Adequate/Rich] - Bot Compatibility: [⚠️ Issues / ✅ Compatible] - Key Issues: [List] ## 🎯 IMPROVEMENT RECOMMENDATIONS 1. [Specific improvement with reasoning] 2. [Next improvement] ... ## ✨ IMPROVED PROMPT [Optimized version] ## 📝 EXPLANATION - Why changes were made - Expected quality improvement - Bot-specific considerations ``` ## Usage Patterns ### Pattern 1: Bot Command Enhancement ``` User: "Improve this prompt for my Telegram bot" [Prompt about listing products] Skill Response: - Analysis of current prompt - Bot-specific suggestions (keyboard layout, response format) - Improved version with Telegram best practices ``` ### Pattern 2: Conversation Flow Design ``` User: "Design a conversational flow for..." Skill provides: - Multi-turn conversation structure - Button/keyboard layouts - Error handling prompts - Exit strategies ``` ### Pattern 3: AI Integration Optimization ``` User: "Improve this prompt for Gemini/ChatGPT API calls" Skill provides: - Model-specific optimizations - Token efficiency improvements - System prompt + user prompt separation - Temperature/parameter suggestions ``` ## Bot-Specific Best Practices ### Telegram Bots - **Message Limits:** 4096 characters per message - **Markdown:** Use `**bold**`, `_italic_`, `` `code` `` - **Keyboards:** Suggest inline buttons or reply keyboards - **Callbacks:** Design stateless callback handlers - **Rate Limits:** Consider API rate limiting ### WhatsApp Bots (WAHA) - **Templates:** Use message templates for broadcasts - **Media:** Support image/document responses - **Formatting:** Limited markdown support - **Buttons:** Button payloads max 256 chars ### Multi-Platform Coordination - **Prompt Versioning:** Different prompts per platform - **Fallbacks:** Handle unsupported features gracefully - **Context Preservation:** Maintain conversation state ## Integration Points ### With Telegram UI Design Skill - Complements keyboard/button design - Provides instruction text for UI elements - Optimizes for message formatting constraints ### With Backend Services - Prepares prompts for API calls - Structures responses for database storage - Defines error handling responses ## Evaluation Metrics | Metric | Goal | Measurement | |--------|------|------------| | Clarity | +3 points | User understanding increase | | Specificity | Clear outputs | Unambiguous bot response | | Token Efficiency | -20% tokens | Reduced API costs | | Bot Compatibility | 0 errors | No formatting violations | ## Templates & Examples ### Template: System Prompt for Affiliate Bot ``` You are an Affiliate Product Recommendation Bot for [Your Platform Name]. Your role: Help users find the best deals on products. Constraints: Keep responses under 300 words, max 2 product recommendations per message. Format: Use inline buttons [View Deal] [Add to List] [Share] Tone: Friendly, helpful, professional Error Handling: If product not found, suggest similar categories ``` ### Template: Conversation Flow for Product Search ``` [START] → Ask category preference ↓ [CATEGORY_SELECT] → Show category buttons ↓ [FILTER_OPTIONS] → Price range, brand, rating ↓ [RESULTS] → Display products with inline buttons ↓ [DETAIL_VIEW] → Full product info with affiliate link ↓ [ACTION] → Add to list, share, or new search ``` ## Command Patterns for Automation ```bash # Improve prompt for telegram @prompt-improver Optimize this prompt: "List products" # Design conversation flow @prompt-improver Design a product search flow for Telegram # API integration prep @prompt-improver Prepare prompt for Gemini API integration # Error handling @prompt-improver Improve error messages for this bot ``` ## Advanced Features ### 1. **Prompt Versioning** - Track prompt iterations - Compare performance metrics - A/B test different versions ### 2. **Domain-Specific Libraries** - Affiliate marketing prompts - E-commerce product descriptions - Customer service patterns - Content generation templates ### 3. **Performance Tuning** - Optimize for response latency - Reduce token consumption - Improve accuracy metrics - Measure user satisfaction ## References & Learning Resources - [OpenAI Prompt Engineering Guide](https://platform.openai.com/docs/guides/prompt-engineering) - [Telegram Bot API Documentation](https://core.telegram.org/bots/api) - [Claude Prompt Engineering](https://claude.ai/resources) - [WAHA Documentation](https://waha.dev/) ## Changelog - **v1.0** (2025-12-19): Initial release with Telegram/WhatsApp optimization, conversation flow design, API integration prep --- **Status:** ✅ Production Ready **Maintenance:** Active **Last Updated:** December 19, 2025
Related Skills
create-prompt
Expert prompt engineering for creating effective prompts for Claude, GPT, and other LLMs. Use when writing system prompts, user prompts, few-shot examples, or optimizing existing prompts for better performance.
create-custom-prompt
Prompt for creating custom prompt files
agentv-prompt-optimizer
Iteratively optimize prompt files against AgentV evaluation datasets by analyzing failures and refining instructions.
prompt-engineer
Transforms user prompts into optimized prompts using frameworks (RTF, RISEN, Chain of Thought, RODES, Chain of Density, RACE, RISE, STAR, SOAP, CLEAR, GROW)
python-fastapi-scalable-api-cursorrules-prompt-fil
Apply for python-fastapi-scalable-api-cursorrules-prompt-fil. --- description: Defines conventions specific to FastAPI usage in the backend. globs: backend/src/**/*.py
python-django-best-practices-cursorrules-prompt-fi
Apply for python-django-best-practices-cursorrules-prompt-fi. --- description: Configurations for Django settings file with the list of dependencies and conventions. globs: **/settings.py
go-servemux-rest-api-cursorrules-prompt-file
Apply for go-servemux-rest-api-cursorrules-prompt-file. --- description: This rule emphasizes security, scalability, and maintainability best practices in Go API development. globs: /*/**/*_api.go
go-backend-scalability-cursorrules-prompt-file-cursorrules
Apply for go-backend-scalability-cursorrules-prompt-file. --- description: General rule for backend development expertise across the project. globs: **/*
system-prompt-writer
This skill should be used when writing or improving system prompts for AI agents, providing expert guidance based on Anthropic's context engineering principles.
structured-prompt-writer
结构化AI提示词写作工具,内置395+提示词模板。支持详细模式和简单模式。用于创建专业的AI角色提示词、系统提示词或任务提示词。当用户需要:(1) 创建新的AI提示词/Prompt (2) 设计AI角色/Persona (3) 编写系统提示词 (4) 优化现有提示词结构时使用此技能。
sk-prompt-improver
Prompt engineering specialist that transforms vague requests into structured, scored AI prompts using 7 proven frameworks (RCAF, COSTAR, RACE, CIDI, TIDD-EC, CRISPE, CRAFT), DEPTH thinking methodology, and CLEAR scoring across text modes.
senior-prompt-engineer
World-class prompt engineering skill for LLM optimization, prompt patterns, structured outputs, and AI product development. Expertise in Claude, GPT-4, prompt design patterns, few-shot learning, chain-of-thought, and AI evaluation. Includes RAG optimization, agent design, and LLM system architecture. Use when building AI products, optimizing LLM performance, designing agentic systems, or implementing advanced prompting techniques.