GocciaScript: Skill for Codex

.agents/skills/optimize-runtime/SKILL.md

optimize-runtime is a skill for Codex from frostney/GocciaScript. It costs 92 tokens per session (2,244 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 Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions subagents; installed under .agents/ (shared by several agents).

This is frostney/GocciaScript's own configuration. It tells Codex how to work on GocciaScript itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything GocciaScript configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./build/GocciaTestRunner -P tests.

Reuse

Borrowing it

Nothing to install: this file belongs to frostney/GocciaScript. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/frostney/GocciaScript/main/.agents/skills/optimize-runtime/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/frostney/GocciaScript

Made for: 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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for optimize-runtime

Your own site · 80×15
<a href="https://agentmods.dev/skills/frostney/gocciascript/optimize-runtime"><img src="https://agentmods.dev/badge/skills/frostney/gocciascript/optimize-runtime.svg" alt="Reviewed on agentmods" width="80" 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,244 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00092 $0.02244
Opus 5.5 $0.00037 $0.00898
Sonnet 5.5 $0.00018 $0.00449
Haiku 4.5 $0.00009 $0.00224

Measured 8d ago against content hash d4be8df8fcb8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 8d 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.

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

How it starts

The opening of the file, as written. The whole thing — 206 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. 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

  1. Build and retain a baseline binary from the exact starting commit with the same compiler, dependencies, flags, and host used for candidates:

Read the full file on GitHub · 206 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. 8d ago Changed · -1 lines d4be8df8fcb8
  2. 25d ago Changed · -2 lines eaa292896e00
  3. 26d ago Changed ff676817cfe2
  4. 1mo ago 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 yesterday), licensed MIT. It adds 92 tokens to every session and 2,244 once invoked, about $0.0004 per session on Opus 5.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

fixing-flaky-tests

Guides an agent through reproducing, root-causing, fixing, and validating flaky tests in the PostHog monorepo. Use when a test fails intermittently in CI but passes on rerun or locally, when hogli ci:insights or the debugging-ci-failures skill classifies a failure as a flaky test, when given a GitHub Actions URL for a…

PostHog/posthog · 220 tokens

test-electron-app

Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser. Connect to the running app on port 9222, test desktop changes against a local Django stack, snapshot the accessibility tree, inspect network requests, and screenshot only when explicitly asked. Use when…

PostHog/posthog · 112 tokens

extending-hobby-smoke-tests

Design, extend, review, or debug PostHog Hobby end-to-end smoke tests in bin/hobby-ci.py and .github/workflows/ci-hobby.yml. Use when adding an ingestion round trip, deciding whether a product belongs in Hobby CI, changing the CI Hobby service topology or API-key scopes, or diagnosing a smoke test that captures data…

PostHog/posthog · 83 tokens

extending-personhog-test-harness

When and how to add scenarios, chaos events, and invariants to the personhog e2e test harness (rust/personhog-test-harness). Use after fixing a bug or regression in the personhog leader path (leader, router, writer, replica, coordination protocol) so the fix gets a permanent regression scenario; when adding a new…

PostHog/posthog · 134 tokens

code-runner

A sandboxed code execution tool that runs short programs without using your computer's files or network. It supports Python, JavaScript, TypeScript, Go, Rust, Java, C, C++, Ruby, and PHP.

zhinjs/zhin · 87 tokens

handle-regression

Protocol for detecting, isolating, and fixing regressions in test262 pass count. Use when a test run shows fewer passes than expected.

loopdive/js2 · 32 tokens