@ckelsoe/prompt-architect 3.0.2 → 3.2.0

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.
Files changed (76) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +264 -264
  4. package/LICENSE +21 -21
  5. package/README.md +1064 -1184
  6. package/adapters/README.md +75 -267
  7. package/adapters/for-windsurf.md +136 -136
  8. package/adapters/system-prompt.md +243 -243
  9. package/package.json +139 -138
  10. package/scripts/build-skill.js +64 -0
  11. package/scripts/install.js +4 -54
  12. package/scripts/test.js +205 -213
  13. package/scripts/validate-skill.js +350 -350
  14. package/skills/prompt-architect/SKILL.md +343 -331
  15. package/skills/prompt-architect/assets/templates/ape_template.txt +5 -5
  16. package/skills/prompt-architect/assets/templates/bab_template.txt +15 -15
  17. package/skills/prompt-architect/assets/templates/broke_template.txt +15 -15
  18. package/skills/prompt-architect/assets/templates/cai-critique-revise_template.txt +18 -18
  19. package/skills/prompt-architect/assets/templates/care_template.txt +16 -16
  20. package/skills/prompt-architect/assets/templates/chain-of-density_template.txt +46 -46
  21. package/skills/prompt-architect/assets/templates/chain-of-thought_template.txt +49 -49
  22. package/skills/prompt-architect/assets/templates/co-star_template.txt +17 -17
  23. package/skills/prompt-architect/assets/templates/crispe_template.txt +14 -14
  24. package/skills/prompt-architect/assets/templates/ctf_template.txt +15 -15
  25. package/skills/prompt-architect/assets/templates/devils-advocate_template.txt +25 -25
  26. package/skills/prompt-architect/assets/templates/hybrid_template.txt +101 -101
  27. package/skills/prompt-architect/assets/templates/least-to-most_template.txt +16 -16
  28. package/skills/prompt-architect/assets/templates/plan-and-solve_template.txt +7 -7
  29. package/skills/prompt-architect/assets/templates/pre-mortem_template.txt +27 -27
  30. package/skills/prompt-architect/assets/templates/race_template.txt +19 -19
  31. package/skills/prompt-architect/assets/templates/rcot_template.txt +31 -31
  32. package/skills/prompt-architect/assets/templates/react_template.txt +27 -27
  33. package/skills/prompt-architect/assets/templates/reverse-role_template.txt +11 -11
  34. package/skills/prompt-architect/assets/templates/rise-ie_template.txt +23 -23
  35. package/skills/prompt-architect/assets/templates/rise-ix_template.txt +28 -28
  36. package/skills/prompt-architect/assets/templates/risen_template.txt +21 -21
  37. package/skills/prompt-architect/assets/templates/rpef_template.txt +26 -26
  38. package/skills/prompt-architect/assets/templates/rtf_template.txt +13 -13
  39. package/skills/prompt-architect/assets/templates/self-refine_template.txt +16 -16
  40. package/skills/prompt-architect/assets/templates/skeleton-of-thought_template.txt +15 -15
  41. package/skills/prompt-architect/assets/templates/step-back_template.txt +10 -10
  42. package/skills/prompt-architect/assets/templates/tidd-ec_template.txt +45 -45
  43. package/skills/prompt-architect/assets/templates/tree-of-thought_template.txt +30 -30
  44. package/skills/prompt-architect/references/frameworks/ape.md +200 -200
  45. package/skills/prompt-architect/references/frameworks/bab.md +242 -242
  46. package/skills/prompt-architect/references/frameworks/broke.md +242 -242
  47. package/skills/prompt-architect/references/frameworks/cai-critique-revise.md +230 -230
  48. package/skills/prompt-architect/references/frameworks/care.md +235 -235
  49. package/skills/prompt-architect/references/frameworks/chain-of-density.md +479 -479
  50. package/skills/prompt-architect/references/frameworks/chain-of-thought.md +424 -424
  51. package/skills/prompt-architect/references/frameworks/co-star.md +256 -256
  52. package/skills/prompt-architect/references/frameworks/crispe.md +253 -253
  53. package/skills/prompt-architect/references/frameworks/ctf.md +207 -207
  54. package/skills/prompt-architect/references/frameworks/devils-advocate.md +206 -206
  55. package/skills/prompt-architect/references/frameworks/least-to-most.md +226 -226
  56. package/skills/prompt-architect/references/frameworks/plan-and-solve.md +210 -210
  57. package/skills/prompt-architect/references/frameworks/pre-mortem.md +197 -197
  58. package/skills/prompt-architect/references/frameworks/race.md +243 -243
  59. package/skills/prompt-architect/references/frameworks/rcot.md +203 -203
  60. package/skills/prompt-architect/references/frameworks/react.md +304 -304
  61. package/skills/prompt-architect/references/frameworks/reverse-role.md +189 -189
  62. package/skills/prompt-architect/references/frameworks/rise.md +555 -555
  63. package/skills/prompt-architect/references/frameworks/risen.md +297 -297
  64. package/skills/prompt-architect/references/frameworks/rpef.md +195 -195
  65. package/skills/prompt-architect/references/frameworks/rtf.md +358 -358
  66. package/skills/prompt-architect/references/frameworks/self-refine.md +205 -205
  67. package/skills/prompt-architect/references/frameworks/skeleton-of-thought.md +186 -186
  68. package/skills/prompt-architect/references/frameworks/step-back.md +206 -206
  69. package/skills/prompt-architect/references/frameworks/tidd-ec.md +470 -470
  70. package/skills/prompt-architect/references/frameworks/tree-of-thought.md +260 -260
  71. package/skills/prompt-architect/scripts/framework_analyzer.py +807 -807
  72. package/skills/prompt-architect/scripts/prompt_evaluator.py +336 -336
  73. package/adapters/for-cursor.mdc +0 -138
  74. package/adapters/for-gemini-cli.md +0 -70
  75. package/adapters/for-github-copilot.md +0 -141
  76. package/adapters/for-openai-codex-cli.md +0 -158
