Formax slash command workflow

From yusifeng/formax · View interactive version

Formax slash command workflow is an AI agent skill from the GitHub repository yusifeng/formax. Use when adding/modifying Formax slash commands (/permissions /agents /hooks /todos etc), especially output rendering (command sublines), overlay dismiss messages, and whether outputs are injected into the next LLM turn.

How to use this skill

Skill file

Formax slash command workflow

Goal

Use this skill when changing slash command discovery, dispatch, overlay dismissal output, or next-turn injection behavior.

Read First

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

Code Map

1) Command discovery + dispatch

2) Command result contract (UI vs model)

3) Overlay dismissal “subline output”

4) REPL message plumbing + rendering

High-Signal Patterns

Minimal Workflow

  1. Classify the change first: discovery / precedence, local UI output, next-turn injection, or overlay dismiss behavior.
  2. Update the slash command contract first.
  3. Preserve “show in UI” vs “inject into model context” as separate concerns; local output alone must not imply injection.
  4. Use command_subline for Claude-style sublines; do not invent new message shapes.
  5. Run the minimum regression set below before review.

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.