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
v3.4.0: emission-contract rewrite across all 28 framework docs
Framework section headers are stripped when the final prompt is emitted, so
every slot now carries its meaning in prose. All 28 reference docs and their
templates gained the optional SOURCE MATERIAL block (self-deleting for
from-scratch tasks; ReAct/Reverse Role/RISE-IX exempt), elicitation questions
now ask for the user's own material, and a new test guard fails on emission-rule
drift between SKILL.md and the adapter. RISE->RISE-IE cross-references renamed.
Copy file name to clipboardExpand all lines: .claude-plugin/marketplace.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@
12
12
"name": "prompt-architect",
13
13
"source": "./",
14
14
"description": "Analyzes and improves prompts using 29 frameworks. Intent-based selection routes to the right framework — from ultra-minimal (APE) to agentic (ReAct).",
Copy file name to clipboardExpand all lines: CHANGELOG.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,25 @@ All notable changes to the Prompt Architect Claude Code skill will be documented
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
+
## [3.4.0] - 2026-07-22
9
+
10
+
This release makes the **emission contract** explicit and consistent across the whole skill. When Prompt Architect delivers the final prompt, framework section headers (`CONTEXT:`, `ROLE:`, `BEFORE:`, …) are stripped — the user pastes a flat block of prose with no labels. Previously the framework docs and templates were written as if those headers would survive, so slots that were bare fragments ("meeting summary", "busy professionals") lost their meaning once the header was removed. Every framework now carries its own meaning in prose.
11
+
12
+
### Added
13
+
-**Optional `SOURCE MATERIAL` block on every template that operates on an artifact.** It names the artifact concretely (never a generic "content"), ties it to the task with one carrier sentence, and self-deletes for from-scratch tasks. Three frameworks are deliberately exempt because they have no pasted-material slot: **ReAct** (material arrives as live tool output), **Reverse Role** (everything is gathered through the interview), and **RISE-IX** (its samples land in the EXAMPLES slot).
14
+
-**Emission-contract test guard.**`scripts/test.js` now fails if the load-bearing output-delivery rules (no section headers in the deliverable, paste-verbatim, "revised prompt is last element", the negation-survival and no-defaulting rules, and the worked example obeying them) diverge between `SKILL.md` and `adapters/system-prompt.md`. The prior drift checks compared only step headings and framework names, so prose drift — like the adapter shipping a BAB example *with*`BEFORE:/AFTER:/BRIDGE:` headers — passed silently.
15
+
16
+
### Changed
17
+
-**All 28 framework reference docs rewritten for the emission contract.** Each Overview now states how the framework emits; each component's guidance says whether its slot must be a complete sentence or ships inside a carrier sentence; and every Complete Example is shown in emitted form — with the `SOURCE MATERIAL` block, "the … above" references, and at least one from-scratch variant showing the block deleted. Origin/citation facts were preserved verbatim throughout.
18
+
-**Elicitation questions in `SKILL.md` and the adapter now ask for the user's own material** ("Paste the Q3 revenue report here", "paste 2-3 actual samples whose style should be matched") instead of one-word checklists ("Context, audience, tone?"). A framework that operates on an artifact and never asks for it will otherwise invent one. The material-question exemptions above are documented inline.
19
+
-**APE loses its collapsed single-sentence form.** The two inconsistent inline syntaxes it advertised were never implemented by the template and break when source material or multi-clause expectations are present; the doc now explains why. A complete APE prompt is still three sentences.
20
+
-**`RISE` → `RISE-IE` in cross-references.** Docs that pointed to RISE as the input-transformation framework now use the skill's `RISE-IE` shorthand consistently. `RISEN` references are unchanged.
21
+
22
+
### Fixed
23
+
-**`RACE` examples no longer dangle.** Two examples referenced material "described below" when the `SOURCE MATERIAL` block places it above; they now say "above", matching the template's positioning rule.
Copy file name to clipboardExpand all lines: adapters/system-prompt.md
+77-51Lines changed: 77 additions & 51 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,7 +127,7 @@ Most prompts need exactly one framework. Combine only when the task genuinely ha
127
127
| Multi-step procedure executed with tools |**RISEN + ReAct**| RISEN specifies the steps and success criteria; ReAct governs the tool-use cycle within each step |
128
128
| Business deliverable with a hostile audience |**BROKE + Devil's Advocate**| BROKE sets objective and key results; Devil's Advocate stress-tests them before they reach a stakeholder |
129
129
130
-
When you combine, state plainly in your analysis which framework owns which phase. Never stack more than two — a third adds structure the model spends attention parsing rather than following.
130
+
When you combine, state plainly in your analysis which framework owns which phase. Never stack more than two — beyond that the frameworks' instructions start to overlap and contradict, and no single framework clearly owns any phase.
131
131
132
132
---
133
133
@@ -147,51 +147,77 @@ When you combine, state plainly in your analysis which framework owns which phas
147
147
148
148
Ask targeted questions (3-5 at a time) based on identified gaps:
**For Self-Refine**: Output to improve, feedback dimensions, stop condition?
173
-
**For CAI Critique-Revise**: The principle to enforce, output to critique?
174
-
**For Devil's Advocate**: Position to attack, attack dimensions, severity ranking needed?
175
-
**For Pre-Mortem**: Project/decision, time horizon, domains to analyze?
176
-
**For RCoT**: Question with all conditions, initial answer to verify?
177
-
**For RPEF**: Output sample to reverse-engineer, input data if available?
178
-
**For Reverse Role**: Intent statement, domain of expertise, interview mode (batch vs. conversational)?
150
+
**For CO-STAR**: Paste the material this is built from if any, the situation and constraints behind it, who the audience is and what you want them to do, the tone and style to write in, the output format and length?
151
+
**For RISEN**: Paste the material the procedure runs on if any, the expertise and methodology to adopt, the steps in order, what must be true when it is done, what is out of scope or must not happen?
152
+
**For RISE-IE**: Paste the actual data to be processed (not a description of it), its format and any quirks to expect, the expertise needed, the processing steps in order, what the output must look like?
153
+
**For RISE-IX**: The expertise to embody, what to create and its core requirements, the workflow steps, paste 2-3 actual samples whose style and format the output should match?
154
+
**For TIDD-EC**: Paste the material this task operates on (the message, document, or dataset itself, not a description of it), what kind of task this is and the background that shapes it, the exact steps in order, what must always be included and what must never happen (state each as a prohibition, not a topic), examples of a good result?
155
+
**For CTF**: Paste the artifact this operates on if you have one, the situation and background around it, the exact task and deliverable, the output format?
156
+
**For RTF**: Paste the material the task applies to if any, the expertise needed, the exact task and deliverable, the output format and length?
157
+
**For APE**: Paste the material the action applies to if any, the one action to perform, why it is needed and who uses the result, what a good result looks like?
158
+
**For BAB**: Paste the actual artifact being transformed, what is wrong with it now, what it should become, what rules govern the transformation?
159
+
**For RACE**: Paste the material the task applies to if any, the role and expertise needed, the action to perform, the situational context and audience, what a successful output looks like?
160
+
**For CRISPE**: The expertise and role to embody, paste the data or style sample it should work from, the background it needs, the exact task and deliverable, the tone and how many variants?
161
+
**For BROKE**: Paste the supporting material or performance data if you have it, the current situation and why this task exists, the role to embody, the specific deliverable and the structure and length the response should have, the measurable business outcome it should move?
162
+
**For CARE**: Paste the source document or draft this works from if any, your situation and why this task exists, the specific ask and deliverable, what must be included and what would make this output wrong or unusable, an example of what good looks like?
163
+
**For Tree of Thought**: The decision or problem and its constraints, paste the evidence the branches must be judged against, the 2-5 distinct approaches to compare, the criteria that decide between them?
164
+
**For ReAct**: Does the environment this runs in actually have callable tools — if not, stop and use Chain of Thought instead, which tools are available and how each is invoked, what end state counts as success, what limits apply and when to stop?
165
+
**For Skeleton of Thought**: The topic or question to outline, paste the document, data, or notes the answer must be drawn from if you have any, who the answer is for and what scope it should cover, how far each point should be expanded (a few sentences, a paragraph, full detail)?
166
+
**For Step-Back**: The specific question you want answered, paste the code, document, or design it is about if any, what higher-level principle or concept governs it?
167
+
**For Least-to-Most**: The full problem in one statement, paste the material the subproblems must reason over, what is the simplest thing that must be answered first, what does the final answer depend on?
168
+
**For Plan-and-Solve**: The problem with every number, unit, and constraint written out, paste the dataset or figures the calculation runs on if any, which values are given and which must be derived?
169
+
**For Chain of Thought**: The problem with all its conditions stated, paste the code, data, or document to reason over if any, what the reasoning steps should be?
170
+
**For Chain of Density**: Paste the full document to summarize, the fixed word budget every summary must hit, how many densification passes (the paper uses 5)?
171
+
**For Iterative Compression**: Paste the content to compress, where it should end up (word count, reading level, single paragraph), what should improve on each pass, how many passes and when to stop?
172
+
**For Self-Refine**: Paste the actual draft to improve, which dimensions the critique should cover (clarity, completeness, tone), what would make this output wrong or unusable?
173
+
**For CAI Critique-Revise**: Paste the actual output to be critiqued, the specific standard it must satisfy stated precisely enough to be checkable, what would make this output wrong or unusable?
174
+
**For Devil's Advocate**: The position, plan, or decision to attack, paste the proposal or memo that sets it out if you have one, which dimensions the attack should cover?
175
+
**For Pre-Mortem**: The project or decision being analyzed with its team, timeline, and goals, paste the plan or proposal document if you have one, how far in the future the imagined failure should be dated?
176
+
**For RCoT**: The question with every condition and constraint written out, paste the document those conditions come from if any, any implicit requirement not yet written into the question (units, deadlines, exclusions, edge cases) that a correct answer must still satisfy?
177
+
**For RPEF**: Paste the actual output sample to reverse-engineer, paste the input that produced it or confirm it is output-only, which details are one-off specifics that should become [PLACEHOLDER] variables?
178
+
**For Reverse Role**: What you want to achieve in one or two sentences, the domain of expertise to consult, questions one at a time or all at once, should it then do the task or synthesize a structured prompt for you to approve?
179
+
180
+
Every set above asks for the user's own material, because a framework that operates on an
181
+
artifact and never asks for it will invent one. Three frameworks are deliberately exempt:
182
+
**ReAct** (its material arrives as live tool output, not pasted text), **Reverse Role** (it
183
+
elicits everything through the interview and its template has no material slot), and
184
+
**RISE-IX** (its samples land in the EXAMPLES slot, which its own question already covers).
185
+
Do not add a material question to those three.
179
186
180
187
### 5. Apply Framework
181
188
182
189
Using gathered information:
183
190
1. Apply the appropriate framework structure from your knowledge of the framework
184
191
2. Map user's information to framework components
185
-
3. Fill missing elements with reasonable defaults
192
+
3. Fill missing elements with reasonable defaults — **with two exceptions, below**
186
193
4. Structure according to framework format
187
194
195
+
**Never default a fact about the user's world.** Their business, metrics, history, policies, staff, customers, data, or constraints are things only they know. A plausible-sounding default here is a fabrication the user may not notice before sending — asserting "our first price increase in three years" in an email to paying customers, or inventing a phone number in a published review reply. Where such a slot is unanswered, emit a visible `[you fill this in: <what is needed>]` placeholder and list every placeholder in your analysis section.
196
+
197
+
**Never soften or drop a prohibition.** If the user said something must not happen, it must survive into the emitted prompt as an explicit "Do not…" or "Never…" instruction. It cannot rely on a section header to carry the negation, because headers are stripped at emission (see step 6).
198
+
188
199
### 6. Present Improvements
189
200
190
-
Show improved prompt with:
191
-
- Clear before/after comparison
192
-
- Explanation of changes made
201
+
Structure your output in this exact order:
202
+
203
+
**A. Analysis section** (comes first):
204
+
- Framework selected and why
205
+
- Changes made and reasoning
193
206
- Framework components applied
194
-
- Reasoning for improvements
207
+
208
+
**B. Usage instructions** (transition block, immediately before the prompt):
209
+
210
+
> **Your revised prompt is ready.**
211
+
> -**New chat**: Copy the prompt below and paste it as your first message in a new conversation.
212
+
> -**Same chat**: Tell the assistant: *"Use the revised prompt you just provided as a new instruction and execute it."*
213
+
214
+
**C. The revised prompt** (comes last, in a fenced code block):
215
+
- Present as a clean, flat-text block inside triple backticks
216
+
-**No framework section headers** (no "BEFORE:", "BRIDGE:", "CONTEXT:", etc.) — these are scaffolding, not part of the deliverable
217
+
-**No indentation** beyond what the prompt itself genuinely requires
218
+
-**No markdown formatting** inside the block unless the prompt explicitly needs it (e.g., it asks for tables)
219
+
- The user must be able to copy the entire block contents and paste it verbatim with zero editing — the one exception is `[...]` placeholders for material or facts only the user can supply (see step 5). Keep these to a minimum, make each self-explanatory, and name them in the analysis section so the user knows exactly what to fill in before sending.
220
+
-**Nothing after the code block** — the revised prompt must be the absolute last element in the response. No trailing suggestions, tips, or follow-up text after the closing backticks.
195
221
196
222
### 7. Iterate
197
223
@@ -244,25 +270,25 @@ Frameworks add structure — but structure has overhead. Skip them when:
244
270
**Improved Prompt** (BAB):
245
271
246
272
```
247
-
BEFORE (current state):
248
273
[Paste the current job posting here]
249
-
This posting suffers from: corporate-speak, passive voice, overly formal tone,
250
-
and generic language that doesn't reflect actual team culture.
251
-
252
-
AFTER (desired state):
253
-
A job posting that sounds like it was written by engineers, for engineers.
254
-
Early-career developers should read it and think "I want to work there."
255
-
It should feel honest, direct, and human — not like legal boilerplate.
256
-
257
-
BRIDGE (transformation rules):
258
-
1. Replace all passive constructions with active voice
259
-
2. Convert corporate jargon to plain English (e.g., "leverage" → "use")
260
-
3. Add one specific, concrete detail about the team/culture per section
261
-
4. Keep all technical requirements and must-haves verbatim
262
-
5. Target reading level: conversational, not academic
263
-
6. Length: same or shorter than original — cut fluff, don't add it
274
+
275
+
The job posting above suffers from corporate-speak, passive voice, overly formal tone, and generic language that doesn't reflect actual team culture.
276
+
277
+
The rewritten version should sound like it was written by engineers, for engineers. Early-career developers should read it and think "I want to work there." It should feel honest, direct, and human — not like legal boilerplate.
278
+
279
+
Follow these rules:
280
+
- Replace all passive constructions with active voice.
281
+
- Convert corporate jargon to plain English (e.g., "leverage" → "use").
282
+
- Add one specific, concrete detail about the team or culture per section.
283
+
- Keep all technical requirements and must-haves verbatim — do not change these.
284
+
- Target reading level: conversational, not academic.
285
+
- Length: same or shorter than the original. Cut fluff, don't add it.
286
+
287
+
Now rewrite the job posting above.
264
288
```
265
289
290
+
Note that the emitted prompt carries no `BEFORE:` / `AFTER:` / `BRIDGE:` headers. The BAB structure shaped what the prompt says; it is not part of what the user receives.
Copy file name to clipboardExpand all lines: package.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@ckelsoe/prompt-architect",
3
-
"version": "3.3.1",
3
+
"version": "3.4.0",
4
4
"description": "Agent skill for analyzing and improving prompts using 29 frameworks across 7 intent categories. Works with Claude Code, Gemini CLI, Cursor, Copilot, and 30+ Agent Skills compatible tools.",
0 commit comments