用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ahkohd/dotfiles --skill prompt-engineer命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when you cannot inspect media directly and the user provides images, screenshots, image-heavy PDFs, or video frames. Send each image blob to the configured multimodal alternate, read its response, then continue using that response as context.
Getting Liquid Glass to render its specular rim (and its shadow) on macOS 26 — active appearance, tint rules, nesting rules, clipping rules, and shadow breathing room. Use when glass looks flat/rimless, when a glass panel or tooltip lacks the edge highlight the Dock's tooltips have, when a glass shadow clips at a window or view edge (visible on light backdrops), or when building any NSPanel/overlay/tooltip/toast/card that uses glassEffect or NSGlassEffectView.
Guide for the C -fbounds-safety language extension. Covers the language model, pointer annotations, adopting bounds-safety in existing C code, compiler build settings and modes, and runtime debugging of bounds violations.
基于 SOC 职业分类
正在显示 SKILL.md
| name | prompt-engineer |
| description | Review, generate, optimize, and look up prompt engineering techniques for LLM systems. |
Systematic prompt engineering using established techniques. Four modes: review, generate, lookup, optimize.
/prompt-engineerDetect mode from context. If ambiguous, ask.
/prompt-engineer review)Analyze an existing prompt for weaknesses and improvements.
Process:
Get the prompt (user pastes it, or read from file)
Identify the four elements present or missing:
Evaluate against these criteria:
Structure:
Specificity:
Technique gaps:
Small model considerations:
Adversarial robustness:
Output findings as prioritized list (P0-P3) with specific rewrites.
/prompt-engineer generate)Create a prompt from a task description.
Process:
Clarify: what model? what task? what input/output? what failure modes to avoid?
Select technique based on task type:
| Task Type | Recommended Technique |
|---|---|
| Simple classification/extraction | Zero-shot with output format |
| Tasks needing consistent format | Few-shot (1-5 examples) |
| Math, logic, multi-step reasoning | Chain-of-Thought or PAL |
| Complex reasoning with exploration | Tree of Thoughts |
| Knowledge-intensive QA | RAG or Generated Knowledge |
| Multi-step with tools | ReAct (Thought/Action/Observation) |
| Long complex workflows | Prompt Chaining (subtask pipeline) |
| Tasks needing self-correction | Reflexion (actor/evaluator/reflect loop) |
| Noisy reasoning tasks | Self-Consistency (sample k, majority vote) |
Build the prompt using this structure:
[System context / role]
[Constraints and rules]
[Output format specification]
[Few-shot examples if needed]
[Input delimiter]
[Input data]
[Output delimiter / indicator]
For small models (under 8B):
Output the complete prompt with annotations explaining technique choices.
/prompt-engineer lookup <technique>)Explain a prompting technique with actionable pattern.
Technique Reference:
Zero-Shot Prompting
[Instruction]\n[Input]\n[Output indicator]Few-Shot Prompting
Example 1: [input] -> [output]\nExample 2: [input] -> [output]\n[query] ->Chain-of-Thought (CoT)
Zero-Shot CoT
[Question]\n\nLet's think step by step.Self-Consistency
Tree of Thoughts (ToT)
RAG (Retrieval-Augmented Generation)
[Retrieved context]\n[Instruction]\n[Query]ReAct (Reasoning + Acting)
Thought: [reasoning]\nAction: [tool call]\nObservation: [result]\n...repeatPrompt Chaining
Prompt 1 -> Output 1 -> Prompt 2 (with Output 1) -> FinalPAL (Program-Aided Language)
Generated Knowledge
Reflexion
Active-Prompt
APE (Automatic Prompt Engineer)
ART (Automatic Reasoning and Tool-use)
Meta Prompting
Directional Stimulus Prompting (DSP)
Multimodal CoT
/prompt-engineer optimize)Fix a prompt based on observed failure mode.
Process:
Get the prompt and the failure description (what the model does wrong)
Diagnose using this failure-to-technique map:
| Failure Mode | Likely Cause | Fix |
|---|---|---|
| Model hallucinates facts | No grounding, no constraints | Add "Only state facts present in [context]." Add RAG. |
| Model ignores instructions | Instructions buried, too many rules | Move instructions to top. Use delimiters. Reduce rule count. |
| Output format inconsistent | No format spec, no examples | Add output indicator. Add 1-2 few-shot examples. |
| Model can't reason through problem | No reasoning elicitation | Add CoT ("Let's think step by step") or few-shot with worked examples. |
| Model does too much / rambles | No length/scope constraints | Add explicit length ("2-3 sentences"), scope ("only X, not Y"). |
| Model leaks internal data | System/user boundary unclear, raw IDs in context | Sanitize context before delivery. Reinforce output rules. |
| Model answers "I don't know" when data exists | Context trimmed, budget too tight, data not reaching model | Check context pipeline. Increase budget. Verify data delivery. |
| Small model forgets rules mid-output | System prompt too long, rules only stated once | Shorten prompt. Repeat critical rules near output. Use structured output. |
| Model parrots input verbatim | No transformation instruction | Add explicit transformation: "Summarize", "Rewrite as", "Extract only". |
| Tool use syntax wrong | Tool descriptions unclear | Add concrete tool call examples. Show expected input/output format. |
| Model calls tools when it shouldn't | No "when to use tools" guidance | Add decision criteria: "Only call tools when [condition]. Otherwise answer from context." |
Apply fix. Show before/after with explanation of which technique was applied and why.
These apply across all modes:
allowed-tools: