@olegkoval/agent-skills 1.28.0 → 1.29.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.
- package/.claude-plugin/plugin.json +6 -2
- package/.cursor-plugin/index.json +21 -1
- package/.grok-plugin/index.json +21 -1
- package/.kiro/steering/garmin-watchface.md +83 -31
- package/.windsurf/rules/garmin-watchface.md +83 -31
- package/README.md +5 -1
- package/catalog/skills.json +95 -1
- package/package.json +1 -1
- package/packages/software-development/branch-cleanup/SKILL.md +204 -0
- package/packages/software-development/branch-cleanup/adapters/claude/plugin.json +5 -0
- package/packages/software-development/branch-cleanup/adapters/claude/skills/branch-cleanup/SKILL.md +205 -0
- package/packages/software-development/branch-cleanup/adapters/codex/README.md +19 -0
- package/packages/software-development/branch-cleanup/adapters/cursor/plugin.json +6 -0
- package/packages/software-development/branch-cleanup/adapters/cursor/skills/branch-cleanup/SKILL.md +205 -0
- package/packages/software-development/branch-cleanup/adapters/grok/plugin.json +6 -0
- package/packages/software-development/branch-cleanup/adapters/grok/skills/branch-cleanup/SKILL.md +205 -0
- package/packages/software-development/morning-routine/SKILL.md +149 -0
- package/packages/software-development/morning-routine/adapters/claude/plugin.json +5 -0
- package/packages/software-development/morning-routine/adapters/claude/skills/morning-routine/SKILL.md +150 -0
- package/packages/software-development/morning-routine/adapters/codex/README.md +19 -0
- package/packages/software-development/morning-routine/adapters/cursor/plugin.json +6 -0
- package/packages/software-development/morning-routine/adapters/cursor/skills/morning-routine/SKILL.md +150 -0
- package/packages/software-development/morning-routine/adapters/grok/plugin.json +6 -0
- package/packages/software-development/morning-routine/adapters/grok/skills/morning-routine/SKILL.md +150 -0
- package/packages/software-development/pr-finalize-complete/adapters/claude/plugin.json +1 -1
- package/packages/software-development/pr-finalize-complete/adapters/codex/README.md +7 -11
- package/packages/software-development/pr-finalize-complete/adapters/cursor/plugin.json +1 -1
- package/packages/software-development/pr-finalize-complete/adapters/grok/plugin.json +1 -1
- package/packages/software-development/release-day/SKILL.md +286 -0
- package/packages/software-development/release-day/adapters/claude/plugin.json +5 -0
- package/packages/software-development/release-day/adapters/claude/skills/release-day/SKILL.md +287 -0
- package/packages/software-development/release-day/adapters/codex/README.md +19 -0
- package/packages/software-development/release-day/adapters/cursor/plugin.json +6 -0
- package/packages/software-development/release-day/adapters/cursor/skills/release-day/SKILL.md +287 -0
- package/packages/software-development/release-day/adapters/grok/plugin.json +6 -0
- package/packages/software-development/release-day/adapters/grok/skills/release-day/SKILL.md +287 -0
- package/packages/wearables/garmin-watchface/SKILL.md +82 -35
- package/packages/wearables/garmin-watchface/adapters/claude/plugin.json +1 -1
- package/packages/wearables/garmin-watchface/adapters/claude/skills/garmin-watchface/SKILL.md +82 -35
- package/packages/wearables/garmin-watchface/adapters/claude/skills/garmin-watchface/references/design-proposals.md +99 -0
- package/packages/wearables/garmin-watchface/adapters/claude/skills/garmin-watchface/references/devices.md +112 -0
- package/packages/wearables/garmin-watchface/adapters/claude/skills/garmin-watchface/references/display.md +78 -3
- package/packages/wearables/garmin-watchface/adapters/claude/skills/garmin-watchface/references/inspiration-wizard.md +140 -0
- package/packages/wearables/garmin-watchface/adapters/claude/skills/garmin-watchface/references/layout.md +28 -0
- package/packages/wearables/garmin-watchface/adapters/claude/skills/garmin-watchface/references/publishing.md +134 -5
- package/packages/wearables/garmin-watchface/adapters/claude/skills/garmin-watchface/references/simulator.md +86 -2
- package/packages/wearables/garmin-watchface/adapters/claude/skills/garmin-watchface/scripts/ciq-inspire +329 -0
- package/packages/wearables/garmin-watchface/adapters/claude/skills/garmin-watchface/scripts/ciq-mock +502 -0
- package/packages/wearables/garmin-watchface/adapters/claude/skills/garmin-watchface/scripts/ciq-release +12 -6
- package/packages/wearables/garmin-watchface/adapters/cursor/plugin.json +1 -1
- package/packages/wearables/garmin-watchface/adapters/cursor/skills/garmin-watchface/SKILL.md +82 -35
- package/packages/wearables/garmin-watchface/adapters/cursor/skills/garmin-watchface/references/design-proposals.md +99 -0
- package/packages/wearables/garmin-watchface/adapters/cursor/skills/garmin-watchface/references/devices.md +112 -0
- package/packages/wearables/garmin-watchface/adapters/cursor/skills/garmin-watchface/references/display.md +78 -3
- package/packages/wearables/garmin-watchface/adapters/cursor/skills/garmin-watchface/references/inspiration-wizard.md +140 -0
- package/packages/wearables/garmin-watchface/adapters/cursor/skills/garmin-watchface/references/layout.md +28 -0
- package/packages/wearables/garmin-watchface/adapters/cursor/skills/garmin-watchface/references/publishing.md +134 -5
- package/packages/wearables/garmin-watchface/adapters/cursor/skills/garmin-watchface/references/simulator.md +86 -2
- package/packages/wearables/garmin-watchface/adapters/cursor/skills/garmin-watchface/scripts/ciq-inspire +329 -0
- package/packages/wearables/garmin-watchface/adapters/cursor/skills/garmin-watchface/scripts/ciq-mock +502 -0
- package/packages/wearables/garmin-watchface/adapters/cursor/skills/garmin-watchface/scripts/ciq-release +12 -6
- package/packages/wearables/garmin-watchface/adapters/grok/plugin.json +1 -1
- package/packages/wearables/garmin-watchface/adapters/grok/skills/garmin-watchface/SKILL.md +82 -35
- package/packages/wearables/garmin-watchface/adapters/grok/skills/garmin-watchface/references/design-proposals.md +99 -0
- package/packages/wearables/garmin-watchface/adapters/grok/skills/garmin-watchface/references/devices.md +112 -0
- package/packages/wearables/garmin-watchface/adapters/grok/skills/garmin-watchface/references/display.md +78 -3
- package/packages/wearables/garmin-watchface/adapters/grok/skills/garmin-watchface/references/inspiration-wizard.md +140 -0
- package/packages/wearables/garmin-watchface/adapters/grok/skills/garmin-watchface/references/layout.md +28 -0
- package/packages/wearables/garmin-watchface/adapters/grok/skills/garmin-watchface/references/publishing.md +134 -5
- package/packages/wearables/garmin-watchface/adapters/grok/skills/garmin-watchface/references/simulator.md +86 -2
- package/packages/wearables/garmin-watchface/adapters/grok/skills/garmin-watchface/scripts/ciq-inspire +329 -0
- package/packages/wearables/garmin-watchface/adapters/grok/skills/garmin-watchface/scripts/ciq-mock +502 -0
- package/packages/wearables/garmin-watchface/adapters/grok/skills/garmin-watchface/scripts/ciq-release +12 -6
- package/packages/wearables/garmin-watchface/adapters/kiro/steering/garmin-watchface.md +83 -31
- package/packages/wearables/garmin-watchface/adapters/windsurf/rules/garmin-watchface.md +83 -31
- package/packages/wearables/garmin-watchface/references/design-proposals.md +99 -0
- package/packages/wearables/garmin-watchface/references/devices.md +112 -0
- package/packages/wearables/garmin-watchface/references/display.md +78 -3
- package/packages/wearables/garmin-watchface/references/inspiration-wizard.md +140 -0
- package/packages/wearables/garmin-watchface/references/layout.md +28 -0
- package/packages/wearables/garmin-watchface/references/publishing.md +134 -5
- package/packages/wearables/garmin-watchface/references/simulator.md +86 -2
- package/packages/wearables/garmin-watchface/scripts/ciq-inspire +329 -0
- package/packages/wearables/garmin-watchface/scripts/ciq-mock +502 -0
- package/packages/wearables/garmin-watchface/scripts/ciq-release +12 -6
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "olko:morning-routine",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Run the complete start-of-day setup in one pass: roll over unfinished Obsidian tasks to today's daily note, sync open GitHub PRs that need your attention, and sweep Dependabot patch bumps. Chains obsidian-task-rollover, obsidian-pr-sync, and dependabot-triage.",
|
|
5
|
+
"skills": "skills/"
|
|
6
|
+
}
|
package/packages/software-development/morning-routine/adapters/grok/skills/morning-routine/SKILL.md
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: morning-routine
|
|
3
|
+
description: >
|
|
4
|
+
Run the complete start-of-day setup in one pass: roll over unfinished Obsidian tasks
|
|
5
|
+
to today's daily note, sync open GitHub PRs that need your attention, and sweep
|
|
6
|
+
Dependabot/Renovate PRs to clear safe patch bumps. Use when the user says "start my
|
|
7
|
+
day", "morning routine", "set up my day", or when a scheduled morning job fires.
|
|
8
|
+
license: MIT
|
|
9
|
+
allowed-tools: Bash, Read, Write, Edit
|
|
10
|
+
compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools. Requires git and gh (GitHub CLI) authenticated, plus a daily-note vault path configured.
|
|
11
|
+
metadata:
|
|
12
|
+
targets: [_source-only]
|
|
13
|
+
author: Oleg Koval
|
|
14
|
+
tags:
|
|
15
|
+
- morning
|
|
16
|
+
- obsidian
|
|
17
|
+
- daily-note
|
|
18
|
+
- github
|
|
19
|
+
- dependabot
|
|
20
|
+
- productivity
|
|
21
|
+
- routine
|
|
22
|
+
- automation
|
|
23
|
+
source: weekly-pattern-learner
|
|
24
|
+
source_reason: "obsidian-task-rollover, obsidian-pr-sync, and dependabot-triage all describe themselves as morning-routine steps but no meta-skill chains them into a single first-thing-of-day pass"
|
|
25
|
+
source_date: "2026-08-10"
|
|
26
|
+
---
|
|
27
|
+
<!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->
|
|
28
|
+
|
|
29
|
+
> 🤖 *Auto-generated by **weekly-pattern-learner** · obsidian-task-rollover, obsidian-pr-sync, and dependabot-triage all describe themselves as morning-routine steps but no meta-skill chains them into a single first-thing-of-day pass*
|
|
30
|
+
|
|
31
|
+
# Morning Routine
|
|
32
|
+
|
|
33
|
+
Run the three start-of-day workflows in sequence, then summarize what needs your
|
|
34
|
+
attention today. Each phase is idempotent — re-running is safe.
|
|
35
|
+
|
|
36
|
+
## Inputs
|
|
37
|
+
|
|
38
|
+
- **VAULT_DAILY** (required): absolute path to the Obsidian daily notes folder
|
|
39
|
+
- **GH_USERNAME** (required): GitHub login for PR filtering
|
|
40
|
+
- **ORG_PREFIX** (optional): org name to group as "Work" in the PR section
|
|
41
|
+
- **--skip-rollover** (optional): skip task rollover (e.g. Monday after a break)
|
|
42
|
+
- **--skip-pr-sync** (optional): skip GitHub PR sync
|
|
43
|
+
- **--skip-dependabot** (optional): skip Dependabot triage
|
|
44
|
+
|
|
45
|
+
If any required config is missing, ask once before starting — don't abort midway.
|
|
46
|
+
|
|
47
|
+
## Phase 1 — Task rollover
|
|
48
|
+
|
|
49
|
+
Initialize the daily note path once, before any optional phase:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
NOTE="${VAULT_DAILY}/$(date +%Y-%m-%d).md"
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Run `olko:obsidian-task-rollover` on the **previous workday's** note.
|
|
56
|
+
|
|
57
|
+
`obsidian-task-rollover` is an end-of-day migration skill — it copies unchecked tasks
|
|
58
|
+
from a given day's note into the next workday's note with a `[>]` marker. When invoked
|
|
59
|
+
here in the morning, it should operate on **yesterday's** (or the last workday's) note
|
|
60
|
+
so those unchecked tasks are pulled forward into today's note. If yesterday's note does
|
|
61
|
+
not exist, skip this step and note it in the report.
|
|
62
|
+
|
|
63
|
+
**Skip if** `--skip-rollover` is set, or if it's Monday and the user has explicitly
|
|
64
|
+
said they clear the board on Fridays.
|
|
65
|
+
|
|
66
|
+
After this phase, confirm:
|
|
67
|
+
```bash
|
|
68
|
+
grep -c "^\- \[ \]" "$NOTE" 2>/dev/null || echo "0" # open tasks today
|
|
69
|
+
grep -c "^\- \[>\]" "$NOTE" 2>/dev/null || echo "0" # migrated tasks
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Record counts for the final report.
|
|
73
|
+
|
|
74
|
+
## Phase 2 — PR sync
|
|
75
|
+
|
|
76
|
+
Run `olko:obsidian-pr-sync`.
|
|
77
|
+
|
|
78
|
+
This fetches all open GitHub PRs where the user is assignee or review-requested,
|
|
79
|
+
filters out bots and drafts, and writes or replaces the `## PRs to review` section
|
|
80
|
+
in today's daily note. PRs are grouped into Work (ORG_PREFIX org) and Personal.
|
|
81
|
+
|
|
82
|
+
**Skip if** `--skip-pr-sync` is set.
|
|
83
|
+
|
|
84
|
+
After this phase, count PRs written:
|
|
85
|
+
```bash
|
|
86
|
+
grep -c "^\- \[ \] \[" "$NOTE" 2>/dev/null || echo "0"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Phase 3 — Dependabot triage (quick sweep)
|
|
90
|
+
|
|
91
|
+
Run `olko:dependabot-triage` with `patch-only` auto-merge policy.
|
|
92
|
+
|
|
93
|
+
This auto-approves and merges safe patch bumps whose CI is green, flags major
|
|
94
|
+
upgrades for human review, and posts a digest. The `patch-only` policy means no
|
|
95
|
+
minor or major bumps are merged automatically — just the safest dependency noise.
|
|
96
|
+
|
|
97
|
+
**Skip if** `--skip-dependabot` is set, or if there are no open dependency PRs:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
gh pr list --state open \
|
|
101
|
+
--json author --jq '
|
|
102
|
+
[.[] | select(.author.login | test("dependabot|renovate"; "i"))]
|
|
103
|
+
| length
|
|
104
|
+
' 2>/dev/null
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
If the count is 0, skip phase 3 and note it in the report.
|
|
108
|
+
|
|
109
|
+
## Final report
|
|
110
|
+
|
|
111
|
+
Print a compact brief suitable for the start of the day:
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
Morning routine complete — YYYY-MM-DD
|
|
115
|
+
|
|
116
|
+
Tasks: N open today (M carried over from yesterday)
|
|
117
|
+
PRs: X work PRs, Y personal PRs → see ## PRs to review in today's note
|
|
118
|
+
Dependabot: Z merged (patch, CI green), W flagged for review
|
|
119
|
+
|
|
120
|
+
Today's top 3:
|
|
121
|
+
[read from ## Top 3 for today section if populated, else print "(not filled in yet)"]
|
|
122
|
+
|
|
123
|
+
Flagged for you:
|
|
124
|
+
- [PRs older than 7 days ⚠️ from the PR sync, if any]
|
|
125
|
+
- [Major Dependabot bumps flagged for human decision, if any]
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
If a phase failed (auth expired, vault not found, network error), surface the error
|
|
129
|
+
clearly rather than silently skipping that phase.
|
|
130
|
+
|
|
131
|
+
## Invocation patterns
|
|
132
|
+
|
|
133
|
+
**Manual (user-triggered):**
|
|
134
|
+
User says "start my day", "run morning routine", or "set up today's note".
|
|
135
|
+
Run the full flow and show the final report.
|
|
136
|
+
|
|
137
|
+
**Scheduled (cron / CCR):**
|
|
138
|
+
No user prompt needed. Run all three phases silently and emit the report as the
|
|
139
|
+
run's output. Useful as a pre-meeting brief or as a first message in a new session.
|
|
140
|
+
|
|
141
|
+
**Partial run:**
|
|
142
|
+
If the user wants to re-sync only PRs mid-day: `--skip-rollover --skip-dependabot`.
|
|
143
|
+
|
|
144
|
+
## Chaining
|
|
145
|
+
|
|
146
|
+
| Before this skill | After this skill |
|
|
147
|
+
|---|---|
|
|
148
|
+
| — (start of session) | Work the PR queue (`olko:pr-to-green` on flagged items) |
|
|
149
|
+
| — | `olko:dependabot-triage` with `patch-and-minor` if the quick sweep flagged many |
|
|
150
|
+
| `olko:obsidian-task-rollover` alone | nothing — this skill already calls it |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "olko-pr-finalize-complete",
|
|
3
|
-
"description": "
|
|
3
|
+
"description": "Comprehensive PR finalization workflow for PRs that may already be partially addressed: checks each review comment's actual current status in code, distinguishes fixed vs. stale vs. still-present findings, verifies test coverage, runs real lint/test gates, and reports what still needs a human.",
|
|
4
4
|
"skills": "./skills"
|
|
5
5
|
}
|
|
@@ -7,18 +7,14 @@ The canonical skill definition is in `../../SKILL.md`.
|
|
|
7
7
|
|
|
8
8
|
Invoke in a Codex session:
|
|
9
9
|
|
|
10
|
-
```
|
|
11
|
-
Use the olko:pr-finalize-complete skill to verify this PR is
|
|
10
|
+
```text
|
|
11
|
+
Use the olko:pr-finalize-complete skill to verify this PR is genuinely merge-ready.
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
## Workflow
|
|
15
15
|
|
|
16
|
-
See `../../SKILL.md` for the full workflow:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
agent-agnostic.
|
|
21
|
-
|
|
22
|
-
Use this rather than `pr-finalize` when the work is believed already done and you need that claim
|
|
23
|
-
verified. The skill's non-negotiables are the point: never claim a test passed without running it,
|
|
24
|
-
and never resolve a bot comment without checking whether the issue still exists.
|
|
16
|
+
See `../../SKILL.md` for the full workflow: establish ground truth on PR state, rebase
|
|
17
|
+
only if needed, triage each review comment to determine if it's already fixed, stale,
|
|
18
|
+
still present, or a false positive, verify unit test coverage for changed files, run
|
|
19
|
+
the real lint/format/test gates, push if needed, and report what still needs a human.
|
|
20
|
+
The procedure is plain git/gh and is agent-agnostic.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "olko:pr-finalize-complete",
|
|
3
3
|
"version": "0.1.0",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Comprehensive PR finalization workflow for PRs that may already be partially addressed: checks each review comment's actual current status in code, distinguishes fixed vs. stale vs. still-present findings, verifies test coverage, runs real lint/test gates, and reports what still needs a human.",
|
|
5
5
|
"skills": "skills/"
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "olko:pr-finalize-complete",
|
|
3
3
|
"version": "0.1.0",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Comprehensive PR finalization workflow for PRs that may already be partially addressed: checks each review comment's actual current status in code, distinguishes fixed vs. stale vs. still-present findings, verifies test coverage, runs real lint/test gates, and reports what still needs a human.",
|
|
5
5
|
"skills": "skills/"
|
|
6
6
|
}
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: release-day
|
|
3
|
+
description: >
|
|
4
|
+
Orchestrate a full release-day workflow for iOS, Android, or Garmin apps: verify the
|
|
5
|
+
main branch CI is green, generate a changelog from git history, draft platform-ready
|
|
6
|
+
store listing copy, trigger semantic-release (or tag manually), wait for the build,
|
|
7
|
+
and queue the App Store submission. Use when the user says "cut a release", "ship
|
|
8
|
+
version X", "it's release day", or "prepare the release".
|
|
9
|
+
license: MIT
|
|
10
|
+
allowed-tools: Bash, Read, Write, Edit, WebSearch
|
|
11
|
+
compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools. Requires git, gh, and the target platform's release toolchain (fastlane, Xcode CLI, Garmin SDK, or npm with semantic-release).
|
|
12
|
+
metadata:
|
|
13
|
+
targets: [_source-only]
|
|
14
|
+
author: Oleg Koval
|
|
15
|
+
tags:
|
|
16
|
+
- release
|
|
17
|
+
- ios
|
|
18
|
+
- android
|
|
19
|
+
- garmin
|
|
20
|
+
- app-store
|
|
21
|
+
- changelog
|
|
22
|
+
- store-listing
|
|
23
|
+
- semantic-release
|
|
24
|
+
- deployment
|
|
25
|
+
- automation
|
|
26
|
+
source: weekly-pattern-learner
|
|
27
|
+
source_reason: "changelog-generator, store-listing-copy, and apple-store-submit each reference each other in their Chaining tables but no skill chains them into a single end-to-end release-day workflow"
|
|
28
|
+
source_date: "2026-08-10"
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
> 🤖 *Auto-generated by **weekly-pattern-learner** · changelog-generator, store-listing-copy, and apple-store-submit each reference each other in their Chaining tables but no skill chains them into a single end-to-end release-day workflow*
|
|
32
|
+
|
|
33
|
+
# Release Day
|
|
34
|
+
|
|
35
|
+
Drive a release from "code is ready" to "build submitted" in one orchestrated pass.
|
|
36
|
+
Each phase validates its output before proceeding — the skill stops and reports
|
|
37
|
+
rather than pushing a broken release.
|
|
38
|
+
|
|
39
|
+
## Inputs
|
|
40
|
+
|
|
41
|
+
- **Platform** (required): `ios`, `android`, `garmin`, or `all`
|
|
42
|
+
- **Version** (optional): explicit version to release; if omitted, semantic-release
|
|
43
|
+
determines the next version automatically
|
|
44
|
+
- **Branch** (optional, default: `main`): branch to release from
|
|
45
|
+
- **--dry-run** (optional): run all checks and generate all copy without pushing
|
|
46
|
+
the tag or submitting to the store
|
|
47
|
+
|
|
48
|
+
## Phase 1 — Verify the branch is ready
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
BRANCH="${Branch:-main}"
|
|
52
|
+
git fetch origin "$BRANCH"
|
|
53
|
+
BRANCH_SHA=$(git rev-parse "origin/$BRANCH")
|
|
54
|
+
|
|
55
|
+
# Validate optional Version input
|
|
56
|
+
if [ -n "$Version" ]; then
|
|
57
|
+
if ! echo "$Version" | grep -qE '^v?[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.]+)?$'; then
|
|
58
|
+
echo "Error: Version '$Version' is not a valid SemVer (e.g. 1.2.3 or v1.2.3)" >&2
|
|
59
|
+
exit 1
|
|
60
|
+
fi
|
|
61
|
+
fi
|
|
62
|
+
|
|
63
|
+
git status --short
|
|
64
|
+
|
|
65
|
+
# Last release tag
|
|
66
|
+
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "none")
|
|
67
|
+
|
|
68
|
+
# Commits since last release
|
|
69
|
+
if [ "$LAST_TAG" = "none" ]; then
|
|
70
|
+
git log "origin/$BRANCH" --oneline --no-merges | head -20
|
|
71
|
+
else
|
|
72
|
+
git log "${LAST_TAG}..origin/$BRANCH" --oneline --no-merges | head -20
|
|
73
|
+
fi
|
|
74
|
+
|
|
75
|
+
# CI state on branch
|
|
76
|
+
gh run list --branch "$BRANCH" --limit 3 --json status,conclusion,workflowName \
|
|
77
|
+
--jq '.[] | "\(.workflowName): \(.conclusion // .status)"'
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
**Stop if:**
|
|
81
|
+
- `git status --short` is non-empty — there are uncommitted changes
|
|
82
|
+
- The latest CI run on main is failing or still in progress
|
|
83
|
+
- There are zero commits since the last tag (nothing to release)
|
|
84
|
+
|
|
85
|
+
Report the problem clearly and stop — do not proceed to a release if the branch
|
|
86
|
+
is not clean and green.
|
|
87
|
+
|
|
88
|
+
## Phase 2 — Generate changelog
|
|
89
|
+
|
|
90
|
+
Run `olko:changelog-generator`.
|
|
91
|
+
|
|
92
|
+
Use the range `${LAST_TAG}..origin/${BRANCH}` (or `origin/${BRANCH}` if no prior tag exists). Produce a
|
|
93
|
+
structured changelog with sections: New Features, Improvements, Bug Fixes, Breaking
|
|
94
|
+
Changes. Strip internal commits (refactor, test, ci, chore without behavior impact).
|
|
95
|
+
|
|
96
|
+
Write the changelog to:
|
|
97
|
+
```bash
|
|
98
|
+
RELEASE_DIR="$(mktemp -d)/release-$(date +%Y-%m-%d)"
|
|
99
|
+
mkdir -p "$RELEASE_DIR"
|
|
100
|
+
# changelog-generator writes to CHANGELOG.md — validate before proceeding
|
|
101
|
+
if [ ! -s CHANGELOG.md ]; then
|
|
102
|
+
echo "Error: CHANGELOG.md is missing or empty — cannot continue." >&2
|
|
103
|
+
exit 1
|
|
104
|
+
fi
|
|
105
|
+
cp CHANGELOG.md "$RELEASE_DIR/changelog.md"
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Review the generated changelog for accuracy before continuing. If commits are
|
|
109
|
+
ambiguous (e.g. `fix: thing`), use `git show <sha>` to read the diff and
|
|
110
|
+
re-classify the entry.
|
|
111
|
+
|
|
112
|
+
## Phase 3 — Draft store listing copy
|
|
113
|
+
|
|
114
|
+
Run `olko:store-listing-copy` with `--platform <platform>`.
|
|
115
|
+
|
|
116
|
+
This reads the changelog from Phase 2 and drafts:
|
|
117
|
+
- iOS: Title, Subtitle, What's New (4000 chars), Keywords (100 chars)
|
|
118
|
+
- Android: Title (30), Short Description (80), Release Notes (500)
|
|
119
|
+
- Garmin: Description, What's New (1500 chars)
|
|
120
|
+
|
|
121
|
+
The skill validates field lengths and known store-validator rules (e.g., no `<`/`>` in
|
|
122
|
+
Garmin copy) before delivering. Output goes to:
|
|
123
|
+
```
|
|
124
|
+
store-copy-v<version>-<YYYY-MM-DD>.md
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
**Do not proceed until store copy passes validation.** Fix any overflow or forbidden
|
|
128
|
+
character before tagging.
|
|
129
|
+
|
|
130
|
+
## Phase 4 — Trigger the release
|
|
131
|
+
|
|
132
|
+
### If semantic-release is configured
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
# Dry-run first to confirm version and release notes
|
|
136
|
+
set -o pipefail
|
|
137
|
+
if ! npm run release:dry-run 2>&1 | tail -40; then
|
|
138
|
+
echo "Dry-run failed — aborting release." >&2
|
|
139
|
+
exit 1
|
|
140
|
+
fi
|
|
141
|
+
|
|
142
|
+
# On confirmation (or with --dry-run: stop here)
|
|
143
|
+
git push origin "$BRANCH" # trigger CI which runs semantic-release
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Wait for the GitHub Actions release workflow to complete:
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
# Capture run ID for the push commit so we poll the right run
|
|
150
|
+
sleep 10
|
|
151
|
+
RUN_ID=$(gh run list --branch "$BRANCH" --workflow ci-release.yml --limit 1 \
|
|
152
|
+
--json databaseId,headSha \
|
|
153
|
+
--jq "[.[] | select(.headSha == \"$BRANCH_SHA\")] | .[0].databaseId")
|
|
154
|
+
|
|
155
|
+
# Poll until the targeted run is done (timeout: 15 min)
|
|
156
|
+
STATUS="pending"
|
|
157
|
+
for i in $(seq 1 30); do
|
|
158
|
+
STATUS=$(gh run view "$RUN_ID" --json conclusion \
|
|
159
|
+
--jq '.conclusion // "pending"' 2>/dev/null || echo "pending")
|
|
160
|
+
[ "$STATUS" = "success" ] && break
|
|
161
|
+
[ "$STATUS" = "failure" ] || [ "$STATUS" = "cancelled" ] || [ "$STATUS" = "timed_out" ] && \
|
|
162
|
+
echo "Release workflow ended with status: $STATUS" && exit 1
|
|
163
|
+
sleep 30
|
|
164
|
+
done
|
|
165
|
+
if [ "$STATUS" != "success" ]; then
|
|
166
|
+
echo "Release workflow timed out after 15 minutes." >&2
|
|
167
|
+
exit 1
|
|
168
|
+
fi
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### If releasing manually (no semantic-release)
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
# Determine next version (follow SemVer: breaking → major, new feature → minor, fix → patch)
|
|
175
|
+
NEXT_VERSION="vX.Y.Z" # fill in based on changelog analysis
|
|
176
|
+
|
|
177
|
+
# Tag and push
|
|
178
|
+
git tag -a "$NEXT_VERSION" -m "Release $NEXT_VERSION"
|
|
179
|
+
git push origin "$NEXT_VERSION"
|
|
180
|
+
|
|
181
|
+
# Create GitHub release
|
|
182
|
+
gh release create "$NEXT_VERSION" \
|
|
183
|
+
--title "$NEXT_VERSION" \
|
|
184
|
+
--notes-file "$RELEASE_DIR/changelog.md"
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
## Phase 5 — Confirm build artifact
|
|
188
|
+
|
|
189
|
+
Download and validate the platform-specific build artifact. Poll every 2 minutes
|
|
190
|
+
(timeout: 20 min) — do not proceed to Phase 6 until the artifact is confirmed present.
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
ARTIFACT_FOUND=false
|
|
194
|
+
for i in $(seq 1 10); do
|
|
195
|
+
gh run download "$RUN_ID" --dir "$RELEASE_DIR" 2>/dev/null || true
|
|
196
|
+
|
|
197
|
+
case "$Platform" in
|
|
198
|
+
ios)
|
|
199
|
+
IPA=$(find "$RELEASE_DIR" -name "*.ipa" | head -1)
|
|
200
|
+
[ -n "$IPA" ] && ARTIFACT_FOUND=true && echo "iOS artifact: $IPA" && break
|
|
201
|
+
;;
|
|
202
|
+
android)
|
|
203
|
+
APK=$(find "$RELEASE_DIR" \( -name "*.apk" -o -name "*.aab" \) | head -1)
|
|
204
|
+
[ -n "$APK" ] && ARTIFACT_FOUND=true && echo "Android artifact: $APK" && break
|
|
205
|
+
;;
|
|
206
|
+
garmin)
|
|
207
|
+
PRG=$(find "$RELEASE_DIR" dist -name "*.prg" 2>/dev/null | head -1)
|
|
208
|
+
[ -n "$PRG" ] && ARTIFACT_FOUND=true && echo "Garmin artifact: $PRG" && break
|
|
209
|
+
;;
|
|
210
|
+
all)
|
|
211
|
+
IPA=$(find "$RELEASE_DIR" -name "*.ipa" | head -1)
|
|
212
|
+
APK=$(find "$RELEASE_DIR" \( -name "*.apk" -o -name "*.aab" \) | head -1)
|
|
213
|
+
PRG=$(find "$RELEASE_DIR" dist -name "*.prg" 2>/dev/null | head -1)
|
|
214
|
+
[ -n "$IPA" ] && [ -n "$APK" ] && [ -n "$PRG" ] && ARTIFACT_FOUND=true && break
|
|
215
|
+
;;
|
|
216
|
+
esac
|
|
217
|
+
|
|
218
|
+
echo "Attempt $i/10: artifact not yet available — waiting 2 minutes..."
|
|
219
|
+
sleep 120
|
|
220
|
+
done
|
|
221
|
+
|
|
222
|
+
if [ "$ARTIFACT_FOUND" != "true" ]; then
|
|
223
|
+
echo "Error: required build artifact not found after 20 minutes — aborting." >&2
|
|
224
|
+
exit 1
|
|
225
|
+
fi
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
## Phase 6 — Submit to the store
|
|
229
|
+
|
|
230
|
+
**Skip this phase with `--dry-run`** — stop after Phase 3 and print the store copy
|
|
231
|
+
for manual paste.
|
|
232
|
+
|
|
233
|
+
Run the platform-specific submission workflow with the artifact from Phase 5:
|
|
234
|
+
|
|
235
|
+
**iOS:** Run `olko:apple-store-submit` — handles `altool` / `xcrun notarytool`
|
|
236
|
+
submission, watches for Apple's processing email, and catches common rejection patterns.
|
|
237
|
+
|
|
238
|
+
**Android:** Upload the `.aab` (or `.apk`) to Google Play using `fastlane supply`:
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
fastlane supply \
|
|
242
|
+
--aab "$APK" \
|
|
243
|
+
--track internal \
|
|
244
|
+
--package_name "$(cat android/app/build.gradle | grep applicationId | awk '{print $2}' | tr -d '"')"
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
Promote from internal → production after QA sign-off.
|
|
248
|
+
|
|
249
|
+
**Garmin:** Run `olko:garmin-watchface` store publishing workflow — uploads the `.prg`
|
|
250
|
+
and the listing copy from Phase 3 via the Connect IQ developer portal.
|
|
251
|
+
|
|
252
|
+
**all:** Run iOS → Android → Garmin in sequence; report each result independently.
|
|
253
|
+
|
|
254
|
+
## Final report
|
|
255
|
+
|
|
256
|
+
```
|
|
257
|
+
Release day complete — YYYY-MM-DD
|
|
258
|
+
|
|
259
|
+
Version: vX.Y.Z (was vA.B.C)
|
|
260
|
+
Platform: ios / android / garmin / all
|
|
261
|
+
Changelog: N features, M fixes, K improvements
|
|
262
|
+
Store copy: validated ✓ (all fields within limits)
|
|
263
|
+
Release: tagged + GitHub Release created ✓
|
|
264
|
+
Build: CI green, artifact downloaded ✓
|
|
265
|
+
Submission: queued for App Store / Google Play / Connect IQ review
|
|
266
|
+
|
|
267
|
+
Next:
|
|
268
|
+
- Check Apple / Google / Garmin review status in 24–72h
|
|
269
|
+
- Monitor crash rates via Crashlytics / Firebase after rollout
|
|
270
|
+
- Run /review-past-performance at end of day to capture release learnings
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
## Safety guardrails
|
|
274
|
+
|
|
275
|
+
- Never push a tag or trigger a release if Phase 1 fails
|
|
276
|
+
- Never submit a store build without a validated Phase 3 output
|
|
277
|
+
- Always `--dry-run` first on a new repo or a new platform
|
|
278
|
+
- Keep the store copy file in $RELEASE_DIR until the submission is confirmed live
|
|
279
|
+
|
|
280
|
+
## Chaining
|
|
281
|
+
|
|
282
|
+
| Before this skill | After this skill |
|
|
283
|
+
|---|---|
|
|
284
|
+
| `olko:pr-to-green` — merge the release PR | Monitor store review status |
|
|
285
|
+
| `olko:semantic-release-beta` — promote beta to stable | `olko:changelog-generator` for next iteration |
|
|
286
|
+
| Manual: "all features are in, ship it" | Post-release monitoring |
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "olko-release-day",
|
|
3
|
+
"description": "Orchestrate a full release-day workflow for iOS, Android, or Garmin apps: verify main branch CI is green, generate changelog, draft platform-ready store listing copy, trigger semantic-release or tag manually, wait for the build, and queue the App Store submission.",
|
|
4
|
+
"skills": "./skills"
|
|
5
|
+
}
|