@@ -1,207 +1,207 @@
1
- # CTF Framework
2
-
3
- ## Overview
4
-
5
- CTF is a simple 3-component framework focused on situational context, task clarity, and output format. It is ideal for tasks where background/situation is more important than AI persona framing, and the primary concern is getting a clearly defined output from a well-understood context.
6
-
7
- ## Components
8
-
9
- ### C - Context
10
- **Purpose:** Describe the situation, background, or circumstances surrounding the task.
11
-
12
- **Questions to Ask:**
13
- - What is the current situation?
14
- - What background does the AI need to know?
15
- - What has already been done?
16
- - Why is this task needed?
17
- - What constraints or circumstances apply?
18
-
19
- **Examples:**
20
- - "We are mid-sprint and the client has changed the acceptance criteria for the login flow..."
21
- - "I'm a junior developer onboarding to a legacy Python codebase with no documentation..."
22
- - "Our team writes internal status reports weekly and we need to standardize the format..."
23
-
24
- ### T - Task
25
- **Purpose:** State exactly what needs to be done.
26
-
27
- **Questions to Ask:**
28
- - What exactly needs to be done?
29
- - What's the deliverable?
30
- - What's the core action?
31
-
32
- **Examples:**
33
- - "Write a summary of the changed requirements for the team..."
34
- - "Explain what this function does in plain language..."
35
- - "Create a template for our weekly status report..."
36
-
37
- ### F - Format
38
- **Purpose:** Specify how the output should be structured.
39
-
40
- **Questions to Ask:**
41
- - What format should the output take?
42
- - How should it be structured?
43
- - What's the preferred presentation?
44
- - Any specific formatting requirements?
45
-
46
- **Examples:**
47
- - "Provide as a markdown table..."
48
- - "Format as a bulleted list under three headings..."
49
- - "Write as a concise paragraph, 100 words max..."
50
-
51
- ## Template Structure
52
-
53
- ```
54
- CONTEXT:
55
- [Situation, background, circumstances]
56
-
57
- TASK:
58
- [What needs to be done]
59
-
60
- FORMAT:
61
- [How output should be structured]
62
- ```
63
-
64
- ## Complete Examples
65
-
66
- ### Example 1: Requirement Change Summary
67
-
68
- **Before CTF:**
69
- "Summarize the new requirements."
70
-
71
- **After CTF:**
72
- ```
73
- CONTEXT:
74
- We are in sprint 3 of a 6-sprint project. The client just revised the login flow
75
- requirements: they now want SSO via Google instead of email/password. The dev team
76
- hasn't been told yet and we need to communicate this clearly without causing panic.
77
-
78
- TASK:
79
- Write a brief summary of the requirement change to share with the development team
80
- in Slack.
81
-
82
- FORMAT:
83
- - 3-5 bullet points
84
- - Plain language, no jargon
85
- - End with a single action item
86
- - Keep total under 150 words
87
- ```
88
-
89
- ### Example 2: Code Explanation
90
-
91
- **Before CTF:**
92
- "Explain this code."
93
-
94
- **After CTF:**
95
- ```
96
- CONTEXT:
97
- I'm a junior developer new to this codebase. The function below is from a legacy
98
- authentication module that nobody has documented. I need to understand it before
99
- refactoring it next week.
100
-
101
- TASK:
102
- Explain what this function does, why each section exists, and flag any potential
103
- issues I should know before touching it.
104
-
105
- FORMAT:
106
- - Short plain-language summary (2-3 sentences)
107
- - Line-by-line breakdown as a numbered list
108
- - Potential issues section at the end (bullet points)
109
- ```
110
-
111
- ### Example 3: Template Creation
112
-
113
- **Before CTF:**
114
- "Create a status report template."
115
-
116
- **After CTF:**
117
- ```
118
- CONTEXT:
119
- Our team of 6 engineers sends weekly status reports to a non-technical product
120
- manager. Reports are currently inconsistent and take too long to write. We want
121
- a reusable template that takes under 10 minutes to fill out.
122
-
123
- TASK:
124
- Create a weekly status report template that balances completeness with brevity.
125
-
126
- FORMAT:
127
- Markdown template with:
128
- - Section headers with fill-in placeholders
129
- - Brief instruction comment under each header
130
- - Total estimated fill-in time: under 10 minutes
131
- - Length when filled: 200-300 words
132
- ```
133
-
134
- ## Best Use Cases
135
-
136
- 1. **Situational Tasks**
137
- - When background drives everything
138
- - Handoff documents
139
- - Mid-project updates
140
- - Onboarding assistance
141
-
142
- 2. **Context-Heavy Requests**
143
- - Legacy code explanations
144
- - Requirement change communication
145
- - Stakeholder summaries
146
-
147
- 3. **Simple, Well-Defined Tasks with Rich Background**
148
- - Template creation
149
- - Meeting prep
150
- - Quick documentation
151
-
152
- 4. **When Role is Obvious or Irrelevant**
153
- - The expertise is implied by the context
154
- - No need to establish an AI persona
155
-
156
- ## Selection Criteria
157
-
158
- **Choose CTF when:**
159
- - ✅ Background/situation is the key driver
160
- - ✅ Role/persona is obvious or irrelevant
161
- - ✅ Task is simple and well-defined
162
- - ✅ Output format is a primary concern
163
- - ✅ Quick, focused execution needed
164
- - ✅ Context would be redundant in a Role definition
165
-
166
- **Avoid CTF when:**
167
- - ❌ AI expertise/persona materially changes output quality (use RTF)
168
- - ❌ Audience and tone are critical (use CO-STAR)
169
- - ❌ Multi-step process with methodology needed (use RISEN)
170
- - ❌ Explicit dos/don'ts required (use TIDD-EC)
171
- - ❌ Input→output transformation (use RISE-IE)
172
-
173
- ## CTF vs RTF
174
-
175
- | | CTF | RTF |
176
- |---|---|---|
177
- | First component | **Context** — situational background | **Role** — AI persona/expertise |
178
- | Primary driver | "What's the situation?" | "Who should answer this?" |
179
- | Best for | Context-heavy, obvious expertise | Expertise-driven, minimal background |
180
- | Weakness | No persona framing | Context must fit inside Role |
181
-
182
- **Rule of thumb**: If you'd start writing "You are a..." → use RTF. If you'd start writing "Here's the situation..." → use CTF.
183
-
184
- ## Common Mistakes
185
-
186
- 1. **Vague Context**
187
- - Include specific details: what already happened, what the constraints are, why it matters
188
- - Don't just say "I need help with a project"
189
-
190
- 2. **Insufficient Task Description**
191
- - Be specific about the deliverable
192
- - Define scope clearly
193
-
194
- 3. **Missing Format Specification**
195
- - Don't assume default output is correct
196
- - Specify structure, length, and presentation
197
-
198
- 4. **Using CTF for Complex Tasks**
199
- - If context is long and task has multiple steps, upgrade to RISEN or CO-STAR
200
-
201
- ## Quick Reference
202
-
203
- | Component | Focus | Key Question |
204
- |-----------|-------|--------------|
205
- | Context | Situation | "What's the background?" |
206
- | Task | Action | "What needs to be done?" |
207
- | Format | Structure | "How should it look?" |
1
+ # CTF Framework
2
+
3
+ ## Overview
4
+
5
+ CTF is a simple 3-component framework focused on situational context, task clarity, and output format. It is ideal for tasks where background/situation is more important than AI persona framing, and the primary concern is getting a clearly defined output from a well-understood context.
6
+
7
+ ## Components
8
+
9
+ ### C - Context
10
+ **Purpose:** Describe the situation, background, or circumstances surrounding the task.
11
+
12
+ **Questions to Ask:**
13
+ - What is the current situation?
14
+ - What background does the AI need to know?
15
+ - What has already been done?
16
+ - Why is this task needed?
17
+ - What constraints or circumstances apply?
18
+
19
+ **Examples:**
20
+ - "We are mid-sprint and the client has changed the acceptance criteria for the login flow..."
21
+ - "I'm a junior developer onboarding to a legacy Python codebase with no documentation..."
22
+ - "Our team writes internal status reports weekly and we need to standardize the format..."
23
+
24
+ ### T - Task
25
+ **Purpose:** State exactly what needs to be done.
26
+
27
+ **Questions to Ask:**
28
+ - What exactly needs to be done?
29
+ - What's the deliverable?
30
+ - What's the core action?
31
+
32
+ **Examples:**
33
+ - "Write a summary of the changed requirements for the team..."
34
+ - "Explain what this function does in plain language..."
35
+ - "Create a template for our weekly status report..."
36
+
37
+ ### F - Format
38
+ **Purpose:** Specify how the output should be structured.
39
+
40
+ **Questions to Ask:**
41
+ - What format should the output take?
42
+ - How should it be structured?
43
+ - What's the preferred presentation?
44
+ - Any specific formatting requirements?
45
+
46
+ **Examples:**
47
+ - "Provide as a markdown table..."
48
+ - "Format as a bulleted list under three headings..."
49
+ - "Write as a concise paragraph, 100 words max..."
50
+
51
+ ## Template Structure
52
+
53
+ ```
54
+ CONTEXT:
55
+ [Situation, background, circumstances]
56
+
57
+ TASK:
58
+ [What needs to be done]
59
+
60
+ FORMAT:
61
+ [How output should be structured]
62
+ ```
63
+
64
+ ## Complete Examples
65
+
66
+ ### Example 1: Requirement Change Summary
67
+
68
+ **Before CTF:**
69
+ "Summarize the new requirements."
70
+
71
+ **After CTF:**
72
+ ```
73
+ CONTEXT:
74
+ We are in sprint 3 of a 6-sprint project. The client just revised the login flow
75
+ requirements: they now want SSO via Google instead of email/password. The dev team
76
+ hasn't been told yet and we need to communicate this clearly without causing panic.
77
+
78
+ TASK:
79
+ Write a brief summary of the requirement change to share with the development team
80
+ in Slack.
81
+
82
+ FORMAT:
83
+ - 3-5 bullet points
84
+ - Plain language, no jargon
85
+ - End with a single action item
86
+ - Keep total under 150 words
87
+ ```
88
+
89
+ ### Example 2: Code Explanation
90
+
91
+ **Before CTF:**
92
+ "Explain this code."
93
+
94
+ **After CTF:**
95
+ ```
96
+ CONTEXT:
97
+ I'm a junior developer new to this codebase. The function below is from a legacy
98
+ authentication module that nobody has documented. I need to understand it before
99
+ refactoring it next week.
100
+
101
+ TASK:
102
+ Explain what this function does, why each section exists, and flag any potential
103
+ issues I should know before touching it.
104
+
105
+ FORMAT:
106
+ - Short plain-language summary (2-3 sentences)
107
+ - Line-by-line breakdown as a numbered list
108
+ - Potential issues section at the end (bullet points)
109
+ ```
110
+
111
+ ### Example 3: Template Creation
112
+
113
+ **Before CTF:**
114
+ "Create a status report template."
115
+
116
+ **After CTF:**
117
+ ```
118
+ CONTEXT:
119
+ Our team of 6 engineers sends weekly status reports to a non-technical product
120
+ manager. Reports are currently inconsistent and take too long to write. We want
121
+ a reusable template that takes under 10 minutes to fill out.
122
+
123
+ TASK:
124
+ Create a weekly status report template that balances completeness with brevity.
125
+
126
+ FORMAT:
127
+ Markdown template with:
128
+ - Section headers with fill-in placeholders
129
+ - Brief instruction comment under each header
130
+ - Total estimated fill-in time: under 10 minutes
131
+ - Length when filled: 200-300 words
132
+ ```
133
+
134
+ ## Best Use Cases
135
+
136
+ 1. **Situational Tasks**
137
+ - When background drives everything
138
+ - Handoff documents
139
+ - Mid-project updates
140
+ - Onboarding assistance
141
+
142
+ 2. **Context-Heavy Requests**
143
+ - Legacy code explanations
144
+ - Requirement change communication
145
+ - Stakeholder summaries
146
+
147
+ 3. **Simple, Well-Defined Tasks with Rich Background**
148
+ - Template creation
149
+ - Meeting prep
150
+ - Quick documentation
151
+
152
+ 4. **When Role is Obvious or Irrelevant**
153
+ - The expertise is implied by the context
154
+ - No need to establish an AI persona
155
+
156
+ ## Selection Criteria
157
+
158
+ **Choose CTF when:**
159
+ - ✅ Background/situation is the key driver
160
+ - ✅ Role/persona is obvious or irrelevant
161
+ - ✅ Task is simple and well-defined
162
+ - ✅ Output format is a primary concern
163
+ - ✅ Quick, focused execution needed
164
+ - ✅ Context would be redundant in a Role definition
165
+
166
+ **Avoid CTF when:**
167
+ - ❌ AI expertise/persona materially changes output quality (use RTF)
168
+ - ❌ Audience and tone are critical (use CO-STAR)
169
+ - ❌ Multi-step process with methodology needed (use RISEN)
170
+ - ❌ Explicit dos/don'ts required (use TIDD-EC)
171
+ - ❌ Input→output transformation (use RISE-IE)
172
+
173
+ ## CTF vs RTF
174
+
175
+ | | CTF | RTF |
176
+ |---|---|---|
177
+ | First component | **Context** — situational background | **Role** — AI persona/expertise |
178
+ | Primary driver | "What's the situation?" | "Who should answer this?" |
179
+ | Best for | Context-heavy, obvious expertise | Expertise-driven, minimal background |
180
+ | Weakness | No persona framing | Context must fit inside Role |
181
+
182
+ **Rule of thumb**: If you'd start writing "You are a..." → use RTF. If you'd start writing "Here's the situation..." → use CTF.
183
+
184
+ ## Common Mistakes
185
+
186
+ 1. **Vague Context**
187
+ - Include specific details: what already happened, what the constraints are, why it matters
188
+ - Don't just say "I need help with a project"
189
+
190
+ 2. **Insufficient Task Description**
191
+ - Be specific about the deliverable
192
+ - Define scope clearly
193
+
194
+ 3. **Missing Format Specification**
195
+ - Don't assume default output is correct
196
+ - Specify structure, length, and presentation
197
+
198
+ 4. **Using CTF for Complex Tasks**
199
+ - If context is long and task has multiple steps, upgrade to RISEN or CO-STAR
200
+
201
+ ## Quick Reference
202
+
203
+ | Component | Focus | Key Question |
204
+ |-----------|-------|--------------|
205
+ | Context | Situation | "What's the background?" |
206
+ | Task | Action | "What needs to be done?" |
207
+ | Format | Structure | "How should it look?" |