formax: Skill for Codex

.codex/skills/formax-surface-reset-workflow/SKILL.md

formax-surface-reset-workflow is a skill for Codex from yusifeng/formax. It costs 62 tokens per session (804 once invoked), scanned A, original, MIT.

A workflow for changing how a terminal REPL clears, resets, resumes, or redraws its transcript. A REPL is an interactive command-line screen, and the transcript is the visible history of the session.

In plain words
What is it for?
Use it when changing /clear or /resume, terminal clear behavior, transcript remounts, or transitions involving Ctrl+O and Ctrl+E.
Why use it?
It helps prevent blank screens, flicker, repeated rows, and reset operations being performed by competing parts of the code.

Skill for Codex

Written for Codex: installed under .codex/.

This is yusifeng/formax's own configuration. It tells Codex how to work on formax 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 formax configures →

Reuse

Borrowing it

Nothing to install: this file belongs to yusifeng/formax. 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/yusifeng/formax/main/.codex/skills/formax-surface-reset-workflow/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/yusifeng/formax

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 formax-surface-reset-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/yusifeng/formax/formax-surface-reset-workflow/github.svg)](https://agentmods.dev/skills/yusifeng/formax/formax-surface-reset-workflow)
Your own site
<a href="https://agentmods.dev/skills/yusifeng/formax/formax-surface-reset-workflow"><img src="https://agentmods.dev/badge/skills/yusifeng/formax/formax-surface-reset-workflow/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 formax-surface-reset-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/yusifeng/formax/formax-surface-reset-workflow"><img src="https://agentmods.dev/badge/skills/yusifeng/formax/formax-surface-reset-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 804 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.00062 $0.00804
Opus 5.5 $0.00025 $0.00322
Sonnet 5.5 $0.00012 $0.00161
Haiku 4.5 $0.00006 $0.00080

Measured 2mo ago against content hash f3b8ab8e17ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

formax-surface-reset-workflow 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 2mo 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.

.codex/skills/formax-surface-reset-workflow/SKILL.md · 76 lines

How it starts

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

Formax Surface Reset Workflow

Goal

Use this skill when changing REPL clear/reset/resume behavior or any transcript surface transition that can remount Static.

Read First

  • docs/contracts/transcript-surface-contract.md
  • docs/runbooks/repl-surface-debugging.md
  • docs/contracts/invariants.md when ownership or sequencing is unclear

These docs are canonical. If stable surface behavior changes, update them before or with code.

Code Map

  • Reset helpers / queue owner:
    • replaceTranscript
    • queueTranscriptSurfaceReplace
    • resetTranscriptSurface
    • queueTranscriptSurfaceReset
    • surfaceOpQueueRef
  • High-risk flows:
    • packages/core/src/features/repl/controller/ui/
    • packages/core/src/features/repl/controller/session/
    • packages/core/src/features/repl/useReplController.ts
    • packages/core/src/screens/repl/
    • packages/core/src/runtime/bootstrap/runLegacyCli.tsx
  • Call sites to watch:
    • onClearTerminal
    • clearTerminal
    • resetInkStaticOutputForStdout
    • transcriptSeq remount behavior in ReplTranscript / ExpandedReplTranscript

Trigger Conditions

Use this skill whenever the change touches any of:

  • /resume, /clear, compact boundary transitions
  • Ctrl+O / Ctrl+E transcript view switches
  • onClearTerminal, clearTerminal, or resetInkStaticOutputForStdout
  • replaceTranscript, queueTranscriptSurfaceReplace, resetTranscriptSurface, queueTranscriptSurfaceReset, or surfaceOpQueueRef
  • files under packages/core/src/features/repl/controller/ui/, packages/core/src/features/repl/controller/session/, packages/core/src/features/repl/useReplController.ts, packages/core/src/screens/repl/, or packages/core/src/runtime/bootstrap/runLegacyCli.tsx

Minimal Workflow

  1. Identify the exact path (/resume, /clear, Ctrl+O / Ctrl+E, compact boundary, etc.).
  2. Route it through replaceTranscript / resetTranscriptSurface instead of local clear / remount sequencing.
  3. Treat reset as one transaction, not scattered side effects.
  4. Add or extend regression tests for ordering and surface reset ownership.
  5. Run the minimum regression set below and at least one real surface smoke path.

Read the full file on GitHub · 76 lines

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. 2mo ago First seen · 76 lines · 62 tokens per session scan A f3b8ab8e17ee

Subscribe to this mod's changes

formax-surface-reset-workflow is a skill published in the GitHub repository yusifeng/formax (184 stars, last pushed 3mo ago), licensed MIT. It adds 62 tokens to every session and 804 once invoked, about $0.0002 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-08-30.

Related

formax-surface-reset-workflow compared with skills from other repositories

formax-surface-reset-workflow next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
formax-surface-reset-workflowyusifeng/formaxSkill1843mo agoMITA62Codex
code_explorergoogle-gemini/gemini-cliSkill109kyesterdayApache-2.0A28Gemini CLI
node-connectopenclaw/openclawSkill394kyesterdayMITA39Claude Code, Codex
node-inspect-debuggeropenclaw/openclawSkill394kyesterdayMITA28Claude Code, Codex
test-failure-explorerQwenLM/qwen-codeSkill29kyesterdayApache-2.0A32Claude Code, Codex
session-investigatorevalstate/fast-agentSkill4.0kyesterdayApache-2.0A68Claude Code, Codex
smiles-validationsynthetic-sciences/openscienceSkill4.3k2d agoApache-2.0A24Claude Code, Codex