@greenrenge/skills 0.0.0-stage → 0.1.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.
- package/LICENSE +21 -0
- package/README.md +63 -2
- package/bin/cli.mjs +349 -0
- package/catalog.json +201 -0
- package/package.json +49 -4
- package/skills/deck-story/SKILL.md +258 -0
- package/skills/deck-story/check-svg-text.mjs +94 -0
- package/skills/deck-story/check.mjs +348 -0
- package/skills/diagram-router/LICENSE +21 -0
- package/skills/diagram-router/SKILL.md +193 -0
- package/skills/diagram-router/THIRD_PARTY_NOTICES.md +15 -0
- package/skills/diagram-router/references/channels.md +213 -0
- package/skills/diagram-router/references/evals.md +85 -0
- package/skills/diagram-router/references/gathering.md +101 -0
- package/skills/diagram-router/references/prior-art.md +65 -0
- package/skills/diagram-router/references/routing.md +166 -0
- package/skills/diagram-router/skill-release.json +17 -0
- package/skills/frontend-design/SKILL.md +443 -0
- package/skills/frontend-design/references/rtl.md +72 -0
- package/skills/frontend-design/scripts/.upstream-sha +1 -0
- package/skills/frontend-design/scripts/LICENSE +21 -0
- package/skills/frontend-design/scripts/README.md +24 -0
- package/skills/frontend-design/scripts/gates.md +243 -0
- package/skills/frontend-design/scripts/sloplint-render.mjs +1283 -0
- package/skills/frontend-design/scripts/sloplint.mjs +4426 -0
- package/skills/open-code-review-rules/SKILL.md +59 -0
- package/skills/open-code-review-rules/references/ocr-allowlists.json +161 -0
- package/skills/open-code-review-rules/references/ocr-rule-semantics.md +39 -0
- package/skills/open-code-review-rules/scripts/verify_ocr_rules.py +836 -0
- package/skills/plain-english-mode/SKILL.md +41 -0
- package/skills/pr-diagram-portfolio/SKILL.md +75 -0
- package/skills/pr-diagram-portfolio/references/angle-framework.md +124 -0
- package/skills/pr-diagram-portfolio/references/portfolio-delivery.md +79 -0
- package/skills/pr-diagram-portfolio/scripts/restore_still_css.py +180 -0
- package/skills/pr-lens/LICENSE-upstream +21 -0
- package/skills/pr-lens/SKILL.md +99 -0
- package/skills/pr-lens/VENDOR.md +47 -0
- package/skills/pr-lens/package-lock.json +91 -0
- package/skills/pr-lens/package.json +9 -0
- package/skills/pr-lens/references/config.md +90 -0
- package/skills/pr-lens/references/example.graph.json +580 -0
- package/skills/pr-lens/references/graph-document.md +233 -0
- package/skills/pr-lens/skill-release.json +16 -0
- package/skills/security-remediation-epic/SKILL.md +316 -0
- package/skills/security-remediation-epic/prompt-template.md +33 -0
- package/skills/skill-maintainer/SKILL.md +99 -0
- package/skills/skill-maintainer/references/placement-and-coupling.md +43 -0
- package/skills/skill-maintainer/scripts/audit_skills.py +297 -0
- package/skills/t3-successor-handoff/SKILL.md +141 -0
- package/skills/t3-thread-bridge/SKILL.md +175 -0
- package/skills/t3-thread-bridge/references/launch-recipes.md +123 -0
- package/skills/t3-thread-bridge/references/ping-back.md +108 -0
- package/skills/t3-thread-bridge/scripts/thread_ledger.py +203 -0
- package/skills/t3-ticket-orchestrator/SKILL.md +304 -0
- package/skills/t3-ticket-orchestrator/references/proving-the-gates.md +63 -0
- package/skills/ulw-plan/SKILL.md +98 -0
- package/skills/ulw-plan/references/full-workflow.md +255 -0
- package/skills/ulw-plan/references/intent-clear.md +44 -0
- package/skills/ulw-plan/references/intent-unclear.md +44 -0
- package/skills/ulw-plan/scripts/plan-templates.mjs +180 -0
- package/skills/ulw-plan/scripts/scaffold-plan.mjs +187 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 GreenRenge
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,64 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @greenrenge/skills
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Curated portable agent skills and bundles wrapped around [`skillfold`](https://www.npmjs.com/package/skillfold) for Claude Code, Codex, OpenCode, Cursor, Gemini, and T3 Code.
|
|
4
|
+
|
|
5
|
+
- **Bundled skills** ship directly inside this npm package (`npm:@greenrenge/skills/<skill>`).
|
|
6
|
+
- **Upstream third-party skills** (`archify`, `stack-diagram`, `diagram-design`, `open-code-review`, `modern-web-guidance`, Cloudflare skills) are referenced via pinned `github:` sources so this package stays tiny (~150 KB) and upstream licenses remain intact.
|
|
7
|
+
- **Lockfile-verified:** every install writes `skillfold.yaml` and `skillfold.lock` with integrity hashes.
|
|
8
|
+
|
|
9
|
+
## Quick start
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# List available bundles and skills
|
|
13
|
+
npx @greenrenge/skills list
|
|
14
|
+
|
|
15
|
+
# Install a bundle into the current repo (.claude/skills + .agents/skills)
|
|
16
|
+
npx @greenrenge/skills install diagrams
|
|
17
|
+
npx @greenrenge/skills install web-ui
|
|
18
|
+
npx @greenrenge/skills install t3-orchestration
|
|
19
|
+
|
|
20
|
+
# Install individual skills (dependencies auto-expand unless --no-deps is passed)
|
|
21
|
+
npx @greenrenge/skills install diagram-router pr-lens
|
|
22
|
+
|
|
23
|
+
# Install globally for your user profile
|
|
24
|
+
npx @greenrenge/skills install diagrams --global
|
|
25
|
+
|
|
26
|
+
# Stay in sync with new releases
|
|
27
|
+
npx @greenrenge/skills update
|
|
28
|
+
|
|
29
|
+
# Verify manifest, lockfile, and installed skills match (great in CI)
|
|
30
|
+
npx @greenrenge/skills check
|
|
31
|
+
|
|
32
|
+
# Remove a skill or bundle
|
|
33
|
+
npx @greenrenge/skills remove web-ui
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Direct `skillfold` usage
|
|
37
|
+
|
|
38
|
+
Because `package.json` declares an `"agentskills"` map, you can also use `skillfold` directly:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npx skillfold add npm:@greenrenge/skills/diagram-router
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Available bundles
|
|
45
|
+
|
|
46
|
+
| Bundle | Skills | Description |
|
|
47
|
+
|---|---|---|
|
|
48
|
+
| `core` | `skill-maintainer`, `open-code-review`, `open-code-review-delegate`, `open-code-review-rules`, `plain-english-mode`, `ulw-plan` | Core workflow skills (skill-maintainer, open-code-review suite, ulw-plan, plain-english-mode). |
|
|
49
|
+
| `diagrams` | `diagram-router`, `archify`, `stack-diagram`, `diagram-design`, `pr-lens`, `pr-diagram-portfolio`, `deck-story` | Complete diagramming & presentation suite (diagram-router + archify, stack-diagram, diagram-design, pr-lens, pr-diagram-portfolio, deck-story). |
|
|
50
|
+
| `t3-orchestration` | `security-remediation-epic`, `t3-successor-handoff`, `t3-thread-bridge`, `t3-ticket-orchestrator` | T3 Code orchestration & security remediation workflows. |
|
|
51
|
+
| `web-ui` | `frontend-design`, `modern-web-guidance` | Opt-in frontend & modern web UI bundle. |
|
|
52
|
+
| `cloudflare` | `agents-sdk`, `cf-cli`, `durable-objects`, `frameworks-on-cloudflare`, `nextjs-on-cloudflare`, `workers-best-practices`, `workers-development`, `wrangler` | Opt-in Cloudflare Workers & CLI bundle. |
|
|
53
|
+
| `all` | `core`, `diagrams`, `t3-orchestration`, `web-ui`, `cloudflare` | Every portable bundle (core + diagrams + t3-orchestration + web-ui + cloudflare). |
|
|
54
|
+
|
|
55
|
+
## Options
|
|
56
|
+
|
|
57
|
+
| Flag | Description |
|
|
58
|
+
|---|---|
|
|
59
|
+
| `--targets <list>` | Comma-separated targets: `claude`, `codex`, `cursor` (default: `claude,codex`) |
|
|
60
|
+
| `--dir <path>` | Target project directory (default: current working directory) |
|
|
61
|
+
| `-g, --global` | Install into global `skillfold` config (`~/.config/skillfold`) |
|
|
62
|
+
| `--no-deps` | Do not auto-expand `dependsOn` skills |
|
|
63
|
+
| `--force` | Overwrite unmanaged skill directories |
|
|
64
|
+
| `--frozen` | Pass `--frozen` to `skillfold install` |
|
package/bin/cli.mjs
ADDED
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { execFileSync } from "node:child_process";
|
|
3
|
+
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
4
|
+
import { dirname, join, resolve } from "node:path";
|
|
5
|
+
import { fileURLToPath } from "node:url";
|
|
6
|
+
import {
|
|
7
|
+
MANIFEST_FILENAME,
|
|
8
|
+
TARGET_NAMES,
|
|
9
|
+
addSkillToManifest,
|
|
10
|
+
globalConfigRoot,
|
|
11
|
+
loadManifest,
|
|
12
|
+
removeSkillFromManifest,
|
|
13
|
+
} from "skillfold";
|
|
14
|
+
|
|
15
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
16
|
+
const PKG_ROOT = resolve(__dirname, "..");
|
|
17
|
+
const pkgJson = JSON.parse(readFileSync(join(PKG_ROOT, "package.json"), "utf8"));
|
|
18
|
+
const catalog = JSON.parse(readFileSync(join(PKG_ROOT, "catalog.json"), "utf8"));
|
|
19
|
+
|
|
20
|
+
const skillfoldEntry = fileURLToPath(import.meta.resolve("skillfold"));
|
|
21
|
+
const SKILLFOLD_BIN = join(dirname(skillfoldEntry), "cli.js");
|
|
22
|
+
|
|
23
|
+
function usage() {
|
|
24
|
+
const name = pkgJson.name;
|
|
25
|
+
console.log(`${name} v${pkgJson.version} — curated agent skills & bundles over skillfold
|
|
26
|
+
|
|
27
|
+
Usage
|
|
28
|
+
npx ${name} list
|
|
29
|
+
npx ${name} info <bundle-or-skill>
|
|
30
|
+
npx ${name} install <bundle-or-skill...> [options]
|
|
31
|
+
npx ${name} update [skill...] [options]
|
|
32
|
+
npx ${name} remove <bundle-or-skill...> [options]
|
|
33
|
+
npx ${name} check [options]
|
|
34
|
+
|
|
35
|
+
Options
|
|
36
|
+
--targets <list> Comma-separated targets: ${TARGET_NAMES.join(", ")} (default: claude,codex)
|
|
37
|
+
--dir <path> Project directory (default: current directory)
|
|
38
|
+
-g, --global Use global skillfold config (~/.config/skillfold)
|
|
39
|
+
--no-deps Skip automatic dependsOn expansion
|
|
40
|
+
--force Overwrite unmanaged skill directories
|
|
41
|
+
--frozen Pass --frozen to skillfold install
|
|
42
|
+
--local Resolve bundled skills from this package's local path (for testing)
|
|
43
|
+
-v, --version Print version
|
|
44
|
+
-h, --help Show this help
|
|
45
|
+
|
|
46
|
+
Examples
|
|
47
|
+
npx ${name} install diagrams
|
|
48
|
+
npx ${name} install web-ui --targets claude,codex
|
|
49
|
+
npx ${name} install diagram-router pr-lens
|
|
50
|
+
npx ${name} update
|
|
51
|
+
npx ${name} check`);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function parseArgs(argv) {
|
|
55
|
+
const positionals = [];
|
|
56
|
+
const flags = {
|
|
57
|
+
targets: null,
|
|
58
|
+
dir: null,
|
|
59
|
+
global: false,
|
|
60
|
+
noDeps: false,
|
|
61
|
+
force: false,
|
|
62
|
+
frozen: false,
|
|
63
|
+
local: false,
|
|
64
|
+
help: false,
|
|
65
|
+
version: false,
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
for (let i = 0; i < argv.length; i++) {
|
|
69
|
+
const arg = argv[i];
|
|
70
|
+
if (arg === "-h" || arg === "--help") {
|
|
71
|
+
flags.help = true;
|
|
72
|
+
} else if (arg === "-v" || arg === "--version") {
|
|
73
|
+
flags.version = true;
|
|
74
|
+
} else if (arg === "-g" || arg === "--global") {
|
|
75
|
+
flags.global = true;
|
|
76
|
+
} else if (arg === "--no-deps") {
|
|
77
|
+
flags.noDeps = true;
|
|
78
|
+
} else if (arg === "--force") {
|
|
79
|
+
flags.force = true;
|
|
80
|
+
} else if (arg === "--frozen") {
|
|
81
|
+
flags.frozen = true;
|
|
82
|
+
} else if (arg === "--local") {
|
|
83
|
+
flags.local = true;
|
|
84
|
+
} else if (arg === "--dir") {
|
|
85
|
+
flags.dir = argv[++i];
|
|
86
|
+
if (!flags.dir) die("--dir requires a path");
|
|
87
|
+
} else if (arg.startsWith("--dir=")) {
|
|
88
|
+
flags.dir = arg.slice("--dir=".length);
|
|
89
|
+
} else if (arg === "--targets") {
|
|
90
|
+
flags.targets = argv[++i];
|
|
91
|
+
if (!flags.targets) die("--targets requires a comma-separated list");
|
|
92
|
+
} else if (arg.startsWith("--targets=")) {
|
|
93
|
+
flags.targets = arg.slice("--targets=".length);
|
|
94
|
+
} else if (arg.startsWith("-")) {
|
|
95
|
+
die(`Unknown option: ${arg}`);
|
|
96
|
+
} else {
|
|
97
|
+
positionals.push(arg);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return { command: positionals[0], args: positionals.slice(1), flags };
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function die(msg) {
|
|
104
|
+
console.error(`error: ${msg}`);
|
|
105
|
+
process.exit(1);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function parseTargetsList(raw) {
|
|
109
|
+
if (!raw) return ["claude", "codex"];
|
|
110
|
+
const parts = raw
|
|
111
|
+
.split(",")
|
|
112
|
+
.map((s) => s.trim())
|
|
113
|
+
.filter(Boolean);
|
|
114
|
+
if (parts.length === 0) die("--targets must not be empty");
|
|
115
|
+
for (const t of parts) {
|
|
116
|
+
if (!TARGET_NAMES.includes(t)) {
|
|
117
|
+
die(`Unknown target "${t}". Expected one of: ${TARGET_NAMES.join(", ")}`);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return [...new Set(parts)];
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function expandNames(names, { includeDeps = true } = {}) {
|
|
124
|
+
const ordered = [];
|
|
125
|
+
const seen = new Set();
|
|
126
|
+
const stack = new Set();
|
|
127
|
+
|
|
128
|
+
function visit(name) {
|
|
129
|
+
if (seen.has(name)) return;
|
|
130
|
+
if (stack.has(name)) die(`Cycle detected while expanding "${name}"`);
|
|
131
|
+
stack.add(name);
|
|
132
|
+
|
|
133
|
+
if (catalog.bundles[name]) {
|
|
134
|
+
for (const item of catalog.bundles[name].items) {
|
|
135
|
+
visit(item);
|
|
136
|
+
}
|
|
137
|
+
stack.delete(name);
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const skill = catalog.skills[name];
|
|
142
|
+
if (!skill) {
|
|
143
|
+
const bundleNames = Object.keys(catalog.bundles).join(", ");
|
|
144
|
+
die(`Unknown skill or bundle "${name}". Run "list" to inspect available bundles (${bundleNames}) and skills.`);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
if (includeDeps && Array.isArray(skill.dependsOn)) {
|
|
148
|
+
for (const dep of skill.dependsOn) {
|
|
149
|
+
visit(dep);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
stack.delete(name);
|
|
154
|
+
seen.add(name);
|
|
155
|
+
ordered.push(name);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
for (const n of names) visit(n);
|
|
159
|
+
return ordered;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
function skillSource(name, { local = false } = {}) {
|
|
163
|
+
const skill = catalog.skills[name];
|
|
164
|
+
if (skill.kind === "bundled") {
|
|
165
|
+
if (local) {
|
|
166
|
+
return join(PKG_ROOT, "skills", name);
|
|
167
|
+
}
|
|
168
|
+
return `npm:${pkgJson.name}/${name}`;
|
|
169
|
+
}
|
|
170
|
+
return skill.source;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
function resolveRoot(flags) {
|
|
174
|
+
if (flags.global) return globalConfigRoot();
|
|
175
|
+
return resolve(flags.dir ?? process.cwd());
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
function ensureManifest(root, targets, explicitTargets) {
|
|
179
|
+
mkdirSync(root, { recursive: true });
|
|
180
|
+
const manifestPath = join(root, MANIFEST_FILENAME);
|
|
181
|
+
if (!existsSync(manifestPath)) {
|
|
182
|
+
const content = [
|
|
183
|
+
`# Managed via ${pkgJson.name} (skillfold)`,
|
|
184
|
+
`targets: [${targets.join(", ")}]`,
|
|
185
|
+
"",
|
|
186
|
+
].join("\n");
|
|
187
|
+
writeFileSync(manifestPath, content, "utf8");
|
|
188
|
+
return manifestPath;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if (explicitTargets) {
|
|
192
|
+
const existing = readFileSync(manifestPath, "utf8");
|
|
193
|
+
const targetLine = `targets: [${targets.join(", ")}]`;
|
|
194
|
+
let updated;
|
|
195
|
+
if (/^targets:.*$/m.test(existing)) {
|
|
196
|
+
updated = existing.replace(/^targets:.*$/m, targetLine);
|
|
197
|
+
} else {
|
|
198
|
+
updated = `${targetLine}\n${existing}`;
|
|
199
|
+
}
|
|
200
|
+
writeFileSync(manifestPath, updated, "utf8");
|
|
201
|
+
}
|
|
202
|
+
return manifestPath;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
function runSkillfold(sfArgs, flags) {
|
|
206
|
+
const cmdArgs = [SKILLFOLD_BIN, ...sfArgs];
|
|
207
|
+
if (flags.global) {
|
|
208
|
+
cmdArgs.push("--global");
|
|
209
|
+
} else if (flags.dir) {
|
|
210
|
+
cmdArgs.push("--dir", resolve(flags.dir));
|
|
211
|
+
}
|
|
212
|
+
if (flags.force && (sfArgs[0] === "install" || sfArgs[0] === "update")) {
|
|
213
|
+
cmdArgs.push("--force");
|
|
214
|
+
}
|
|
215
|
+
if (flags.frozen && sfArgs[0] === "install") {
|
|
216
|
+
cmdArgs.push("--frozen");
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
try {
|
|
220
|
+
execFileSync(process.execPath, cmdArgs, { stdio: "inherit" });
|
|
221
|
+
} catch (err) {
|
|
222
|
+
process.exit(typeof err.status === "number" ? err.status : 1);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
function cmdList() {
|
|
227
|
+
console.log(`${pkgJson.name} v${pkgJson.version}\n`);
|
|
228
|
+
console.log("Bundles:");
|
|
229
|
+
for (const [name, bundle] of Object.entries(catalog.bundles)) {
|
|
230
|
+
const expanded = expandNames([name], { includeDeps: false });
|
|
231
|
+
console.log(` ${name.padEnd(18)} (${expanded.length} skills) ${bundle.description}`);
|
|
232
|
+
}
|
|
233
|
+
console.log("\nSkills:");
|
|
234
|
+
for (const [name, skill] of Object.entries(catalog.skills)) {
|
|
235
|
+
const tag = skill.kind === "bundled" ? "[bundled] " : "[upstream]";
|
|
236
|
+
const deps = skill.dependsOn?.length ? ` (deps: ${skill.dependsOn.join(", ")})` : "";
|
|
237
|
+
console.log(` ${name.padEnd(28)} ${tag} ${skill.description}${deps}`);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
function cmdInfo(args) {
|
|
242
|
+
if (args.length !== 1) die("usage: info <bundle-or-skill>");
|
|
243
|
+
const name = args[0];
|
|
244
|
+
if (catalog.bundles[name]) {
|
|
245
|
+
const b = catalog.bundles[name];
|
|
246
|
+
const resolved = expandNames([name], { includeDeps: true });
|
|
247
|
+
console.log(`Bundle: ${name}`);
|
|
248
|
+
console.log(`Description: ${b.description}`);
|
|
249
|
+
console.log(`Items: ${b.items.join(", ")}`);
|
|
250
|
+
console.log(`Expanded skills (${resolved.length}): ${resolved.join(", ")}`);
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
const s = catalog.skills[name];
|
|
254
|
+
if (!s) die(`Unknown bundle or skill "${name}"`);
|
|
255
|
+
console.log(`Skill: ${name}`);
|
|
256
|
+
console.log(`Kind: ${s.kind}`);
|
|
257
|
+
console.log(`Source: ${skillSource(name)}`);
|
|
258
|
+
console.log(`Description: ${s.description}`);
|
|
259
|
+
if (s.dependsOn?.length) {
|
|
260
|
+
console.log(`Depends on: ${s.dependsOn.join(", ")}`);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
function cmdInstall(args, flags) {
|
|
265
|
+
if (args.length === 0) {
|
|
266
|
+
die('Specify at least one bundle or skill (e.g. "install diagrams"). Run "list" to see options.');
|
|
267
|
+
}
|
|
268
|
+
const skills = expandNames(args, { includeDeps: !flags.noDeps });
|
|
269
|
+
const targets = parseTargetsList(flags.targets);
|
|
270
|
+
const root = resolveRoot(flags);
|
|
271
|
+
const manifestPath = ensureManifest(root, targets, flags.targets !== null);
|
|
272
|
+
|
|
273
|
+
console.log(`Adding ${skills.length} skill(s) to ${manifestPath}:`);
|
|
274
|
+
for (const name of skills) {
|
|
275
|
+
const src = skillSource(name, { local: flags.local });
|
|
276
|
+
addSkillToManifest(manifestPath, name, src);
|
|
277
|
+
console.log(` + ${name}: ${src}`);
|
|
278
|
+
}
|
|
279
|
+
console.log("");
|
|
280
|
+
runSkillfold(["install"], flags);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
function cmdRemove(args, flags) {
|
|
284
|
+
if (args.length === 0) {
|
|
285
|
+
die('Specify at least one bundle or skill to remove (e.g. "remove web-ui").');
|
|
286
|
+
}
|
|
287
|
+
const skills = expandNames(args, { includeDeps: false });
|
|
288
|
+
const root = resolveRoot(flags);
|
|
289
|
+
const manifestPath = join(root, MANIFEST_FILENAME);
|
|
290
|
+
if (!existsSync(manifestPath)) {
|
|
291
|
+
die(`No ${MANIFEST_FILENAME} found in ${root}`);
|
|
292
|
+
}
|
|
293
|
+
const manifest = loadManifest(manifestPath);
|
|
294
|
+
let removed = 0;
|
|
295
|
+
for (const name of skills) {
|
|
296
|
+
if (manifest.skills[name] || manifest.compose?.[name]) {
|
|
297
|
+
removeSkillFromManifest(manifestPath, name);
|
|
298
|
+
console.log(` - removed ${name}`);
|
|
299
|
+
removed++;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
if (removed === 0) {
|
|
303
|
+
console.log("Nothing to remove (none of the named skills were declared in skillfold.yaml).");
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
console.log("");
|
|
307
|
+
runSkillfold(["install"], flags);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
function main() {
|
|
311
|
+
const { command, args, flags } = parseArgs(process.argv.slice(2));
|
|
312
|
+
if (flags.version) {
|
|
313
|
+
console.log(pkgJson.version);
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
if (flags.help || !command) {
|
|
317
|
+
usage();
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
switch (command) {
|
|
322
|
+
case "list":
|
|
323
|
+
case "ls":
|
|
324
|
+
cmdList();
|
|
325
|
+
break;
|
|
326
|
+
case "info":
|
|
327
|
+
cmdInfo(args);
|
|
328
|
+
break;
|
|
329
|
+
case "install":
|
|
330
|
+
case "add":
|
|
331
|
+
cmdInstall(args, flags);
|
|
332
|
+
break;
|
|
333
|
+
case "update":
|
|
334
|
+
case "sync":
|
|
335
|
+
runSkillfold(["update", ...args], flags);
|
|
336
|
+
break;
|
|
337
|
+
case "remove":
|
|
338
|
+
case "rm":
|
|
339
|
+
cmdRemove(args, flags);
|
|
340
|
+
break;
|
|
341
|
+
case "check":
|
|
342
|
+
runSkillfold(["check"], flags);
|
|
343
|
+
break;
|
|
344
|
+
default:
|
|
345
|
+
die(`Unknown command "${command}". Run with --help to see available commands.`);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
main();
|
package/catalog.json
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bundles": {
|
|
3
|
+
"core": {
|
|
4
|
+
"description": "Core workflow skills (skill-maintainer, open-code-review suite, ulw-plan, plain-english-mode).",
|
|
5
|
+
"items": [
|
|
6
|
+
"skill-maintainer",
|
|
7
|
+
"open-code-review",
|
|
8
|
+
"open-code-review-delegate",
|
|
9
|
+
"open-code-review-rules",
|
|
10
|
+
"plain-english-mode",
|
|
11
|
+
"ulw-plan"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"diagrams": {
|
|
15
|
+
"description": "Complete diagramming & presentation suite (diagram-router + archify, stack-diagram, diagram-design, pr-lens, pr-diagram-portfolio, deck-story).",
|
|
16
|
+
"items": [
|
|
17
|
+
"diagram-router",
|
|
18
|
+
"archify",
|
|
19
|
+
"stack-diagram",
|
|
20
|
+
"diagram-design",
|
|
21
|
+
"pr-lens",
|
|
22
|
+
"pr-diagram-portfolio",
|
|
23
|
+
"deck-story"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"t3-orchestration": {
|
|
27
|
+
"description": "T3 Code orchestration & security remediation workflows.",
|
|
28
|
+
"items": [
|
|
29
|
+
"security-remediation-epic",
|
|
30
|
+
"t3-successor-handoff",
|
|
31
|
+
"t3-thread-bridge",
|
|
32
|
+
"t3-ticket-orchestrator"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"web-ui": {
|
|
36
|
+
"description": "Opt-in frontend & modern web UI bundle.",
|
|
37
|
+
"items": [
|
|
38
|
+
"frontend-design",
|
|
39
|
+
"modern-web-guidance"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"cloudflare": {
|
|
43
|
+
"description": "Opt-in Cloudflare Workers & CLI bundle.",
|
|
44
|
+
"items": [
|
|
45
|
+
"agents-sdk",
|
|
46
|
+
"cf-cli",
|
|
47
|
+
"durable-objects",
|
|
48
|
+
"frameworks-on-cloudflare",
|
|
49
|
+
"nextjs-on-cloudflare",
|
|
50
|
+
"workers-best-practices",
|
|
51
|
+
"workers-development",
|
|
52
|
+
"wrangler"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"all": {
|
|
56
|
+
"description": "Every portable bundle (core + diagrams + t3-orchestration + web-ui + cloudflare).",
|
|
57
|
+
"items": [
|
|
58
|
+
"core",
|
|
59
|
+
"diagrams",
|
|
60
|
+
"t3-orchestration",
|
|
61
|
+
"web-ui",
|
|
62
|
+
"cloudflare"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"skills": {
|
|
67
|
+
"skill-maintainer": {
|
|
68
|
+
"kind": "bundled",
|
|
69
|
+
"description": "Create, edit, audit, and maintain agent skills with skillfold."
|
|
70
|
+
},
|
|
71
|
+
"open-code-review-rules": {
|
|
72
|
+
"kind": "bundled",
|
|
73
|
+
"description": "Audit, author, and verify .opencodereview/rule.json for alibaba/open-code-review."
|
|
74
|
+
},
|
|
75
|
+
"plain-english-mode": {
|
|
76
|
+
"kind": "bundled",
|
|
77
|
+
"description": "Plain-English communication mode with glossary and concrete examples."
|
|
78
|
+
},
|
|
79
|
+
"ulw-plan": {
|
|
80
|
+
"kind": "bundled",
|
|
81
|
+
"description": "Explore-first planning consultant that writes one decision-complete work plan before coding."
|
|
82
|
+
},
|
|
83
|
+
"diagram-router": {
|
|
84
|
+
"kind": "bundled",
|
|
85
|
+
"description": "Routes diagram requests across archify, stack-diagram, diagram-design, and pr-lens.",
|
|
86
|
+
"dependsOn": [
|
|
87
|
+
"archify",
|
|
88
|
+
"stack-diagram",
|
|
89
|
+
"diagram-design"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"pr-diagram-portfolio": {
|
|
93
|
+
"kind": "bundled",
|
|
94
|
+
"description": "Explain a PR or code change as a portfolio of diagrams in one self-contained HTML page.",
|
|
95
|
+
"dependsOn": [
|
|
96
|
+
"diagram-router"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"deck-story": {
|
|
100
|
+
"kind": "bundled",
|
|
101
|
+
"description": "Turn material into an assertion-titled HTML slide deck with QA checks.",
|
|
102
|
+
"dependsOn": [
|
|
103
|
+
"diagram-router"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
"pr-lens": {
|
|
107
|
+
"kind": "bundled",
|
|
108
|
+
"description": "Deterministic PR architecture and data-flow SVG diagrams with GitHub delta semantics."
|
|
109
|
+
},
|
|
110
|
+
"security-remediation-epic": {
|
|
111
|
+
"kind": "bundled",
|
|
112
|
+
"description": "Five-phase dependency-vulnerability remediation run (discover, exposure, matrix, fix, verify)."
|
|
113
|
+
},
|
|
114
|
+
"t3-successor-handoff": {
|
|
115
|
+
"kind": "bundled",
|
|
116
|
+
"description": "Hand an ending T3 thread's run and PR watches cleanly to a successor thread."
|
|
117
|
+
},
|
|
118
|
+
"t3-thread-bridge": {
|
|
119
|
+
"kind": "bundled",
|
|
120
|
+
"description": "Launch, track, and collect work from background T3 Code threads."
|
|
121
|
+
},
|
|
122
|
+
"t3-ticket-orchestrator": {
|
|
123
|
+
"kind": "bundled",
|
|
124
|
+
"description": "Repo-agnostic ticket-queue orchestrator driving tracker tickets through top-level T3 threads."
|
|
125
|
+
},
|
|
126
|
+
"frontend-design": {
|
|
127
|
+
"kind": "bundled",
|
|
128
|
+
"description": "Direction-before-code web UI design and refactor skill with anti-slop gates."
|
|
129
|
+
},
|
|
130
|
+
"archify": {
|
|
131
|
+
"kind": "upstream",
|
|
132
|
+
"source": "github:tt-a1i/archify/archify@3dccf81688933b5a019b2487c806ccf2c54e840b",
|
|
133
|
+
"description": "Explorable interactive architecture, sequence, ERD, and code-analysis HTML diagrams."
|
|
134
|
+
},
|
|
135
|
+
"stack-diagram": {
|
|
136
|
+
"kind": "upstream",
|
|
137
|
+
"source": "github:caru-ini/stack-diagram/skills/stack-diagram@1b375941783ff0b1503b91afa079cdf59a966523",
|
|
138
|
+
"description": "Cloud-architecture-style tech stack and service topology diagrams with brand logos."
|
|
139
|
+
},
|
|
140
|
+
"diagram-design": {
|
|
141
|
+
"kind": "upstream",
|
|
142
|
+
"source": "github:cathrynlavery/diagram-design/skills/diagram-design@f24d98b05e2d7a5e68c2dedfe46e5b7173f50118",
|
|
143
|
+
"description": "Editorial and branded diagrams across 40+ chart and diagram types."
|
|
144
|
+
},
|
|
145
|
+
"open-code-review": {
|
|
146
|
+
"kind": "upstream",
|
|
147
|
+
"source": "github:alibaba/open-code-review/skills/open-code-review@2b11672e6a8613c3feccde776f8c2bc1d217e089",
|
|
148
|
+
"description": "AI-powered code review on Git diffs using the ocr CLI."
|
|
149
|
+
},
|
|
150
|
+
"open-code-review-delegate": {
|
|
151
|
+
"kind": "upstream",
|
|
152
|
+
"source": "github:alibaba/open-code-review/skills/open-code-review-delegate@2b11672e6a8613c3feccde776f8c2bc1d217e089",
|
|
153
|
+
"description": "Delegation mode for open-code-review where the host agent performs the review."
|
|
154
|
+
},
|
|
155
|
+
"modern-web-guidance": {
|
|
156
|
+
"kind": "upstream",
|
|
157
|
+
"source": "github:GoogleChrome/modern-web-guidance/skills/modern-web-guidance@2b4aa13a72dd47cd135b06ce5abfccd92e19b24f",
|
|
158
|
+
"description": "Modern HTML, CSS, and client-side Web API best practices from Chrome."
|
|
159
|
+
},
|
|
160
|
+
"agents-sdk": {
|
|
161
|
+
"kind": "upstream",
|
|
162
|
+
"source": "github:cloudflare/skills/skills/agents-sdk@ff191de7d903788eceaf516a514ae7d3b56b924a",
|
|
163
|
+
"description": "Cloudflare Agents SDK."
|
|
164
|
+
},
|
|
165
|
+
"cf-cli": {
|
|
166
|
+
"kind": "upstream",
|
|
167
|
+
"source": "github:cloudflare/skills/skills/cf-cli@ff191de7d903788eceaf516a514ae7d3b56b924a",
|
|
168
|
+
"description": "Cloudflare cf CLI."
|
|
169
|
+
},
|
|
170
|
+
"durable-objects": {
|
|
171
|
+
"kind": "upstream",
|
|
172
|
+
"source": "github:cloudflare/skills/skills/durable-objects@ff191de7d903788eceaf516a514ae7d3b56b924a",
|
|
173
|
+
"description": "Cloudflare Durable Objects."
|
|
174
|
+
},
|
|
175
|
+
"frameworks-on-cloudflare": {
|
|
176
|
+
"kind": "upstream",
|
|
177
|
+
"source": "github:cloudflare/skills/skills/frameworks-on-cloudflare@ff191de7d903788eceaf516a514ae7d3b56b924a",
|
|
178
|
+
"description": "Web frameworks on Cloudflare Workers."
|
|
179
|
+
},
|
|
180
|
+
"nextjs-on-cloudflare": {
|
|
181
|
+
"kind": "upstream",
|
|
182
|
+
"source": "github:cloudflare/skills/skills/nextjs-on-cloudflare@ff191de7d903788eceaf516a514ae7d3b56b924a",
|
|
183
|
+
"description": "Next.js on Cloudflare Workers."
|
|
184
|
+
},
|
|
185
|
+
"workers-best-practices": {
|
|
186
|
+
"kind": "upstream",
|
|
187
|
+
"source": "github:cloudflare/skills/skills/workers-best-practices@ff191de7d903788eceaf516a514ae7d3b56b924a",
|
|
188
|
+
"description": "Cloudflare Workers production best practices."
|
|
189
|
+
},
|
|
190
|
+
"workers-development": {
|
|
191
|
+
"kind": "upstream",
|
|
192
|
+
"source": "github:cloudflare/skills/skills/workers-development@ff191de7d903788eceaf516a514ae7d3b56b924a",
|
|
193
|
+
"description": "Cloudflare Workers local development and debugging."
|
|
194
|
+
},
|
|
195
|
+
"wrangler": {
|
|
196
|
+
"kind": "upstream",
|
|
197
|
+
"source": "github:cloudflare/skills/skills/wrangler@ff191de7d903788eceaf516a514ae7d3b56b924a",
|
|
198
|
+
"description": "Cloudflare Wrangler CLI."
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@greenrenge/skills",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Curated portable agent skills & bundles wrapped around skillfold (Claude Code, Codex, OpenCode, Cursor, Gemini).",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "GreenRenge",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=20"
|
|
10
|
+
},
|
|
11
|
+
"bin": {
|
|
12
|
+
"greenrenge-skills": "./bin/cli.mjs"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"bin",
|
|
16
|
+
"skills",
|
|
17
|
+
"catalog.json",
|
|
18
|
+
"README.md",
|
|
19
|
+
"LICENSE"
|
|
20
|
+
],
|
|
21
|
+
"keywords": [
|
|
22
|
+
"agent-skills",
|
|
23
|
+
"agentskills",
|
|
24
|
+
"skillfold",
|
|
25
|
+
"skillfold-skill",
|
|
26
|
+
"claude-code",
|
|
27
|
+
"codex",
|
|
28
|
+
"opencode",
|
|
29
|
+
"cursor",
|
|
30
|
+
"skill-md"
|
|
31
|
+
],
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"skillfold": "^2.9.0"
|
|
34
|
+
},
|
|
35
|
+
"agentskills": {
|
|
36
|
+
"skill-maintainer": "./skills/skill-maintainer",
|
|
37
|
+
"open-code-review-rules": "./skills/open-code-review-rules",
|
|
38
|
+
"plain-english-mode": "./skills/plain-english-mode",
|
|
39
|
+
"ulw-plan": "./skills/ulw-plan",
|
|
40
|
+
"diagram-router": "./skills/diagram-router",
|
|
41
|
+
"pr-diagram-portfolio": "./skills/pr-diagram-portfolio",
|
|
42
|
+
"deck-story": "./skills/deck-story",
|
|
43
|
+
"pr-lens": "./skills/pr-lens",
|
|
44
|
+
"security-remediation-epic": "./skills/security-remediation-epic",
|
|
45
|
+
"t3-successor-handoff": "./skills/t3-successor-handoff",
|
|
46
|
+
"t3-thread-bridge": "./skills/t3-thread-bridge",
|
|
47
|
+
"t3-ticket-orchestrator": "./skills/t3-ticket-orchestrator",
|
|
48
|
+
"frontend-design": "./skills/frontend-design"
|
|
49
|
+
},
|
|
50
|
+
"greenrengeContentDigest": "341da3ad7e7dfd0ee27530e47d7d8a64cb3ab673817dd8f24356e7e676c18394"
|
|
51
|
+
}
|