Formax system prompt workflow

From yusifeng/formax · View interactive version

Formax system prompt workflow is an AI agent skill from the GitHub repository yusifeng/formax. Use when designing, refactoring, or debugging Formax system prompt assembly, system-reminder injection, or skills/deferred-tool prompt exposure semantics; mandatory for any change involving FORMAX_DEFERRED_TOOL_EXPOSURE and request-payload parity checks.

How to use this skill

Skill file

formax-system-prompt-workflow

Goal

Use this skill when changing system prompt assembly, reminder injection, deferred tool exposure, or skills prompt presentation.

Read First

Optional working notes:

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

Invariants

  1. Keep a single prompt-profile path.
  1. Treat FORMAX_DEFERRED_TOOL_EXPOSURE as a linked behavior bundle.
  1. Keep helper blocks request-scoped and ephemeral.
  1. Only claim capabilities that Formax runtime actually implements.

Code Map

Deferred Exposure Checklist (`FORMAX_DEFERRED_TOOL_EXPOSURE=1`)

Minimal Workflow

  1. Classify the change first: all-mode or deferred-only (FORMAX_DEFERRED_TOOL_EXPOSURE=1).
  2. Update the canonical contract and prompt text first, then change resolver / wiring code.
  3. Keep helper blocks request-scoped and ephemeral; do not let them leak into persisted history.
  4. If semantics move, check REPL, app-server, and SDK paths together before calling the change done.
  5. Run the minimum regression set below, then use request preview only as evidence, not as the only validation.

Minimum Regression

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.