Skip to content

Commit e39b130

Browse files
committed
refactor: progressive disclosure — extract CLARITY rubric & refusal handling to references
- SKILL.md: Move 9-row CLARITY pass-criterion rubric and 5-row refusal-handling table to references/Decision_Tables.md; replace with compact one-line trigger table + reference links (42→37 rows) - SKILL.md: Add filled presentation example (APE, Simple task, Basic) to Step 7 template so placeholders are no longer abstract - SKILL.md: Clean 4 trailing pipe characters from earlier extractions - Decision_Tables.md: Add Refusal Handling and CLARITY Scoring Rubric sections migrated from SKILL.md - Bump version 2.1.12 → 2.1.13
1 parent 9806e5e commit e39b130

11 files changed

Lines changed: 116 additions & 40 deletions

File tree

‎.claude-plugin/marketplace.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
},
88
"metadata": {
99
"description": "A professional Claude Code Skill that transforms simple instructions into production-ready prompts based on CLARITY framework with 61 prompt frameworks",
10-
"version": "2.1.12",
10+
"version": "2.1.13",
1111
"category": "productivity"
1212
},
1313
"plugins": [
1414
{
1515
"name": "prompt-optimizer",
1616
"source": "./",
1717
"description": "Transform simple instructions into production-ready prompts. Features: CLARITY Framework, 61 Prompt Frameworks, Quality Validation, Multi-Version Output",
18-
"version": "2.1.12",
18+
"version": "2.1.13",
1919
"author": {
2020
"name": "dreamor",
2121
"url": "https://github.com/dreamor"

‎CHANGELOG.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [2.1.13] - 2026-06-24
6+
7+
### Changed
8+
9+
- **SKILL.md**: Progressive disclosure refactor — moved CLARITY scoring rubric (9-row pass-criterion table) and refusal-handling table from inline to `references/Decision_Tables.md`; replaced inline rubric with compact 7-row one-line trigger table + reference links. Reduced inline table rows from 42 to 37.
10+
- **SKILL.md**: Added filled example to Step 7 Presentation Template (APE framework, Simple task, Basic version) — `{framework}`, `{reasoning}`, `{score}`, `{X}`, `{optimized_prompt}` placeholders now have a concrete end-to-end demonstration.
11+
- **SKILL.md**: Cleaned 4 trailing `|` characters left from earlier table extractions.
12+
- **references/Decision_Tables.md**: Added `## Refusal Handling` section (smart defaults + user-response matrix) and `## CLARITY Scoring Rubric` section (full pass criteria + validation thresholds + fail-patch procedure) migrated from SKILL.md.
13+
514
## [2.1.12] - 2026-06-18
615

716
### Fixed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ English | [简体中文](./README_zh.md)
44

55
> A professional Claude Code Skill that transforms simple instructions into production-ready prompts.
66
7-
[![Version](https://img.shields.io/badge/version-2.1.12-blue.svg)](CHANGELOG.md)
7+
[![Version](https://img.shields.io/badge/version-2.1.13-blue.svg)](CHANGELOG.md)
88
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
99

1010
---

‎README_zh.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
> 专业的 Claude Code Skill,将简单的指令转化为生产级的高质量提示词。
66
7-
[![Version](https://img.shields.io/badge/version-2.1.12-blue.svg)](CHANGELOG.md)
7+
[![Version](https://img.shields.io/badge/version-2.1.13-blue.svg)](CHANGELOG.md)
88
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
99

1010
---

‎SKILL.md‎

Lines changed: 48 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: prompt-optimizer
3-
version: 2.1.12
3+
version: 2.1.13
44
allowed-tools: "Read TodoWrite"
55
compatibility: skill runtime requires Claude Code >= 1.0.0; CLI / test commands require Node.js 16+
66
description: Optimize and rewrite prompts using 61 frameworks (APE, RACE, CRISPE, Chain-of-Thought, COAST, SMART, etc.). Trigger on "optimize prompt", "improve this prompt", "make this prompt better", "rewrite for AI", or any vague/short instruction the user wants turned into a high-quality prompt — even if the user only says "make this clearer" or "help me write this". Also trigger whenever the user pastes raw text and asks for a structured AI-ready version, or expresses dissatisfaction with AI output quality without naming a fix. Always use this skill when the user inputs vague instructions, needs prompt optimization, or is dissatisfied with AI output quality.
@@ -59,7 +59,7 @@ Classify the input using the Boundary Handling table below before proceeding.
5959

6060
Must be performed before framework selection — matching a Simple task to a Complex framework produces a bloated prompt that makes AI output worse, not better (see Gotchas). See [references/Quick_Reference.md](references/Quick_Reference.md) for real-world examples.
6161

62-
Count the number of distinct task elements present in the user's input. See [`references/Decision_Tables.md`](references/Decision_Tables.md#element-definitions) for the full element list with examples. |
62+
Count the number of distinct task elements present in the user's input. See [`references/Decision_Tables.md`](references/Decision_Tables.md#element-definitions) for the full element list with examples.
6363

6464
Classify complexity by element count:
6565

@@ -183,19 +183,7 @@ Please answer the questions above, or say "default" to use standard settings.
183183

184184
**Refusal Handling:**
185185

186-
If the user refuses to answer clarifying questions:
187-
188-
| User Response | Action |
189-
|---------------|--------|
190-
| "Just generate it" / "Default" | Continue with smart defaults |
191-
| "Stop asking" / "Do it as I said" | Politely state the defaults, then proceed |
192-
| No response at all | Wait one round, then use defaults |
193-
194-
**Smart Defaults:**
195-
- Goal: "Provide high-quality, ready-to-use content"
196-
- Audience: "General professionals"
197-
- Format: "Structured text with headings and bullet points"
198-
- Constraints: "No special restrictions"
186+
If the user declines to answer, continue with smart defaults (Goal: "high-quality content", Audience: "general professionals", Format: "structured text", Constraints: "none"). For the full refusal-response matrix, see [`references/Decision_Tables.md#refusal-handling`](references/Decision_Tables.md#refusal-handling).
199187

200188
---
201189

@@ -222,27 +210,26 @@ Provide 1–3 versions based on user needs. See [`references/Decision_Tables.md#
222210

223211
**CRITICAL STEP**
224212

225-
Validate the optimized prompt using the **CLARITY Checklist**. Each item is a binary pass/fail — apply the rubric below verbatim instead of judging by feel.
213+
Validate the optimized prompt using the **CLARITY Checklist**. Each item is a binary pass/fail. For the full pass-criteria rubric, see [`references/Decision_Tables.md#clarity-scoring-rubric`](references/Decision_Tables.md#clarity-scoring-rubric). Quick summary:
226214

227-
| Letter | Pass criterion (must satisfy ALL) |
228-
|--------|-----------------------------------|
229-
| **C**ontext | The prompt names the relevant background: domain, situation, prior state, or constraints that frame why the task exists. Generic phrases like "in a business setting" do NOT pass. |
230-
| **L**ogic | The prompt either (a) prescribes a reasoning method ("think step by step", "first principles", "compare alternatives"), or (b) breaks the task into ordered sub-steps. |
231-
| **A**ction | The prompt contains at least one specific imperative verb describing what to produce (write, summarize, classify, refactor, design). Vague verbs (improve, optimize, handle) do NOT pass on their own. |
232-
| **R**ole | The prompt assigns a specific expert identity, including domain and seniority/experience. "You are an assistant" does NOT pass. |
233-
| **I**nput/Output | The prompt names BOTH the input shape (or assumes raw user text) AND the desired output structure (headings, JSON keys, table columns, length range). |
234-
| **T**one | The prompt names a style, register, or audience that constrains voice (formal, casual, technical, for executives, for 5-year-olds). |
235-
| **Y**ardstick | The prompt states at least one measurable acceptance criterion or hard constraint (word count, must include X, must avoid Y, must validate Z). |
215+
| Letter | Element | One-line trigger |
216+
|--------|---------|-----------------|
217+
| **C** | Context | Names specific background (not just "business setting") |
218+
| **L** | Logic | Prescribes reasoning method or ordered sub-steps |
219+
| **A** | Action | Contains a specific imperative verb (write, classify, refactor…) |
220+
| **R** | Role | Assigns expert identity with domain + seniority |
221+
| **I** | Input/Output | Names both input shape and output structure |
222+
| **T** | Tone | Constrains voice to a named style or audience |
223+
| **Y** | Yardstick | States ≥1 measurable acceptance criterion |
236224

237225
Compute the score: count items that pass.
238226

239227
**Validation thresholds (by task complexity):**
240-
241-
Simple task prompts are evaluated linearly by 3+ judges who check at most 7 questions — 3/7 ensures the prompt has the minimum viable scaffold to guide an AI without overloading it. Medium tasks need ≥5 to cover both structure and context. Complex tasks require ≥6 because one missing element (e.g., no Output spec) can cascade into an unusable result requiring multiple re-writes.
228+
For rationale, see [`references/Decision_Tables.md#clarity-scoring-rubric`](references/Decision_Tables.md#clarity-scoring-rubric).
242229

243230
| Task complexity | Required score | Action on fail |
244231
|-----------------|----------------|----------------|
245-
| Simple | ≥ 3 / 7 | Add the lowest-cost missing element (skip Role if task is format-only) |
232+
| Simple | ≥ 3 / 7 | Add the lowest-cost missing element (skip Role if format-only) |
246233
| Medium | ≥ 5 / 7 | Add the 1–2 missing elements with the highest impact |
247234
| Complex | ≥ 6 / 7 | Iterate until threshold met; never present below threshold |
248235

@@ -296,17 +283,48 @@ Present the optimized prompt to the user with:
296283
- For iterative refinement, tell me the specific direction to adjust
297284
```
298285

286+
**Filled Example:**
287+
```
288+
## Optimization Result
289+
290+
### Framework Selection
291+
- Framework used: APE (Action-Purpose-Expectation)
292+
- Reason: The user wants a single-sentence polish (Simple, 2 elements),
293+
so a Simple-tier framework with Basic version avoids over-engineering.
294+
- Confidence: 9/10
295+
296+
### Quality Validation
297+
- CLARITY check: 4/7 items passed
298+
- Quality grade: Good (sufficient for Simple task; threshold ≥ 3)
299+
300+
### Optimized Prompt
301+
302+
Write a concise follow-up email to a client who has not responded
303+
to a software demo proposal sent 10 days ago. Purpose: re-engage
304+
their interest and schedule a 15-minute call. Tone: professional
305+
but warm; avoid pressure tactics. Length: under 120 words.
306+
307+
### Version Options
308+
- [x] Basic (currently shown)
309+
- [ ] Enhanced (add: subject line alternatives, A/B variants)
310+
- [ ] Expert (add: CRM integration notes, follow-up cadence)
311+
312+
### Usage Tips
313+
- If the tone feels too formal, replace "professional" with "friendly-casual"
314+
- For a different engagement hook, swap "15-minute call" for a short video link
315+
```
316+
299317
---
300318

301319
## Core Principles
302320

303321
### 1. CLARITY Framework
304322

305-
When optimizing prompts, apply the **CLARITY** framework. See [`references/Decision_Tables.md#clarity-framework`](references/Decision_Tables.md#clarity-framework) for the full element descriptions. |
323+
When optimizing prompts, apply the **CLARITY** framework. See [`references/Decision_Tables.md#clarity-framework`](references/Decision_Tables.md#clarity-framework) for the full element descriptions.
306324

307325
### 2. Advanced Techniques
308326

309-
For a detailed reference of advanced prompting techniques, see [`references/Decision_Tables.md#advanced-techniques`](references/Decision_Tables.md#advanced-techniques). |
327+
For a detailed reference of advanced prompting techniques, see [`references/Decision_Tables.md#advanced-techniques`](references/Decision_Tables.md#advanced-techniques).
310328

311329
---
312330

‎VERSION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.12
1+
2.1.13

‎claude.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "prompt-optimizer",
3-
"version": "2.1.12",
3+
"version": "2.1.13",
44
"description": "A professional prompt optimization assistant that transforms simple instructions into production-ready prompts",
55
"type": "skill",
66
"entry": "SKILL.md",

‎frameworks/index.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"_comment_top": "version — package version; total — sum of all frameworks; by_category — count per tier; domains — all domain tags used across frameworks",
55
"_comment_framework": "id — kebab-case unique key; name — display name; full_name — expanded name; category — simple|medium|complex|patterns; file — path to definition markdown; element_count — number of framework elements; elements — framework-specific component names; domains — domain tags for matching; use_cases — human-readable scenario descriptions"
66
},
7-
"version": "2.1.12",
7+
"version": "2.1.13",
88
"total": 61,
99
"by_category": {
1010
"simple": 16,

‎package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "prompt-optimizer-skill",
3-
"version": "2.1.12",
3+
"version": "2.1.13",
44
"description": "A professional Claude Code Skill that transforms simple instructions into production-ready prompts. Based on the CLARITY framework, supports 61 prompt frameworks, and provides quality validation with multi-version output.",
55
"keywords": [
66
"claude-code",

0 commit comments

Comments
 (0)