posecode

by posecode-devVerified

An open-source text language, parser, validator and Three.js renderer for inspectable 3D human movement.

107
Stars
9
Forks
TypeScript
Language
8/24/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/posecode-dev/posecode

Getting Started

Guides for using skills like posecode.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

Posecode

Kinematic motion as text.
An inspectable, editable movement format for animation tools, LLMs, and web products.

Like Mermaid for movement: small text documents for describing, validating, and rendering
deterministic human motion without hiding the source inside a black box.

Live Playground · Movement Library · Language Specification · Examples · MCP Server

CI status npm version Apache 2.0 and AGPL 3.0 licenses MCP compatible


Why Posecode?

Animation clips and generated trajectories can show movement, but they often hide the semantic decisions that produced it.

Posecode keeps those decisions in readable source. A human can write the document, an animation tool can emit it, or an LLM can draft it. Parsing, validation, editing, and rendering do not require an AI model.

Jumping jacks rendered from a Posecode document

One .posecode document — shoulders: abduct 160, hips: abduct 30, repeat 12 — rendered live in the browser.

For example:

Bend your knees, move your hips backward, and keep your chest upright.

A human may understand that instruction, but a renderer cannot reliably determine:

  • which joints should move,
  • by how many degrees,
  • in which coordinate frame,
  • over what duration,
  • in what sequence,
  • or within which physical limits.

Humans, tools, and language models all need a shared syntax for expressing movement in a renderable and testable form.

Posecode provides that missing representation.

See Posecode in 28 seconds

From readable movement source to validated 3D rendering, MCP tools, and a one-script web embed.

Watch the 28-second Posecode builder demo

▶ Watch the 28-second builder demo
Plain text in. Smooth, programmable 3D motion out.

Movement examples

Deadlift rendered from Posecode
pelvis: hinge — deadlift
Squat rendered from Posecode
knees: flex 95 — squat
Lateral raise rendered from Posecode
shoulders: abduct 90 — lateral raise

Why Not Diffusion Text-to-Motion?

Neural text-to-motion systems can generate impressive movement, but they introduce problems for lightweight, programmable applications.

Resource intensive

Many systems require large models and GPU-backed inference, making real-time consumer deployment expensive.

Difficult to control

They usually produce coordinate trajectories rather than editable semantic instructions.

It is difficult to request a precise change such as:

Reduce knee flexion by 10 degrees during the second phase.

Hard to validate

Black-box trajectories do not naturally expose readable joint rules, phase definitions, or range-of-motion limits.

Hard to debug

When a movement looks wrong, developers may not know which semantic instruction caused the problem.


The Posecode Approach

Posecode uses a lightweight, text-driven pipeline.

  • Readable: movements are stored as small .posecode documents.
  • Structured: joints, actions, angles, timings, and constraints are explicit.
  • Editable: developers and models can modify individual movement properties.
  • Fast: parsing and rendering happen client-side.
  • Deterministic: the same Posecode input produces the same validated representation.
  • Inspectable: parser warnings and fidelity checks explain problems.
  • Agent-friendly: the MCP server exposes generation, validation, critique, and sharing tools.
  • Safety-aware: authored and IK-generated angles are constrained by configured range-of-motion limits.

The Idea in 30 Seconds

A .posecode file describes movement as timed phases with targeted joint actions.

1. Write .posecode2. Render the movement
posecode exercise "Body-weight squat"
rig humanoid
pose start = standing

step "Descend" 1.6s settle:
  hips: flex 80
  knees: flex 95
  ankles: dorsiflex 14
  ground-lock: feet
  cue "Sit the hips back"

step "Drive up" 1.2s drive:
  hips: flex 0
  knees: flex 0
  ankles: dorsiflex 0
  ground-lock: feet

repeat 8
Squat animation

OpenAI Build Week 2026: Posecode existed before the hackathon. During Build Week, the project was extended using Codex — running on GPT-5.6 — as the primary engineering tool for a real batch of shipped work: motion/grounding quality, language contract diagnostics, licensing restructuring, release automation, and product-facing pages. The sections below distinguish previous work from Build Week work using actual commit history, not a roadmap.


OpenAI Build Week Extension

What existed before Build Week

