chore(skills): add sdk-sample-sync skill#133
Merged
Merged
Conversation
Adds a Claude Code skill that verifies and updates the hand-written @tailor-platform/sdk code samples in this repo (tutorials, guides, getting-started) against the currently published SDK, and keeps the companion source in tailor-platform/templates in sync. The docs/sdk reference is auto-synced from the SDK package, but the hand-written tutorials are not — so they silently rot when the SDK API changes. This skill captures the verify-empirically workflow: npm pack the published package as source of truth, prove fixes against the runnable templates project (install -> tailor-sdk generate -> tsc), and probe for silent failures (a snippet can compile yet be wrong, e.g. webhook body vs requestBody). - .claude/skills/sdk-sample-sync/SKILL.md - .claude/skills/sdk-sample-sync/scripts/verify-sdk-project.sh
anukiransolur
approved these changes
Jun 8, 2026
jackchuka
marked this pull request as ready for review
June 9, 2026 01:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a Claude Code skill —
sdk-sample-sync— that verifies and updates the hand-written@tailor-platform/sdkcode samples in this repo against the currently published SDK, and keeps the companion source intailor-platform/templatesin sync.Why
docs/sdk/is auto-synced from the SDK package (scripts/docs-sync+sdk-docs-syncCI), but the tutorials/guides are hand-typed and nothing regenerates them — so they silently rot when the SDK API changes. That's exactly what happened to the develop-from-scratch tutorial.The skill captures the workflow used to fix it:
npm pack @tailor-platform/sdk@latest, read its bundleddocs/+CHANGELOG.md. Don't trust memory.verify-sdk-project.sh(install → generate → typecheck, cleaning up untracked generated artifacts).body:field type-checked but was silently dropped (requestBody:is the real field). The skill teaches theTS7031-probe to expose unrecognized field names.Notes
verify-sdk-project.shwas smoke-tested against a templates step: install → generate → typecheck → PASS, working tree left clean..claude/skills/(not gitignored).