You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e39b130
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .claude-plugin/marketplace.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,15 @@
7
7
},
8
8
"metadata": {
9
9
"description": "A professional Claude Code Skill that transforms simple instructions into production-ready prompts based on CLARITY framework with 61 prompt frameworks",
Copy file name to clipboardExpand all lines: SKILL.md
+48-30Lines changed: 48 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
name: prompt-optimizer
3
-
version: 2.1.12
3
+
version: 2.1.13
4
4
allowed-tools: "Read TodoWrite"
5
5
compatibility: skill runtime requires Claude Code >= 1.0.0; CLI / test commands require Node.js 16+
6
6
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.
59
59
60
60
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.
61
61
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.
63
63
64
64
Classify complexity by element count:
65
65
@@ -183,19 +183,7 @@ Please answer the questions above, or say "default" to use standard settings.
183
183
184
184
**Refusal Handling:**
185
185
186
-
If the user refuses to answer clarifying questions:
- 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).
199
187
200
188
---
201
189
@@ -222,27 +210,26 @@ Provide 1–3 versions based on user needs. See [`references/Decision_Tables.md#
222
210
223
211
**CRITICAL STEP**
224
212
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:
226
214
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 |
236
224
237
225
Compute the score: count items that pass.
238
226
239
227
**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).
- 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
+
299
317
---
300
318
301
319
## Core Principles
302
320
303
321
### 1. CLARITY Framework
304
322
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.
306
324
307
325
### 2. Advanced Techniques
308
326
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).
Copy file name to clipboardExpand all lines: frameworks/index.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
"_comment_top": "version — package version; total — sum of all frameworks; by_category — count per tier; domains — all domain tags used across frameworks",
5
5
"_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"
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "prompt-optimizer-skill",
3
-
"version": "2.1.12",
3
+
"version": "2.1.13",
4
4
"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.",
0 commit comments