formax: Skill for Codex

.codex/skills/formax-permissions-workflow/SKILL.md

formax-permissions-workflow is a skill for Codex from yusifeng/formax. It costs 45 tokens per session (1,142 once invoked), scanned A, original, MIT.

Development guidance for Formax rules that decide whether actions are allowed, denied, or require approval.

In plain words
What is it for?
Use it when implementing or debugging policy checks, workspace boundaries, approval prompts, permission storage, or the permissions screen.
Why use it?
It helps keep permission checks, approval prompts, saved decisions, and the permissions interface consistent.

Skill for Codex

Written for Codex: installed under .codex/. Also seen: mentions Claude Code; mentions AGENTS.md.

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-permissions-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-permissions-workflow

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yusifeng/formax/formax-permissions-workflow"><img src="https://agentmods.dev/badge/skills/yusifeng/formax/formax-permissions-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,142 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.00045 $0.01142
Opus 5.5 $0.00018 $0.00457
Sonnet 5.5 $0.00009 $0.00228
Haiku 4.5 $0.00005 $0.00114

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

Security

Grade A, and why

formax-permissions-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-permissions-workflow/SKILL.md · 99 lines

How it starts

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

Formax permissions / approvals workflow

Goal

Use this skill when changing policy preflight, approval prompts, remember side-effects, or /permissions management.

Read First

  • docs/contracts/permissions-policy-contract.md
  • docs/contracts/interactive-input-contract.md
  • docs/contracts/semantics-contract.md when the change crosses TUI / app-server / Web

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

Code Map

1) Policy preflight (ToolCall -> allow/ask/deny decision)

  • packages/core/src/tools/executor/policyPreflight.ts: turns ToolCall into a PolicyAction and decides deny / prompt / allow
  • packages/core/src/tools/executor/policyAction.ts: ToolCall -> PolicyAction mapping
  • packages/core/src/tools/executor/policyExplain.ts: explain / debug text for decisions
  • packages/core/src/tools/modules/bash/policy.ts: Bash risk classification

2) Permissions storage + matching (rules & precedence)

  • packages/core/src/adapters/permissions/permissionsStore.ts: read / write settings and merge precedence
  • packages/core/src/adapters/permissions/permissionKeys.ts: stable keys / paths for settings
  • packages/core/src/adapters/permissions/matcher.ts: matcher semantics

3) Approvals (prompt UI + persistence side-effects)

  • packages/core/src/tools/executor/approvalService.ts: ensureApproved flow and remember writes
  • UI prompts:
    • packages/core/src/components/tool/bashApprovalPrompt.tsx
    • packages/core/src/components/tool/fsReadApprovalPrompt.tsx
    • packages/core/src/components/tool/fsWriteApprovalPrompt.tsx
    • packages/core/src/components/tool/skillApprovalPrompt.tsx
    • packages/core/src/components/tool/editApprovalPrompt.tsx
  • Shared pieces:
    • packages/core/src/components/ui/ApprovalHeader.tsx
    • packages/core/src/components/ui/ConfirmMenu.tsx

4) /permissions overlay (manage rules + workspace)

  • packages/core/src/tui/permissions/PermissionsDialog.tsx: state machine + key handling
  • packages/core/src/tui/permissions/ui.tsx: rendering primitives
  • packages/core/src/features/repl/controller/ui/overlays.ts: overlay open / close and dismissal messages
  • Slash command wiring:
    • packages/core/src/features/commands/registry.ts
    • packages/core/src/screens/repl/createReplCommandRegistry.ts

Read the full file on GitHub · 99 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 · 99 lines · 45 tokens per session scan A 125414680bf8

Subscribe to this mod's changes

formax-permissions-workflow is a skill published in the GitHub repository yusifeng/formax (184 stars, last pushed 3mo ago), licensed MIT. It adds 45 tokens to every session and 1,142 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-permissions-workflow compared with skills from other repositories

formax-permissions-workflow next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
formax-permissions-workflowyusifeng/formaxSkill1843mo agoMITA45Codex
printing-press-amendmvanhorn/cli-printing-pressSkill4.9kyesterdayMITA222Claude Code
wikipediax-cmd/x-cmdSkill4.7k6d agoApache-2.0A49Claude Code, Codex
cvex-cmd/x-cmdSkill4.7k6d agoApache-2.0A49Claude Code, Codex
voidenVoidenHQ/voidenSkill1.8k2d agoApache-2.0A28Claude Code, Codex
csharp-dotnetericrisco/rsc-harnessSkill5032d agoMITA89Claude Code, Codex
firebaseericrisco/rsc-harnessSkill5032d agoMITA77Claude Code, Codex