portals-labs/portals-plugin-claude/portals-pose-tuner
Claude Code and agent skill by portals-labs/portals-plugin-claude
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Tune procedural animation live inside a Portals web game with the Pose Tuner dev tool — carry tables, grip offsets, recoil shares, forced pose inputs, and a 3D gizmo for bone rotations, bone positions and held-weapon placement, exported as a paste-ready diff or a boneAdjust map. Use when tuning aimWeapon numbers, weapon carry or ADS poses, boneAdjust maps, ragdoll or IK constants, or any hand-tuned animation table; when placing a gun, torch, tool, thrown item or any other held or pickable objec…
Install
npx vskill@latest install portals-labs/portals-plugin-claude/portals-pose-tunerSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as portals-labs/portals-plugin-claude/portals-pose-tuner.
Pose Tuner
A procedural pose is a pure function of numbers (carry tables, grip offsets, recoil shares) and inputs (pitch, kick, scoped). No authored clip can be "the" gun-holding animation, because the hold has to survive things a clip cannot know — camera pitch, strafe direction, recoil, scope state. Those numbers get found by running the game and changing them, so the Pose Tuner puts a panel in the running game that binds the live tables the frame loop already reads: a slider mutates the table in place and the very next frame shows it.
Read references/pose-tuner.md for the full API, the panel reference, and the caveats. It pairs with $portals-avatars — bone editing targets a Portals avatar rig, and its export is the boneAdjust shape avatar.animations.load takes.
It is a dev tool, not runtime
Portals stamps it into drafts at _portals/dev/pose-tuner.js (same origin, so the strict game CSP is satisfied) and strips the whole _portals/dev/ prefix out of published bundles. So the import is gated and its rejection caught, or the published game throws on load:
For local development, download the same bytes from https://portals.to/portals-sdk/pose-tuner.js into the project's _portals/dev/ directory. Files under _portals/ are managed by Portals and never upload, so the local copy cannot drift into the bundle.
Wiring
Every touch point no-ops when tuner is undefined, so these lines can stay in the shipped source:
attachBoneEditor adds a 3D gizmo for bone rotations, bone positions and held-weapon placement. Its per-frame pass writes bones, so it obeys the same ordering rule as Ragdoll and aimWeapon — it must run after the mixer tick or be silently overwritten. On Portals avatar SDK 0.42.0+ register it and the ordering is the SDK's promise:
Register every gun and pickable object as a target
Bones are only half of a hold. A weapon's look is its mount transform — where it sits in the hand and how it is angled — as much as the arm pose behind it, and the same is true of anything the character picks up: a torch, a tool, a thrown object, a carried crate. Those live in game tables, not on the skeleton, so the gizmo reaches them through targets. Register every weapon and pickable prop the game can hold; one left out is one whose numbers still have to be guessed by hand.
Four rules that make targets behave:
- `getObject()` is called fresh each time — return the current object, never a captured reference. Held items get swapped, re-parented and destroyed; a stale handle picks a weapon that is no longer in the hand. Returning
undefinedwhen nothing is held is fine, the target just is not pickable. - `fold` writes the game's table, it does not keep the drag. The tuner deliberately lets the game re-apply that table on the next frame — the same trick the bones use, and what keeps a drag stable instead of fighting the pose code. A
foldthat mutates the object and writes nothing back snaps to nothing. - A target declares one `mode`. To move and rotate the same object, register two entries against the same
getObject, as above. - Bind the table it folds into with `tuner.table()` too. Sliders bound that way refresh after every fold, so the gizmo and the numbers stay one view of one value — and the drag lands in
Copy changeswith everything else.
fold receives (object, poseId, mode), and poseId is whichever stance is active, so one target covers the hip mount, the ADS mount and every other pose as long as it folds into a per-pose table.
Two things the game MUST add while the tuner is on
Both follow from the panel being a DOM overlay: reaching for a slider means leaving pointer lock, and the default behaviour of a normal third-person game turns that into a dead session.
1. Suppress every pause screen. A game that pauses on pointer-lock exit, window blur, or Escape covers the viewport and stops the loop the moment you touch the panel — which is the exact frame you were trying to judge. While the tuner exists, keep rendering and skip the overlay entirely. Do not treat a click back onto the canvas as "resume" either; in edit mode that click is a bone pick, which is what tuner.capturing reports.
2. Add a free camera. A pose is judged from angles gameplay never gives you — down the barrel, from the side, behind the shoulder, under the chin. Bind a key that detaches the camera from the character controller and flies it (WASD + drag-look, character frozen in the stance you activated), call controller.setEnabled(false) while it is on so WASD flies instead of walking the character out of the pose, and hand the same rig to the bone editor's orbit callbacks so right-drag and wheel keep working once edit mode owns the canvas:
Rules
- The panel is a tuning surface, never a data format. What it produces is a paste-ready diff for the committed source; the committed source stays the source of truth.
- Export diffs are measured against what the code held at bind time, so a persisted edit from an earlier session still reads as changed — nothing tuned can silently fail to make it back.
- Bone rotations export as
boneAdjustand paste straight into clip registration. Bone positions do not —boneAdjustcannot bake them, so apply them at runtime. - The gizmo needs
three/addons/controls/TransformControls.js, a hosted addon from Portals avatar SDK 0.42.0. On an older pin the import fails, the editor falls back to sliders, and only aconsole.warnsays so. - Bones a later procedural pass rewrites (an IK'd arm, an aim-bent spine) show that pass, not the edit. Tune those through their tables instead.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/portals-plugin-claude/skills/portals-pose-tuner/SKILL.md
Popularity
- Repository stars
- 4
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/portals-labs/portals-plugin-claude/portals-pose-tuner)