@greenrenge/skills 0.0.0-stage → 0.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 (64) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +99 -2
  3. package/bin/cli.mjs +525 -0
  4. package/bin/lib/onboard.mjs +1168 -0
  5. package/bin/lib/probe.mjs +631 -0
  6. package/catalog.json +590 -0
  7. package/package.json +50 -4
  8. package/skills/deck-story/SKILL.md +258 -0
  9. package/skills/deck-story/check-svg-text.mjs +94 -0
  10. package/skills/deck-story/check.mjs +348 -0
  11. package/skills/diagram-router/LICENSE +21 -0
  12. package/skills/diagram-router/SKILL.md +193 -0
  13. package/skills/diagram-router/THIRD_PARTY_NOTICES.md +15 -0
  14. package/skills/diagram-router/references/channels.md +213 -0
  15. package/skills/diagram-router/references/evals.md +85 -0
  16. package/skills/diagram-router/references/gathering.md +101 -0
  17. package/skills/diagram-router/references/prior-art.md +65 -0
  18. package/skills/diagram-router/references/routing.md +166 -0
  19. package/skills/diagram-router/skill-release.json +17 -0
  20. package/skills/frontend-design/SKILL.md +443 -0
  21. package/skills/frontend-design/references/rtl.md +72 -0
  22. package/skills/frontend-design/scripts/.upstream-sha +1 -0
  23. package/skills/frontend-design/scripts/LICENSE +21 -0
  24. package/skills/frontend-design/scripts/README.md +24 -0
  25. package/skills/frontend-design/scripts/gates.md +243 -0
  26. package/skills/frontend-design/scripts/sloplint-render.mjs +1283 -0
  27. package/skills/frontend-design/scripts/sloplint.mjs +4426 -0
  28. package/skills/open-code-review-rules/SKILL.md +59 -0
  29. package/skills/open-code-review-rules/references/ocr-allowlists.json +161 -0
  30. package/skills/open-code-review-rules/references/ocr-rule-semantics.md +39 -0
  31. package/skills/open-code-review-rules/scripts/verify_ocr_rules.py +836 -0
  32. package/skills/plain-english-mode/SKILL.md +41 -0
  33. package/skills/pr-diagram-portfolio/SKILL.md +75 -0
  34. package/skills/pr-diagram-portfolio/references/angle-framework.md +124 -0
  35. package/skills/pr-diagram-portfolio/references/portfolio-delivery.md +79 -0
  36. package/skills/pr-diagram-portfolio/scripts/restore_still_css.py +180 -0
  37. package/skills/pr-lens/LICENSE-upstream +21 -0
  38. package/skills/pr-lens/SKILL.md +99 -0
  39. package/skills/pr-lens/VENDOR.md +47 -0
  40. package/skills/pr-lens/package-lock.json +91 -0
  41. package/skills/pr-lens/package.json +9 -0
  42. package/skills/pr-lens/references/config.md +90 -0
  43. package/skills/pr-lens/references/example.graph.json +580 -0
  44. package/skills/pr-lens/references/graph-document.md +233 -0
  45. package/skills/pr-lens/skill-release.json +16 -0
  46. package/skills/security-remediation-epic/SKILL.md +316 -0
  47. package/skills/security-remediation-epic/prompt-template.md +33 -0
  48. package/skills/skill-maintainer/SKILL.md +99 -0
  49. package/skills/skill-maintainer/references/placement-and-coupling.md +43 -0
  50. package/skills/skill-maintainer/scripts/audit_skills.py +297 -0
  51. package/skills/t3-successor-handoff/SKILL.md +141 -0
  52. package/skills/t3-thread-bridge/SKILL.md +175 -0
  53. package/skills/t3-thread-bridge/references/launch-recipes.md +123 -0
  54. package/skills/t3-thread-bridge/references/ping-back.md +108 -0
  55. package/skills/t3-thread-bridge/scripts/thread_ledger.py +203 -0
  56. package/skills/t3-ticket-orchestrator/SKILL.md +304 -0
  57. package/skills/t3-ticket-orchestrator/references/proving-the-gates.md +63 -0
  58. package/skills/ticket-scheme/SKILL.md +144 -0
  59. package/skills/ulw-plan/SKILL.md +98 -0
  60. package/skills/ulw-plan/references/full-workflow.md +255 -0
  61. package/skills/ulw-plan/references/intent-clear.md +44 -0
  62. package/skills/ulw-plan/references/intent-unclear.md +44 -0
  63. package/skills/ulw-plan/scripts/plan-templates.mjs +180 -0
  64. package/skills/ulw-plan/scripts/scaffold-plan.mjs +187 -0
