@ckelsoe/prompt-architect 3.2.2 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +2 -2
- package/CHANGELOG.md +116 -5
- package/MIGRATION.md +1 -1
- package/README.md +32 -47
- package/adapters/README.md +1 -1
- package/adapters/system-prompt.md +41 -11
- package/package.json +5 -4
- package/scripts/install.js +52 -22
- package/scripts/test.js +62 -40
- package/scripts/validate-skill.js +184 -56
- package/skills/prompt-architect/SKILL.md +49 -47
- package/skills/prompt-architect/assets/templates/chain-of-density_template.txt +60 -30
- package/skills/prompt-architect/assets/templates/iterative-compression_template.txt +59 -0
- package/skills/prompt-architect/references/frameworks/ape.md +2 -0
- package/skills/prompt-architect/references/frameworks/bab.md +2 -0
- package/skills/prompt-architect/references/frameworks/cai-critique-revise.md +1 -1
- package/skills/prompt-architect/references/frameworks/chain-of-density.md +95 -423
- package/skills/prompt-architect/references/frameworks/chain-of-thought.md +17 -12
- package/skills/prompt-architect/references/frameworks/co-star.md +2 -0
- package/skills/prompt-architect/references/frameworks/ctf.md +3 -1
- package/skills/prompt-architect/references/frameworks/iterative-compression.md +481 -0
- package/skills/prompt-architect/references/frameworks/pre-mortem.md +6 -6
- package/skills/prompt-architect/references/frameworks/race.md +2 -0
- package/skills/prompt-architect/references/frameworks/react.md +1 -1
- package/skills/prompt-architect/references/frameworks/reverse-role.md +1 -1
- package/skills/prompt-architect/references/frameworks/rise.md +27 -8
- package/skills/prompt-architect/references/frameworks/risen.md +2 -0
- package/skills/prompt-architect/references/frameworks/rtf.md +2 -0
- package/skills/prompt-architect/references/frameworks/skeleton-of-thought.md +1 -1
- package/skills/prompt-architect/references/frameworks/step-back.md +1 -1
- package/skills/prompt-architect/references/frameworks/tidd-ec.md +19 -6
- package/skills/prompt-architect/scripts/framework_analyzer.py +0 -807
- package/skills/prompt-architect/scripts/prompt_evaluator.py +0 -336
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
"email": "charles@kelsoe.com"
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
|
-
"description": "Prompt engineering skill using
|
|
8
|
+
"description": "Prompt engineering skill using 29 frameworks across 7 intent categories"
|
|
9
9
|
},
|
|
10
10
|
"plugins": [
|
|
11
11
|
{
|
|
12
12
|
"name": "prompt-architect",
|
|
13
13
|
"source": "./",
|
|
14
|
-
"description": "Analyzes and improves prompts using
|
|
15
|
-
"version": "3.
|
|
14
|
+
"description": "Analyzes and improves prompts using 29 frameworks. Intent-based selection routes to the right framework — from ultra-minimal (APE) to agentic (ReAct).",
|
|
15
|
+
"version": "3.3.1",
|
|
16
16
|
"keywords": ["prompt-engineering", "prompt-frameworks", "agent-skills"],
|
|
17
17
|
"category": "productivity"
|
|
18
18
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prompt-architect",
|
|
3
|
-
"description": "
|
|
4
|
-
"version": "3.
|
|
3
|
+
"description": "29-framework prompt engineering skill for analyzing and improving prompts across 7 intent categories",
|
|
4
|
+
"version": "3.3.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Charles Kelsoe",
|
|
7
7
|
"email": "charles@kelsoe.com"
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,117 @@ 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.3.1] - 2026-07-19
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **Publishing was broken before this release and would have failed for any version.** `.github/workflows/publish.yml` pinned Node 20 while running `npm install -g npm@latest`; once npm 12 shipped (requiring `^22.22.2 || ^24.15.0 || >=26`), that step failed with `EBADENGINE` before the publish ran. The workflow now uses Node 24. This is why 3.3.0 has no published artifact — its tag exists, but the release never completed.
|
|
12
|
+
|
|
13
|
+
*All 3.3.0 changes below are included in this release.*
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## [3.3.0] - 2026-07-19
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
- **Chain of Density is now the real method.** `chain-of-density.md` was rewritten around entity densification at *fixed* length, scoped to summarization, and cited to Adams et al., "From Sparse to Dense" (arXiv 2309.04269, NewSum @ EMNLP 2023). The previous content described generic progressive shortening — the opposite of the published technique, which holds length constant.
|
|
21
|
+
- **New framework: Iterative Compression.** The general multi-pass shortening technique that used to be filed under Chain of Density is preserved as its own framework, with its own reference doc and template, and is no longer attributed to CoD. Framework count is now 29.
|
|
22
|
+
- **Quality scoring is implemented.** `SKILL.md` and `adapters/system-prompt.md` now instruct the model to score prompts 1-10 on the five dimensions the README advertises — Clarity, Specificity, Context, Completeness, Structure — with rubric anchors defining the 1-3 / 4-6 / 7-8 / 9-10 bands. Previously this was advertised in three places and implemented in none, and the skill's dimension list disagreed with the README's.
|
|
23
|
+
- **Framework combination guidance.** A "Combining Frameworks" section with concrete pairings (CO-STAR + Self-Refine, RISEN + ReAct, BROKE + Devil's Advocate) that finally routes to `hybrid_template.txt`, previously the only template with no path leading to it.
|
|
24
|
+
- **Self-Consistency citation and a corrected template** in `chain-of-thought.md`, now citing Wang et al. (arXiv 2203.11171, ICLR 2023) and describing a real majority vote over independently sampled reasoning paths rather than asking the model to judge which of three different approaches it liked best.
|
|
25
|
+
- **Origin lines for 10 previously uncited frameworks**: CO-STAR, Chain-of-Thought, RISEN, APE, RTF, CTF, RACE, BAB, plus corrected provenance for RISE and TIDD-EC.
|
|
26
|
+
- **Acronym-collision disambiguation** for APE (vs. "Automatic Prompt Engineer," Zhou et al., arXiv 2211.01910) and RACE (vs. Dave Chaffey's 2010 Reach-Act-Convert-Engage marketing model).
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
- **Provenance is now stated honestly per framework.** Frameworks with peer-reviewed backing cite it; community conventions say so plainly rather than leaving a silent gap. CO-STAR is credited to GovTech Singapore's Data Science & AI team — as Sheila Teo's own article does — rather than to Teo, who popularized it.
|
|
30
|
+
- `rise.md`: "RISE-IE" and "RISE-IX" are now labeled as this skill's internal shorthand, not established terminology. RISE-IX is identified as our own composition; its three previously cited sources do not support it. `ctf.md` no longer propagates "RISE-IE" as if it were standard vocabulary.
|
|
31
|
+
- `tidd-ec.md`: dropped the "originally documented alongside CO-STAR" claim, which implied a shared provenance that does not exist, and reassessed its three "authoritative sources" as one origin post, one same-organization republication, and one passing mention.
|
|
32
|
+
- `SKILL.md` step numbering fixed — it had two sections numbered `### 4.` and now runs 1-7, matching the adapter.
|
|
33
|
+
- `SKILL.md` template section reduced from a 30-line filename listing to one line; filenames are mechanically derivable.
|
|
34
|
+
- Installer `--force` now does something: it is required to replace a **symlinked** install path, which previously was deleted without warning.
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
- **Installer no longer installs to Claude Code only.** Mode 5 (the `postinstall` path most users hit) and Mode 3 (`--yes`) now install to every detected agent, as documented. Mode 5 previously hard-skipped every agent but Claude and ignored `detect()` entirely.
|
|
38
|
+
- **Windsurf adapter no longer duplicates itself.** A fresh `.windsurfrules` was written without marker comments, so the next run could not find or remove it and appended a second copy; the marker-stripping regex also lacked the `g` flag. Verified stable across repeated installs.
|
|
39
|
+
- **`--project` is no longer ignored** for the Gemini and universal Agent Skills targets — only the Claude entry honored it.
|
|
40
|
+
- **`engines.node` raised to `>=20.19.0`.** It declared `>=14.0.0`, but `@clack/prompts@1.1.0` is ESM-only, so `require()` of it throws `ERR_REQUIRE_ESM` below 20.19 — the headline `npx` experience failed across most of the declared range with a bare "Installation error". The CI matrix floor was raised to match.
|
|
41
|
+
- **Step-Back statistic corrected**: MuSiQue is +7%, not +25% (a 3.5x overstatement); MMLU is +7% Physics / +11% Chemistry, not a "7-27% range."
|
|
42
|
+
- **Socratic Prompting citation corrected**: single author Edward Y. Chang, IEEE CCWC 2023 — not "Chang et al." and not EMNLP/NAACL.
|
|
43
|
+
- **Pre-Mortem attribution corrected**: the ~30% finding belongs to Mitchell, Russo & Pennington (1989), popularized by Gary Klein (HBR 2007); it measures identification of "reasons for future outcomes" against a might-happen framing, not "failure causes" against forward risk analysis. The unsupported "Brookings Institution" affiliation was removed.
|
|
44
|
+
- **Skeleton-of-Thought quality claim qualified**: parity in roughly 60% of cases, with degradation on writing, math, and coding — previously "maintained or improved quality."
|
|
45
|
+
- **Constitutional AI claim scoped**: the critique-before-revision effect is strongest for smaller models; the authors found no noticeable difference at 52B and kept critiques for transparency.
|
|
46
|
+
- README no longer instructs users to create an `.npmrc` and a GitHub token for a registry the package is not published to. It is on public npm and needs no authentication.
|
|
47
|
+
- README: duplicate `## Quick Start` heading renamed to `## Verifying Your Installation` (the table of contents anchor resolved to the wrong section), and the TOC completed.
|
|
48
|
+
|
|
49
|
+
### Removed
|
|
50
|
+
- `framework_analyzer.py` and `prompt_evaluator.py` (~50 KB). Nothing invoked them, they had no CLI, and `framework_analyzer.py` had already drifted — its header read "all 27" above a 28-entry dict. Their scoring dimensions were carried into the SKILL.md rubric before removal.
|
|
51
|
+
- `.github/workflows/version-bump.yml`. It ran `npm version`, which updates only `package.json`, then immediately pushed the tag — landing a broken release tag on the remote before anyone could intervene.
|
|
52
|
+
|
|
53
|
+
### Validation
|
|
54
|
+
- `validate-skill.js` now derives framework and template checks from the filesystem instead of a hardcoded 7-entry subset, cross-checks `claudeCode.frameworks` against what is on disk, and **asserts every advertised framework count agrees with reality**. This is the check whose absence let "27" ship while 28 frameworks existed.
|
|
55
|
+
- `validate-skill.js` now verifies **all five version sites** — `package.json`, `claudeCode.version`, `plugin.json`, `marketplace.json`, and `SKILL.md` frontmatter. It previously checked only `plugin.json`, and did not check SKILL.md's version at all, despite documentation claiming otherwise.
|
|
56
|
+
- `test.js` gained a **drift guard** asserting `SKILL.md` and `adapters/system-prompt.md` keep identical step headings, sequential numbering, and the same framework set. These two files are hand-maintained copies and had already diverged.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## [3.2.2] - 2026-03-30
|
|
61
|
+
|
|
62
|
+
### Added
|
|
63
|
+
- Prominent Quick Start at the top of the README with the `npx @ckelsoe/prompt-architect` command
|
|
64
|
+
- Codex CLI installation instructions via `$skill-installer install`
|
|
65
|
+
- `/install-skill` documented as the primary Claude Code installation method, with the plugin marketplace commands retained for update support
|
|
66
|
+
|
|
67
|
+
### Changed
|
|
68
|
+
- README installation section consolidated: separate per-tool sections for Gemini CLI and for Cursor/Copilot/Windsurf/Codex were replaced by a single "Other Agents" section pointing at `~/.agents/skills/`
|
|
69
|
+
- npm demoted to an alternative installation method
|
|
70
|
+
|
|
71
|
+
### Fixed
|
|
72
|
+
- `.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json` versions brought back in sync with `package.json`; both had been left behind at 3.2.1
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## [3.2.1] - 2026-03-24
|
|
77
|
+
|
|
78
|
+
### Fixed
|
|
79
|
+
- **Direct download link for ChatGPT**: the `.skill` link now points at `releases/latest/download/prompt-architect.skill` rather than the releases page, making it a one-click download
|
|
80
|
+
- **Nothing after the revised prompt**: SKILL.md now states explicitly that no text may follow the closing backticks — the revised prompt must be the last element of the response. The example interaction was updated to comply.
|
|
81
|
+
|
|
82
|
+
### Changed
|
|
83
|
+
- `prompt-architect.skill` removed from git tracking and added to a new `.gitignore` alongside `node_modules/`. It is a build artifact produced by `npm run build:skill` and attached to releases by CI.
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## [3.2.0] - 2026-03-24
|
|
88
|
+
|
|
89
|
+
### Changed
|
|
90
|
+
- **SKILL.md "Present Improvements" restructured for copy-pasteable output.** Responses now follow a fixed order: (A) analysis — framework selected, changes made, components applied; (B) a usage-instructions block explaining how to use the prompt in a new chat or the same chat; (C) the revised prompt last, in a fenced code block.
|
|
91
|
+
- **The revised prompt is now clean flat text**: no framework section headers (`BEFORE:`, `BRIDGE:`, `CONTEXT:`), no gratuitous indentation, and no internal markdown unless the prompt genuinely requires it — so it can be copied verbatim with zero editing.
|
|
92
|
+
- Example interaction rewritten to model the new output structure
|
|
93
|
+
- Version synced across SKILL.md, `package.json`, `plugin.json`, and `marketplace.json`
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## [3.1.1] - 2026-03-24
|
|
98
|
+
|
|
99
|
+
### Fixed
|
|
100
|
+
- **CI pipeline**: committed `package-lock.json` so `npm ci` works, and removed the unreliable `npm ci || npm install` fallback
|
|
101
|
+
- Test matrix moved to Node 18/20/22; Node 14/16 dropped, as `@clack/prompts` requires a newer runtime
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## [3.1.0] - 2026-03-24
|
|
106
|
+
|
|
107
|
+
> The 3.x restructure described in the `[3.0.0]` entry below shipped across the 3.0.x line and landed in git under the `v3.1.0` tag. The items here are the parts of that work not already listed there.
|
|
108
|
+
|
|
109
|
+
### Added
|
|
110
|
+
- **`.skill` builder**: `scripts/build-skill.js` and `npm run build:skill` produce a ZIP for ChatGPT upload
|
|
111
|
+
- **`bin` entry**: `npx @ckelsoe/prompt-architect` runs the installer directly
|
|
112
|
+
|
|
113
|
+
### Changed
|
|
114
|
+
- `package.json` `files` array now ships `skills/`, `.claude-plugin/`, and `MIGRATION.md`
|
|
115
|
+
- Removed the obsolete adapters `for-cursor.mdc`, `for-github-copilot.md`, and `for-openai-codex-cli.md` — those tools read `SKILL.md` natively. Only `system-prompt.md` (universal) and `for-windsurf.md` remain.
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
8
119
|
## [3.0.0] - 2026-03-24
|
|
9
120
|
|
|
10
121
|
### Breaking Changes
|
|
@@ -14,7 +125,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
14
125
|
### Added
|
|
15
126
|
- **Claude Code Plugin System support**: `.claude-plugin/plugin.json` and `marketplace.json` — install via `/plugin marketplace add` and `/plugin install`
|
|
16
127
|
- **Gemini CLI support**: Native Agent Skills compatibility. Install via `gemini skills install`
|
|
17
|
-
- **Agent Skills standard compliance** (agentskills.io): Added `license`, `compatibility`, and `metadata` fields to SKILL.md frontmatter. Works with 30+ compatible agents including Cursor, Copilot, Kiro,
|
|
128
|
+
- **Agent Skills standard compliance** (agentskills.io): Added `license`, `compatibility`, and `metadata` fields to SKILL.md frontmatter. Works with 30+ compatible agents including Cursor, Copilot, Kiro, Zoo Code, Amp, OpenHands, and more
|
|
18
129
|
- **Interactive multi-agent installer**: Detects installed AI agents (Claude Code, Gemini CLI, Cursor, Copilot, Windsurf, Codex) and presents a selection UI using @clack/prompts
|
|
19
130
|
- **Universal install path**: `~/.agents/skills/` for Agent Skills standard compatible tools
|
|
20
131
|
- **CLI flags**: `--all`, `--claude`, `--gemini`, `--agents`, `--cursor`, `--copilot`, `--windsurf`, `--codex`, `--yes`
|
|
@@ -258,7 +369,7 @@ The framework selection system in SKILL.md was completely restructured:
|
|
|
258
369
|
|
|
259
370
|
## Links
|
|
260
371
|
|
|
261
|
-
- [npm Package](https://www.npmjs.com/package/@ckelsoe/
|
|
262
|
-
- [GitHub Repository](https://github.com/ckelsoe/
|
|
263
|
-
- [Issue Tracker](https://github.com/ckelsoe/
|
|
264
|
-
- [Contributing Guidelines](https://github.com/ckelsoe/
|
|
372
|
+
- [npm Package](https://www.npmjs.com/package/@ckelsoe/prompt-architect)
|
|
373
|
+
- [GitHub Repository](https://github.com/ckelsoe/prompt-architect)
|
|
374
|
+
- [Issue Tracker](https://github.com/ckelsoe/prompt-architect/issues)
|
|
375
|
+
- [Contributing Guidelines](https://github.com/ckelsoe/prompt-architect/blob/main/README.md#contributing)
|
package/MIGRATION.md
CHANGED
|
@@ -54,7 +54,7 @@ skills/prompt-architect/SKILL.md
|
|
|
54
54
|
|
|
55
55
|
### The skill itself is unchanged
|
|
56
56
|
|
|
57
|
-
The `SKILL.md` content, all
|
|
57
|
+
The `SKILL.md` content, all framework reference docs, and all templates are identical. Only the packaging and distribution have changed.
|
|
58
58
|
|
|
59
59
|
## GitHub Repository
|
|
60
60
|
|
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Prompt Architect
|
|
2
2
|
|
|
3
|
-
Transform vague prompts into expert-level, structured prompts using
|
|
3
|
+
Transform vague prompts into expert-level, structured prompts using 29 frameworks across 7 intent categories.
|
|
4
4
|
|
|
5
5
|
Works with **Claude Code, ChatGPT, Gemini CLI, Cursor, GitHub Copilot, Windsurf, OpenAI Codex**, and [30+ Agent Skills compatible tools](https://agentskills.io).
|
|
6
6
|
|
|
7
|
-
[](https://opensource.org/licenses/MIT) [](https://www.npmjs.com/package/@ckelsoe/prompt-architect) [](https://agentskills.io)
|
|
7
|
+
[](https://opensource.org/licenses/MIT) [](https://www.npmjs.com/package/@ckelsoe/prompt-architect) [](https://agentskills.io) [](https://codeguilds.dev/packages/prompt-architect)
|
|
8
8
|
|
|
9
9
|
## Quick Start
|
|
10
10
|
|
|
@@ -14,9 +14,9 @@ npx @ckelsoe/prompt-architect
|
|
|
14
14
|
|
|
15
15
|
The interactive installer detects your AI agents (Claude Code, Gemini CLI, Cursor, Copilot, Codex, and more) and lets you choose where to install.
|
|
16
16
|
|
|
17
|
-
> **
|
|
17
|
+
> **Tip:** Use `npx` rather than `npm install`. Both work — `npm install` runs the same installer via the postinstall hook and installs to every agent it detects — but only `npx` gives you the interactive menu to choose specific targets.
|
|
18
18
|
|
|
19
|
-
>
|
|
19
|
+
> Published on the public npm registry. **No authentication required.**
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
@@ -28,11 +28,14 @@ The interactive installer detects your AI agents (Claude Code, Gemini CLI, Curso
|
|
|
28
28
|
- [Supported Frameworks](#supported-frameworks)
|
|
29
29
|
- [Quick Start](#quick-start)
|
|
30
30
|
- [Installation](#installation)
|
|
31
|
+
- [Verifying Your Installation](#verifying-your-installation)
|
|
32
|
+
- [Updating](#updating)
|
|
31
33
|
- [Usage](#usage)
|
|
32
34
|
- [Framework Selection Guide](#framework-selection-guide)
|
|
33
35
|
- [Project Structure](#project-structure)
|
|
34
36
|
- [Documentation](#documentation)
|
|
35
37
|
- [Contributing](#contributing)
|
|
38
|
+
- [Support](#support)
|
|
36
39
|
- [License](#license)
|
|
37
40
|
|
|
38
41
|
---
|
|
@@ -57,7 +60,7 @@ Prompt Architect is an [Agent Skills](https://agentskills.io) compatible skill t
|
|
|
57
60
|
|
|
58
61
|
## Key Features
|
|
59
62
|
|
|
60
|
-
###
|
|
63
|
+
### 29 Frameworks Across 7 Intent Categories
|
|
61
64
|
|
|
62
65
|
| Framework | Best For | Complexity |
|
|
63
66
|
|-----------|----------|------------|
|
|
@@ -81,7 +84,8 @@ Prompt Architect is an [Agent Skills](https://agentskills.io) compatible skill t
|
|
|
81
84
|
| **Least-to-Most** | Compositional multi-hop problems (simplest first) | Medium |
|
|
82
85
|
| **Plan-and-Solve (PS+)** | Zero-shot numerical/calculation reasoning | Low |
|
|
83
86
|
| **Chain of Thought** | Reasoning, problem-solving | Medium |
|
|
84
|
-
| **Chain of Density** |
|
|
87
|
+
| **Chain of Density** | Summarization at fixed length, maximum information density | Medium |
|
|
88
|
+
| **Iterative Compression** | Shortening text toward a target length | Low |
|
|
85
89
|
| **Self-Refine** | Iterative output quality improvement (any task) | Medium |
|
|
86
90
|
| **CAI Critique-Revise** | Principle-based critique and revision (Anthropic) | Medium |
|
|
87
91
|
| **Devil's Advocate** | Strongest opposing argument against a position | Low |
|
|
@@ -457,7 +461,7 @@ RESPONSE FORMAT:
|
|
|
457
461
|
**Best for:** Identifying specific failure causes before they happen
|
|
458
462
|
|
|
459
463
|
**Approach:** Assume the project has already failed → describe the failure → work backwards to specific causes with warning signs
|
|
460
|
-
**Research:** Gary Klein
|
|
464
|
+
**Research:** Mitchell, Russo & Pennington (1989), popularized by Gary Klein (HBR 2007) — prospective hindsight improves identification of reasons for future outcomes by ~30%; LLM application is practitioner-level, with no dedicated AI paper
|
|
461
465
|
|
|
462
466
|
**Example Use Cases:** Project kickoffs, product launches, technical migrations, high-stakes strategic decisions
|
|
463
467
|
|
|
@@ -558,23 +562,33 @@ Choose the method that matches your AI tool:
|
|
|
558
562
|
|
|
559
563
|
### Claude Code
|
|
560
564
|
|
|
561
|
-
|
|
565
|
+
```
|
|
566
|
+
/install-skill https://github.com/ckelsoe/prompt-architect/tree/main/skills/prompt-architect
|
|
567
|
+
```
|
|
568
|
+
|
|
569
|
+
**Plugin system (enables updates):**
|
|
562
570
|
```
|
|
563
571
|
/plugin marketplace add ckelsoe/prompt-architect
|
|
564
572
|
/plugin install prompt-architect@prompt-architect-marketplace
|
|
565
573
|
```
|
|
566
574
|
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
575
|
+
### Codex CLI
|
|
576
|
+
|
|
577
|
+
```
|
|
578
|
+
$skill-installer install https://github.com/ckelsoe/prompt-architect/tree/main/skills/prompt-architect
|
|
570
579
|
```
|
|
571
|
-
The installer runs automatically and copies the skill to `~/.claude/skills/`. Restart Claude Code to load it.
|
|
572
580
|
|
|
573
|
-
|
|
581
|
+
### Other Agents (Gemini, Cursor, Copilot, Cline, Zoo Code, etc.)
|
|
582
|
+
|
|
583
|
+
Copy `skills/prompt-architect/` from this repo to `~/.agents/skills/prompt-architect/`
|
|
584
|
+
|
|
585
|
+
### npm (alternative)
|
|
586
|
+
|
|
574
587
|
```bash
|
|
575
588
|
npx @ckelsoe/prompt-architect
|
|
576
589
|
```
|
|
577
|
-
|
|
590
|
+
|
|
591
|
+
Installs to both `.claude/skills/` and `.agents/skills/` in one step.
|
|
578
592
|
|
|
579
593
|
### ChatGPT
|
|
580
594
|
|
|
@@ -585,30 +599,6 @@ ChatGPT natively supports [Agent Skills](https://agentskills.io). Available on B
|
|
|
585
599
|
3. Click **New skill** → **Upload from your computer**
|
|
586
600
|
4. Upload the `.skill` file
|
|
587
601
|
|
|
588
|
-
### Gemini CLI
|
|
589
|
-
|
|
590
|
-
```bash
|
|
591
|
-
gemini skills install https://github.com/ckelsoe/prompt-architect.git
|
|
592
|
-
```
|
|
593
|
-
|
|
594
|
-
Or manually: copy `skills/prompt-architect/` to `~/.gemini/skills/prompt-architect/`
|
|
595
|
-
|
|
596
|
-
### Cursor, Copilot, Windsurf, Codex CLI
|
|
597
|
-
|
|
598
|
-
Use the interactive installer to auto-detect and install:
|
|
599
|
-
```bash
|
|
600
|
-
npx @ckelsoe/prompt-architect
|
|
601
|
-
```
|
|
602
|
-
|
|
603
|
-
Or copy `skills/prompt-architect/` to your tool's skills directory. All of these tools support the [Agent Skills standard](https://agentskills.io) natively:
|
|
604
|
-
|
|
605
|
-
| Tool | Skills directory |
|
|
606
|
-
|------|----------------|
|
|
607
|
-
| **Cursor** | `.agents/skills/` or `.cursor/skills/` (project) |
|
|
608
|
-
| **GitHub Copilot** | `.github/skills/` or `~/.copilot/skills/` |
|
|
609
|
-
| **OpenAI Codex** | `.agents/skills/` (project) or `~/.agents/skills/` |
|
|
610
|
-
| **VS Code, Roo Code, Kiro, Amp, Junie, Goose, 30+ others** | `~/.agents/skills/` (universal) |
|
|
611
|
-
|
|
612
602
|
### Windsurf
|
|
613
603
|
|
|
614
604
|
Windsurf does not yet support Agent Skills natively:
|
|
@@ -624,7 +614,7 @@ See [`adapters/README.md`](adapters/README.md) for detailed instructions for eac
|
|
|
624
614
|
|
|
625
615
|
---
|
|
626
616
|
|
|
627
|
-
##
|
|
617
|
+
## Verifying Your Installation
|
|
628
618
|
|
|
629
619
|
After installing, test with:
|
|
630
620
|
|
|
@@ -851,11 +841,7 @@ prompt-architect/
|
|
|
851
841
|
├── LICENSE # MIT License
|
|
852
842
|
│
|
|
853
843
|
└── prompt-architect/ # The skill
|
|
854
|
-
├── SKILL.md # Core skill instructions
|
|
855
|
-
│
|
|
856
|
-
├── scripts/ # Analysis Utilities
|
|
857
|
-
│ ├── framework_analyzer.py # Framework recommendation logic
|
|
858
|
-
│ └── prompt_evaluator.py # Quality scoring system
|
|
844
|
+
├── SKILL.md # Core skill instructions
|
|
859
845
|
│
|
|
860
846
|
├── references/ # Framework Documentation
|
|
861
847
|
│ └── frameworks/ # Loaded on-demand
|
|
@@ -922,9 +908,8 @@ prompt-architect/
|
|
|
922
908
|
|
|
923
909
|
**Core Components:**
|
|
924
910
|
- **SKILL.md** - Main skill logic and instructions (intent-based selection system)
|
|
925
|
-
- **
|
|
926
|
-
- **
|
|
927
|
-
- **2 Python Scripts** - Analysis and scoring utilities
|
|
911
|
+
- **Framework Reference Docs** - 28 files covering all 29 frameworks, with examples (RISE documents two variants)
|
|
912
|
+
- **Templates** - 30 ready-to-use structures: one per framework, plus `hybrid_template.txt` for combinations
|
|
928
913
|
|
|
929
914
|
---
|
|
930
915
|
|
package/adapters/README.md
CHANGED
|
@@ -19,7 +19,7 @@ These tools read `SKILL.md` natively. No adapter needed — just install to thei
|
|
|
19
19
|
| **GitHub Copilot** | Copy `skills/prompt-architect/` to `.github/skills/` or `~/.copilot/skills/` |
|
|
20
20
|
| **OpenAI Codex** | Copy `skills/prompt-architect/` to `.agents/skills/` in your project |
|
|
21
21
|
| **VS Code** | Copy `skills/prompt-architect/` to `.agents/skills/` in your project |
|
|
22
|
-
| **
|
|
22
|
+
| **Zoo Code** | Copy `skills/prompt-architect/` to `.agents/skills/` or `~/.agents/skills/` |
|
|
23
23
|
| **Kiro, Amp, Junie, Goose, OpenHands, etc.** | Copy to `~/.agents/skills/` (universal path) |
|
|
24
24
|
|
|
25
25
|
Or use the interactive installer to auto-detect and install:
|
|
@@ -13,16 +13,30 @@ You are an expert in prompt engineering and systematic application of prompting
|
|
|
13
13
|
|
|
14
14
|
### 1. Initial Assessment
|
|
15
15
|
|
|
16
|
-
When a user provides a prompt to improve,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
When a user provides a prompt to improve, **score it 1-10 on each of these five dimensions** and report an overall score (the mean, to one decimal place). Always show the scores — they justify the changes you are about to make and give the user a before/after they can feel.
|
|
17
|
+
|
|
18
|
+
| Dimension | What you are scoring |
|
|
19
|
+
|---|---|
|
|
20
|
+
| **Clarity** | Is the goal unambiguous? Penalize vague terms ("thing", "stuff", "something", "maybe"), unresolved pronouns, and an implied-but-unstated objective. |
|
|
21
|
+
| **Specificity** | Are requirements concrete? Reward named entities, quantities, and explicit format/length/style specifications. Penalize prompts so short they cannot carry the detail. |
|
|
22
|
+
| **Context** | Is the necessary background present? Reward stated situation, audience, and rationale ("because", "in order to"). Penalize a bare instruction with no setting. |
|
|
23
|
+
| **Completeness** | Are *what*, *why*, *how*, and *output format* all present? Each missing element costs. |
|
|
24
|
+
| **Structure** | Is it organized for its length? Reward sections, lists, and logical ordering. Penalize run-on sentences and long unbroken prose. |
|
|
25
|
+
|
|
26
|
+
**Rubric anchors** — apply per dimension so scores mean the same thing every time:
|
|
27
|
+
|
|
28
|
+
| Band | Meaning |
|
|
29
|
+
|---|---|
|
|
30
|
+
| **1-3** | Absent or actively harmful. The model would have to guess this dimension entirely. |
|
|
31
|
+
| **4-6** | Present but underspecified. The model can proceed, but will fill gaps with assumptions the user did not choose. |
|
|
32
|
+
| **7-8** | Solid. Enough to produce a good result; refinement would be marginal. |
|
|
33
|
+
| **9-10** | Complete and unambiguous. A competent model has nothing left to infer on this dimension. |
|
|
34
|
+
|
|
35
|
+
Score the prompt *as written*, not as you charitably interpret it — the gap between those two is precisely what the framework will fix. A prompt scoring 7+ across the board often needs no framework at all (see **When NOT to Use Frameworks**).
|
|
22
36
|
|
|
23
37
|
### 2. Intent-Based Framework Selection
|
|
24
38
|
|
|
25
|
-
With
|
|
39
|
+
With 29 frameworks, identify the user's **primary intent** first, then use the discriminating questions within that category.
|
|
26
40
|
|
|
27
41
|
---
|
|
28
42
|
|
|
@@ -64,7 +78,8 @@ With 27 frameworks, identify the user's **primary intent** first, then use the d
|
|
|
64
78
|
|--------|-----------|
|
|
65
79
|
| Rewrite, refactor, convert | **BAB** |
|
|
66
80
|
| Iterative quality improvement | **Self-Refine** |
|
|
67
|
-
|
|
|
81
|
+
| Summarize at fixed length, maximize information | **Chain of Density** |
|
|
82
|
+
| Shorten text toward a target length | **Iterative Compression** |
|
|
68
83
|
| Outline-first then expand sections | **Skeleton of Thought** |
|
|
69
84
|
|
|
70
85
|
---
|
|
@@ -102,6 +117,20 @@ With 27 frameworks, identify the user's **primary intent** first, then use the d
|
|
|
102
117
|
|
|
103
118
|
---
|
|
104
119
|
|
|
120
|
+
#### Combining Frameworks
|
|
121
|
+
|
|
122
|
+
Most prompts need exactly one framework. Combine only when the task genuinely has **two separable phases** — one framework structures the request, a second governs how the output is checked or refined. If you cannot name the two phases, do not combine.
|
|
123
|
+
|
|
124
|
+
| When | Combination | Why |
|
|
125
|
+
|---|---|---|
|
|
126
|
+
| High-stakes content that must survive review | **CO-STAR + Self-Refine** | CO-STAR fixes audience/tone/format; Self-Refine adds a critique-and-revise loop before delivery |
|
|
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
|
+
| 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
|
+
|
|
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.
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
105
134
|
### 3. Framework Quick Reference
|
|
106
135
|
|
|
107
136
|
**Simple:** APE | RTF | CTF
|
|
@@ -109,7 +138,7 @@ With 27 frameworks, identify the user's **primary intent** first, then use the d
|
|
|
109
138
|
**Comprehensive:** CO-STAR | RISEN | TIDD-EC
|
|
110
139
|
**Data:** RISE-IE | RISE-IX
|
|
111
140
|
**Reasoning:** Plan-and-Solve | Chain of Thought | Least-to-Most | Step-Back | Tree of Thought | RCoT
|
|
112
|
-
**Structure/Iteration:** Skeleton of Thought | Chain of Density
|
|
141
|
+
**Structure/Iteration:** Skeleton of Thought | Chain of Density | Iterative Compression
|
|
113
142
|
**Critique/Quality:** Self-Refine | CAI Critique-Revise | Devil's Advocate | Pre-Mortem
|
|
114
143
|
**Meta/Reverse:** RPEF | Reverse Role Prompting
|
|
115
144
|
**Agentic:** ReAct
|
|
@@ -138,7 +167,8 @@ Ask targeted questions (3-5 at a time) based on identified gaps:
|
|
|
138
167
|
**For Least-to-Most**: Full problem, decomposed subproblems in dependency order?
|
|
139
168
|
**For Plan-and-Solve**: Problem with all relevant numbers/variables?
|
|
140
169
|
**For Chain of Thought**: Problem, reasoning steps, verification?
|
|
141
|
-
**For Chain of Density**:
|
|
170
|
+
**For Chain of Density**: Source document to summarize, fixed target length, number of iterations?
|
|
171
|
+
**For Iterative Compression**: Content to compress, target length, optimization goal, stopping criterion?
|
|
142
172
|
**For Self-Refine**: Output to improve, feedback dimensions, stop condition?
|
|
143
173
|
**For CAI Critique-Revise**: The principle to enforce, output to critique?
|
|
144
174
|
**For Devil's Advocate**: Position to attack, attack dimensions, severity ranking needed?
|
|
@@ -167,7 +197,7 @@ Show improved prompt with:
|
|
|
167
197
|
|
|
168
198
|
- Confirm improvements align with intent
|
|
169
199
|
- Refine based on feedback
|
|
170
|
-
- Switch or combine frameworks if needed
|
|
200
|
+
- Switch or combine frameworks if needed (see **Combining Frameworks** above)
|
|
171
201
|
- Continue until satisfactory
|
|
172
202
|
|
|
173
203
|
## Key Principles
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckelsoe/prompt-architect",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "Agent skill for analyzing and improving prompts using
|
|
3
|
+
"version": "3.3.1",
|
|
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.",
|
|
5
5
|
"main": "skills/prompt-architect/SKILL.md",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"claude-code",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"prompt-architect": "scripts/install.js"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
|
-
"node": ">=
|
|
59
|
+
"node": ">=20.19.0"
|
|
60
60
|
},
|
|
61
61
|
"files": [
|
|
62
62
|
"skills/",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"type": "skill",
|
|
82
82
|
"skillName": "prompt-architect",
|
|
83
83
|
"skillPath": "skills/prompt-architect",
|
|
84
|
-
"version": "3.
|
|
84
|
+
"version": "3.3.1",
|
|
85
85
|
"compatibility": {
|
|
86
86
|
"claudeCode": ">=1.0.0"
|
|
87
87
|
},
|
|
@@ -116,6 +116,7 @@
|
|
|
116
116
|
"ReAct",
|
|
117
117
|
"Chain-of-Thought",
|
|
118
118
|
"Chain-of-Density",
|
|
119
|
+
"Iterative-Compression",
|
|
119
120
|
"Self-Refine",
|
|
120
121
|
"CAI-Critique-Revise",
|
|
121
122
|
"Devils-Advocate",
|