github-delivery-os 1.4.0 → 1.4.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.
Files changed (2) hide show
  1. package/README.md +12 -332
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,350 +4,32 @@
4
4
 
5
5
  [![Socket Badge](https://badge.socket.dev/npm/package/github-delivery-os)](https://socket.dev/npm/package/github-delivery-os)
6
6
 
7
- ---
7
+ Delivery OS embeds structured intake, sprint orchestration, QA governance, and collaborative release gates directly into your GitHub repos — replacing informal coordination (manual approvals, inconsistent sprint tracking, socially enforced releases) without replacing your CI/CD or disrupting how you already work.
8
8
 
9
- ## Why This Exists
10
-
11
- Engineering teams often rely on informal coordination inside GitHub — manual approvals, inconsistent sprint tracking, reactive QA engagement, and socially enforced production releases.
12
-
13
- As teams scale, this creates:
14
-
15
- * Delivery ambiguity
16
- * QA bottlenecks
17
- * Unclear accountability
18
- * Release risk
19
- * Cross-team misalignment
20
-
21
- The **GitHub Delivery Operating System (Delivery OS)** embeds structured intake, sprint orchestration, QA governance, and collaborative release gates directly into engineering repositories — without replacing CI/CD pipelines or disrupting developer workflows.
22
-
23
- ---
24
-
25
- ## Installation
26
-
27
- **One command** (recommended):
9
+ ## Install
28
10
 
29
11
  ```bash
30
12
  npx github-delivery-os install --with-templates .
31
13
  ```
32
14
 
33
- From your repo root. Add `--with-labels` to create labels via `gh` CLI (requires `gh auth`). Add `--with-skill` to also drop in a [Claude Code](https://claude.com/claude-code) skill for operating this repo's Delivery OS from Claude Code creating sprint/release/QA issues, commenting as an approver, checking status. Use `--dry-run` to preview first.
34
-
35
- **Alternative — clone and run script:**
36
-
37
- ```bash
38
- git clone https://github.com/Phaneroo/github-delivery-operating-system
39
- cd github-delivery-operating-system
40
-
41
- # New install or repo with existing workflows — adds only missing files (safe)
42
- ./scripts/install.sh --with-templates /path/to/your-repo
43
-
44
- # Also create labels via gh CLI (requires gh auth)
45
- ./scripts/install.sh --with-templates --with-labels /path/to/your-repo
46
-
47
- # Update Delivery OS (replace existing) — use --dry-run first to preview
48
- ./scripts/install.sh --with-templates --overwrite /path/to/your-repo
49
- ```
50
-
51
- **Note:** By default, existing files are **never overwritten**. Use `--overwrite` only when updating Delivery OS. See [Consumer Setup](docs/consumer-setup.md) for the full command guide.
52
-
53
- **Other commands:**
54
- ```bash
55
- npx github-delivery-os status . # Show what's installed + installed version
56
- npx github-delivery-os status --offline . # Same, without checking npm for updates
57
- npx github-delivery-os uninstall . # Remove workflows
58
- npx github-delivery-os uninstall --with-templates . # Remove workflows + templates
59
- npx github-delivery-os uninstall --dry-run . # Preview (no changes)
60
- ```
61
-
62
- `status` also checks npm for a newer release and tells you if you're behind (e.g. `⬆️ Update available: 1.0.3 → 1.1.0`), along with the exact command to update. That check is silent and non-fatal if you're offline — use `--offline` to skip it outright (e.g. in CI).
63
-
64
- **Command variations — which one to run when:**
65
-
66
- | Command | When to run it |
67
- |---------|-----------------|
68
- | `npx github-delivery-os install --with-templates .` | First install of Delivery OS in a repo without Claude Code — workflows + issue templates. The default recommendation above. |
69
- | `npx github-delivery-os install --with-templates --with-labels .` | Same, plus creating all required labels immediately via `gh` CLI — skips the manual "Actions → Setup Labels → Run workflow" step. Needs `gh auth`. |
70
- | `npx github-delivery-os install --with-templates --with-skill .` | You (or your team) will operate this repo's Delivery OS from [Claude Code](https://claude.com/claude-code) — adds the `delivery-ops` skill so issues/comments/status checks can be done in plain language. |
71
- | `npx github-delivery-os install --with-templates --with-labels --with-skill .` | Everything at once — the fastest path to a fully working, Claude-Code-operable install in one command. |
72
- | `npx github-delivery-os install --with-templates --with-skill --dry-run .` | Preview any of the above combinations first — prints what would be created without writing anything. Combine with any other flags. |
73
- | `npx github-delivery-os install --with-templates --with-skill --overwrite .` | Updating an existing install to the latest release, or retroactively adding `--with-templates`/`--with-skill` to a repo that skipped them originally. **Only** command here that replaces existing files — everything above is always skip-existing/safe. |
74
- | `npx github-delivery-os status .` | Not sure what's currently installed, whether it's up to date, or whether a workflow is broken (e.g. a required script silently missing). Safe, read-only. |
75
- | `npx github-delivery-os uninstall --with-templates --with-skill .` | Removing Delivery OS entirely — workflows, scripts, templates, and the skill. Omit either flag to keep that part (both are kept by default). |
76
-
77
- **What gets installed:**
78
-
79
- | Workflow | Trigger | Purpose |
80
- |----------|---------|---------|
81
- | `sprint-child-creator` | Issue opened, title contains `SPRINT -` | Parses "Sprint Features (One Per Line)" and creates one child issue per line, each linked back with `Parent Sprint: #N` |
82
- | `auto-close-sprint` | Issue closed, body contains `Parent Sprint` | Recomputes the parent sprint's burn-down/health and rewrites its status section; auto-closes the sprint at 100% |
83
- | `notify-release-approver` | Issue opened, labeled `production` | Comments on the issue tagging the repo's `RELEASE_APPROVER` |
84
- | `authorize-deployment` | Comment posted on a `production`-labeled issue | Checks the commenter and keyword against `RELEASE_APPROVER`/`QA_APPROVER`; once both approve, adds `ready-for-deploy` |
85
- | `auto-assign-qa` | Issue opened/labeled `qa` or `qa-request` | Assigns the repo's configured `QA_ASSIGNEES` |
86
- | `telegram-issues` | Issue/comment/PR events | Sends a Telegram alert if `TELEGRAM_BOT_TOKEN`/`TELEGRAM_CHAT_ID` are configured |
87
- | `setup-labels` | Manual (`workflow_dispatch`) | One-time run that creates all labels Delivery OS needs |
88
-
89
- Workflows and templates are **copied directly** into your repo. No `workflow_call` or external references.
90
-
91
- Installing via `npx github-delivery-os` (not the `scripts/install.sh` clone path) also writes `.github/delivery-os.json`, a small manifest recording the installed version — this is what powers the update check in `status`. It's only written when the files it describes are actually current (a fresh install, or `--overwrite`); a skip-mode install over existing files leaves it untouched rather than claiming a version that isn't really on disk. `uninstall` removes it.
92
-
93
- With `--with-skill`, a `.claude/skills/delivery-ops/SKILL.md` file is also written — a Claude Code skill scoped to this repo, so anyone working here with Claude Code can create issues that correctly trigger the workflows above, comment as an approver, check status, run autonomous task tracking (identify and file tasks/bugs, group them into phases via sprints, maintain a roadmap issue, and update/close issues as work progresses), and turn a spec (SRS/PRD) or a plain-language feature description into a full phase-and-task breakdown filed as real issues, without knowing the underlying `gh` commands or issue-body formats by heart. It's opt-in and retroactive: `--with-skill` on any later `install` call adds it if it isn't there yet.
94
-
95
- ---
96
-
97
- ## Quick Start (After Install)
98
-
99
- 1. **Create labels:** Actions → Setup Labels → Run workflow
100
- 2. **Configure variables:** Settings → Secrets and variables → Actions → Variables
101
- - `RELEASE_APPROVER` — GitHub username
102
- - `QA_APPROVER` — GitHub username
103
- - `QA_ASSIGNEES` — Comma-separated usernames (e.g. `user1,user2`)
104
- 3. **Optional:** Add `TELEGRAM_BOT_TOKEN` and `TELEGRAM_CHAT_ID` for alerts
105
-
106
- ---
107
-
108
- ## Sprint Child Creation
109
-
110
- When you open an issue using the **Sprint Planning** template with a title like `SPRINT - Sprint 12`:
111
-
112
- 1. Each line under "Sprint Features (One Per Line)" becomes a child issue
113
- 2. Child issues link back with `Parent Sprint: #N`
114
- 3. Closing child issues updates burn-down; sprint auto-closes at 100%
115
-
116
- **Required:** Install with `--with-templates` so the sprint form is available.
117
-
118
- ---
119
-
120
- ## Operating From Claude Code (`--with-skill`)
121
-
122
- Installing with `--with-skill` drops a `.claude/skills/delivery-ops/SKILL.md` skill into the repo, scoped to *this* repo's Delivery OS install. It lets anyone using [Claude Code](https://claude.com/claude-code) drive the workflows above by asking in plain language — e.g. "create a sprint for the checkout redesign" — instead of hand-building `gh issue create` calls and remembering each template's exact field names.
123
-
124
- Before doing anything, it checks the target repo: confirms Delivery OS is actually installed, that `Setup Labels` has been run, and that `RELEASE_APPROVER` / `QA_APPROVER` / `QA_ASSIGNEES` are configured — flagging (or offering to fix) gaps instead of silently creating an issue that does nothing. It also always shows the constructed title/body/labels or comment text for confirmation before creating or posting for real, since these are visible actions in the repo's activity, not a local preview.
125
-
126
- It can also run the full lifecycle of a piece of work on its own: notice something worth tracking, classify it, file it, keep its status/comments in sync as work happens, and close it out — acting without asking when the outcome is clear (always posting a one-line notice in the conversation so nothing happens invisibly), and asking first only when the classification or "is this actually done" is genuinely ambiguous. A "phase" is just a Sprint Planning issue; a "roadmap" is one persistent issue Claude keeps rewritten with each phase's state — no new issue types or automation involved.
127
-
128
- ### Create a sprint
129
- 1. Ask: *"Create a sprint called Sprint 14 for \<goal>, running \<start> to \<end>, with features: \<one per line>"*
130
- 2. It opens an issue titled `SPRINT - Sprint 14`, labeled `sprint` + `planning`, with `### Sprint Name` / `Start` / `End` / `Goal` / `Features (One Per Line)` / `Approved` fields filled in.
131
- 3. On open, `sprint-child-creator` splits each feature line into its own child issue, labeled `sprint-active` and linked back with `Parent Sprint: #N`.
132
- 4. Close each child issue as work finishes — that's what advances the burn-down; `auto-close-sprint` recomputes it and rewrites the parent's `## 🚦 Sprint Status` section, auto-closing the sprint at 100%.
133
-
134
- ### Request a production release
135
- 1. Ask: *"Open a production release for \<project> v1.2.0, sprint #N, summary: \<summary>"*
136
- 2. It opens an issue titled `PRODUCTION RELEASE - <project> - v1.2.0`, labeled `release` + `production` + `approval`, with the sprint reference, version, release summary, QA summary/links, and `Deployment Authorized: No`.
137
- 3. On open, `notify-release-approver` comments tagging the repo's configured `RELEASE_APPROVER`.
138
-
139
- ### Approve or decline a release
140
- 1. Ask: *"Approve release #N"* or *"Decline release #N — \<reason>"*.
141
- 2. It checks that the currently authenticated `gh` login matches the repo's `RELEASE_APPROVER` — if not, it stops and says so instead of posting a comment that would silently do nothing.
142
- 3. It posts a comment starting with a recognized keyword (`approved`, `ok`, `go ahead` to approve; `declined`, `rejected`, `not approved` to decline) — `authorize-deployment` only reacts to that leading keyword from the exact configured approver. A later comment from the same approver overrides an earlier one.
143
-
144
- ### Request QA
145
- 1. Ask: *"Open a QA request for \<feature>, related to issue #N, testing \<what/where>"*
146
- 2. It opens an issue titled `QA REQUEST - <feature>`, labeled `qa-request`, with the related task, what to test, environment/build link, and acceptance criteria.
147
- 3. On open, `auto-assign-qa` assigns the repo's configured `QA_ASSIGNEES`.
148
-
149
- ### Approve QA
150
- 1. Ask: *"Mark QA #N as approved"* (or *"looks good"*).
151
- 2. Same login check as release approval, but against `QA_APPROVER`.
152
- 3. Posts a comment starting with `qa approved`, `approved`, `qa ok`, or `looks good`.
153
-
154
- ### Report a bug
155
- 1. Ask: *"File a bug: \<one-line summary>, severity \<level>, steps: \<...>"*
156
- 2. It opens an issue titled `[BUG] <summary>`, labeled `bug` + `qa`, with platform, severity, build/version, steps to reproduce, expected vs. actual result, and test environment.
157
-
158
- ### Track a task
159
- 1. Ask: *"Create a task to \<summary>, owner \<name>, priority P1"*
160
- 2. It opens an issue titled `TASK - <summary>`, labeled `task`, with owner, priority, status, acceptance criteria, and links. (No workflow trigger — this is plain tracking.)
161
-
162
- ### Check status
163
- - *"What's the status of issue #N?"* → current labels and latest comments.
164
- - *"How's Sprint 14 doing?"* → reads the parent issue's `## 🚦 Sprint Status` section (progress %, time elapsed, health, burn-down bar).
165
- - *"What releases are waiting on approval?"* / *"What sprints are active?"* / *"What QA requests are open?"* → lists issues by label (`production`, `sprint`, `qa-request`) so you don't need an issue number in hand.
166
-
167
- See [How To](docs/how-to.md) for the underlying workflows this drives, field by field.
168
-
169
- ### Example: filing a bug and a task, step by step
170
-
171
- Illustrative walkthrough against `acme/storefront`, a repo with Delivery OS installed (same example repo used in the full walkthrough below).
172
-
173
- **Filing the bug:**
174
-
175
- 1. In Claude Code, inside (or pointed at, via `--repo`) the target repo, describe the bug in plain language:
176
- > *File a bug on acme/storefront — the order request form submits with an empty phone number, severity high. Steps: fill in the form, leave phone blank, submit. Expected: should block submission. Actual: submits anyway, so there's no way to contact the customer. Tested on Chrome, desktop, production.*
177
- 2. Claude pre-flights the repo — confirms Delivery OS is installed and the `bug`/`qa` labels exist.
178
- 3. Claude shows the exact issue it's about to create before doing anything:
179
- - Title: `[BUG] Order request form submits with empty phone number`
180
- - Labels: `bug`, `qa`
181
- - Body, field by field: `Platform(s) Affected` → Web, `Severity` → High, `Build / Version` → main (as deployed), `Bug Summary`, `Steps to Reproduce` (numbered), `Expected Result`, `Actual Result`, `Test Environment` → Chrome, desktop, production.
182
- 4. Confirm ("yes") when asked to create it.
183
- 5. Claude runs `gh issue create` and reports back the issue — e.g. `acme/storefront#42`. Nothing else happens automatically; bug reports don't trigger a workflow, they're just labeled and tracked.
184
-
185
- **Filing the follow-up task:**
186
-
187
- 1. Ask Claude to turn the bug into tracked work, referencing the bug's issue number:
188
- > *Create a task to add phone number validation to the order form, owner @alex, priority P1, status Backlog, acceptance: form blocks submission until a valid phone number is entered. Link it to #42.*
189
- 2. Claude shows the constructed issue:
190
- - Title: `TASK - Add phone number validation to order form`
191
- - Labels: `task`
192
- - Body: `Task Summary`, `Description` (references #42), `Owner` → @alex, `Priority` → P1 - High, `Status` → Backlog, `Acceptance Criteria`, `Artifacts / Links` → Related bug: #42.
193
- 3. Confirm ("yes") to create it.
194
- 4. Claude runs `gh issue create`. Same as the bug — no workflow trigger, just labeled and tracked, now linked back to the bug it addresses.
195
-
196
- ### Full example: shipping a feature end-to-end
197
-
198
- A realistic Claude Code session, run from inside the consumer repo (the skill defaults to it since it was installed with `--with-skill` there). `RELEASE_APPROVER`, `QA_APPROVER`, and `QA_ASSIGNEES` are already configured.
199
-
200
- ```
201
- You: Create a sprint called "Sprint 14 - Checkout Revamp", running 2026-09-16 to
202
- 2026-09-30, goal is shipping the new checkout flow, features:
203
- - Redesign cart summary
204
- - Add saved payment methods
205
- - Fix tax rounding bug
206
-
207
- Claude: This will create an issue in acme/storefront:
208
-
209
- Title: SPRINT - Sprint 14 - Checkout Revamp
210
- Labels: sprint, planning
211
- Body:
212
- ### Sprint Name
213
- Sprint 14 - Checkout Revamp
214
- ### Sprint Start
215
- 2026-09-16
216
- ### Sprint End
217
- 2026-09-30
218
- ### Sprint Goal
219
- Ship the new checkout flow
220
- ### Sprint Features (One Per Line)
221
- Redesign cart summary
222
- Add saved payment methods
223
- Fix tax rounding bug
224
- ### Sprint Approved
225
- Pending
226
-
227
- Create this issue?
228
-
229
- You: yes
230
-
231
- Claude: Created #52. sprint-child-creator will fire on open and create one child
232
- issue per feature — #53 "Redesign cart summary", #54 "Add saved payment
233
- methods", #55 "Fix tax rounding bug" — each labeled sprint-active and
234
- linked back with "Parent Sprint: #52".
235
-
236
- [ ... engineers do the work, close #53 and #54 as they land ... ]
237
-
238
- You: How's Sprint 14 doing?
239
-
240
- Claude: Reading #52... ## 🚦 Sprint Status: 67% complete (2/3 closed), 20% of
241
- sprint time elapsed, 🟢 on track.
242
-
243
- You: QA found a rounding issue in the tax calc — file a bug. Severity high,
244
- repros on checkout with 3+ items, expected total matches line items,
245
- actual is off by $0.01.
246
-
247
- Claude: This will create an issue in acme/storefront:
248
-
249
- Title: [BUG] Tax rounding off by $0.01 with 3+ items
250
- Labels: bug, qa
251
- Body: (Platform, Severity: High, Steps to Reproduce, Expected vs.
252
- Actual Result, Test Environment filled in from what you said)
253
-
254
- Create this issue?
255
-
256
- You: yes
257
-
258
- Claude: Created #56.
259
-
260
- [ ... #55 fixed, referencing #56 ... ]
261
-
262
- You: Open a QA request for the tax rounding fix, related to #55, test on
263
- staging, acceptance: totals match to the cent for carts of 1-10 items.
264
-
265
- Claude: This will create an issue in acme/storefront:
15
+ From your repo root. Add `--with-labels` to create labels via `gh` CLI, `--with-skill` for the [Claude Code](https://claude.com/claude-code) skill, `--dry-run` to preview first. See the [landing page](https://phaneroo.github.io/github-delivery-operating-system/#install) for every flag combination and when to use it, or [Consumer Setup](docs/consumer-setup.md) for the clone-and-run alternative, configuration, and troubleshooting.
266
16
 
267
- Title: QA REQUEST - Tax rounding fix
268
- Labels: qa-request
269
- Body: (Related Sprint Task Issue #55, What to Test, Environment +
270
- Build Link: staging, Acceptance Criteria filled in)
17
+ ## What you get
271
18
 
272
- Create this issue?
19
+ | | |
20
+ |---|---|
21
+ | **Sprint child creation** | One issue per feature line, automatic burn-down, auto-close at 100% |
22
+ | **Dual approval gates** | Release approver + QA sign-off required before deploy |
23
+ | **Auto-assign QA & Telegram alerts** | QA-labeled issues get assigned automatically; optional alerts for bugs, QA, sprints, releases |
24
+ | **Claude Code skill** (`--with-skill`) | Operate it all in plain language — create/comment/check status, autonomous task tracking, and turning a spec into a full phase-and-task breakdown |
273
25
 
274
- You: yes
275
-
276
- Claude: Created #57. auto-assign-qa will assign it to the configured
277
- QA_ASSIGNEES.
278
-
279
- [ ... QA tests it, comes back clean ... ]
280
-
281
- You: Mark QA #57 as approved, looks good.
282
-
283
- Claude: Checking gh auth status... authenticated as jane-qa, which matches this
284
- repo's QA_APPROVER. Posting:
285
-
286
- "looks good — verified on staging, totals match to the cent"
287
-
288
- on #57.
289
-
290
- You: yes, post it
291
-
292
- Claude: Posted. Now close #55 to update the sprint burn-down?
293
-
294
- You: yes
295
-
296
- Claude: Closed #55. Sprint 14 is now 100% complete — auto-close-sprint closed
297
- #52 and posted a completion comment.
298
-
299
- You: Open a production release for storefront v2.4.1, sprint #52, summary
300
- "checkout revamp: new cart summary, saved payment methods, tax rounding
301
- fix", QA evidence: #57.
302
-
303
- Claude: This will create an issue in acme/storefront:
304
-
305
- Title: PRODUCTION RELEASE - storefront - v2.4.1
306
- Labels: release, production, approval
307
- Body:
308
- ### Sprint Reference (Sprint Planning Issue #)
309
- #52
310
- ### Version / Build Number
311
- v2.4.1
312
- ### Release Summary
313
- Checkout revamp: new cart summary, saved payment methods, tax
314
- rounding fix
315
- ### QA Summary + Evidence Links
316
- #57
317
- ### Overall QA Recommendation
318
- Approve for Production
319
- ### Deployment Authorized
320
- No
321
-
322
- Create this issue?
323
-
324
- You: yes
325
-
326
- Claude: Created #58. notify-release-approver posted a comment tagging this
327
- repo's RELEASE_APPROVER (john-lead).
328
-
329
- [ ... some time later, as john-lead ... ]
330
-
331
- You: Approve release #58.
332
-
333
- Claude: Checking gh auth status... authenticated as john-lead, which matches
334
- RELEASE_APPROVER. Posting "approved" on #58.
335
-
336
- You: yes
337
-
338
- Claude: Posted. authorize-deployment will add ready-for-deploy once both
339
- approvers (release + QA) have a qualifying comment on record.
340
- ```
341
-
342
- Each `yes` above is a real confirmation gate — Claude shows the exact issue/comment content before it creates or posts anything, since it's a visible action in the repo.
343
-
344
- ---
26
+ Full workflow table, quick start, and Claude Code walkthroughs are on the [landing page](https://phaneroo.github.io/github-delivery-operating-system/).
345
27
 
346
28
  ## Documentation
347
29
 
348
30
  | Document | Description |
349
31
  |----------|-------------|
350
- | **[Landing page & quick start](https://phaneroo.github.io/github-delivery-operating-system/)** | Overview, one-command install, features |
32
+ | **[Landing page & quick start](https://phaneroo.github.io/github-delivery-operating-system/)** | Overview, full command reference, workflows, Claude Code walkthroughs |
351
33
  | [PRFAQ](docs/PRFAQ.md) | Product overview and FAQs for all audiences (npm launch, install, governance) |
352
34
  | [Press release (npm)](docs/press-release.md) | Formal announcement: Delivery OS on npm |
353
35
  | [Consumer Setup](docs/consumer-setup.md) | Installation, configuration, variables, labels, Telegram, uninstall |
@@ -355,8 +37,6 @@ Each `yes` above is a real confirmation gate — Claude shows the exact issue/co
355
37
  | [Architecture](docs/architecture.md) | Workflows, templates, data flow |
356
38
  | [Governance](docs/governance.md) | Lifecycle, approval gates, automation rules |
357
39
 
358
- ---
359
-
360
40
  ## License
361
41
 
362
42
  MIT License. See [LICENSE](LICENSE) for details.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "github-delivery-os",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "A GitHub-native Delivery Governance Framework for structured sprint execution, QA review, and collaborative production release control.",
5
5
  "main": "src/install.js",
6
6
  "bin": {