Commit 7ea68e5
authored
chore(skills): tldraw-migrate sources release notes from github (tldraw#8779)
In order to keep the tldraw-migrate skill's release-notes view aligned
with what's actually on `main`, this PR switches the changelog source
from `tldraw.dev/llms-releases.txt` to GitHub's
`apps/docs/content/releases/` directory. A few smaller improvements ride
along to make the skill easier to distribute across agents.
Previously the skill `curl`'d the published `llms-releases.txt` from
tldraw.dev, which meant pre-release notes (`next.mdx`) and recently
merged but unpublished release-note edits were invisible to the
migration workflow. The skill now lists `apps/docs/content/releases/`
via the GitHub contents API and fetches each `.mdx` directly from
`raw.githubusercontent.com`. GitHub is the source of truth.
Other changes:
- Pre-release semver suffixes (e.g. `4.7.0-canary.abc`) are now
preserved in `detect-versions.mjs` and compared correctly in the new
fetcher, so a user on a canary gets the right version range and the
upcoming `next.mdx` content.
- The `${SKILL_DIR}` probe gained `.codex/skills/`.
- Removed `disable-model-invocation: true` from the frontmatter so any
agent that respects skill metadata can auto-invoke after copying.
- Added a one-line cross-agent note above the auto-fetch blocks for
agents that don't auto-run Claude Code's `!`-prefix syntax (Cursor,
Codex, plain Claude API, etc.).
- Replaced `filter-changelog.mjs` with `fetch-release-notes.mjs`
(filtering happens at fetch time).
The motivation is partly to support distributing the skill via a
one-shot prompt — "copy `skills/tldraw-migrate` from this repo into your
repo and follow it" — across different coding agents.
### Change type
- [x] `improvement`
### Test plan
1. From a project on tldraw 4.4.0, run `/tldraw-migrate` — should fetch
v4.5.0 notes from GitHub and skip `next.mdx` (stable target).
2. From a project on a pre-release like `4.7.0-canary.abc` with target
`canary`, run `/tldraw-migrate` — should fetch `next.mdx` into
`references/tldraw-next.mdx`.
3. Pin a stable upper bound: `node
skills/tldraw-migrate/fetch-release-notes.mjs 4.0.0 4.2.0` — should
include v4.1.0 and v4.2.0 only.
4. Place the skill folder under each of `.claude/skills/`,
`.agents/skills/`, `.codex/skills/`, `.cursor/skills/`, `skills/` —
auto-fetch blocks resolve `SKILL_DIR` correctly in each case.1 parent a02e41a commit 7ea68e5
5 files changed
Lines changed: 280 additions & 93 deletions
File tree
- skills/tldraw-migrate
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
0 commit comments