feat: add kit-parity skill to track upstream SvelteKit changes#4
Merged
Merged
Conversation
Adds .claude/skills/kit-parity with a workflow for syncing with SvelteKit's remote-functions runtime: a fetch-upstream.sh helper that hashes the 26 tracked upstream files against a recorded baseline (kit 2.69.3), a classification step that respects DIFFERENCES.md and asks the user about non-obvious divergences, upstream<->local file and spec mapping tables, port invariants, and a verify-and-rebaseline finish. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EJj9ab3v9HjudgX8L1x821
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
kit-parityClaude Code skill (.claude/skills/kit-parity/) that keeps the library in sync with SvelteKit's remote-functions API over time, enforcing the CLAUDE.md parity rule: behavior must match kit unless documented in DIFFERENCES.md.How it works
The skill walks through six gated steps:
fetch-upstream.sh checkdownloads the 26 tracked upstream files (runtime sources, spec files,form-utils,Remote*types, the remote-functions docs page) fromraw.githubusercontent.comand compares content hashes againstbaseline.json(currently kit 2.69.3). Content hashes were chosen over commit SHAs because they only flag files that actually matter, andraw.githubusercontent.comremains reachable in sandboxed sessions wheregithub.com/api.github.comare proxied. The kit CHANGELOG and docs provide the "why" for each change.thiscapture in resource factories, no unhandled rejections,.svelte.tssuffix).fetch-upstream.sh baselinerecords the new sync point.Contents
.claude/skills/kit-parity/SKILL.md— the workflow.claude/skills/kit-parity/fetch-upstream.sh—check/baseline/downloadmodes (validated: clean check exits 0; a tampered baseline correctly reportsCHANGEDand exits 1).claude/skills/kit-parity/baseline.json— initial baseline (kit 2.69.3, 26 file hashes)CLAUDE.md— pointer to the skill under the kit-parity ruleVerification
svelte-check0 errors/0 warnings, 103/103 tests,svelte-package+publintclean.🤖 Generated with Claude Code
https://claude.ai/code/session_01EJj9ab3v9HjudgX8L1x821
Generated by Claude Code