xb-contribute-sdk
Skill481 starsChanged 2 months agoApache-2.0View on GitHub
Complete an XR Blocks SDK change across implementation, runtime wiring, public exports, proof, build output, examples, and canonical documentation. Use when editing the XR Blocks repository rather than an application that consumes it.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- xb-add-aiSkill
- xb-add-interactionsSkill
- xb-add-spatial-uiSkill
- xb-add-world-sensingSkill
- xb-anchorsSkill
- xb-build-appSkill
- xb-debug-appSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Read ../../AGENTS.md, record the current status and diff, and treat existing changes as user-owned.
- Very specific: line 26
Read references/seam-map.md for the selected branch.
- Distinctive: line 37
Follow adjacent TypeScript and module-extension conventions.
- Distinctive: line 48
Add or adjust the smallest colocated test that fails without the change.
- Distinctive: line 59
Update the smallest executable sample or template when developers need a copyable pattern.
- Distinctive: line 62
Do not create a skill for a new capability alone.
- Very specific: line 69
Run the repository checks required by AGENTS.md in proportion to the change.
- Very specific: line 70
Use npm run build:sdk for core SDK output and the full build when addon output or complete packaging is affected.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Contribute to the XR Blocks SDK
Deliver a complete seam: every affected layer tells the same current story.
1. Freeze the worktree and change contract
Read ../../AGENTS.md, record the current status and diff,
and treat existing changes as user-owned. Inspect the implementation, adjacent
tests, public entry, and nearest executable example.
Classify the change as internal, root-public, or addon-public. List the
affected configuration, runtime owner, lifecycle, cleanup, exports,
declarations, build output, tests, examples, and manual owner. Mark unused seam
elements not applicable.
Complete this step when the opening worktree is accounted for and every seam
element has an owner or an explicit not applicable decision.
2. Trace the production seam
Read references/seam-map.md for the selected branch.
Trace configuration to construction, registry resolution, lifecycle calls,
disposal, public entry, and emitted path. Treat
../../src/xrblocks.ts and addon public entries as
import authority. Do not expose an internal helper only because it exists.
Complete this step when every producer, prerequisite, consumer, lifecycle call, cleanup path, public entry, and emitted path is located.
3. Implement the narrow seam
Follow adjacent TypeScript and module-extension conventions. Use declared
dependencies and the registry for runtime services. Keep optional feature
defaults inert, configure permissions before XR startup, and initialize owners
before dependents. Edit source inputs and regenerate build output; do not edit
build/ by hand.
Complete this step when the production path satisfies the change contract and the diff contains no unrelated edits.
4. Add proof through the real boundary
Add or adjust the smallest colocated test that fails without the change. Cover new conditions, disabled or unsupported behavior, failure behavior, cleanup, and boundary wiring when they can regress. Run the narrow test before wider checks.
Complete this step when every behavior in the contract has a named assertion through its real public or runtime boundary.
5. Align the one teaching owner
Read references/developer-surfaces.md.
Update the smallest executable sample or template when developers need a
copyable pattern. Update the one manual page that owns the concept. Update a
task skill only when the change alters that skill's process or branch choice.
Do not create a skill for a new capability alone.
Complete this step when a developer can discover one working public pattern and no affected authoritative surface teaches the previous behavior.
6. Close the seam
Run the repository checks required by AGENTS.md in proportion to the change.
Use npm run build:sdk for core SDK output and the full build when addon output
or complete packaging is affected. Build the docs when manuals, TypeDoc inputs,
sidebars, or docs components change. Inspect generated changes and compare the
final worktree to the opening snapshot.
Finish when all applicable checks pass, intended imports and declarations resolve from emitted paths, every contract row has proof, documentation matches the public implementation, and user-owned changes remain intact.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