Before Build Week, Posecode already included:

  • the core .posecode domain-specific language,
  • a parser and intermediate motion representation,
  • basic range-of-motion validation,
  • a Three.js/WebGL renderer,
  • forward kinematics,
  • basic inverse-kinematics and ground-lock behavior,
  • a browser playground,
  • example movement files,
  • shareable Posecode links,
  • and an MCP server foundation.

This original version was developed primarily with Claude as an AI-assisted engineering tool.

That prior work provides the foundation for the project, but it is not presented as the new hackathon contribution.

What was added during Build Week

Every item below is a merged, dated pull request built with Codex (GPT-5.6) — see Build Week Evidence for direct links.

  1. Motion and grounding overhaul — ROM-constrained reach IK, semantic palm/fist/sole/knee/pelvis contact surfaces, multi-contact refinement, stable support handoffs, and XBot-aware grounding (#76).
  2. Language contract and diagnostics — Posecode language/IR v0.3 custom start-pose blocks with ROM-checked overrides, live and clip-wide grounding/self-collision diagnostics, and an accessible metric floor guide (#92).
  3. Licensing restructure — split the monorepo into an Apache-2.0 standard layer (spec, parser, share, language, LSP, VS Code) and an AGPL-3.0 product layer (render, embed, MCP, eval, playground), with a commercial-license path (#84).
  4. Release automation — Changesets-driven npm publishing via GitHub OIDC, MCP Registry publishing, and CI validation of package versions, entry points, and tarball contents (#66).
  5. Third-party integration readiness — Posecode 0.2 timing vocabulary (drive/settle/flow/snap), a parser validation CLI, and embed compatibility metadata (#62).
  6. Ground-lock correctness — parser-owned validation for per-side foot/hand/elbow ground locks and back-contact support for supine movements, replacing silent acceptance of invalid contacts (#61, #64).
  7. LLM-first landing page and product page — redesigned the landing page around a prompt → Posecode → live 3D story, and added a /for-products page documenting the web component, parser, renderer, and MCP server for integrators (#82, #74).
  8. Mobile and search fixes — mobile toolbar/viewer layout, natural hand orientation, and Google Search indexing corrections (#78, #65).

Build Week feature status

  • Motion/grounding quality overhaul shipped (#76)
  • Language contract + diagnostics shipped (#92)
  • Licensing restructure shipped (#84)
  • Release automation shipped (#66)
  • Ground-lock correctness shipped (#61, #64)
  • Landing/product pages shipped (#82, #74)

How GPT-5.6 Is Used

During Build Week, Codex sessions ran on GPT-5.6 (GPT-5.6 Terra), which is the model that powers Codex for this event. GPT-5.6 is the reasoning engine behind every Build Week change listed above: reading the existing monorepo, proposing the ROM-constrained IK and contact-surface design in #76, designing the language/IR v0.3 diagnostics in #92, and drafting the licensing boundary in #84.

A GPT-5.6-powered natural-language-to-Posecode generation feature (describe a movement in plain English, get a validated .posecode document back) is a natural next step given the existing posecode_authoring_guide MCP tool, but it is not yet built — it is not claimed as shipped functionality here.


How Codex Is Used

Codex is the primary engineering tool used for the Build Week extension.

During the hackathon period, Codex was used to:

  • inspect and understand the existing monorepo before each change,
  • design and implement the ROM-constrained reach IK and contact-surface system (#76),
  • design and implement the language/IR v0.3 diagnostics and floor guide (#92),
  • restructure package licensing across the monorepo (#84),
  • build the Changesets/OIDC npm and MCP Registry release pipeline (#66),
  • fix ground-lock validation and silent-acceptance bugs (#61, #64),
  • redesign the landing page and add the product integration page (#82, #74),
  • write unit, integration, and evaluation-harness tests for each change,
  • and fix mobile UI and search-indexing regressions.

Codex accelerates implementation, but the project remains human-directed. The following decisions were reviewed and selected manually: DSL semantics, system architecture, licensing boundaries, biomechanical constraints, validation policy, user experience, and acceptance or rejection of generated code.

Codex development workflow

The Build Week workflow follows this process:

  1. Define a specific product or engineering problem.
  2. Ask Codex to inspect the relevant implementation.
  3. Request one or more possible approaches.
  4. Review the trade-offs and choose the architecture.
  5. Use Codex to implement the selected approach.
  6. Run type checking, tests, and biomechanical evaluations (npm run eval).
  7. Inspect failures manually.
  8. Refine the implementation with additional Codex sessions.
  9. Review the final changes before committing.

Build Week Evidence

All Build Week work is public, dated, and directly linked below — no placeholders.

Build Week pull requests

PRMergedWhat it did
#622026-07-15Posecode 0.2 timing vocabulary, validation CLI, embed compatibility
#612026-07-15Per-side ground-lock validation
#652026-07-16Google Search indexing fix
#662026-07-16npm + MCP Registry release automation
#642026-07-16Back ground-lock for supine movements
#742026-07-16/for-products integration page
#762026-07-17Motion/grounding overhaul: ROM-constrained reach IK, contact surfaces
#782026-07-17Mobile viewer sizing and natural hand orientation
#822026-07-17LLM-first landing page redesign
#842026-07-17Apache-2.0 / AGPL-3.0 licensing restructure
#922026-07-19Language/IR v0.3, grounding/self-collision diagnostics, floor guide

Build Week comparison

Before Build WeekAdded during Build Week
Core Posecode DSLLanguage/IR v0.3 custom start-pose blocks
Basic ROM clampingGrounding, self-collision, and floor-guide diagnostics
Working IK/groundingROM-constrained reach IK with semantic contact surfaces
Single license fileApache-2.0 / AGPL-3.0 layered licensing with commercial path
Manual publishingAutomated npm + MCP Registry release pipeline
Editorial landing pageLLM-first landing page + /for-products integration page
Existing testsNew diagnostics, IK, and licensing regression tests


Architecture

┌─────────────────────────┐
│ Natural-language prompt │
└────────────┬────────────┘
             │
             ▼
┌─────────────────────────┐
│ GPT-5.6 authoring layer │
└────────────┬────────────┘
             │
             ▼
┌─────────────────────────┐
│     .posecode source    │
└────────────┬────────────┘
             │
             ▼
┌─────────────────────────┐
│ Parser and ROM checking │
└────────────┬────────────┘
             │
             ▼
┌─────────────────────────┐
│ Kinematics and IK layer │
└────────────┬────────────┘
             │
             ├─────────────────────┐
             ▼                     ▼
┌─────────────────────────┐  ┌──────────────────────┐
│ Three.js/WebGL renderer │  │ Fidelity measurements│
└─────────────────────────┘  └──────────┬───────────┘
                                        │
                                        ▼
                             ┌──────────────────────┐
                             │ GPT-5.6 Physics     │
                             │ Critic and revision │
                             └──────────────────────┘

Installation and Usage

Live Playground

Preview, edit, and share movements without installing anything:

https://posecode.org/play


Local Development

Requirements:

  • Node.js 20 or newer
  • npm

Clone the repository:

git clone https://github.com/posecode-dev/posecode.git
cd posecode

Install dependencies:

npm install

Start the playground:

npm run dev

Run tests:

npm test

Run type checking:

npm run typecheck

Run fidelity evaluations:

npm run eval

Build the playground:

npm run build

Editor support

A VS Code extension provides syntax highlighting, ROM diagnostics, and completion for .posecode files — see editors/vscode. Until it is published, you can get basic highlighting immediately by associating .posecode files with Markdown:

"files.associations": {
  "*.posecode": "markdown"
}

See the editor guide for VS Code, Cursor, Sublime Text, and Neovim instructions.


MCP Server

Posecode includes a Model Context Protocol server for AI agents.

Run it with:

npx -y posecode-mcp@latest

Example MCP client configuration:

{
  "mcpServers": {
    "posecode": {
      "command": "npx",
      "args": ["-y", "posecode-mcp@latest"]
    }
  }
}

The MCP server exposes:

  • validate_posecode
  • render_posecode

See packages/posecode-mcp for the complete configuration and tool documentation.


Web Component Embed

Embed a Posecode player on a page:

<script src="https://unpkg.com/posecode-embed/dist/posecode-embed.js"></script>

<posecode-player src="https://raw.githubusercontent.com/posecode-dev/posecode/main/movements/squat.posecode"></posecode-player>

The player can be used in:

  • documentation,
  • educational content,
  • exercise guides,
  • blog posts,
  • and movement libraries.

Core Libraries

Install the parser:

npm install posecode-parser

Install the renderer:

npm install posecode-render

Example:

import { parse } from "posecode-parser";
import { createViewer } from "posecode-render";

const source = `
posecode exercise "Lateral raise"
  rig humanoid
  pose start = standing

  step "Raise" 1.4s settle:
    shoulders: abduct 90
`;

const { ir, errors, warnings } = parse(source);

if (!ir || errors.length > 0) {
  console.error(errors);
} else {
  console.warn(warnings);
  const viewer = createViewer(document.querySelector("#viewer"));
  viewer.load(ir);
  viewer.play();
}

The #viewer element is an HTML <canvas>.

Exporting motion (BVH)

posecode-render can bake a movement into a Biovision Hierarchy (.bvh) file for import into Blender and other animation tools. In the playground, use the Download BVH button; programmatically:

import { parse } from "posecode-parser";
import { exportBVH } from "posecode-render";

const { ir } = parse(source);
const bvh = exportBVH(ir!, { fps: 30 }); // string, ready to write to disk

Options: fps (default 30), scale (default 1 = metres; pass 100 for centimetres), includeFingers (default false), and proportions for a calibrated rig.

  • Coordinate system: right-handed, Y-up, figure faces +Z in the rest pose (identical to the renderer and Three.js). Enable Blender's "Y up" BVH import option.
  • Units: metres by default.
  • Rotation channels: Zrotation Xrotation Yrotation (Euler order ZXY).
  • Scope: this exports the authored joint motion plus root travel/turn. It does not yet re-run the renderer's contact/IK solve, so IK-dependent movements (e.g. reach: hand_left floor) export the authored pose rather than the solved one. See issue #63.

Exporting motion (glTF / GLB)

For web animation pipelines, posecode-render can export the rig and a baked animation clip as a glTF/GLB asset. In the playground, use Download glTF; programmatically:

import { parse } from "posecode-parser";
import { exportGLTF } from "posecode-render";

const { ir } = parse(source);
const glb = await exportGLTF(ir!);            // GLB ArrayBuffer (default)
const gltf = await exportGLTF(ir!, { binary: false }); // glTF JSON object

The result loads with Three.js GLTFLoader, and the clip plays on the included rig:

const gltf = await new GLTFLoader().loadAsync(url);
const mixer = new THREE.AnimationMixer(gltf.scene);
mixer.clipAction(gltf.animations[0]).play();
  • Joint nodes are named by Posecode bone id; the animated root is posecode_root.
  • Limitations: exports the procedural mannequin rig, not a humanoid/Mixamo skeleton, so there is no retargeting onto external rigs yet, and (as with BVH) it bakes the authored motion, not the contact/IK-solved motion. See issue #90.

How Posecode Stays Honest

Posecode uses multiple layers of checking.

1. Range-of-motion clamping

Joint angles are constrained before rendering.

For example:

knees: flex 200

is clamped to the configured knee-flexion limit and produces a warning instead of rendering an impossible angle.

2. Kinematic evaluation

The engine measures the actual resulting skeleton after:

  • parsing,
  • forward kinematics,
  • inverse kinematics,
  • and ground-lock corrections.

3. Geometric fidelity invariants

Movement examples can define expected properties.

For example, a deadlift may require:

  • sufficient torso pitch,
  • limited forward knee travel,
  • stable foot contact,
  • and symmetrical hip movement.

4. GPT-5.6 Physics Critic

The Build Week critic interprets the movement and deterministic measurements together.

It explains biomechanical problems in natural language and proposes specific revisions.


Packages

PackagePurpose
posecode-languageLanguage definitions and editor support
posecode-parserConverts .posecode text into a validated, range-constrained intermediate representation
posecode-renderRenders animated figures with Three.js, forward kinematics, and IK
posecode-shareEncodes Posecode documents into URL-safe share tokens
posecode-mcpExposes Posecode capabilities to AI agents through MCP
posecode-evalRuns headless biomechanical and geometric fidelity evaluations
playgroundInteractive editor, 3D viewport, warnings, generation, critique, and sharing

Technology

Posecode is built with:

  • TypeScript
  • JavaScript
  • Node.js
  • Three.js
  • WebGL
  • Vite
  • CodeMirror
  • Model Context Protocol
  • Zod
  • Vitest
  • Playwright
  • esbuild
  • GPT-5.6
  • Codex

Scope

Version 0.1

Posecode currently focuses on:

  • single-person human movement,
  • fitness,
  • physiotherapy demonstrations,
  • posture,
  • dance,
  • education,
  • rehabilitation visualization,
  • forward kinematics,
  • ground locking,
  • ROM-constrained inverse kinematics,
  • hip hinging,
  • standing, seated, and lying poses,
  • basic scene props,
  • and browser-based rendering.

Deferred

The following are outside the current scope:

  • two-person or partner motion,
  • comprehensive collision detection and rigid-body dynamics,
  • detailed object physics,
  • advanced equipment simulation,
  • multi-joint finger animation,
  • FBX or GLB animation export,
  • and medical diagnosis.

Limitations and Safety

Posecode is an engineering and visualization project.

Its range-of-motion values and biomechanical checks are based on general reference data and simplified models.

They are not:

  • medical advice,
  • diagnosis,
  • injury-prevention guarantees,
  • physiotherapy prescriptions,
  • or a substitute for a qualified professional.

Generated movements should be reviewed by a qualified expert before being used for healthcare, rehabilitation, or safety-critical applications.


Potential Applications

Posecode could support:

  • game and character animation,
  • fitness instruction,
  • exercise visualization,
  • anatomy education,
  • physiotherapy demonstrations,
  • posture training,
  • dance and choreography prototyping,
  • sports technique analysis,
  • robotics research,
  • synthetic motion-data generation,
  • and embodied AI systems.

Repository Structure

posecode/
├── packages/
│   ├── posecode-language/
│   ├── posecode-parser/
│   ├── posecode-render/
│   ├── posecode-share/
│   ├── posecode-mcp/
│   └── posecode-eval/
├── playground/
├── editors/
├── spec/
├── docs/
├── scripts/
└── README.md

Testing

Run all unit tests:

npm test

Run coverage:

npm run coverage

Run type checking:

npm run typecheck

Run biomechanical evaluations:

npm run eval

The CI workflow verifies that the project:

  • builds successfully,
  • passes type checking,
  • passes unit tests,
  • and satisfies configured movement invariants.

Background

Posecode follows the design study:

Kinematic Motion Definition Protocols for Large Language Models

The project explores whether semantic, text-based movement programs can provide a controllable and inspectable alternative to black-box motion generation.

The specification covers:

  • DSL design,
  • biomechanical constraints,
  • client-side rendering,
  • agent integration,
  • and possible product applications.

See:


Character assets

The hosted playground currently uses an Adobe Mixamo character and one showcase animation under the applicable Adobe terms. These binary assets are not covered by Posecode's software licenses. See third-party notices.

The renderer also includes a zero-asset procedural figure and accepts compatible humanoid GLB characters through characterUrl.


Licensing

Posecode is open source with a clear standard and product boundary:

LayerComponentsLicense
Open standardSpecification, examples, parser, share codec, language service, LSP, VS Code extensionApache-2.0
Product layerRenderer, web embed, MCP server, eval harness, hosted playgroundAGPL-3.0-only

Organizations that need to use an AGPL component in a closed-source product may contact hello@posecode.org about a separate commercial agreement.

Earlier grants are unchanged. MIT revisions remain MIT, and the 0.2.2 npm packages remain Apache-2.0. See licensing, commercial licensing, and trademark policy.


Feedback and Support

Feedback and contributions are welcome.


Animation tools, LLMs, and web products need movement they can inspect.
Posecode makes movement readable source.

Frequently Asked Questions

What is posecode?

posecode is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by posecode-dev. An open-source text language, parser, validator and Three.js renderer for inspectable 3D human movement. It has 107 GitHub stars.

Is posecode safe to use?

Yes. posecode passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install posecode?

Clone the repository with "git clone https://github.com/posecode-dev/posecode" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is posecode written in?

posecode is primarily written in TypeScript. It is open-source under posecode-dev on GitHub, so you can review or fork the full source.

Are there alternatives to posecode?

Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh posecode against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

Scrapling

by D4Vinci

🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!

75,9137,581Python
MCP Servers
View details

TrendRadar

by sansan0

⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。

61,65224,883Python
MCP Servers
View details

context7

by upstash

Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

61,0602,938TypeScript
MCP Servers
View details

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

39,9393,219C
MCP Servers
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details