@slamb2k/mad-skills 2.0.31 → 2.0.33

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mad-skills",
3
3
  "description": "AI-assisted planning, development and governance tools",
4
- "version": "2.0.31",
4
+ "version": "2.0.33",
5
5
  "author": {
6
6
  "name": "slamb2k",
7
7
  "url": "https://github.com/slamb2k"
@@ -11,6 +11,21 @@ model: sonnet
11
11
 
12
12
  You are a senior engineer responsible for crafting high-quality git commits and pull requests. You read and understand code — not just diffs — to produce meaningful, accurate descriptions of what changed and why.
13
13
 
14
+ ## CRITICAL: Platform Awareness
15
+
16
+ Your prompt will include a `PLATFORM` variable (`github` or `azdo`). You MUST
17
+ use this to choose the correct CLI tool for PR creation:
18
+
19
+ - **`PLATFORM: github`** → use `gh pr create`
20
+ - **`PLATFORM: azdo`** → use `az repos pr create` (NEVER use `gh` — it will fail)
21
+
22
+ If no PLATFORM variable is provided, detect it yourself from the remote URL:
23
+ - `github.com` → github
24
+ - `dev.azure.com` or `visualstudio.com` → azdo
25
+
26
+ **NEVER try `gh` commands on an Azure DevOps repository.** The `gh` CLI only
27
+ works with GitHub. Azure DevOps requires `az repos` / `az pipelines` commands.
28
+
14
29
  ## Core Principles
15
30
 
16
31
  1. **Read before writing** — Always read the actual diff AND relevant source files before composing commit messages. Never guess at intent from filenames alone.
@@ -74,11 +89,11 @@ When given a set of files to ship:
74
89
  4. **Push**
75
90
  - `git push -u origin <branch>`
76
91
 
77
- 5. **Create PR**
92
+ 5. **Create PR** (use the PLATFORM variable — do NOT guess)
78
93
  - Read the full diff against main to write the PR description
79
- - Detect platform from remote URL (github.com GitHub, dev.azure.com/visualstudio.com Azure DevOps)
80
- - GitHub: Use `gh pr create` with HEREDOC body
81
- - Azure DevOps: Use `az repos pr create --title "..." --description "..." --source-branch <branch> --target-branch <default> --output json`
94
+ - **If PLATFORM == github:** Use `gh pr create` with HEREDOC body
95
+ - **If PLATFORM == azdo:** Use `az repos pr create --title "..." --description "..." --source-branch <branch> --target-branch <default> --output json`
96
+ - **NEVER try `gh` on an Azure DevOps repo** it will fail with "none of the git remotes configured for this repository point to a known GitHub host"
82
97
 
83
98
  6. **Report results** in the structured format requested by the caller
84
99
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slamb2k/mad-skills",
3
- "version": "2.0.31",
3
+ "version": "2.0.33",
4
4
  "description": "Claude Code skills collection — full lifecycle development tools",
5
5
  "type": "module",
6
6
  "repository": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "generated": "2026-03-13T00:14:06.892Z",
2
+ "generated": "2026-03-13T08:31:55.875Z",
3
3
  "count": 10,
4
4
  "skills": [
5
5
  {
@@ -76,7 +76,7 @@
76
76
  "name": "ship",
77
77
  "directory": "ship",
78
78
  "description": "\"Ship changes through the full PR lifecycle. Use after completing feature work to commit, push, create PR, wait for checks, and merge. Handles the entire workflow: syncs with main, creates feature branch if needed, groups commits logically with semantic messages, creates detailed PR, monitors CI, fixes issues, squash merges, and cleans up. Invoke when work is ready to ship.\"",
79
- "lines": 374,
79
+ "lines": 388,
80
80
  "hasScripts": false,
81
81
  "hasReferences": true,
82
82
  "hasAssets": false,
@@ -91,6 +91,15 @@ fi
91
91
  Pass `{PLATFORM}` into all stage prompts. Each stage uses the appropriate
92
92
  CLI tool: `gh` for GitHub, `az repos`/`az pipelines` for Azure DevOps.
93
93
 
94
+ **Display the detected platform to the user immediately after detection:**
95
+ ```
96
+ ⚙️ Platform: GitHub (github.com)
97
+ ```
98
+ or:
99
+ ```
100
+ ⚙️ Platform: Azure DevOps ({AZDO_ORG}/{AZDO_PROJECT})
101
+ ```
102
+
94
103
  ---
95
104
 
96
105
  ## Pre-flight
@@ -312,7 +321,7 @@ attempt = 0
312
321
  while attempt < 2:
313
322
  CHECKS = run_watch()
314
323
  if CHECKS.status == "all_passed" or CHECKS.status == "no_checks":
315
- break → proceed to Stage 5
324
+ break → proceed immediately to Stage 5 (do NOT ask user to confirm merge)
316
325
  attempt += 1
317
326
  run_fix(CHECKS.failing_checks)
318
327
  → loop back to watch
@@ -325,6 +334,11 @@ if attempt == 2 and still failing:
325
334
 
326
335
  ## Stage 5: Merge & Final Sync
327
336
 
337
+ Once checks pass, **immediately proceed to merge — do not ask the user for
338
+ confirmation.** The user invoked `/ship` expecting the full lifecycle; stopping
339
+ to ask defeats the purpose. Squash merge and delete the source branch are the
340
+ defaults (override via `--no-squash` and `--keep-branch` flags only).
341
+
328
342
  Launch **Bash subagent** (haiku — simple git + platform CLI commands):
329
343
 
330
344
  ```
@@ -19,7 +19,11 @@ push to a feature branch, and create a pull request.
19
19
 
20
20
  Limit SHIP_REPORT to 15 lines maximum.
21
21
 
22
+ CRITICAL — READ THIS FIRST:
22
23
  PLATFORM: {PLATFORM}
24
+ Use ONLY the tools for this platform. GitHub = gh CLI. Azure DevOps = az repos CLI.
25
+ NEVER use gh commands on an Azure DevOps repository — they WILL fail.
26
+
23
27
  USER INTENT: {USER_INTENT}
24
28
 
25
29
  FILES TO INCLUDE: {FILES_TO_INCLUDE}
@@ -364,6 +368,7 @@ FIX_REPORT:
364
368
 
365
369
  ```
366
370
  Merge the pull request and sync local {DEFAULT_BRANCH}.
371
+ Do NOT ask the user for confirmation — proceed immediately.
367
372
 
368
373
  Limit LAND_REPORT to 10 lines maximum.
369
374