Skip to content

feat(docs-kit): stamp app-shell version into the generated skill - #657

Merged
interacsean merged 2 commits into
mainfrom
feat/2227-skill-version-stamp
Oct 30, 2026
Merged

interacsean merged 2 commits into
mainfrom
feat/2227-skill-version-stamp

Conversation

@interacsean

Copy link
Copy Markdown
Contributor

Closes tailor-inc/platform-planning#2227

Summary

  • docs:sync writes the core package version into the generated app-shell-patterns SKILL.md, both as metadata.app-shell-version in the frontmatter and in a new Version section. That section tells the agent to compare the stamp with the installed @tailor-platform/app-shell and to suggest re-syncing if the copy is out of date.
  • The version is filled in only when the file is written. docs-manifest.json hashes the unstamped content, so a changesets version bump never shows up as skill drift in docs:check.
  • changeset:publish already runs docs:sync after the version bump, so the published tarball carries the released version.
  • Config: a new optional outputs.skill.versionSource (packages/core/package.json).
  • Patch changeset for @tailor-platform/app-shell.

Verification

  • docs-kit test passes 25/25, including the new skill.test.ts. type-check, lint, fmt and docs:check are all green.
  • I faked a core version bump to 9.9.9. docs:check stayed green and the re-synced skill showed 9.9.9.
  • In pnpm pack, the tarball's skills/app-shell-patterns/SKILL.md contains app-shell-version: "1.18.0".

🤖 Generated with Claude Code

docs:sync substitutes the core package version into SKILL.md's
metadata.app-shell-version and a Version section that tells agents to
compare it with the installed package. The manifest hashes the unstamped
content, so a changesets version bump doesn't register as skill drift;
changeset:publish already re-syncs after the bump, so the tarball carries
the released version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@interacsean

Copy link
Copy Markdown
Contributor Author

/review

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Code Review has started processing this issue comment

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Code Metrics Report

main (b8ead52) #657 (2cc681e) +/-
Coverage 89.5% 89.5% 0.0%
Test Execution Time 3m20s 2m13s -1m7s
Details
  |                     | main (b8ead52) | #657 (2cc681e) |  +/-  |
  |---------------------|----------------|----------------|-------|
  | Coverage            |          89.5% |          89.5% |  0.0% |
  |   Files             |            236 |            236 |     0 |
  |   Lines             |           7517 |           7517 |     0 |
  |   Covered           |           6732 |           6732 |     0 |
+ | Test Execution Time |          3m20s |          2m13s | -1m7s |

Reported by octocov

… be filled

- stampSkill throws instead of shipping a literal {{APP_SHELL_VERSION}}
- docs:check validates the stamp, since the manifest hashes unstamped content
- sync resolves the version before deleting the skill dir
- Version section resolves the installed package from the app, not the repo root

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@interacsean
interacsean marked this pull request as ready for review October 29, 2026 05:03
@interacsean
interacsean requested a review from a team as a code owner October 29, 2026 05:03
@interacsean
interacsean merged commit 0d9d449 into main Oct 30, 2026
6 checks passed
@interacsean
interacsean deleted the feat/2227-skill-version-stamp branch October 30, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants