@wipcomputer/wip-ai-devops-toolbox 1.9.20

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 (146) hide show
  1. package/.license-guard.json +7 -0
  2. package/.publish-skill.json +4 -0
  3. package/CHANGELOG.md +1120 -0
  4. package/CLA.md +19 -0
  5. package/DEV-GUIDE-GENERAL-PUBLIC.md +882 -0
  6. package/LICENSE +52 -0
  7. package/README.md +238 -0
  8. package/SKILL.md +728 -0
  9. package/TECHNICAL.md +282 -0
  10. package/UNIVERSAL-INTERFACE.md +180 -0
  11. package/_trash/RELEASE-NOTES-v1-8-0.md +29 -0
  12. package/_trash/RELEASE-NOTES-v1-8-1.md +7 -0
  13. package/_trash/RELEASE-NOTES-v1-8-2.md +7 -0
  14. package/_trash/RELEASE-NOTES-v1-9-0.md +37 -0
  15. package/_trash/RELEASE-NOTES-v1-9-1.md +38 -0
  16. package/_trash/RELEASE-NOTES-v1-9-10.md +40 -0
  17. package/_trash/RELEASE-NOTES-v1-9-2.md +40 -0
  18. package/_trash/RELEASE-NOTES-v1-9-6.md +72 -0
  19. package/_trash/RELEASE-NOTES-v1-9-7.md +23 -0
  20. package/_trash/RELEASE-NOTES-v1-9-9.md +75 -0
  21. package/_trash/guide 2/DEV-GUIDE.md +487 -0
  22. package/_trash/guide 2/scripts/deploy-public.sh +152 -0
  23. package/package.json +27 -0
  24. package/scripts/SKILL-deploy-public.md +61 -0
  25. package/scripts/SKILL-post-merge-rename.md +47 -0
  26. package/scripts/deploy-public.sh +264 -0
  27. package/scripts/post-merge-rename.sh +205 -0
  28. package/scripts/publish-skill.sh +134 -0
  29. package/tools/deploy-public/LICENSE +52 -0
  30. package/tools/deploy-public/README.md +31 -0
  31. package/tools/deploy-public/SKILL.md +71 -0
  32. package/tools/deploy-public/deploy-public.sh +264 -0
  33. package/tools/deploy-public/package.json +9 -0
  34. package/tools/ldm-jobs/LICENSE +52 -0
  35. package/tools/ldm-jobs/README.md +46 -0
  36. package/tools/ldm-jobs/backup.sh +16 -0
  37. package/tools/ldm-jobs/branch-protect.sh +39 -0
  38. package/tools/ldm-jobs/crystal-capture.sh +19 -0
  39. package/tools/ldm-jobs/setup-shell.sh +27 -0
  40. package/tools/ldm-jobs/visibility-audit.sh +27 -0
  41. package/tools/post-merge-rename/LICENSE +52 -0
  42. package/tools/post-merge-rename/README.md +29 -0
  43. package/tools/post-merge-rename/SKILL.md +57 -0
  44. package/tools/post-merge-rename/package.json +9 -0
  45. package/tools/post-merge-rename/post-merge-rename.sh +122 -0
  46. package/tools/wip-branch-guard/INSTALL.md +41 -0
  47. package/tools/wip-branch-guard/guard.mjs +259 -0
  48. package/tools/wip-branch-guard/package.json +11 -0
  49. package/tools/wip-file-guard/CHANGELOG.md +6 -0
  50. package/tools/wip-file-guard/LICENSE +52 -0
  51. package/tools/wip-file-guard/README.md +113 -0
  52. package/tools/wip-file-guard/REFERENCE.md +86 -0
  53. package/tools/wip-file-guard/SKILL.md +105 -0
  54. package/tools/wip-file-guard/guard.mjs +128 -0
  55. package/tools/wip-file-guard/openclaw.plugin.json +8 -0
  56. package/tools/wip-file-guard/package.json +27 -0
  57. package/tools/wip-file-guard/test.sh +119 -0
  58. package/tools/wip-license-guard/LICENSE +52 -0
  59. package/tools/wip-license-guard/README.md +32 -0
  60. package/tools/wip-license-guard/SKILL.md +65 -0
  61. package/tools/wip-license-guard/cli.mjs +464 -0
  62. package/tools/wip-license-guard/core.mjs +310 -0
  63. package/tools/wip-license-guard/hook.mjs +146 -0
  64. package/tools/wip-license-guard/package.json +15 -0
  65. package/tools/wip-license-hook/CHANGELOG.md +17 -0
  66. package/tools/wip-license-hook/LICENSE +52 -0
  67. package/tools/wip-license-hook/README.md +200 -0
  68. package/tools/wip-license-hook/SKILL.md +111 -0
  69. package/tools/wip-license-hook/dist/cli/index.d.ts +15 -0
  70. package/tools/wip-license-hook/dist/cli/index.js +170 -0
  71. package/tools/wip-license-hook/dist/cli/index.js.map +1 -0
  72. package/tools/wip-license-hook/dist/core/detector.d.ts +12 -0
  73. package/tools/wip-license-hook/dist/core/detector.js +104 -0
  74. package/tools/wip-license-hook/dist/core/detector.js.map +1 -0
  75. package/tools/wip-license-hook/dist/core/index.d.ts +4 -0
  76. package/tools/wip-license-hook/dist/core/index.js +5 -0
  77. package/tools/wip-license-hook/dist/core/index.js.map +1 -0
  78. package/tools/wip-license-hook/dist/core/ledger.d.ts +49 -0
  79. package/tools/wip-license-hook/dist/core/ledger.js +72 -0
  80. package/tools/wip-license-hook/dist/core/ledger.js.map +1 -0
  81. package/tools/wip-license-hook/dist/core/reporter.d.ts +14 -0
  82. package/tools/wip-license-hook/dist/core/reporter.js +227 -0
  83. package/tools/wip-license-hook/dist/core/reporter.js.map +1 -0
  84. package/tools/wip-license-hook/dist/core/scanner.d.ts +39 -0
  85. package/tools/wip-license-hook/dist/core/scanner.js +325 -0
  86. package/tools/wip-license-hook/dist/core/scanner.js.map +1 -0
  87. package/tools/wip-license-hook/hooks/pre-pull.sh +55 -0
  88. package/tools/wip-license-hook/hooks/pre-push.sh +51 -0
  89. package/tools/wip-license-hook/mcp-server.mjs +119 -0
  90. package/tools/wip-license-hook/package-lock.json +54 -0
  91. package/tools/wip-license-hook/package.json +43 -0
  92. package/tools/wip-license-hook/src/cli/index.ts +189 -0
  93. package/tools/wip-license-hook/src/core/detector.ts +130 -0
  94. package/tools/wip-license-hook/src/core/index.ts +4 -0
  95. package/tools/wip-license-hook/src/core/ledger.ts +116 -0
  96. package/tools/wip-license-hook/src/core/reporter.ts +255 -0
  97. package/tools/wip-license-hook/src/core/scanner.ts +367 -0
  98. package/tools/wip-license-hook/tsconfig.json +16 -0
  99. package/tools/wip-readme-format/README.md +49 -0
  100. package/tools/wip-readme-format/SKILL.md +84 -0
  101. package/tools/wip-readme-format/format.mjs +570 -0
  102. package/tools/wip-readme-format/package.json +15 -0
  103. package/tools/wip-release/CHANGELOG.md +42 -0
  104. package/tools/wip-release/LICENSE +52 -0
  105. package/tools/wip-release/README.md +45 -0
  106. package/tools/wip-release/REFERENCE.md +100 -0
  107. package/tools/wip-release/SKILL.md +139 -0
  108. package/tools/wip-release/cli.js +161 -0
  109. package/tools/wip-release/core.mjs +1174 -0
  110. package/tools/wip-release/mcp-server.mjs +109 -0
  111. package/tools/wip-release/package.json +36 -0
  112. package/tools/wip-repo-init/README.md +38 -0
  113. package/tools/wip-repo-init/SKILL.md +77 -0
  114. package/tools/wip-repo-init/init.mjs +142 -0
  115. package/tools/wip-repo-init/package.json +11 -0
  116. package/tools/wip-repo-permissions-hook/LICENSE +52 -0
  117. package/tools/wip-repo-permissions-hook/README.md +86 -0
  118. package/tools/wip-repo-permissions-hook/SKILL.md +73 -0
  119. package/tools/wip-repo-permissions-hook/cli.js +83 -0
  120. package/tools/wip-repo-permissions-hook/core.mjs +122 -0
  121. package/tools/wip-repo-permissions-hook/guard.mjs +64 -0
  122. package/tools/wip-repo-permissions-hook/mcp-server.mjs +92 -0
  123. package/tools/wip-repo-permissions-hook/openclaw.plugin.json +8 -0
  124. package/tools/wip-repo-permissions-hook/package.json +31 -0
  125. package/tools/wip-repos/LICENSE +52 -0
  126. package/tools/wip-repos/README.md +77 -0
  127. package/tools/wip-repos/SKILL.md +80 -0
  128. package/tools/wip-repos/cli.mjs +176 -0
  129. package/tools/wip-repos/core.mjs +290 -0
  130. package/tools/wip-repos/mcp-server.mjs +157 -0
  131. package/tools/wip-repos/package.json +34 -0
  132. package/tools/wip-universal-installer/CHANGELOG.md +57 -0
  133. package/tools/wip-universal-installer/LICENSE +52 -0
  134. package/tools/wip-universal-installer/README.md +81 -0
  135. package/tools/wip-universal-installer/REFERENCE.md +122 -0
  136. package/tools/wip-universal-installer/SKILL.md +87 -0
  137. package/tools/wip-universal-installer/SPEC.md +180 -0
  138. package/tools/wip-universal-installer/detect.mjs +130 -0
  139. package/tools/wip-universal-installer/examples/minimal/README.md +20 -0
  140. package/tools/wip-universal-installer/examples/minimal/SKILL.md +28 -0
  141. package/tools/wip-universal-installer/examples/minimal/cli.mjs +4 -0
  142. package/tools/wip-universal-installer/examples/minimal/core.mjs +8 -0
  143. package/tools/wip-universal-installer/examples/minimal/mcp-server.mjs +27 -0
  144. package/tools/wip-universal-installer/examples/minimal/package.json +12 -0
  145. package/tools/wip-universal-installer/install.js +930 -0
  146. package/tools/wip-universal-installer/package.json +36 -0
