prompt-engineering
This guide provides best practices for designing, testing, and refining prompts for AI-powered features. It is intended for developers integrating LLMs (like OpenAI, Anthropic, or Gemini) into web applications. - **Clarity:** Write prompts that are clear, specific, and unambiguous.
Install / Use
npx skills add js-promptly3d/promptly3d-aiInstalls into whichever agent you are using.
Cursor Rules
Cursor IDE rules (v2)
Quality Score
Category
AI & Machine LearningSupported Platforms
Skill content
View source on GitHubPrompt Engineering Rules
Introduction
This guide provides best practices for designing, testing, and refining prompts for AI-powered features. It is intended for developers integrating LLMs (like OpenAI, Anthropic, or Gemini) into web applications.
General Principles
- Clarity: Write prompts that are clear, specific, and unambiguous.
- Context: Provide relevant context and examples in the prompt to guide the model.
- Instruction: Use explicit instructions (e.g., “List 5…”, “Summarize the following…”).
- Format: Specify the desired output format (e.g., JSON, Markdown, plain text).
- Iterate: Test and refine prompts based on real outputs and user feedback.
Types of Prompts
- Zero-shot: No examples, just instructions.
- Few-shot: Include 1–3 examples to guide the model.
- Chain-of-thought: Ask the model to reason step-by-step.
- Role-based: Assign a persona or role to the model for more targeted responses.
Testing & Evaluation
- Maintain a prompt library with effective prompts and their results.
- Test prompts with edge cases and real user data.
- Document prompt changes and their impact on results.
Security & Ethics
- Avoid prompts that could elicit sensitive or harmful outputs.
- Sanitize user input before including it in prompts.
- Log and review AI outputs for quality and safety.
References
- https://platform.openai.com/docs/guides/prompt-engineering
- https://anthropic.com/prompt-engineering
- https://www.promptingguide.ai/
Related Skills
caveman
107.1k🪨 why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.
claude-mem
94.4kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Understand-Anything
83.5kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
73.4kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Security Score
Audited on Invalid Date
