find-examples

find-examples is a skill for Claude Code, Codex from playcanvas/create-playcanvas. It costs 53 tokens per session (946 once invoked), scanned A, original, MIT.

A workflow for finding official, package-version-matched PlayCanvas examples for unfamiliar Engine, React, or Web Components features.

In plain words
What is it for?
It helps locate and adapt examples for animation, particles, shaders, physics, UI, splats, XR, and other PlayCanvas features.
Why use it?
It reduces guesswork when implementing features whose APIs or setup may differ between installed versions.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/playcanvas/create-playcanvas/find-examples
Any agent
npx skills add playcanvas/create-playcanvas --skill find-examples
Clone the repo
git clone --depth 1 https://github.com/playcanvas/create-playcanvas

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for find-examples

README.md
[![agentmods](https://agentmods.dev/badge/skills/playcanvas/create-playcanvas/find-examples.svg)](https://agentmods.dev/skills/playcanvas/create-playcanvas/find-examples)
Your own site
<a href="https://agentmods.dev/skills/playcanvas/create-playcanvas/find-examples"><img src="https://agentmods.dev/badge/skills/playcanvas/create-playcanvas/find-examples.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 946 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00053 $0.00946
Opus 5 $0.00026 $0.00473
Sonnet 5 $0.00011 $0.00189
Haiku 4.5 $0.00005 $0.00095

Measured 4d ago against content hash d315cc18d4e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

find-examples scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/find-examples/SKILL.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Official examples

Use official examples as version-matched recipes. Engine and Web Components examples are standalone applications to adapt, not modules to import.

Use the reuse-scripts skill instead when the installed Engine ships a production script for the required behavior.

Find the matching example

When node_modules/playcanvas is a local source checkout or linked build — a symlink, a workspace, or a path dependency — its examples/src/examples/** are already on disk. Read them directly and skip the GitHub fetch below. A linked engine can sit ahead of any published tag, and a pre-release version (-alpha, -beta) may have no matching public tree, so the on-disk source is the ground truth. Fall back to GitHub only when the examples are absent locally; the published npm package omits examples/.

ls node_modules/playcanvas/examples/src/examples 2>/dev/null && echo "linked engine: read local examples, skip the fetch"

Search the active surface's own catalog first, then the Engine catalog. Engine examples are the largest set and port to every surface; the per-surface catalogs are smaller but need no translation.

Surface Repository Package Ref Example paths
direct Engine playcanvas/engine playcanvas v<version> examples/src/examples/<category>/<name>.example.mjs
Web Components playcanvas/web-components @playcanvas/web-components v<version> examples/<name>.html
React playcanvas/developer-site @playcanvas/react main docs/user-manual/react/examples/<name>.mdx

Resolve the installed version instead of assuming the newest API:

PKG=playcanvas # or @playcanvas/web-components
TAG="v$(node -p "JSON.parse(require('fs').readFileSync('node_modules/$PKG/package.json')).version")" || exit 1
gh api "repos/playcanvas/engine/git/trees/$TAG?recursive=1" \
  | grep -o '"examples/src/examples/[^"]*\.example\.mjs"'

Read the resolved package rather than the dependency list; playcanvas is often a transitive dependency of @playcanvas/react or @playcanvas/web-components. Stop on a failed read instead of requesting an invalid tag: an unresolved version produces an empty example list, not an error. When the package is not below the project root's node_modules, run the command from the workspace that depends on it.

Read the full file on GitHub · 80 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 80 lines · 53 tokens per session scan A d315cc18d4e6

Subscribe to this mod's changes

find-examples is a skill published in the GitHub repository playcanvas/create-playcanvas (53 stars, last pushed today), licensed MIT. It adds 53 tokens to every session and 946 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

r3f-animation

React Three Fiber animation - useFrame, useAnimations, spring physics, keyframes. Use when animating objects, playing GLTF animations, creating procedural motion, or implementing physics-based movement.

zebbern/claude-code-guide · 43 tokens

figure-composer

Compose one publication-grade multi-panel figure. Start from a one-line claim plus immutable data Artifact Version references, or inspect an existing figure and draft its outline directly. Plan a 12-column panel outline, delegate one worker per panel, compose and inspect the result, then run at most three adversarial…

aipoch/open-science · 93 tokens

poster

Generate an academic poster from a drafted paper — distill sections into a single-page HTML poster with figures and inter-section transitions.

skyllwt/AutoSci · 24 tokens

hermes-learns-manim

Operate Math-To-Manim with Hermes: inspect artifacts, run deterministic checks, use Codex-backed codegen, render/review Manim outputs, and avoid committing generated media.

HarleyCoops/Math-To-Manim · 42 tokens

academic-plotting

Generates publication-quality figures for ML papers from research context. Given a paper section or description, extracts system components and relationships to generate architecture diagrams via Gemini. Given experiment results or data, auto-selects chart type and generates data-driven figures via matplotlib/seaborn.…

OpenRaiser/NanoResearch · 68 tokens

gsap-plugins

Official GSAP skill for GSAP plugins — registration, ScrollToPlugin, ScrollSmoother, Flip, Draggable, Inertia, Observer, SplitText, ScrambleText, SVG and physics plugins, CustomEase, EasePack, CustomWiggle, CustomBounce, GSDevTools. Use when the user asks about a GSAP plugin, scroll-to, flip animations, draggable, SVG…

calesthio/OpenMontage · 91 tokens