onejs-setup-and-overview

onejs-setup-and-overview is a skill for Claude Code, Codex from Singtaa/OneJS. It costs 199 tokens per session (4,435 once invoked), scanned A, original, MIT.

A setup guide for OneJS, which lets Unity games render React, TypeScript, or JSX interfaces through Unity’s UI system. It explains how to get a component displaying and updating when source files change.

In plain words
What is it for?
Use it to set up OneJS in Unity and build menus, settings screens, heads-up displays, or inventory panels with React and TypeScript.
Why use it?
It helps diagnose common setup problems such as blank panels, missing rendering, and broken hot reloading, where the interface refreshes after code changes.

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/singtaa/onejs/onejs-setup-and-overview
Any agent
npx skills add Singtaa/OneJS --skill onejs-setup-and-overview
Clone the repo
git clone --depth 1 https://github.com/Singtaa/OneJS

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 onejs-setup-and-overview

README.md
[![agentmods](https://agentmods.dev/badge/skills/singtaa/onejs/onejs-setup-and-overview.svg)](https://agentmods.dev/skills/singtaa/onejs/onejs-setup-and-overview)
Your own site
<a href="https://agentmods.dev/skills/singtaa/onejs/onejs-setup-and-overview"><img src="https://agentmods.dev/badge/skills/singtaa/onejs/onejs-setup-and-overview.svg" alt="Measured on agentmods" height="20"></a>
Per session 199 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,435 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.00199 $0.04435
Opus 5 $0.00100 $0.02218
Sonnet 5 $0.00040 $0.00887
Haiku 4.5 $0.00020 $0.00443

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

Security

Grade A, and why

onejs-setup-and-overview 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 5d 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.

AI/Skills/onejs-setup-and-overview/SKILL.md · 325 lines

How it starts

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

Set Up a OneJS Project

OneJS runs React 19 and TypeScript user interfaces inside Unity. TSX source compiles with esbuild into a single bundle that the JSRunner component executes through QuickJS, or through the browser's own JavaScript engine on WebGL, and renders through UI Toolkit. There is no DOM and no webview. This skill takes a project from "OneJS is installed" to "a React component is rendering in the Game view and hot reloading on save", and lists the small number of mistakes that account for most blank panels.

When to use this skill

  • "set up OneJS in this project", "get OneJS running", "initialize a OneJS app"
  • "add a main menu", "build a settings screen", "make a HUD", "add an inventory panel", in a project that has OneJS installed
  • "write this UI in React instead of C#", "use TypeScript for my Unity UI"
  • "my OneJS panel is blank", "nothing renders in the Game view", "hot reload stopped working"
  • "where does the UI code live", "why is there a folder with a tilde in it"

Not for:

  • Per-component props and API detail. Read https://onejs.com/docs instead.
  • Projects without OneJS installed. Run the Prerequisites check first; if it fails, say so rather than writing OneJS code that cannot compile.
  • uGUI (Canvas, UnityEngine.UI) or IMGUI (OnGUI) work. OneJS renders through UI Toolkit only.

Prerequisites

  • Unity 6000.3 or newer.
  • Node.js 18 or newer on the development machine, on PATH. OneJS shells out to npm for install and build.
  • No other Unity packages and no scoped registries are required.

Install check. Confirm the type OneJS.JSRunner resolves. Any one of these is sufficient:

// In an editor script or an eval tool
var t = System.Type.GetType("OneJS.JSRunner, OneJS.Runtime");
UnityEngine.Debug.Log(t != null ? "OneJS installed" : "OneJS NOT installed");

Or confirm on disk that one of these paths exists: Assets/Singtaa/OneJS/ (Asset Store), Assets/OneJS/ (git clone), or Packages/com.singtaa.onejs/ (Package Manager).

Read the full file on GitHub · 325 lines

Files

What ships with it

1 file 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. 5d ago First seen · 325 lines · 199 tokens per session scan A f0ce241d2d49

Subscribe to this mod's changes

onejs-setup-and-overview is a skill published in the GitHub repository Singtaa/OneJS (348 stars, last pushed today), licensed MIT. It adds 199 tokens to every session and 4,435 once invoked, about $0.0010 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.