Auto generate skill files from source code - #285
Open
saadeghi wants to merge 3 commits into
Open
Conversation
|
@saadeghi is attempting to deploy a commit to the Paper Design Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 3eb7211. Configure here.
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.

Following up on #284 PR
@itsdouges:
This PR adds the skill files again, now automatically generated from the TypeScript source so it stays up to date.
With this PR, people can run this command so their agent can use Paper Shaders
The generator uses TypeScript types and mappings as the source of truth to generate:
CI checks that generated files are current. publish.js regenerates and commits them when a package is released. The skills are committed to GitHub.
No shader runtime behavior is changed. Type-checking, build, and all 23 tests pass.
Note
Low Risk
Documentation and build/CI tooling only; publish gains an automated git commit/push for
skills/but does not alter shader libraries or consumer runtime behavior.Overview
Adds a
@paper-design/skill-generatorworkspace package that buildsskills/paper-shaders/(rootSKILL.md,references/usage.md, and one markdown file per exported shader) by parsing shader TS/TSX, docs*-def.ts, presets, uniforms, and shader comments—so agent-facing docs track the real API instead of hand-maintained prose.Root scripts
generate-skillsandcheck-skillswire the generator; a new Generated Skills PR workflow type-checks the package and fails if committed output is stale.publish.jsnow runs generation before publish and, after a successful non–dry-run release, commits and pushes updatedskills/when they changed.No changes to shader runtime packages—only tooling, generated markdown, lockfile/workspace metadata, and publish/CI glue.
Reviewed by Cursor Bugbot for commit 5c5b6e3. Bugbot is set up for automated code reviews on this repo. Configure here.