Formax semantics parity workflow

From yusifeng/formax · View interactive version

Formax semantics parity workflow is an AI agent skill from the GitHub repository yusifeng/formax. Use when implementing or modifying behavior that must stay consistent across TUI and Web (mode/input/tool/replay/order). Require canonical semantics first, then TUI/Web adapters, then renderer-specific UI.

How to use this skill

Skill file

formax-semantics-parity-workflow

Goal

Use this skill when changing behavior that must stay consistent across TUI, app-server, and Web: mode, input lifecycle, tool sequencing, replay, or ordering.

Read First

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

Code Map

1) Semantic single source of truth

2) App-server contract emit / restore

3) TUI adapter (renderer can differ, semantics cannot)

4) Web adapter (renderer can differ, semantics cannot)

5) Canonical docs to keep in sync

High-Signal Patterns

1. define contract / event shape / state transition

2. update shared semantics

3. update app-server emit / replay state

4. update TUI and Web adapters

5. update renderer-only UI last

Minimal Workflow

  1. Define the event / state transition in canonical docs and the shared semantics layer first.
  2. Update app-server emit / replay state so the semantics remain recoverable.
  3. Update TUI and Web adapters to consume the shared semantics; update renderer-only UI last.
  4. If packages/core/src/features/repl/** semantic-flow files move, run the REPL semantic gate before review.
  5. Run the minimum regression set below, then review via AGENTS.md.

Minimum Regression

For fixture selection and parity assertions, use references/fixtures-checklist.md.

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.