@@ -0,0 +1,47 @@
1
+ # Vendoring provenance
2
+
3
+ ## What this is
4
+
5
+ A **host wrapper** around the PR Lens npm toolchain, vendored under its MIT
6
+ licence (© 2026 Coldtea AI — `LICENSE-upstream`, verbatim).
7
+
8
+ | Piece | Origin | Version |
9
+ |---|---|---|
10
+ | `references/graph-document.md` | `@coldtea/pr-lens-agent-skill` npm package (`files` field ships it) | **0.1.5**, verbatim |
11
+ | `references/example.graph.json` | same | 0.1.5, verbatim |
12
+ | `references/config.md` | same | 0.1.5, verbatim |
13
+ | `package.json` / `package-lock.json` | generated: exact-pinned dependencies for `npm ci` into `~/.cache/pr-lens` | deps `@coldtea/pr-lens-agent-skill@0.1.5`, `@coldtea/pr-lens-cli@0.2.0` (transitively `pr-lens-renderer@0.1.3`, `pr-lens-schema@0.1.3`, `zod@4.6.7`, `yaml@2.9.1`) |
14
+ | `SKILL.md` | **ours** — the house wrapper; not upstream text | 1.0 |
15
+ | Upstream repo | <https://github.com/coldteadotai/pr-lens> | — |
16
+
17
+ ## Why the wrapper exists
18
+
19
+ Upstream's SKILL.md prescribes installing the toolchain into the *reviewed
20
+ project* as a devDependency. On this host the consumers are agents and the
21
+ orchestrator, not a single repo, so:
22
+
23
+ - the vendored documents live here (versioned in the dotfiles repo);
24
+ - the npm toolchain installs **outside** this directory (`~/.cache/pr-lens`) via
25
+ `npm ci` from the committed lockfile — reproducible, and nothing lands inside
26
+ the symlinked skills tree;
27
+ - routing into this skill is owned by `diagram-router` (`references/routing.md`,
28
+ `references/prior-art.md`).
29
+
30
+ ## Update path
31
+
32
+ 1. Bump the two exact versions in `package.json`; regenerate
33
+ `package-lock.json` (`npm install --package-lock-only` in a scratch dir).
34
+ 2. Re-vendor `references/` from the new package (they are upstream's files;
35
+ expect drift with the CLI).
36
+ 3. Re-run the workflow against a real PR and update this file's version table.
37
+ 4. `rm -rf ~/.cache/pr-lens` so the next use reinstalls from the new lockfile.
38
+
39
+ ## Measured behaviour (multi-module PR benchmark)
40
+
41
+ Node v26; `validate` caught one schema typo in two rounds and passed referential
42
+ integrity first try; `render` produced 5 views × 2 themes in ~15 min of agent
43
+ time end-to-end. Renderer weaknesses observed: edge labels can land on node
44
+ cards; the manifest lists only the last theme; re-renders orphan stale hashed
45
+ SVGs. Full A/B against archify / stack-diagram / diagram-design / a no-skill
46
+ baseline: `<scratch-dir>/pr598/` (round-2 artefacts) and the
47
+ diagram-router's `DESIGN-NOTE.md`.
@@ -0,0 +1,91 @@
1
+ {
2
+ "name": "pr-lens-ab",
3
+ "lockfileVersion": 3,
4
+ "requires": true,
5
+ "packages": {
6
+ "": {
7
+ "devDependencies": {
8
+ "@coldtea/pr-lens-agent-skill": "0.1.5",
9
+ "@coldtea/pr-lens-cli": "0.2.0"
10
+ }
11
+ },
12
+ "node_modules/@coldtea/pr-lens-agent-skill": {
13
+ "version": "0.1.5",
14
+ "resolved": "https://registry.npmjs.org/@coldtea/pr-lens-agent-skill/-/pr-lens-agent-skill-0.1.5.tgz",
15
+ "integrity": "sha512-fnp861unpL0uiRS8s6HGZJgMxSS8233nYeRxVy6fMH6fxkvCACdqEejCM9kPebUuRS62nuJpV1+t186N9/2T0g==",
16
+ "dev": true,
17
+ "license": "MIT"
18
+ },
19
+ "node_modules/@coldtea/pr-lens-cli": {
20
+ "version": "0.2.0",
21
+ "resolved": "https://registry.npmjs.org/@coldtea/pr-lens-cli/-/pr-lens-cli-0.2.0.tgz",
22
+ "integrity": "sha512-LXAPHAEIdNvDfOVNAWavooGaSTbesDOKI/KuT+xwIc1L1SqRhQH4ZY+w0fStlZfTMus5eQaZI+pyO4+2BdV8Dw==",
23
+ "dev": true,
24
+ "license": "MIT",
25
+ "dependencies": {
26
+ "@coldtea/pr-lens-renderer": "^0.1.2",
27
+ "@coldtea/pr-lens-schema": "^0.1.2",
28
+ "yaml": "^2.8.1",
29
+ "zod": "^4.4.3"
30
+ },
31
+ "bin": {
32
+ "pr-lens": "dist/bin.js"
33
+ },
34
+ "engines": {
35
+ "node": ">=20.11"
36
+ }
37
+ },
38
+ "node_modules/@coldtea/pr-lens-renderer": {
39
+ "version": "0.1.3",
40
+ "resolved": "https://registry.npmjs.org/@coldtea/pr-lens-renderer/-/pr-lens-renderer-0.1.3.tgz",
41
+ "integrity": "sha512-0C8RtBj4UGidOT3o744u0WtymW9WL0Q4DuQtsCI8upNw5lBnHoPglSuEWK72bzLRBWAhI864RQ8Cgp/SC+wVkw==",
42
+ "dev": true,
43
+ "license": "MIT",
44
+ "dependencies": {
45
+ "@coldtea/pr-lens-schema": "0.1.3"
46
+ },
47
+ "engines": {
48
+ "node": ">=20.11"
49
+ }
50
+ },
51
+ "node_modules/@coldtea/pr-lens-schema": {
52
+ "version": "0.1.3",
53
+ "resolved": "https://registry.npmjs.org/@coldtea/pr-lens-schema/-/pr-lens-schema-0.1.3.tgz",
54
+ "integrity": "sha512-4gkwH+0vq9wbPSpDLvkNzl1g6FI0oEyU7heN5sJG/dPaaiedyRbOaIi9kJ3vGBsWc2WvRUEtAWJwgpO84l09uQ==",
55
+ "dev": true,
56
+ "license": "MIT",
57
+ "dependencies": {
58
+ "zod": "^4.4.3"
59
+ },
60
+ "engines": {
61
+ "node": ">=20.11"
62
+ }
63
+ },
64
+ "node_modules/yaml": {
65
+ "version": "2.9.1",
66
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz",
67
+ "integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==",
68
+ "dev": true,
69
+ "license": "ISC",
70
+ "bin": {
71
+ "yaml": "bin.mjs"
72
+ },
73
+ "engines": {
74
+ "node": ">= 14.6"
75
+ },
76
+ "funding": {
77
+ "url": "https://github.com/sponsors/eemeli"
78
+ }
79
+ },
80
+ "node_modules/zod": {
81
+ "version": "4.6.7",
82
+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz",
83
+ "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==",
84
+ "dev": true,
85
+ "license": "MIT",
86
+ "funding": {
87
+ "url": "https://github.com/sponsors/colinhacks"
88
+ }
89
+ }
90
+ }
91
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "dependencies": {
3
+ "@coldtea/pr-lens-agent-skill": "0.1.5",
4
+ "@coldtea/pr-lens-cli": "0.2.0"
5
+ },
6
+ "name": "pr-lens-skill-install",
7
+ "version": "1.0.0",
8
+ "private": true
9
+ }
@@ -0,0 +1,90 @@
1
+ # Correcting the map: `.github/pr-lens.yml`
2
+
3
+ The generated document is regenerated on every run, so editing it is pointless. Corrections live in `.github/pr-lens.yml`, an overlay applied over fresh inference every time. Inference never writes back into this file, which is why a correction keeps holding as the code moves.
4
+
5
+ ```yaml
6
+ schemaVersion: 0.1.0 # required
7
+ lenses: [architecture, data-flow]
8
+ branding: true
9
+ map:
10
+ rename:
11
+ - match: functions/src/broadcast/sendBroadcastBulk.ts
12
+ to: Broadcast sender
13
+ exclude:
14
+ - "**/*.test.ts"
15
+ - scripts/**
16
+ lane:
17
+ - match: packages/broadcast-lib/**
18
+ lane: functions
19
+ group:
20
+ - match: id:build-bulk-payload
21
+ group: broadcast-lib
22
+ ```
23
+
24
+ Every field except `schemaVersion` is optional, and the file itself is optional. For editor autocomplete, point at the published JSON Schema — no install needed:
25
+
26
+ ```jsonc
27
+ { "$ref": "https://unpkg.com/@coldtea/pr-lens-schema/json-schema/config.schema.json" }
28
+ ```
29
+
30
+ ## Selectors
31
+
32
+ A `match` beginning with `id:` addresses exactly one node, as in `id:build-bulk-payload`. Anything else is a repository-relative path glob matched against the node's file paths.
33
+
34
+ **Prefer the glob.** Ids come from inference and may change when the code does; a path correction survives that. Reach for `id:` only when no path distinguishes the node, or when the node has no files at all (an external service, a queue).
35
+
36
+ ## The four corrections
37
+
38
+ | | What it does |
39
+ | --- | --- |
40
+ | `rename` | replaces the inferred label |
41
+ | `exclude` | drops matching nodes, and the edges and flow steps that hung from them |
42
+ | `lane` | moves matching nodes into a lane, **creating it** when the document declares no such id |
43
+ | `group` | clusters matching nodes under a sub-group inside their lane |
44
+
45
+ Up to 128 of each. They are about intent rather than structure: there is no way to add a node or draw an edge here, and the one thing a correction can bring into existence is a lane, a band a repository wants that inference did not find. It takes the id for its label, because the id is the only name this file carries, so write `lane: infrastructure` rather than `lane: l3`. If the map is wrong in a way corrections cannot express, the fix belongs in the analysis, not in this file.
46
+
47
+ ## Recipes
48
+
49
+ **"Stop showing me the test files."**
50
+ ```yaml
51
+ map:
52
+ exclude: ["**/*.test.ts", "**/__tests__/**"]
53
+ ```
54
+
55
+ **"That node is called the wrong thing."** Match the file it comes from, not its id:
56
+ ```yaml
57
+ map:
58
+ rename:
59
+ - match: server/lib/broadcast/createBroadcastSendTask.ts
60
+ to: Send task
61
+ ```
62
+
63
+ **"These belong in a band of their own."** The lane need not exist yet:
64
+ ```yaml
65
+ map:
66
+ lane:
67
+ - match: infra/**
68
+ lane: infrastructure
69
+ ```
70
+
71
+ **"Keep the shared library together."**
72
+ ```yaml
73
+ map:
74
+ group:
75
+ - match: packages/broadcast-lib/**
76
+ group: broadcast-lib
77
+ ```
78
+
79
+ **"Only draw the architecture."**
80
+ ```yaml
81
+ lenses: [architecture]
82
+ ```
83
+
84
+ ## Check it
85
+
86
+ ```bash
87
+ npx @coldtea/pr-lens-cli validate .github/pr-lens.yml
88
+ ```
89
+
90
+ `pr-lens render` reports any correction that changed nothing about the document it drew. That is a config that has drifted out of date, usually because the file a selector named has moved or gone. It is not an error and nothing stops, but it is worth fixing: a correction that matches nothing is a correction nobody is getting.