improving-prompts
Compresses and clarifies an existing LLM prompt through concept elevation, verifying that no original instruction is lost. Use when the user says "improve this prompt", or when the user supplies a prompt or prompt file and asks to improve, tighten, optimize, or refine it. Not for writing a new prompt; use writing-system-prompts.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- improving-prompts
- description
- Compresses and clarifies an existing LLM prompt through concept elevation, verifying that no original instruction is lost. Use when the user says "improve this prompt", or when the user supplies a prompt or prompt file and asks to improve, tighten, optimize, or refine it. Not for writing a new prompt; use writing-system-prompts.
- argument-hint
- <prompt text or file path containing the prompt to improve>
02 资源文件 1
- 参考文档agents/openai.yaml229 B
03 SKILL.md 正文
Improve Prompt Using Concept Elevation
Concept elevation finds the higher-level rule that expresses the sum of several connected instructions. The result is shorter and lets the model adapt to new situations instead of relying on specific cases.
The argument is prompt text or a path to a file containing it. Print the improved prompt by default. Edit the file in place only when the user asks.
Process
- Number every instruction, constraint, and example in the original (I1, I2, ...). This is the intent inventory.
- Group items that serve one purpose, and replace each group with the single rule that captures all of it. Keep an item as written when no rule captures it without loss.
- Map every inventory item to the draft line that carries its intent. Restore each unmapped item, then map again, until every item maps. The draft must be shorter than the original and leave no case unaddressed that the original covered.
Never drop an item silently. When two items conflict or one looks obsolete, keep both in the draft and flag the conflict.
Deliverable
End with this format (adapt the list labels; keep the order):
```text
<the improved prompt>
```
- Merged: I1, I4, I7 -> <the rule that replaces them, abbreviated>
- Kept as written: I3 (<why no rule captured it>)
- Flagged: I9 conflicts with I2 (<the decision the user must make>)
04 同仓库更多 Skills
writing-system-prompts
Writes and reviews system prompts for AI tools, agents, chatbots, and LLM products using a fixed section order and a quality checklist. Use when the user says "write a system prompt", or when drafting a system prompt or auditing one for missing stop criteria, tool rules, constraints, or examples. Not for compressing an existing prompt; use improving-prompts.
writing-prose
Writes and edits prose for people in a plain, conversational, short house style with no em dashes. Use when the user says "write this up", or when drafting or revising documentation, READMEs, explanations, blog posts, or other human-facing prose. Not for prompts written for agents; use writing-system-prompts or composing-agent-prompts.
writing-acceptance-criteria
Writes or rewrites acceptance criteria until each is provable: one observable outcome with a named check that can fail. Use when the user says "write acceptance criteria", or asks to write, rewrite, or tighten acceptance criteria or a definition of done. Not for proving work meets them; use proving-claims.
summarizing-shipped-work
Summarizes the user's merged GitHub PRs for a timeframe into a grouped, linked shipped-work report with highlights, and offers to update a brag document. Use when the user says "what shipped?", or when asked what the user shipped (this week, last month, a quarter, since a date), for a status update, or to update a brag doc.
running-retros
Mines a session transcript, past agent sessions, or named sources such as PR review comments for durable learnings, then proposes approval-gated edits to skills, AGENTS.md, or docs and tracker issues. Use when the user says "retro", or when the user explicitly asks for a retrospective. Never infer from session end or friction.
learning-from-mistakes
Codifies the latest correction or mistake in the conversation as a short imperative rule in the project or global CLAUDE.md or AGENTS.md, after the user approves it. Use when the user says "learn from this mistake", or when the user asks to learn from a mistake, remember a lesson for next time, add a rule to CLAUDE.md, or not repeat a behavior. Not for a whole session; use running-retros.