@ckelsoe/prompt-architect 3.0.0 → 3.1.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 +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +264 -264
- package/LICENSE +21 -21
- package/README.md +1064 -1184
- package/adapters/README.md +75 -267
- package/adapters/for-windsurf.md +136 -136
- package/adapters/system-prompt.md +243 -243
- package/package.json +139 -135
- package/scripts/build-skill.js +64 -0
- package/scripts/install.js +35 -56
- package/scripts/test.js +205 -213
- package/scripts/validate-skill.js +350 -350
- package/skills/prompt-architect/SKILL.md +331 -331
- package/skills/prompt-architect/assets/templates/ape_template.txt +5 -5
- package/skills/prompt-architect/assets/templates/bab_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/broke_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/cai-critique-revise_template.txt +18 -18
- package/skills/prompt-architect/assets/templates/care_template.txt +16 -16
- package/skills/prompt-architect/assets/templates/chain-of-density_template.txt +46 -46
- package/skills/prompt-architect/assets/templates/chain-of-thought_template.txt +49 -49
- package/skills/prompt-architect/assets/templates/co-star_template.txt +17 -17
- package/skills/prompt-architect/assets/templates/crispe_template.txt +14 -14
- package/skills/prompt-architect/assets/templates/ctf_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/devils-advocate_template.txt +25 -25
- package/skills/prompt-architect/assets/templates/hybrid_template.txt +101 -101
- package/skills/prompt-architect/assets/templates/least-to-most_template.txt +16 -16
- package/skills/prompt-architect/assets/templates/plan-and-solve_template.txt +7 -7
- package/skills/prompt-architect/assets/templates/pre-mortem_template.txt +27 -27
- package/skills/prompt-architect/assets/templates/race_template.txt +19 -19
- package/skills/prompt-architect/assets/templates/rcot_template.txt +31 -31
- package/skills/prompt-architect/assets/templates/react_template.txt +27 -27
- package/skills/prompt-architect/assets/templates/reverse-role_template.txt +11 -11
- package/skills/prompt-architect/assets/templates/rise-ie_template.txt +23 -23
- package/skills/prompt-architect/assets/templates/rise-ix_template.txt +28 -28
- package/skills/prompt-architect/assets/templates/risen_template.txt +21 -21
- package/skills/prompt-architect/assets/templates/rpef_template.txt +26 -26
- package/skills/prompt-architect/assets/templates/rtf_template.txt +13 -13
- package/skills/prompt-architect/assets/templates/self-refine_template.txt +16 -16
- package/skills/prompt-architect/assets/templates/skeleton-of-thought_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/step-back_template.txt +10 -10
- package/skills/prompt-architect/assets/templates/tidd-ec_template.txt +45 -45
- package/skills/prompt-architect/assets/templates/tree-of-thought_template.txt +30 -30
- package/skills/prompt-architect/references/frameworks/ape.md +200 -200
- package/skills/prompt-architect/references/frameworks/bab.md +242 -242
- package/skills/prompt-architect/references/frameworks/broke.md +242 -242
- package/skills/prompt-architect/references/frameworks/cai-critique-revise.md +230 -230
- package/skills/prompt-architect/references/frameworks/care.md +235 -235
- package/skills/prompt-architect/references/frameworks/chain-of-density.md +479 -479
- package/skills/prompt-architect/references/frameworks/chain-of-thought.md +424 -424
- package/skills/prompt-architect/references/frameworks/co-star.md +256 -256
- package/skills/prompt-architect/references/frameworks/crispe.md +253 -253
- package/skills/prompt-architect/references/frameworks/ctf.md +207 -207
- package/skills/prompt-architect/references/frameworks/devils-advocate.md +206 -206
- package/skills/prompt-architect/references/frameworks/least-to-most.md +226 -226
- package/skills/prompt-architect/references/frameworks/plan-and-solve.md +210 -210
- package/skills/prompt-architect/references/frameworks/pre-mortem.md +197 -197
- package/skills/prompt-architect/references/frameworks/race.md +243 -243
- package/skills/prompt-architect/references/frameworks/rcot.md +203 -203
- package/skills/prompt-architect/references/frameworks/react.md +304 -304
- package/skills/prompt-architect/references/frameworks/reverse-role.md +189 -189
- package/skills/prompt-architect/references/frameworks/rise.md +555 -555
- package/skills/prompt-architect/references/frameworks/risen.md +297 -297
- package/skills/prompt-architect/references/frameworks/rpef.md +195 -195
- package/skills/prompt-architect/references/frameworks/rtf.md +358 -358
- package/skills/prompt-architect/references/frameworks/self-refine.md +205 -205
- package/skills/prompt-architect/references/frameworks/skeleton-of-thought.md +186 -186
- package/skills/prompt-architect/references/frameworks/step-back.md +206 -206
- package/skills/prompt-architect/references/frameworks/tidd-ec.md +470 -470
- package/skills/prompt-architect/references/frameworks/tree-of-thought.md +260 -260
- package/skills/prompt-architect/scripts/framework_analyzer.py +807 -807
- package/skills/prompt-architect/scripts/prompt_evaluator.py +336 -336
- package/adapters/for-cursor.mdc +0 -138
- package/adapters/for-gemini-cli.md +0 -70
- package/adapters/for-github-copilot.md +0 -141
- package/adapters/for-openai-codex-cli.md +0 -158
package/package.json
CHANGED
|
@@ -1,135 +1,139 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@ckelsoe/prompt-architect",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "Agent skill for analyzing and improving prompts using 27 research-backed frameworks across 7 intent categories. Works with Claude Code, Gemini CLI, Cursor, Copilot, and 30+ Agent Skills compatible tools.",
|
|
5
|
-
"main": "skills/prompt-architect/SKILL.md",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"claude-code",
|
|
8
|
-
"claude-skill",
|
|
9
|
-
"agent-skills",
|
|
10
|
-
"gemini-cli",
|
|
11
|
-
"prompt-engineering",
|
|
12
|
-
"prompt-improvement",
|
|
13
|
-
"prompt-frameworks",
|
|
14
|
-
"co-star",
|
|
15
|
-
"risen",
|
|
16
|
-
"rise",
|
|
17
|
-
"tidd-ec",
|
|
18
|
-
"rtf",
|
|
19
|
-
"ctf",
|
|
20
|
-
"ape",
|
|
21
|
-
"bab",
|
|
22
|
-
"race",
|
|
23
|
-
"crispe",
|
|
24
|
-
"broke",
|
|
25
|
-
"care",
|
|
26
|
-
"chain-of-thought",
|
|
27
|
-
"chain-of-density",
|
|
28
|
-
"skeleton-of-thought",
|
|
29
|
-
"step-back-prompting",
|
|
30
|
-
"least-to-most",
|
|
31
|
-
"plan-and-solve",
|
|
32
|
-
"tree-of-thought",
|
|
33
|
-
"react-prompting",
|
|
34
|
-
"self-refine",
|
|
35
|
-
"devils-advocate",
|
|
36
|
-
"pre-mortem",
|
|
37
|
-
"reverse-prompt-engineering",
|
|
38
|
-
"ai-prompts",
|
|
39
|
-
"llm-prompts",
|
|
40
|
-
"prompt-optimization",
|
|
41
|
-
"ai-engineering",
|
|
42
|
-
"llm-engineering",
|
|
43
|
-
"prompt-architect"
|
|
44
|
-
],
|
|
45
|
-
"author": "Charles Kelsoe <charles@kelsoe.com>",
|
|
46
|
-
"license": "MIT",
|
|
47
|
-
"repository": {
|
|
48
|
-
"type": "git",
|
|
49
|
-
"url": "https://github.com/ckelsoe/prompt-architect.git"
|
|
50
|
-
},
|
|
51
|
-
"bugs": {
|
|
52
|
-
"url": "https://github.com/ckelsoe/prompt-architect/issues"
|
|
53
|
-
},
|
|
54
|
-
"homepage": "https://github.com/ckelsoe/prompt-architect#readme",
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
},
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@ckelsoe/prompt-architect",
|
|
3
|
+
"version": "3.1.1",
|
|
4
|
+
"description": "Agent skill for analyzing and improving prompts using 27 research-backed frameworks across 7 intent categories. Works with Claude Code, Gemini CLI, Cursor, Copilot, and 30+ Agent Skills compatible tools.",
|
|
5
|
+
"main": "skills/prompt-architect/SKILL.md",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"claude-code",
|
|
8
|
+
"claude-skill",
|
|
9
|
+
"agent-skills",
|
|
10
|
+
"gemini-cli",
|
|
11
|
+
"prompt-engineering",
|
|
12
|
+
"prompt-improvement",
|
|
13
|
+
"prompt-frameworks",
|
|
14
|
+
"co-star",
|
|
15
|
+
"risen",
|
|
16
|
+
"rise",
|
|
17
|
+
"tidd-ec",
|
|
18
|
+
"rtf",
|
|
19
|
+
"ctf",
|
|
20
|
+
"ape",
|
|
21
|
+
"bab",
|
|
22
|
+
"race",
|
|
23
|
+
"crispe",
|
|
24
|
+
"broke",
|
|
25
|
+
"care",
|
|
26
|
+
"chain-of-thought",
|
|
27
|
+
"chain-of-density",
|
|
28
|
+
"skeleton-of-thought",
|
|
29
|
+
"step-back-prompting",
|
|
30
|
+
"least-to-most",
|
|
31
|
+
"plan-and-solve",
|
|
32
|
+
"tree-of-thought",
|
|
33
|
+
"react-prompting",
|
|
34
|
+
"self-refine",
|
|
35
|
+
"devils-advocate",
|
|
36
|
+
"pre-mortem",
|
|
37
|
+
"reverse-prompt-engineering",
|
|
38
|
+
"ai-prompts",
|
|
39
|
+
"llm-prompts",
|
|
40
|
+
"prompt-optimization",
|
|
41
|
+
"ai-engineering",
|
|
42
|
+
"llm-engineering",
|
|
43
|
+
"prompt-architect"
|
|
44
|
+
],
|
|
45
|
+
"author": "Charles Kelsoe <charles@kelsoe.com>",
|
|
46
|
+
"license": "MIT",
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "https://github.com/ckelsoe/prompt-architect.git"
|
|
50
|
+
},
|
|
51
|
+
"bugs": {
|
|
52
|
+
"url": "https://github.com/ckelsoe/prompt-architect/issues"
|
|
53
|
+
},
|
|
54
|
+
"homepage": "https://github.com/ckelsoe/prompt-architect#readme",
|
|
55
|
+
"bin": {
|
|
56
|
+
"prompt-architect": "scripts/install.js"
|
|
57
|
+
},
|
|
58
|
+
"engines": {
|
|
59
|
+
"node": ">=14.0.0"
|
|
60
|
+
},
|
|
61
|
+
"files": [
|
|
62
|
+
"skills/",
|
|
63
|
+
".claude-plugin/",
|
|
64
|
+
"adapters/",
|
|
65
|
+
"scripts/",
|
|
66
|
+
"README.md",
|
|
67
|
+
"LICENSE",
|
|
68
|
+
"CHANGELOG.md",
|
|
69
|
+
"MIGRATION.md"
|
|
70
|
+
],
|
|
71
|
+
"scripts": {
|
|
72
|
+
"test": "node scripts/test.js",
|
|
73
|
+
"validate": "node scripts/validate-skill.js",
|
|
74
|
+
"install-user": "node scripts/install.js",
|
|
75
|
+
"install-project": "node scripts/install.js --project",
|
|
76
|
+
"postinstall": "node scripts/install.js",
|
|
77
|
+
"build:skill": "node scripts/build-skill.js",
|
|
78
|
+
"prepublishOnly": "npm run validate"
|
|
79
|
+
},
|
|
80
|
+
"claudeCode": {
|
|
81
|
+
"type": "skill",
|
|
82
|
+
"skillName": "prompt-architect",
|
|
83
|
+
"skillPath": "skills/prompt-architect",
|
|
84
|
+
"version": "3.1.1",
|
|
85
|
+
"compatibility": {
|
|
86
|
+
"claudeCode": ">=1.0.0"
|
|
87
|
+
},
|
|
88
|
+
"intentCategories": [
|
|
89
|
+
"recover",
|
|
90
|
+
"clarify",
|
|
91
|
+
"create",
|
|
92
|
+
"transform",
|
|
93
|
+
"reason",
|
|
94
|
+
"critique",
|
|
95
|
+
"agentic"
|
|
96
|
+
],
|
|
97
|
+
"frameworks": [
|
|
98
|
+
"CO-STAR",
|
|
99
|
+
"RISEN",
|
|
100
|
+
"RISE-IE",
|
|
101
|
+
"RISE-IX",
|
|
102
|
+
"TIDD-EC",
|
|
103
|
+
"CTF",
|
|
104
|
+
"RTF",
|
|
105
|
+
"APE",
|
|
106
|
+
"BAB",
|
|
107
|
+
"RACE",
|
|
108
|
+
"CRISPE",
|
|
109
|
+
"BROKE",
|
|
110
|
+
"CARE",
|
|
111
|
+
"Skeleton-of-Thought",
|
|
112
|
+
"Step-Back",
|
|
113
|
+
"Least-to-Most",
|
|
114
|
+
"Plan-and-Solve",
|
|
115
|
+
"Tree-of-Thought",
|
|
116
|
+
"ReAct",
|
|
117
|
+
"Chain-of-Thought",
|
|
118
|
+
"Chain-of-Density",
|
|
119
|
+
"Self-Refine",
|
|
120
|
+
"CAI-Critique-Revise",
|
|
121
|
+
"Devils-Advocate",
|
|
122
|
+
"Pre-Mortem",
|
|
123
|
+
"RCoT",
|
|
124
|
+
"RPEF",
|
|
125
|
+
"Reverse-Role-Prompting"
|
|
126
|
+
],
|
|
127
|
+
"features": {
|
|
128
|
+
"promptAnalysis": true,
|
|
129
|
+
"intentBasedSelection": true,
|
|
130
|
+
"frameworkRecommendation": true,
|
|
131
|
+
"iterativeRefinement": true,
|
|
132
|
+
"qualityScoring": true,
|
|
133
|
+
"frameworkCombinations": true
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"dependencies": {
|
|
137
|
+
"@clack/prompts": "^1.1.0"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Build .skill file (zip archive of the skill directory)
|
|
5
|
+
*
|
|
6
|
+
* Creates prompt-architect.skill in the repo root — a zip of
|
|
7
|
+
* skills/prompt-architect/ that can be uploaded to ChatGPT,
|
|
8
|
+
* Gemini CLI, or any Agent Skills compatible tool.
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* node scripts/build-skill.js
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
const fs = require('fs');
|
|
15
|
+
const path = require('path');
|
|
16
|
+
const { execSync } = require('child_process');
|
|
17
|
+
|
|
18
|
+
const SKILL_DIR = path.join(__dirname, '..', 'skills', 'prompt-architect');
|
|
19
|
+
const OUTPUT_FILE = path.join(__dirname, '..', 'prompt-architect.skill');
|
|
20
|
+
|
|
21
|
+
if (!fs.existsSync(SKILL_DIR)) {
|
|
22
|
+
console.error('Error: skills/prompt-architect/ not found');
|
|
23
|
+
process.exit(1);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Remove old .skill file if exists
|
|
27
|
+
if (fs.existsSync(OUTPUT_FILE)) {
|
|
28
|
+
fs.unlinkSync(OUTPUT_FILE);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Use tar on all platforms (available in Git Bash on Windows, native on macOS/Linux)
|
|
32
|
+
// Create a zip using Node.js built-in zlib won't work for directories,
|
|
33
|
+
// so we use the platform's zip/tar command.
|
|
34
|
+
try {
|
|
35
|
+
const skillsRoot = path.join(__dirname, '..', 'skills');
|
|
36
|
+
|
|
37
|
+
if (process.platform === 'win32') {
|
|
38
|
+
// PowerShell's Compress-Archive via child process
|
|
39
|
+
execSync(
|
|
40
|
+
`powershell -NoProfile -Command "Compress-Archive -Path '${SKILL_DIR}\\*' -DestinationPath '${OUTPUT_FILE}.zip' -Force"`,
|
|
41
|
+
{ stdio: 'inherit' }
|
|
42
|
+
);
|
|
43
|
+
// Rename .zip to .skill
|
|
44
|
+
fs.renameSync(OUTPUT_FILE + '.zip', OUTPUT_FILE);
|
|
45
|
+
} else {
|
|
46
|
+
// Unix: use zip command from the skills/ directory
|
|
47
|
+
execSync(
|
|
48
|
+
`cd "${skillsRoot}" && zip -r "${OUTPUT_FILE}" prompt-architect/`,
|
|
49
|
+
{ stdio: 'inherit' }
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const stats = fs.statSync(OUTPUT_FILE);
|
|
54
|
+
const sizeKB = (stats.size / 1024).toFixed(1);
|
|
55
|
+
console.log(`\n Built: prompt-architect.skill (${sizeKB} KB)\n`);
|
|
56
|
+
console.log(' Upload this file to:');
|
|
57
|
+
console.log(' - ChatGPT: Profile → Skills → New skill → Upload');
|
|
58
|
+
console.log(' - Gemini CLI: gemini skills install ./prompt-architect.skill');
|
|
59
|
+
console.log(' - Any Agent Skills compatible tool\n');
|
|
60
|
+
|
|
61
|
+
} catch (err) {
|
|
62
|
+
console.error(`Build failed: ${err.message}`);
|
|
63
|
+
process.exit(1);
|
|
64
|
+
}
|
package/scripts/install.js
CHANGED
|
@@ -59,36 +59,6 @@ const AGENTS = [
|
|
|
59
59
|
format: 'skill',
|
|
60
60
|
hint: () => '~/.agents/skills/ (30+ compatible agents)',
|
|
61
61
|
},
|
|
62
|
-
{
|
|
63
|
-
id: 'cursor',
|
|
64
|
-
name: 'Cursor',
|
|
65
|
-
detect: () => {
|
|
66
|
-
return fs.existsSync(path.join(os.homedir(), '.cursor')) ||
|
|
67
|
-
fs.existsSync(path.join(process.cwd(), '.cursor'));
|
|
68
|
-
},
|
|
69
|
-
installPath: () => path.join(process.cwd(), '.cursor', 'rules', 'prompt-architect.mdc'),
|
|
70
|
-
format: 'adapter',
|
|
71
|
-
adapterFile: 'for-cursor.mdc',
|
|
72
|
-
hint: () => '.cursor/rules/ (project)',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
id: 'copilot',
|
|
76
|
-
name: 'GitHub Copilot',
|
|
77
|
-
detect: () => {
|
|
78
|
-
try {
|
|
79
|
-
execSync(process.platform === 'win32' ? 'where code' : 'which code', { stdio: 'ignore' });
|
|
80
|
-
return true;
|
|
81
|
-
} catch {
|
|
82
|
-
return fs.existsSync(path.join(process.cwd(), '.vscode')) ||
|
|
83
|
-
fs.existsSync(path.join(process.cwd(), '.github'));
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
installPath: () => path.join(process.cwd(), '.github', 'copilot-instructions.md'),
|
|
87
|
-
format: 'adapter',
|
|
88
|
-
adapterFile: 'for-github-copilot.md',
|
|
89
|
-
appendMode: true,
|
|
90
|
-
hint: () => '.github/copilot-instructions.md (project)',
|
|
91
|
-
},
|
|
92
62
|
{
|
|
93
63
|
id: 'windsurf',
|
|
94
64
|
name: 'Windsurf',
|
|
@@ -102,23 +72,6 @@ const AGENTS = [
|
|
|
102
72
|
appendMode: true,
|
|
103
73
|
hint: () => '.windsurfrules (project)',
|
|
104
74
|
},
|
|
105
|
-
{
|
|
106
|
-
id: 'codex',
|
|
107
|
-
name: 'OpenAI Codex CLI',
|
|
108
|
-
detect: () => {
|
|
109
|
-
try {
|
|
110
|
-
execSync(process.platform === 'win32' ? 'where codex' : 'which codex', { stdio: 'ignore' });
|
|
111
|
-
return true;
|
|
112
|
-
} catch {
|
|
113
|
-
return fs.existsSync(path.join(process.cwd(), 'AGENTS.md'));
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
installPath: () => path.join(process.cwd(), 'AGENTS.md'),
|
|
117
|
-
format: 'adapter',
|
|
118
|
-
adapterFile: 'for-openai-codex-cli.md',
|
|
119
|
-
appendMode: true,
|
|
120
|
-
hint: () => 'AGENTS.md (project)',
|
|
121
|
-
},
|
|
122
75
|
];
|
|
123
76
|
|
|
124
77
|
// ─── Source Path Resolution ──────────────────────────────────────
|
|
@@ -241,13 +194,10 @@ function parseArgs() {
|
|
|
241
194
|
claude: args.includes('--claude'),
|
|
242
195
|
gemini: args.includes('--gemini'),
|
|
243
196
|
agents: args.includes('--agents'),
|
|
244
|
-
cursor: args.includes('--cursor'),
|
|
245
|
-
copilot: args.includes('--copilot'),
|
|
246
197
|
windsurf: args.includes('--windsurf'),
|
|
247
|
-
codex: args.includes('--codex'),
|
|
248
198
|
};
|
|
249
199
|
|
|
250
|
-
const specificAgents = ['claude', 'gemini', 'agents', '
|
|
200
|
+
const specificAgents = ['claude', 'gemini', 'agents', 'windsurf']
|
|
251
201
|
.filter(a => flags[a]);
|
|
252
202
|
|
|
253
203
|
return { flags, specificAgents };
|
|
@@ -269,10 +219,10 @@ function showHelp() {
|
|
|
269
219
|
--claude Claude Code (~/.claude/skills/)
|
|
270
220
|
--gemini Gemini CLI (~/.gemini/skills/)
|
|
271
221
|
--agents Agent Skills universal (~/.agents/skills/)
|
|
272
|
-
--cursor Cursor (.cursor/rules/)
|
|
273
|
-
--copilot GitHub Copilot (.github/)
|
|
274
222
|
--windsurf Windsurf (.windsurfrules)
|
|
275
|
-
|
|
223
|
+
|
|
224
|
+
Note: Cursor, Copilot, Codex, and 30+ other tools use the Agent Skills
|
|
225
|
+
standard. Install with --agents to cover all of them.
|
|
276
226
|
|
|
277
227
|
Options:
|
|
278
228
|
-a, --all Install to all detected agents
|
|
@@ -480,8 +430,37 @@ async function main() {
|
|
|
480
430
|
}
|
|
481
431
|
|
|
482
432
|
// Mode 5: Non-interactive fallback (postinstall, CI)
|
|
483
|
-
|
|
484
|
-
console.
|
|
433
|
+
// Use stderr for postinstall — npm suppresses stdout from lifecycle scripts
|
|
434
|
+
const log = console.error.bind(console);
|
|
435
|
+
const version = getVersion();
|
|
436
|
+
const results = [];
|
|
437
|
+
|
|
438
|
+
for (const agent of AGENTS) {
|
|
439
|
+
if (agent.id !== 'claude') continue;
|
|
440
|
+
const destPath = agent.installPath(isProject);
|
|
441
|
+
try {
|
|
442
|
+
if (agent.format === 'skill') {
|
|
443
|
+
installSkillDir(sourcePath, destPath);
|
|
444
|
+
}
|
|
445
|
+
results.push({ agent: agent.name, path: destPath, success: true });
|
|
446
|
+
} catch (err) {
|
|
447
|
+
results.push({ agent: agent.name, path: destPath, success: false, error: err.message });
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
log('');
|
|
452
|
+
log(` \x1b[36mPrompt Architect v${version}\x1b[0m`);
|
|
453
|
+
log('');
|
|
454
|
+
for (const r of results) {
|
|
455
|
+
if (r.success) {
|
|
456
|
+
log(` \x1b[32m✓\x1b[0m ${r.agent} → ${r.path}`);
|
|
457
|
+
} else {
|
|
458
|
+
log(` \x1b[31m✗\x1b[0m ${r.agent}: ${r.error}`);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
log('');
|
|
462
|
+
log(` For multi-agent install: \x1b[36mnpx ${PACKAGE_NAME}\x1b[0m`);
|
|
463
|
+
log('');
|
|
485
464
|
}
|
|
486
465
|
|
|
487
466
|
main().catch(err => {
|