@slamb2k/mad-skills 2.0.31 → 2.0.32
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/agents/ship-analyzer.md
CHANGED
|
@@ -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
|
-
-
|
|
80
|
-
-
|
|
81
|
-
- Azure DevOps
|
|
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
package/skills/manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generated": "2026-03-
|
|
2
|
+
"generated": "2026-03-13T06:55:42.461Z",
|
|
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":
|
|
79
|
+
"lines": 383,
|
|
80
80
|
"hasScripts": false,
|
|
81
81
|
"hasReferences": true,
|
|
82
82
|
"hasAssets": false,
|
package/skills/ship/SKILL.md
CHANGED
|
@@ -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
|
|
@@ -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}
|