@greenrenge/skills 0.1.0 → 0.3.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/README.md +84 -23
- package/bin/cli.mjs +414 -123
- package/bin/lib/onboard.mjs +1179 -0
- package/bin/lib/probe.mjs +782 -0
- package/bin/lib/recipes/index.mjs +57 -0
- package/bin/lib/recipes/security-cron.mjs +1140 -0
- package/catalog.json +501 -51
- package/package.json +10 -8
- package/skills/security-remediation-epic/prompt-template.md +87 -20
- package/skills/ticket-orchestrator/SKILL.md +349 -0
- package/skills/ticket-orchestrator/references/proving-the-gates.md +63 -0
- package/skills/ticket-scheme/SKILL.md +144 -0
package/README.md
CHANGED
|
@@ -1,38 +1,85 @@
|
|
|
1
1
|
# @greenrenge/skills
|
|
2
2
|
|
|
3
|
-
Curated portable agent skills
|
|
3
|
+
Curated portable agent skills, categorized bundles, host preflight checks, and an interactive onboarding CLI wrapped around [`skillfold`](https://www.npmjs.com/package/skillfold) for Claude Code, Codex, OpenCode, Cursor, Gemini, and T3 Code.
|
|
4
4
|
|
|
5
|
-
- **
|
|
6
|
-
- **
|
|
5
|
+
- **Categorized installs with dependency trees:** see exactly which category each skill belongs to and why transitive dependencies are pulled in.
|
|
6
|
+
- **OCR CLI, host-fact & Run-Contract onboarding:** automatically probes local runtimes/tools (`node`, `python3`, `git`, `gh`, `ocr`, `chromium`, `magick`, `playwright`, `wrangler`, `cf`, `osv-scanner`) and scaffolds personal user-scoped host facts (`~/.agents/rules/host-<hostname>.md`) or per-repo Run Contracts when selected skills need them.
|
|
7
|
+
- **Bundled + pinned upstream skills:** bundled skills ship directly inside this npm package (`npm:@greenrenge/skills/<skill>`); upstream skills are referenced via pinned `github:` commits so the package stays tiny and upstream licenses remain intact.
|
|
7
8
|
- **Lockfile-verified:** every install writes `skillfold.yaml` and `skillfold.lock` with integrity hashes.
|
|
8
9
|
|
|
9
10
|
## Quick start
|
|
10
11
|
|
|
11
12
|
```bash
|
|
12
|
-
#
|
|
13
|
+
# Guided interactive onboarding (category picker + dependency tree + host profile setup)
|
|
14
|
+
npx @greenrenge/skills onboard
|
|
15
|
+
# (or simply run `npx @greenrenge/skills` in an interactive terminal)
|
|
16
|
+
|
|
17
|
+
# Browse categories, bundles, and skills with dependency & host-fact badges
|
|
13
18
|
npx @greenrenge/skills list
|
|
14
19
|
|
|
15
|
-
#
|
|
20
|
+
# Inspect a category, bundle, or individual skill
|
|
21
|
+
npx @greenrenge/skills info diagrams
|
|
22
|
+
npx @greenrenge/skills info pr-diagram-portfolio
|
|
23
|
+
|
|
24
|
+
# Install a category or individual skill (transitive dependencies auto-expand)
|
|
16
25
|
npx @greenrenge/skills install diagrams
|
|
26
|
+
npx @greenrenge/skills install pr-diagram-portfolio
|
|
17
27
|
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
28
|
|
|
23
29
|
# Install globally for your user profile
|
|
24
|
-
npx @greenrenge/skills install diagrams --global
|
|
30
|
+
npx @greenrenge/skills install workflow diagrams --global
|
|
31
|
+
|
|
32
|
+
# Check your machine against installed skills (and scaffold missing host facts)
|
|
33
|
+
npx @greenrenge/skills doctor
|
|
34
|
+
npx @greenrenge/skills doctor --setup-ocr
|
|
35
|
+
npx @greenrenge/skills doctor --setup-host
|
|
25
36
|
|
|
26
37
|
# Stay in sync with new releases
|
|
27
38
|
npx @greenrenge/skills update
|
|
28
39
|
|
|
29
|
-
# Verify manifest, lockfile, and installed
|
|
40
|
+
# Verify manifest, lockfile, and installed targets match (great in CI)
|
|
30
41
|
npx @greenrenge/skills check
|
|
31
42
|
|
|
32
|
-
# Remove a
|
|
43
|
+
# Remove a category, bundle, or skill
|
|
33
44
|
npx @greenrenge/skills remove web-ui
|
|
34
45
|
```
|
|
35
46
|
|
|
47
|
+
## OCR CLI, Host facts & Run Contracts
|
|
48
|
+
|
|
49
|
+
Some skill categories need local tools or environment-specific facts:
|
|
50
|
+
|
|
51
|
+
- **Open Code Review (`ocr`) CLI** — used by the `ocr` category (`open-code-review`, `open-code-review-delegate`). `onboard` and `doctor --setup-ocr` detect missing `ocr` or unconfigured `~/.opencodereview/config.json`, offer to install `@alibaba-group/open-code-review` globally, and guide `ocr config provider` + `ocr llm test`.
|
|
52
|
+
|
|
53
|
+
- **Host Profile (`~/.agents/rules/host-<hostname>.md`)** — used by diagram/deck skills (`diagram-router`, `archify`, `stack-diagram`, `diagram-design`, `pr-lens`, `deck-story`) to locate your local headless Chromium/Chrome binary, PNG renderer fallback, and scratch temp dir. Always written to **user scope** (and linked into `~/.claude/rules/` if `~/.claude` exists) so machine-specific paths never leak into shared repositories.
|
|
54
|
+
- **Orchestrator Run Contract (`~/.agents/rules/<repo>-contract.md` or `docs/agents/orchestrator-contract.md`)** — used by `ticket-orchestrator` and `t3-ticket-orchestrator` to supply repo-specific `target_branch`, `bootstrap_command`, `verify_targets`, and gate paths.
|
|
55
|
+
|
|
56
|
+
Run `npx @greenrenge/skills onboard` or `npx @greenrenge/skills doctor --setup-host` to detect and generate these automatically.
|
|
57
|
+
|
|
58
|
+
## Dedicated recipes (custom CLI flows)
|
|
59
|
+
|
|
60
|
+
Recipes compose an **overlapping, harness-aware slice of skills** alongside a tailored preflight probe, prompt renderer, and scheduler wiring:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# List dedicated recipes
|
|
64
|
+
npx @greenrenge/skills setup
|
|
65
|
+
|
|
66
|
+
# Interactive setup for scheduled security remediation
|
|
67
|
+
npx @greenrenge/skills security-cron
|
|
68
|
+
|
|
69
|
+
# Non-interactive examples across all 5 schedule backends
|
|
70
|
+
npx @greenrenge/skills security-cron --harness t3 --schedule t3 --time 04:00 --yes
|
|
71
|
+
npx @greenrenge/skills security-cron --harness claude --schedule claude-code --yes
|
|
72
|
+
npx @greenrenge/skills security-cron --harness codex --schedule os-cron --os-scheduler systemd --yes
|
|
73
|
+
npx @greenrenge/skills security-cron --harness claude --schedule github-actions --cron "0 2 * * 1" --yes
|
|
74
|
+
npx @greenrenge/skills security-cron --harness generic --schedule prompt-only --yes
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**Turnkey GitHub Actions cron:** running `npx @greenrenge/skills security-cron --schedule github-actions` installs the skills into your repo (`skillfold.yaml` + `skillfold.lock`), renders `.agents/prompts/security-remediation.md`, and writes `.github/workflows/security-remediation-cron.yml`. Commit those files and set your provider API key secret (`ANTHROPIC_API_KEY` or `OPENAI_API_KEY`, plus optional `SECURITY_BOT_PAT` for Dependabot API & PR CI triggers) — ready to run on cron or `workflow_dispatch` (with a `dry_run` toggle).
|
|
78
|
+
|
|
79
|
+
| Recipe | Command | Overlapping skills | Schedules |
|
|
80
|
+
|---|---|---|---|
|
|
81
|
+
| `security-cron` — Scheduled Security Remediation | `npx @greenrenge/skills security-cron` | `security-remediation-epic`, `ticket-orchestrator`, `ticket-scheme` (+ optional `t3`, `ocr`) | `t3`, `claude-code`, `os-cron`, `github-actions`, `prompt-only` |
|
|
82
|
+
|
|
36
83
|
## Direct `skillfold` usage
|
|
37
84
|
|
|
38
85
|
Because `package.json` declares an `"agentskills"` map, you can also use `skillfold` directly:
|
|
@@ -41,16 +88,24 @@ Because `package.json` declares an `"agentskills"` map, you can also use `skillf
|
|
|
41
88
|
npx skillfold add npm:@greenrenge/skills/diagram-router
|
|
42
89
|
```
|
|
43
90
|
|
|
44
|
-
##
|
|
91
|
+
## Skill categories
|
|
92
|
+
|
|
93
|
+
| Category | Opt-in | Skills | Notes |
|
|
94
|
+
|---|---|---|---|
|
|
95
|
+
| `workflow` — Core Workflow & Planning | no | `skill-maintainer`, `ulw-plan`, `plain-english-mode` | Skill maintenance, explore-first planning, and plain-English mode. |
|
|
96
|
+
| `ocr` — Code Review (OCR) | no | `open-code-review-rules`, `open-code-review`, `open-code-review-delegate` | AI-powered diff review and rule auditing with alibaba/open-code-review. Needs `ocr` CLI (`@alibaba-group/open-code-review`). |
|
|
97
|
+
| `diagrams` — Diagrams & Presentations | no | `diagram-router`, `pr-diagram-portfolio`, `deck-story`, `pr-lens`, `archify`, `stack-diagram`, `diagram-design` | Routed architecture, PR delta, portfolio, and slide-deck generation. Uses host profile (`~/.agents/rules/host-*.md`). |
|
|
98
|
+
| `orchestration` — Orchestration & Ticket Delivery | no | `ticket-scheme`, `t3-thread-bridge`, `t3-successor-handoff`, `ticket-orchestrator`, `t3-ticket-orchestrator`, `security-remediation-epic`, `to-spec`, `to-tickets`, `implement`, `tdd`, `code-review`, `handoff` | Spec-to-tickets scheme (with mattpocock/skills), harness-agnostic & T3 ticket orchestration, handoffs, and security remediation. Uses per-repo Run Contract. |
|
|
99
|
+
| `web-ui` — Frontend & Web UI | yes | `frontend-design`, `modern-web-guidance` | Anti-slop UI design system and modern browser Web API guidance. |
|
|
100
|
+
| `cloudflare` — Cloudflare Workers & CLI | yes | `agents-sdk`, `cf-cli`, `durable-objects`, `frameworks-on-cloudflare`, `nextjs-on-cloudflare`, `workers-best-practices`, `workers-development`, `wrangler` | Cloudflare cf CLI, Wrangler, Workers, Durable Objects, and Agents SDK. |
|
|
101
|
+
|
|
102
|
+
## Bundle aliases
|
|
45
103
|
|
|
46
|
-
|
|
|
104
|
+
| Alias | Expands to | Description |
|
|
47
105
|
|---|---|---|
|
|
48
|
-
| `core` | `
|
|
49
|
-
| `
|
|
50
|
-
| `
|
|
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). |
|
|
106
|
+
| `core` | `workflow`, `ocr` | Alias for workflow + ocr. |
|
|
107
|
+
| `t3-orchestration` | `orchestration` | Alias for orchestration. |
|
|
108
|
+
| `all` | `workflow`, `ocr`, `diagrams`, `orchestration`, `web-ui`, `cloudflare` | Every portable category (workflow + ocr + diagrams + orchestration + web-ui + cloudflare). |
|
|
54
109
|
|
|
55
110
|
## Options
|
|
56
111
|
|
|
@@ -58,7 +113,13 @@ npx skillfold add npm:@greenrenge/skills/diagram-router
|
|
|
58
113
|
|---|---|
|
|
59
114
|
| `--targets <list>` | Comma-separated targets: `claude`, `codex`, `cursor` (default: `claude,codex`) |
|
|
60
115
|
| `--dir <path>` | Target project directory (default: current working directory) |
|
|
61
|
-
| `-g, --global` |
|
|
62
|
-
| `--no-deps` | Do not auto-expand `dependsOn` skills |
|
|
63
|
-
| `--
|
|
116
|
+
| `-g, --global` | Operate on global `skillfold` config (`~/.config/skillfold`) |
|
|
117
|
+
| `--no-deps` | Do not auto-expand `dependsOn` skills during install |
|
|
118
|
+
| `--no-check` | Skip host preflight probe during install |
|
|
119
|
+
| `-y, --yes` | Non-interactive install (skip post-install host-fact prompts) |
|
|
120
|
+
| `--setup-ocr` | Interactively install & configure the `ocr` CLI (`onboard` / `doctor`) |
|
|
121
|
+
| `--setup-host` | Interactively scaffold `~/.agents/rules/host-<hostname>.md` (`onboard` / `doctor`) |
|
|
122
|
+
| `--setup-contract` | Interactively scaffold a `t3-ticket-orchestrator` Run Contract (`onboard` / `doctor`) |
|
|
123
|
+
| `--strict` | Exit non-zero from `doctor` when required tools are missing |
|
|
124
|
+
| `--force` | Pass `--force` to `skillfold install` / `update` |
|
|
64
125
|
| `--frozen` | Pass `--frozen` to `skillfold install` |
|