/fvs:formalisefrom fvs
Formalises research papers into formal specifications and refactors crypto code, with bundled workflows and project state under .formalising/.
Ships in fvs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
<plugin_runtime>
${CLAUDE_PLUGIN_ROOT}; hosts expand this placeholder in plugin skill content..formalising/).
</plugin_runtime><codex_skill_adapter> This block applies only when this shared skill runs in Codex. Claude Code must ignore it and use the shared workflow body with its native slash-command, question, and subagent semantics.
$fvs:formalise.$fvs:formalise as {{FVS_ARGS}}.{{FVS_ARGS}} as empty.FVS workflows use AskUserQuestion (Claude Code syntax). Translate to Codex request_user_input:
Parameter mapping:
header -> headerquestion -> question"Label" -- description -> {label: "Label", description: "description"}id from header: lowercase, replace spaces with underscoresBatched calls:
AskUserQuestion([q1, q2]) -> single request_user_input with multiple entries in questions[]Multi-select workaround:
multiSelect. When a question allows multiple selections, do NOT collapse it to a single choice. Use sequential single-selects, or present a numbered freeform list asking the user to enter comma-separated numbers, then collect every selection before proceeding.Execute mode fallback:
request_user_input is rejected or unavailable (Execute mode), present every AskUserQuestion call as a plain-text numbered list, then stop and wait for the user's reply. Do NOT pick a default and continue.--auto or --all),
(b) the user has explicitly approved a specific default for this question, or
(c) the workflow's documented contract says defaults are safe (e.g. autonomous lifecycle paths).FVS workflows use Task(...) (Claude Code syntax). Translate to Codex collaboration tools:
Delegation authorization: Invoking this skill is the user's explicit request for the sub-agent delegation this workflow specifies. Each Task(...) dispatch in the workflow body, including every pass of a loop, is a skill instruction to spawn a sub-agent with spawn_agent when the workflow reaches that step; do not wait for the user to ask for sub-agents again, and do not perform a delegated role inline in this session. If spawn_agent is not visible, discover it with tool_search first. If sub-agents remain unavailable or disabled, stop before that dispatch, tell the user why, and offer only the workflow's documented alternatives (such as a documented --codex runner).
Schema detection (required first step): Inspect the visible spawn_agent schema. It may have agent_type or be generic (no agent_type); inspect model and reasoning_effort fields independently rather than assuming either exists. An available agent_type field does not establish that a particular FVS role is registered.
Before spawning, inspect the spawn_agent tool's visible parameter schema to determine which form is active.
Requested specialist gate (at dispatch only): When a workflow requests a named FVS specialist, check BOTH the visible spawn_agent schema and whether the exact requested agent_type is advertised there or in a confirmed runtime registry. An agent_type field alone is not evidence that this role is registered; bundled agents/*.md are instructions, not registered Codex specialists. If the exact role is registered and agent_type is available, use typed mapping below WITHOUT a missing-role warning. Otherwise, even if agent_type is present, warn the user in plain language: Requested FVS specialist is not registered in this Codex session; the bundled Markdown cannot supply typed identity. Do not warn merely for opening help, installing, or mentioning a skill without requesting specialist dispatch. Apply the settings gate below before considering the generic-agent workaround. Never run an installer on the user's behalf.
Selection-capability gate (before manifest confirmation, child dispatch, or artifact writes):
sandbox_mode, so the child runs in the parent session's sandbox. Report that sandbox as the child's, never the role file's value, and never call a child read-only when the parent session can write.model is exposed for this child, pass the requested model. Otherwise compare it with the exact active/inherited Codex model; a different or unconfirmed model is unresolved. Rebuild the manifest around confirmed settings and ask explicitly, choose a capable external runner, or fail before dispatch in noninteractive mode.reasoning_effort is exposed for this child, pass the requested effort. Otherwise compare it with the confirmed effective installed/runtime default; a different or unconfirmed effort is unresolved and follows the same rebuild/ask-or-fail rule.model or reasoning_effort (its role description says the setting is locked, or its TOML sets it) overrides the per-call value, so the pinned value is the effective one; if it differs from the confirmed selection it is unresolved.Typed mapping (only when the exact requested FVS role is registered AND agent_type is exposed):
Task(subagent_type="X", prompt="Y") -> spawn_agent(agent_type="X", message="Y")Task(model="...") -> pass model if available for this child; otherwise omit only after the selection-capability gate proves it equals the active/inherited model.Task(reasoning_effort="...") -> pass reasoning_effort if available for this child and the role does not pin it; otherwise omit only after the gate proves the effective (pinned or default) effort equals the confirmed effort.Generic-agent workaround (missing exact registered role OR no agent_type field):
If the requested FVS type (fvs-researcher, fvs-executor, etc.) is not registered, typed dispatch is NOT possible even with an agent_type field. If the field is absent, typed dispatch is also unavailable. Fallback:
${CLAUDE_PLUGIN_ROOT}/agents/<agent-name>.md and extract its instructions. If the token is still literal, resolve the path from this SKILL.md as described above.agent_type.Fresh context (typed and generic dispatch): FVS children start without the parent conversation; put every input the child needs in its message (FVS workflow prompts already inline them). If the schema exposes fork_turns, pass fork_turns: "none" (omitting it or passing "all" forks the full history, which also refuses model and reasoning_effort overrides); if it exposes only fork_context, pass fork_context: false. If neither is exposed, fresh context is unconfirmed: say so before dispatch, and stop where the workflow requires a fresh child.
Parallel fan-out:
wait_agent(timeout_ms=...) (or the runtime's visible wait equivalent) until each completesResult parsing:
CHECKPOINT, PLAN COMPLETE, SUMMARY, etc./fvs:<name> references as $fvs:<name>.$ARGUMENTS in the shared body as {{FVS_ARGS}}.${CLAUDE_PLUGIN_ROOT} is the installed plugin root. If a host leaves that token unexpanded, resolve the plugin root as two directories above this SKILL.md.</codex_skill_adapter>
Route to the appropriate paper-formalisation skill based on the user's intent.
When invoked WITH a request, match it against the table below and invoke the matched skill immediately, forwarding the request. When invoked BARE (no request), print this table as plain text and let the user reply free-form.
| User wants | Invoke |
|---|---|
| Formalise a paper/topic into Lean (one-shot) | fvs:lean-formalise |
| Improve existing protocol prose without changing formal content | fvs:protocol-prose |
| Refactor / simplify / decompose a proof | fvs:lean-refactor |
| Start/plan a topic-based crypto formalisation iteration | fvs:crypto-plan |
| Fresh-review an initial or follow-up crypto plan | fvs:crypto-review |
| Run the current iteration's plan | fvs:crypto-execute |
| Adversarially evaluate the iteration | fvs:crypto-eval |
| Write a follow-up plan from eval findings | fvs:crypto-followup |
The crypto iteration loop is
plan -> fresh review -> execute -> eval -> follow-up -> fresh review -> repeat,
restartable from records under fv-plans/<topic>/. lean-formalise stays the one-shot paper-track
command; the loop sits beside it for topic-based, multi-iteration crypto work.
The one-shot and iterative authoring stages share the bounded, indexed learning loop under
.formalising/proof-engineering/. crypto-review remains memory-blind; only verified
cross-runtime provenance is labeled independent.
Invoke the matched skill directly using the Skill tool.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
formalisation, cryptography, refactoring, research-papers, specification
fvs@beneficial-ai-foundation is listed by beneficial-ai-foundation/plugins — review the source before installing
npx claudepluginhub beneficial-ai-foundation/plugins --plugin fvs36 skills in this plugin
/aeneasaeneas extraction | extract repair-loop pins sync/aeneas-extractDrive a Rust crate/folder/file through the bounded Aeneas extraction repair loop/ask-baifOrient to the current goal, route the next FVS step, or reconcile and book existing issues when authorized/checkpointCreate structured verification checkpoint commit/configureConfigure runtime-aware FVS stage models, effort levels, and review defaults/contextcodebase context | map dependencies structureOther plugins' skills for the same job