package/SKILL.md ADDED
@@ -0,0 +1,728 @@
1
+ ---
2
+ name: wip-ai-devops-toolbox
3
+ description: Complete DevOps toolkit for AI-assisted software development. Release pipeline, license compliance, copyright enforcement, repo visibility guard, identity file protection, manifest reconciler, and best practices. All core tools are agent-callable via MCP.
4
+ license: MIT
5
+ interface: [cli, module, mcp, skill, hook, plugin]
6
+ metadata:
7
+ display-name: "WIP AI DevOps Toolbox"
8
+ version: "1.9.20"
9
+ homepage: "https://github.com/wipcomputer/wip-ai-devops-toolbox"
10
+ author: "Parker Todd Brooks"
11
+ category: dev-tools
12
+ capabilities:
13
+ - version-bump
14
+ - changelog-update
15
+ - npm-publish
16
+ - github-release
17
+ - license-scanning
18
+ - license-compliance
19
+ - copyright-enforcement
20
+ - repo-sync
21
+ - repo-visibility-guard
22
+ - identity-file-protection
23
+ - manifest-reconciliation
24
+ - mcp-server
25
+ requires:
26
+ bins: [git, npm, gh, node]
27
+ openclaw:
28
+ requires:
29
+ bins: [git, npm, gh, node]
30
+ install:
31
+ - id: node
32
+ kind: node
33
+ package: "@wipcomputer/wip-ai-devops-toolbox"
34
+ bins: [wip-release, wip-install, wip-repos, wip-license-hook, wip-license-guard, wip-file-guard, wip-repo-init, wip-readme-format]
35
+ label: "Install all tools via npm"
36
+ emoji: "🧰"
37
+ compatibility: Requires git, npm, gh, node. Node.js 18+.
38
+ ---
39
+
40
+ # WIP AI DevOps Toolbox
41
+
42
+ Your AI writes code. But does it know how to release it? Check license compliance? Protect your identity files? Sync private repos to public? Follow a real development process?
43
+
44
+ AI DevOps Toolbox is 13 tools that teach your AI how to do all of this. Once installed, you don't run them manually. Your AI knows how to use them and does it automatically. Built by a team of humans and AIs shipping real software together.
45
+
46
+ ## Platform Compatibility
47
+
48
+ The tools in this toolbox use different capabilities. Check what you have and tell the user honestly what you can and cannot do.
49
+
50
+ **What each interface requires:**
51
+
52
+ | Interface | Requires | Examples |
53
+ |-----------|----------|----------|
54
+ | CLI | Shell access (run bash/node commands) | `wip-release patch`, `wip-install` |
55
+ | Module | Node.js import support | `import { release } from 'wip-release'` |
56
+ | MCP | MCP client support | `release`, `license_scan`, `repos_check` |
57
+ | OC Plugin | OpenClaw agent runtime | Plugin in `~/.openclaw/extensions/` |
58
+ | Skill | SKILL.md file (works in both CC and OpenClaw) | You're reading it right now |
59
+ | CC Hook | Claude Code CLI with hooks support | PreToolUse hooks in `~/.claude/settings.json` |
60
+
61
+ **Built and tested on:**
62
+ - **Claude Code CLI** ... full support (shell, MCP, CC Hooks)
63
+ - **OpenClaw** ... full support (shell, MCP, Plugins)
64
+
65
+ **How to assess your own platform:** Check which capabilities you have (shell access, MCP, hooks) and match them to the table above. If you can run shell commands, CLI tools work. If you can connect to MCP servers, MCP tools work. If you have neither, you can still read and explain the tools, but tell the user which commands to run themselves. Do not claim you can run commands you cannot execute.
66
+
67
+ ## Operating Rules
68
+
69
+ **Always dry-run first.** Before installing, deploying, or running any destructive operation, run with `--dry-run` so the user can see exactly what will change. Only proceed with the real operation when the user explicitly says to.
70
+
71
+ **Write dev updates as you work.** When doing significant work on a repo that uses this toolbox, write a dev update to `ai/dev-updates/YYYY-MM-DD--HH-MM--agent--description.md`. The release pipeline auto-detects these and uses them as release notes. No more thin one-liners.
72
+
73
+ ## Install
74
+
75
+ **You are an AI agent helping a user install AI DevOps Toolbox. Walk them through the process step by step. Ask questions, explain what you're doing, and let them make choices.**
76
+
77
+ ### Step 0: Check for LDM OS
78
+
79
+ LDM OS is the shared infrastructure that manages tool installation across all your AIs. Check if it's installed:
80
+
81
+ ```bash
82
+ ldm --version
83
+ ```
84
+
85
+ **If installed:** Tell the user their LDM OS version and skip to Step 1.
86
+
87
+ **If not installed:**
88
+
89
+ > "AI DevOps Toolbox uses LDM OS to manage installation. LDM OS is the shared infrastructure layer that lets all your AIs share tools, memory, and identity. It's a one-time setup. Want me to install it?"
90
+
91
+ When the user approves:
92
+
93
+ ```bash
94
+ npm install -g @wipcomputer/wip-ldm-os
95
+ ldm init
96
+ ```
97
+
98
+ If `npm` is not available, check if the user has Node.js installed (`node --version`). They need Node.js 18+. If not installed, tell them to install it from https://nodejs.org first.
99
+
100
+ ### Transparency: Tell the user what's about to happen
101
+
102
+ Before installing, explain exactly what will change:
103
+
104
+ > "Here's what AI DevOps Toolbox will set up on your system:
105
+ >
106
+ > - **CLI tools** on your PATH: wip-release, wip-repos, wip-file-guard, wip-license-hook, wip-license-guard, wip-repo-init, wip-readme-format, deploy-public, post-merge-rename, wip-branch-guard
107
+ > - **MCP servers** registered with Claude Code: release, license scanning, repo permissions, repo manifest
108
+ > - **Claude Code hooks**: identity file protection (blocks overwrites of CLAUDE.md, SOUL.md), repo visibility guard, branch guard (blocks writes on main)
109
+ > - **OpenClaw plugins** (if OpenClaw is detected): file-guard, license-hook, repo-permissions
110
+ > - **Extension registry** updated at ~/.ldm/extensions/registry.json
111
+ >
112
+ > Nothing touches your data. Code gets installed. Your files stay yours.
113
+ >
114
+ > Want to see a dry run first?"
115
+
116
+ ### Step 1: Dry Run
117
+
118
+ Always dry-run first:
119
+
120
+ ```bash
121
+ ldm install wipcomputer/wip-ai-devops-toolbox --dry-run
122
+ ```
123
+
124
+ Show the user the output. It lists every sub-tool and every interface that will be deployed. Walk through what each tool does:
125
+
126
+ - **wip-release** ... one-command releases (version bump, changelog, npm publish, GitHub release)
127
+ - **wip-license-hook** ... catches license changes in dependencies before they ship
128
+ - **wip-license-guard** ... enforces your own repo's copyright, LICENSE file, CLA
129
+ - **wip-file-guard** ... blocks destructive edits to identity files (CLAUDE.md, SOUL.md, MEMORY.md)
130
+ - **wip-repo-permissions-hook** ... blocks repos from going public without a -private counterpart
131
+ - **wip-repos** ... one source of truth for repo folder structure
132
+ - **wip-repo-init** ... scaffolds the standard ai/ directory in any repo
133
+ - **wip-readme-format** ... generates READMEs following a standard format
134
+ - **wip-branch-guard** ... blocks all writes on main branch (forces worktrees/branches)
135
+ - **deploy-public** ... syncs private repos to public mirrors
136
+ - **post-merge-rename** ... renames merged branches with dates for cleanup
137
+ - **universal-installer** ... detects and deploys tool interfaces
138
+
139
+ Ask: "Do you have questions about any of these? Want to proceed with the install?"
140
+
141
+ ### Step 2: Install
142
+
143
+ When the user says to proceed:
144
+
145
+ ```bash
146
+ ldm install wipcomputer/wip-ai-devops-toolbox
147
+ ```
148
+
149
+ ### Step 3: Verify
150
+
151
+ ```bash
152
+ ldm doctor
153
+ ```
154
+
155
+ This checks: all extensions deployed, hooks configured, MCP servers registered, CLI binaries on PATH.
156
+
157
+ Then test one tool:
158
+
159
+ ```bash
160
+ wip-release --version
161
+ ```
162
+
163
+ Tell the user: "AI DevOps Toolbox is installed. Your AI now knows how to release software, check license compliance, protect identity files, guard repo visibility, and manage repo manifests. These tools run automatically ... you don't need to invoke them manually."
164
+
165
+ ### Update
166
+
167
+ If AI DevOps Toolbox is already installed and a new version is available:
168
+
169
+ ```bash
170
+ ldm install wipcomputer/wip-ai-devops-toolbox
171
+ ldm doctor
172
+ ```
173
+
174
+ Updates deploy new code without touching data or configuration.
175
+
176
+ ---
177
+
178
+ ## Setup & Onboarding
179
+
180
+ ### Universal Installer (built into LDM OS)
181
+
182
+ Interface detection and deployment engine. Scans a repo, detects which interfaces it supports (CLI, MCP, OpenClaw Plugin, Skill, CC Hook, Module), and deploys each one to the right location. This is what powers `ldm install`.
183
+
184
+ **How it works:**
185
+
186
+ 1. Clones the repo (or reads a local path)
187
+ 2. Detects which interfaces the repo supports (scans for package.json bin, mcp-server.mjs, openclaw.plugin.json, SKILL.md, guard.mjs)
188
+ 3. If the repo has a `tools/` directory with sub-tools, it enters toolbox mode and installs each one
189
+ 4. For each tool, it deploys every detected interface:
190
+
191
+ | Interface | How it's detected | Where it deploys |
192
+ |-----------|------------------|-----------------|
193
+ | CLI | `package.json` has `bin` entries | `npm install -g` |
194
+ | Module | `package.json` has `main` or `exports` | Importable via `node_modules` |
195
+ | MCP Server | Has `mcp-server.mjs` or `mcp-server.js` | `claude mcp add --scope user` |
196
+ | OpenClaw Plugin | Has `openclaw.plugin.json` | `~/.ldm/extensions/` and `~/.openclaw/extensions/` |
197
+ | Skill | Has `SKILL.md` | `~/.openclaw/skills/<tool>/SKILL.md` |
198
+ | CC Hook | Has `guard.mjs` or `claudeCode.hook` in package.json | `~/.claude/settings.json` |
199
+
200
+ 5. Updates the extension registry at `~/.ldm/extensions/registry.json`
201
+
202
+ **Standalone fallback:** If LDM OS is not installed, the `wip-install` CLI provides the same detection and deployment. It will attempt to install LDM OS automatically, then delegate. If that fails, it falls back to standalone mode.
203
+
204
+ **Interfaces:** CLI, Module, Skill
205
+
206
+ ### Dev Guide
207
+
208
+ Your team's conventions, baked in. Best practices for AI-assisted development teams.
209
+
210
+ **What it covers:**
211
+ - Release process (branch, PR, merge, wip-release, deploy-public)
212
+ - Repo structure (the `ai/` folder convention, private/public pattern)
213
+ - Branch conventions (agent prefixes: `cc-mini/`, `lesa-mini/`, `cc-air/`)
214
+ - Branch protection rules
215
+ - Multi-agent clone workflow
216
+ - License compliance (dual MIT+AGPL, CLA)
217
+
218
+ **How to use it:** Read [DEV-GUIDE.md](DEV-GUIDE-GENERAL-PUBLIC.md) before doing repo work. It's the reference for how the team operates.
219
+
220
+ **Interface:** Documentation (no CLI, no MCP)
221
+
222
+ ---
223
+
224
+ ## Infrastructure
225
+
226
+ ### LDM Dev Tools.app
227
+
228
+ Scheduled automation that runs whether anyone remembers or not. macOS .app bundle with Full Disk Access.
229
+
230
+ **What it runs:**
231
+ - `backup.sh` ... backs up critical files
232
+ - `branch-protect.sh` ... audits branch protection rules across all repos
233
+ - `visibility-audit.sh` ... checks repo visibility matches the public/private pattern
234
+ - `crystal-capture.sh` ... triggers memory crystal capture
235
+
236
+ **Commands:**
237
+ ```
238
+ open -W ~/Applications/LDMDevTools.app --args backup
239
+ open -W ~/Applications/LDMDevTools.app --args branch-protect
240
+ open -W ~/Applications/LDMDevTools.app --args visibility-audit
241
+ ```
242
+
243
+ Scripts can also run standalone without the .app:
244
+ ```
245
+ bash tools/ldm-jobs/backup.sh
246
+ bash tools/ldm-jobs/branch-protect.sh
247
+ bash tools/ldm-jobs/visibility-audit.sh
248
+ ```
249
+
250
+ **Where it writes:** Depends on the script. Backup writes to the backup target. Audits write to stdout.
251
+
252
+ **Interface:** Standalone macOS app
253
+
254
+ ---
255
+
256
+ ## Release & Deploy
257
+
258
+ ### wip-release
259
+
260
+ Release software correctly. Version bump, changelog, npm publish, GitHub release. One command, nothing forgotten.
261
+
262
+ **Commands:**
263
+ ```
264
+ wip-release patch --notes="description" # bump patch (1.0.0 -> 1.0.1)
265
+ wip-release minor --notes="description" # bump minor (1.0.0 -> 1.1.0)
266
+ wip-release major --notes="description" # bump major (1.0.0 -> 2.0.0)
267
+ wip-release patch --dry-run # preview without changes
268
+ wip-release patch --no-publish # bump + tag only, skip npm/GitHub
269
+ wip-release patch --notes-file=path # read notes from a file
270
+ wip-release patch # auto-detect notes (see below)
271
+ ```
272
+
273
+ **Release notes auto-detection (first match wins):**
274
+
275
+ 1. `--notes-file=path` ... explicit file path
276
+ 2. `RELEASE-NOTES-v{ver}.md` in repo root (e.g. `RELEASE-NOTES-v1-7-4.md`)
277
+ 3. `ai/dev-updates/YYYY-MM-DD*` ... today's dev update files (most recent first)
278
+ 4. `--notes="one-liner"` ... used as fallback, but if a dev update exists with more content, the dev update wins
279
+
280
+ Write dev updates as you work. wip-release picks them up automatically. No more thin release notes.
281
+
282
+ **What happens when you run `wip-release`:**
283
+
284
+ 1. **Step 0:** License compliance gate. If `.license-guard.json` exists, checks LICENSE file, copyright, CLA.md, README license section. Aborts if any check fails.
285
+ 2. **Step 1:** Bumps version in `package.json`
286
+ 3. **Step 2:** Syncs version to `SKILL.md` (if it exists)
287
+ 4. **Step 3:** Updates `CHANGELOG.md` with the new version entry
288
+ 5. **Step 4:** Auto-detects release notes from RELEASE-NOTES file, ai/dev-updates/, or --notes flag
289
+ 6. **Step 5:** Commits the version bump
290
+ 7. **Step 6:** Creates git tag `v{version}`
291
+ 8. **Step 7:** Pushes commit and tag to origin
292
+ 9. **Step 8:** Publishes to npm (if not `private: true`)
293
+ 10. **Step 9:** Publishes to GitHub Packages
294
+ 11. **Step 10:** Creates GitHub release with release notes (full narrative, not one-liners)
295
+ 12. **Step 11:** Publishes SKILL.md to website as plain text (if SKILL.md exists and `WIP_WEBSITE_REPO` is set)
296
+ 13. **Step 12:** Renames merged branches with `--merged-YYYY-MM-DD`
297
+ 14. **Step 13:** Prunes old merged branches (keeps last 3 per developer prefix)
298
+
299
+ **Where it writes:** `package.json`, `SKILL.md`, `CHANGELOG.md`, git tags, npm registry, GitHub Releases
300
+
301
+ **Safety:**
302
+ - `--dry-run` previews everything without writing
303
+ - License gate prevents releasing with broken compliance
304
+ - If push fails (branch protection), it tells you to push manually via PR
305
+ - npm publish failure (e.g., `private: true`) is non-fatal; release continues
306
+
307
+ **MCP tools:** `release`, `release_status`
308
+
309
+ **Interfaces:** CLI, Module, MCP, Skill
310
+
311
+ ### deploy-public
312
+
313
+ Publish safely. Syncs a private repo to its clean public counterpart.
314
+
315
+ **Commands:**
316
+ ```
317
+ bash scripts/deploy-public.sh <private-repo-path> <public-github-repo>
318
+
319
+ # Example:
320
+ bash scripts/deploy-public.sh /path/to/memory-crystal-private wipcomputer/memory-crystal
321
+ ```
322
+
323
+ **What happens when you run it:**
324
+
325
+ 1. Clones the public repo to `/tmp/`
326
+ 2. Copies all files from the private repo, excluding `ai/` and `.git/`
327
+ 3. Creates a branch (`cc-mini/deploy-YYYYMMDD-HHMMSS`)
328
+ 4. Commits with the latest merge commit message from private
329
+ 5. Pushes the branch, creates a PR, merges it
330
+ 6. Deletes the deploy branch
331
+ 7. Creates or updates the GitHub release on the public repo (syncs release notes from private)
332
+ 8. Checks for and deletes stale branches on the public repo
333
+
334
+ **Where it writes:** Public GitHub repo (via PR). Local `/tmp/` for the clone (cleaned up).
335
+
336
+ **Safety:**
337
+ - Never pushes directly to main. Always uses a PR.
338
+ - The `ai/` folder is automatically excluded. Internal plans, todos, dev context never reach public.
339
+ - If the public repo doesn't exist, the script fails (doesn't create repos).
340
+
341
+ **Interfaces:** CLI, Skill
342
+
343
+ ### post-merge-rename
344
+
345
+ Cleans up after itself. Renames merged branches so you know what's done.
346
+
347
+ **Commands:**
348
+ ```
349
+ bash scripts/post-merge-rename.sh # rename merged branches
350
+ bash scripts/post-merge-rename.sh --prune # rename + delete old ones
351
+ bash scripts/post-merge-rename.sh --dry-run # preview without changes
352
+ ```
353
+
354
+ **What happens:**
355
+
356
+ 1. Scans remote branches that are fully merged into main
357
+ 2. Renames them by appending `--merged-YYYY-MM-DD` (e.g., `cc-mini/feature` becomes `cc-mini/feature--merged-2026-03-10`)
358
+ 3. With `--prune`: for each developer prefix (`cc-mini/`, `lesa-mini/`, etc.), keeps the last 3 merged branches and deletes the rest from the remote
359
+ 4. Also finds stale branches that are fully merged but were never renamed, and deletes them
360
+
361
+ **Rules:**
362
+ - Never deletes `main`
363
+ - Never deletes the current working branch
364
+ - Always keeps the last 3 per developer prefix
365
+
366
+ **Where it writes:** Remote branch names on GitHub (renames and deletes)
367
+
368
+ **Interfaces:** CLI, Skill
369
+
370
+ ### Skill Publish to Website
371
+
372
+ After every release, your SKILL.md goes live as plain text on your website. No manual copying.
373
+
374
+ **How it works:** Built into `wip-release`. If SKILL.md exists and a website repo is configured, the release pipeline automatically copies SKILL.md to `{website}/wip.computer/install/{name}.txt` and runs `deploy.sh` to push it live.
375
+
376
+ **Setup:** Add `.publish-skill.json` to your repo root:
377
+ ```json
378
+ {
379
+ "name": "wip-ai-devops-toolbox",
380
+ "websiteRepo": "/path/to/your-website-repo"
381
+ }
382
+ ```
383
+
384
+ That's it. Every release auto-publishes. The convention is `yoursite.com/install/{name}.txt`. Plain text, no HTML. Any AI can `fetch()` the URL and get clean, parseable install instructions.
385
+
386
+ **Name resolution (first match wins):**
387
+ 1. `.publish-skill.json` `name` field
388
+ 2. `package.json` name (with `@scope/` prefix stripped)
389
+ 3. Directory name (with `-private` suffix stripped)
390
+
391
+ **Website repo resolution:**
392
+ 1. `.publish-skill.json` `websiteRepo` field (per-repo config)
393
+ 2. `WIP_WEBSITE_REPO` env var (global fallback)
394
+
395
+ **Non-blocking:** If the website repo is missing, deploy fails, or neither config nor env var is set, the release still succeeds. You'll see a warning in the output.
396
+
397
+ **Interface:** Module (built into Release Pipeline)
398
+
399
+ ---
400
+
401
+ ## License, Compliance, and Protection
402
+
403
+ ### wip-file-guard
404
+
405
+ Knows what it can never overwrite. Blocks destructive edits to identity files.
406
+
407
+ **Protected files:** CLAUDE.md, SOUL.md, MEMORY.md, SHARED-CONTEXT.md, IDENTITY.md
408
+
409
+ **How it works as a CC Hook:**
410
+ - Runs as a PreToolUse hook in Claude Code
411
+ - Intercepts `Write` and `Edit` tool calls
412
+ - If the target file is a protected identity file:
413
+ - `Write` (full overwrite) is **blocked**
414
+ - `Edit` (partial edit) is **allowed** (appending/updating sections is fine)
415
+ - Returns JSON: `{"decision": "block", "reason": "..."}` or `{"decision": "allow"}`
416
+
417
+ **Commands:**
418
+ ```
419
+ wip-file-guard --list # list protected files
420
+ wip-file-guard --check <filepath> # check if a file is protected
421
+ ```
422
+
423
+ **As a CC Hook (automatic):**
424
+ Configured in `~/.claude/settings.json` under `hooks.PreToolUse`. Runs automatically on every Write/Edit call. No manual invocation needed.
425
+
426
+ **As an OpenClaw Plugin:**
427
+ Deployed to `~/.openclaw/extensions/wip-file-guard/`. Blocks destructive edits in the OpenClaw agent pipeline.
428
+
429
+ **Where it writes:** Nothing. It only reads and blocks.
430
+
431
+ **Interfaces:** CLI, Module, OpenClaw Plugin, Skill, CC Hook
432
+
433
+ ### wip-license-guard
434
+
435
+ Enforces licensing on every commit. Copyright, dual-license, CLA. Checked automatically.
436
+
437
+ **Commands:**
438
+ ```
439
+ wip-license-guard check # audit current repo
440
+ wip-license-guard check --fix # audit and auto-fix issues
441
+ wip-license-guard init # interactive first-run setup
442
+ wip-license-guard init --from-standard # apply WIP Computer defaults without prompting
443
+ ```
444
+
445
+ **What it checks:**
446
+ - LICENSE file exists and matches configured license type
447
+ - Copyright line is correct and current year
448
+ - CLA.md exists (if configured)
449
+ - README has a `## License` section
450
+ - For toolbox repos: checks every sub-tool in `tools/`
451
+
452
+ **Config:** `.license-guard.json` in repo root. Created by `init`. Contains copyright holder, license type, year, and what to enforce.
453
+
454
+ **As a wip-release gate:**
455
+ Step 0 of wip-release reads `.license-guard.json` and runs the same checks. Aborts the release if compliance fails.
456
+
457
+ **`--from-standard` generates:**
458
+ - `.license-guard.json` with WIP Computer defaults
459
+ - `LICENSE` file (dual MIT+AGPL)
460
+ - `CLA.md`
461
+
462
+ **Where it writes:** `.license-guard.json`, `LICENSE`, `CLA.md`, README (with `--fix`)
463
+
464
+ **Interfaces:** CLI
465
+
466
+ ### wip-license-hook
467
+
468
+ Catches license changes in dependencies before they ship.
469
+
470
+ **Commands:**
471
+ ```
472
+ wip-license-hook scan # scan all dependencies for license changes
473
+ wip-license-hook scan --json # output as JSON
474
+ wip-license-hook audit # full compliance audit
475
+ wip-license-hook ledger # show the license compliance ledger
476
+ wip-license-hook gate # pass/fail gate for CI or pre-merge
477
+ ```
478
+
479
+ **What it does:**
480
+ 1. Reads `package.json` and `package-lock.json`
481
+ 2. For each dependency, checks the current license against the last known license in the ledger
482
+ 3. If a license changed (rug-pull), flags it
483
+ 4. The ledger (`license-ledger.json`) tracks every dependency's license over time
484
+ 5. `gate` returns exit code 0 (pass) or 1 (fail) for CI integration
485
+
486
+ **Git hooks:**
487
+ - `pre-push` hook blocks pushes if license changes are detected
488
+ - `pre-pull` hook warns on pull if upstream changed licenses
489
+
490
+ **MCP tools:** `license_scan`, `license_audit`, `license_gate`, `license_ledger`
491
+
492
+ **Where it writes:** `license-ledger.json` (the compliance record)
493
+
494
+ **Interfaces:** CLI, Module, MCP, Skill
495
+
496
+ ---
497
+
498
+ ## Repo Management
499
+
500
+ ### wip-repo-permissions-hook
501
+
502
+ Never accidentally exposes a private repo.
503
+
504
+ **Commands:**
505
+ ```
506
+ wip-repo-permissions check wipcomputer/memory-crystal # check one repo
507
+ wip-repo-permissions audit wipcomputer # audit entire org
508
+ ```
509
+
510
+ **What it checks:**
511
+ - If a repo is public, does it have a `-private` counterpart?
512
+ - If not, it's flagged as exposed (internal content may be visible)
513
+
514
+ **As a CC Hook (automatic):**
515
+ Intercepts commands that could change repo visibility (e.g., `gh repo edit --visibility public`). Blocks if the `-private` counterpart doesn't exist.
516
+
517
+ **As an OpenClaw Plugin:**
518
+ Deployed to `~/.openclaw/extensions/wip-repo-permissions-hook/`. Same check in the agent pipeline.
519
+
520
+ **MCP tools:** `repo_permissions_check`, `repo_permissions_audit`
521
+
522
+ **Where it writes:** Nothing. It only reads and blocks.
523
+
524
+ **Interfaces:** CLI, Module, MCP, OpenClaw Plugin, Skill, CC Hook
525
+
526
+ ### wip-repos
527
+
528
+ Knows where every repo belongs. One source of truth for folder structure.
529
+
530
+ **Commands:**
531
+ ```
532
+ wip-repos check # compare filesystem to manifest
533
+ wip-repos sync --dry-run # preview what sync would move
534
+ wip-repos sync # move repos to match manifest
535
+ wip-repos add <org/repo> <category> # add a repo to the manifest
536
+ wip-repos move <org/repo> <new-category> # move a repo in the manifest
537
+ wip-repos tree # show the manifest as a tree
538
+ ```
539
+
540
+ **What it does:**
541
+ - Reads `repos-manifest.json` (the single source of truth)
542
+ - Compares against the actual filesystem
543
+ - `check` reports drift (repos in wrong locations, missing repos, unknown repos)
544
+ - `sync` moves repos to match the manifest
545
+
546
+ **MCP tools:** `repos_check`, `repos_sync_plan`, `repos_add`, `repos_move`, `repos_tree`
547
+
548
+ **Where it writes:** Moves directories on the filesystem (with `sync`). Updates `repos-manifest.json` (with `add`/`move`).
549
+
550
+ **Interfaces:** CLI, Module, MCP, Skill
551
+
552
+ ### wip-repo-init
553
+
554
+ Scaffold the standard `ai/` directory in any repo. One command.
555
+
556
+ **Commands:**
557
+ ```
558
+ wip-repo-init /path/to/repo # scaffold ai/ in a repo
559
+ wip-repo-init /path/to/repo --dry-run # preview without changes
560
+ wip-repo-init /path/to/repo --yes # skip confirmation prompt
561
+ ```
562
+
563
+ **What happens:**
564
+
565
+ **New repo (no ai/ folder):** Creates the full standard structure with READMEs explaining what goes where.
566
+
567
+ **Existing repo (ai/ folder exists):** Shows you what will happen and asks for confirmation:
568
+ 1. Moves your current `ai/` contents to `ai/_sort/ai_old/`
569
+ 2. Scaffolds the new standard structure
570
+ 3. You sort files from `ai_old/` into the new structure at your own pace
571
+
572
+ Nothing is deleted. Your old files are all in `ai/_sort/ai_old/`.
573
+
574
+ **The standard structure:**
575
+
576
+ ```
577
+ ai/
578
+ read-me-first.md <- explains everything, links to all sections
579
+ _sort/ <- holding pen for files that need sorting
580
+ _trash/ <- archive (never delete, move here)
581
+ dev-updates/ <- engineering changelog, auto-detected by wip-release
582
+ product/
583
+ readme-first-product.md <- the product bible
584
+ notes/ <- freeform notes, research
585
+ plans-prds/ <- plans with lifecycle stages
586
+ roadmap.md <- prioritized roadmap
587
+ current/ <- plans being built now
588
+ upcoming/ <- plans that are next
589
+ archive-complete/ <- plans that shipped
590
+ todos/ <- per-agent todo files
591
+ product-ideas/ <- ideas that aren't plans yet
592
+ ```
593
+
594
+ Every folder has a `_trash/` subfolder. Every section has a README.
595
+
596
+ **Where it writes:** Creates directories and files inside `ai/`. If an existing `ai/` is present, moves it to `ai/_sort/ai_old/`.
597
+
598
+ **Interfaces:** CLI, Skill
599
+
600
+ ### wip-readme-format
601
+
602
+ Generate or validate READMEs following the WIP Computer standard. One command.
603
+
604
+ **Commands:**
605
+ ```
606
+ wip-readme-format /path/to/repo # generate README-init-*.md section files
607
+ wip-readme-format /path/to/repo --deploy # assemble sections into README.md
608
+ wip-readme-format /path/to/repo --dry-run # preview without writing
609
+ wip-readme-format /path/to/repo --check # validate existing README against standard
610
+ ```
611
+
612
+ **What happens:**
613
+
614
+ **Generate mode (default):** Detects interfaces, reads SKILL.md for tool names, generates separate section files:
615
+ - `README-init-badges.md` ... org header + interface badges
616
+ - `README-init-title.md` ... title + tagline
617
+ - `README-init-teach.md` ... "Teach Your AI" onboarding block
618
+ - `README-init-features.md` ... features list (preserved from existing README or auto-generated for toolbox repos)
619
+ - `README-init-coverage.md` ... interface coverage table (toolbox repos only)
620
+ - `README-init-more-info.md` ... links to docs
621
+ - `README-init-license.md` ... license block + built-by line
622
+ - `README-init-technical.md` ... technical content extracted from old README
623
+
624
+ **Deploy mode:** Backs up existing README.md and TECHNICAL.md to `ai/_trash/`, assembles section files in order into README.md, moves technical to TECHNICAL.md, deletes the staging files.
625
+
626
+ Edit any section independently before deploying. Same pattern as release notes: staging, review, deploy.
627
+
628
+ **Toolbox mode:** For repos with `tools/` subdirectories, aggregates interfaces from all sub-tools for badges, generates an interface coverage table using SKILL.md `name:` frontmatter for human-readable names.
629
+
630
+ **Where it writes:** README-init-*.md files in the repo root (staging). On deploy: README.md, TECHNICAL.md, and backups to `ai/_trash/`.
631
+
632
+ **Interfaces:** CLI, Skill
633
+
634
+ ---
635
+
636
+ ## MCP Server Configuration
637
+
638
+ Tools with MCP interfaces are agent-callable. Add to `.mcp.json`:
639
+
640
+ ```json
641
+ {
642
+ "wip-release": {
643
+ "command": "node",
644
+ "args": ["/path/to/tools/wip-release/mcp-server.mjs"]
645
+ },
646
+ "wip-license-hook": {
647
+ "command": "node",
648
+ "args": ["/path/to/tools/wip-license-hook/mcp-server.mjs"]
649
+ },
650
+ "wip-repo-permissions": {
651
+ "command": "node",
652
+ "args": ["/path/to/tools/wip-repo-permissions-hook/mcp-server.mjs"]
653
+ },
654
+ "wip-repos": {
655
+ "command": "node",
656
+ "args": ["/path/to/tools/wip-repos/mcp-server.mjs"]
657
+ }
658
+ }
659
+ ```
660
+
661
+ **All MCP tools:**
662
+
663
+ | Tool | Function | What it does |
664
+ |------|----------|-------------|
665
+ | wip-release | `release` | Run a release (patch/minor/major) |
666
+ | wip-release | `release_status` | Get current version and release state |
667
+ | wip-license-hook | `license_scan` | Scan dependencies for license changes |
668
+ | wip-license-hook | `license_audit` | Full compliance audit |
669
+ | wip-license-hook | `license_gate` | Pass/fail gate for merges |
670
+ | wip-license-hook | `license_ledger` | Show the compliance record |
671
+ | wip-repo-permissions | `repo_permissions_check` | Check if a repo can go public |
672
+ | wip-repo-permissions | `repo_permissions_audit` | Audit entire org visibility |
673
+ | wip-repos | `repos_check` | Compare filesystem to manifest |
674
+ | wip-repos | `repos_sync_plan` | Preview what sync would change |
675
+ | wip-repos | `repos_add` | Add a repo to the manifest |
676
+ | wip-repos | `repos_move` | Move a repo in the manifest |
677
+ | wip-repos | `repos_tree` | Show manifest as a tree |
678
+
679
+ **Example prompts your AI can act on directly:**
680
+
681
+ ```
682
+ "Scan all dependencies for license changes" -> license_scan
683
+ "Check if memory-crystal can go public" -> repo_permissions_check
684
+ "Do a patch release with notes 'fix login bug'" -> release
685
+ "Show me which repos aren't in the manifest" -> repos_check
686
+ "Audit the whole org's repo visibility" -> repo_permissions_audit
687
+ "What version is this repo at?" -> release_status
688
+ "Gate this merge on license compliance" -> license_gate
689
+ "Show the license compliance ledger" -> license_ledger
690
+ ```
691
+
692
+ ---
693
+
694
+ ## Interface Coverage
695
+
696
+ | # | Tool | CLI | Module | MCP | OC Plugin | Skill | CC Hook | ClawHub |
697
+ |---|------|-----|--------|-----|-----------|-------|---------|---------|
698
+ | | **Setup & Onboarding** | | | | | | | |
699
+ | 1 | Universal Installer | Y | Y | | | Y | | |
700
+ | 2 | Dev Guide | | | | | | | |
701
+ | | **Infrastructure** | | | | | | | |
702
+ | 3 | LDM Dev Tools.app | | | | | | | |
703
+ | | **Release & Deploy** | | | | | | | |
704
+ | 4 | Release Pipeline | Y | Y | Y | | Y | | Y |
705
+ | 5 | Private-to-Public Sync | Y | | | | Y | | |
706
+ | 6 | Post-Merge Branch Naming | Y | | | | Y | | |
707
+ | | **License, Compliance, and Protection** | | | | | | | |
708
+ | 7 | Identity File Protection | Y | Y | | Y | Y | Y | Y |
709
+ | 8 | License Guard | Y | | | | | | |
710
+ | 9 | License Rug-Pull Detection | Y | Y | Y | | Y | | Y |
711
+ | | **Repo Management** | | | | | | | |
712
+ | 10 | Repo Visibility Guard | Y | Y | Y | Y | Y | Y | Y |
713
+ | 11 | Repo Manifest Reconciler | Y | Y | Y | | Y | | Y |
714
+ | 12 | Repo Init | Y | | | | Y | | |
715
+ | 13 | README Formatter | Y | | | | Y | | |
716
+
717
+ ---
718
+
719
+ ## License
720
+
721
+ ```
722
+ MIT All CLI tools, MCP servers, skills, and hooks (use anywhere, no restrictions).
723
+ AGPLv3 Commercial redistribution, marketplace listings, or bundling into paid services.
724
+ ```
725
+
726
+ AGPLv3 for personal use is free. Commercial licenses available.
727
+
728
+ Built by Parker Todd Brooks, Lēsa (OpenClaw, Claude Opus 4.6), Claude Code (Claude Opus 4.6).