| name | gfm |
| description | Gest Format. Run formatting, linting, typechecking, compile/static checks, and mechanical diff hygiene; fix mechanical issues. Use gte for tests and gdo for documentation. |
GFM: Gest Format
Use to mechanically clean and statically check a changeset. gfm does not own
runtime tests or documentation checks; route those to gte and gdo.
Workflow
- Identify the project root and changed files.
- Read the command contract in
AGENTS.md, especially just mappings and
focused-argument guidance.
- Run formatting, linting, typechecking, compile/static checks, and diff
hygiene appropriate to the project.
- Fix mechanical issues.
- Re-run failing checks.
- Report every command run and whether it passed.
Prefer project-specific just targets. Common concepts:
just fmt [path]
just lint [path]
just typecheck
just static
just build
just diff-check
For jj repos, inspect changes with:
jj status
jj diff
jj diff --summary
Use raw git only for read-only inspection or for a command-contract diff check
that intentionally validates the colocated git patch. Do not use raw git write
commands or git worktrees.
If the project uses cx in its Justfile, run cx lint or the mapped
just cx-lint target as a static declaration check. cx lint validates
incremental build/pipeline lines; it is not a test runner and should not be
used as a substitute for gte.
For code-facing changes, gfm may include lightweight ast-grep syntax or
pattern checks from references/tag_dependency_workflow.md when those checks are part
of the mechanical contract.
If no command contract exists, inspect manifests and route to gsu to establish
one before guessing language-specific tools.