optimize-runtime

optimize-runtime is a skill for Claude Code, Codex from frostney/GocciaScript. It costs 92 tokens per session (2,312 once invoked), scanned A, original, MIT.

A guided process for making GocciaScript run faster while checking that its interpreter and bytecode virtual machine still behave correctly. It uses repeatable benchmarks and profiling to measure each change.

In plain words
What is it for?
It is for optimizing the interpreter, bytecode execution, startup, function calls, and numeric operations.
Why use it?
It helps prevent performance changes from being accepted without evidence or from breaking language behavior.

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/frostney/gocciascript/optimize-runtime
Any agent
npx skills add frostney/GocciaScript --skill optimize-runtime
Clone the repo
git clone --depth 1 https://github.com/frostney/GocciaScript

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 optimize-runtime

README.md
[![agentmods](https://agentmods.dev/badge/skills/frostney/gocciascript/optimize-runtime.svg)](https://agentmods.dev/skills/frostney/gocciascript/optimize-runtime)
Your own site
<a href="https://agentmods.dev/skills/frostney/gocciascript/optimize-runtime"><img src="https://agentmods.dev/badge/skills/frostney/gocciascript/optimize-runtime.svg" alt="Measured on agentmods" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,312 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.00092 $0.02312
Opus 5 $0.00046 $0.01156
Sonnet 5 $0.00018 $0.00462
Haiku 4.5 $0.00009 $0.00231

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

Security

Grade A, and why

optimize-runtime 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 yesterday.

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.

.agents/skills/optimize-runtime/SKILL.md · 209 lines

How it starts

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

Optimize runtime

Improve execution speed without trading away conformance. Treat every change as a candidate until repeatable measurement and mode-identical correctness accept it.

Adapted from Wasmlight's optimize-runtime playbook. GocciaScript has no JIT/AOT tiers: the two execution modes are the tree-walk interpreter and the bytecode VM, sharing the same runtime objects and GC.

Establish the experiment

  1. Read .agent/HANDOFF.md when it exists, VISION.md, CONTEXT.md, the hot-path policy in docs/contributing/code-style.md and docs/core-patterns.md, docs/testing.md, docs/benchmarks.md, docs/profiling.md, docs/bytecode-vm.md, and the ADRs governing the affected seam (especially 0005, 0014, 0065, 0076, 0081, 0087, 0088, 0091).
  2. Apply git-workflow. Require a clean tree, fetch the remote default, and start from its exact tip on a focused branch. Never benchmark an unexplained dirty or mixed-revision tree.
  3. State the target workload, affected execution mode (bytecode unless the user names the interpreter), expected invariant, guard workloads, platforms, and non-goals before editing.
  4. Use --prod builds for performance measurement. Use development builds as an additional checked-build correctness gate, never as performance evidence.
  5. Make every workload verify its result independently. Do not use the interpreter as the bytecode VM's only oracle: run both modes against the JavaScript suite, and require AWFY/probe workloads to check their own computed result.

Default wave target unless the user overrides it: close the bytecode-vs-QuickJS gap until GocciaScript reaches 0.6×–0.8× of QuickJS speed on the chosen barometer (throughput or score). On AWFY that is Goccia time / QuickJS time between about 1.25× and 1.67×; on JetStream invert the score ratio the same way. Record the exact convention used in the wave handoff. Do not treat beating V8/SpiderMonkey as in-scope (VISION.md).

Capture the baseline

Read the full file on GitHub · 209 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. yesterday First seen · 209 lines · 92 tokens per session scan A fc73e1df91b7

Subscribe to this mod's changes

optimize-runtime is a skill published in the GitHub repository frostney/GocciaScript (20 stars, last pushed today), licensed MIT. It adds 92 tokens to every session and 2,312 once invoked, about $0.0005 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-09-04.

Related

Other skills, from other repositories

javascript-expert

Expert-level JavaScript development with modern ES2024+ features, Node.js, npm ecosystem, and best practices. Use when the user mentions ECMAScript, ES2024, Node.js, npm, or web, or when the task involves Modern JavaScript, Node.js Development, Modern Tooling, or Functional Programming.

personamanagmentlayer/pcl · 69 tokens

qcad

Use when editing DXF files with a professional open-source 2D CAD application — CAM output, part libraries, isometric projection. QCAD: open-source 2D CAD with DXF as native format, scriptable via ECMAScript.

znlgis/opengis-skills · 53 tokens

oxc-docs

Comprehensive reference for the JavaScript Oxidation Compiler (Oxc) — a collection of high-performance JavaScript tools written in Rust. Covers parser design (lexer, AST, parser, errors, semantic analysis), architecture (parser, linter, test infrastructure, AST tools), ECMAScript specification and grammar, performance…

pledgeandgrow/pledge-skills · 131 tokens

git-step-commit

Analyze Git changes, split them into coherent commits, infer message language and format, optionally close supplied GitHub issues, and execute safely. Manage persistent global or repository preferences for review versus direct submission and automatic or specified commit-message language through native Git config.…

bosens-China/tc39-atlas · 134 tokens

manage-prd-docs

Automatically manage product requirements across current decisions in docs/PRD.md and docs/prd/, mature future plans under docs/plans/, and active implementation under docs/work/. Use whenever the conversation discusses, clarifies, versions, plans, implements, completes, splits, or migrates a product requirement or…

bosens-China/tc39-atlas · 132 tokens

modernize-ecmascript

当 Agent 编写或修改 JavaScript、TypeScript,用户要求按指定环境、输出版本、ES20xx 或具体语法编写代码,询问某项 ECMAScript 语法、标准内置 API 或提案能否采用,或者要求审查仓库中可简化、可现代化的写法时,应使用本 Skill。围绕目标文件真实经过的解析器、转换器和输出目标判断新语法能否安全采用,并按需读取 TC39 Atlas 的提案阶段、官方仓库、polyfill 与实现线索。.

bosens-China/tc39-atlas · 130 tokens