Codex Math logo

Codex Math

Community
morankor
codex-math

Run an adversarial mathematical workflow in Codex: verify proofs, write hard proofs, explore conjectures, search for counterexamples, and triage possible gaps. Use for important theorem checks, failed proof attempts, conjectures, independent verification, or requests like 'audit this proof', 'find a counterexample', 'explore this claim', or 'verify the math'.

Overview

Publishermorankor
Repositorytheorist-toolbox
Skill namecodex-math
Stars
92
Forks
23
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by morankor on GitHub. Read the source before you install it.

Installation

Install the Codex Math AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/morankor/theorist-toolbox/tree/master/codex/.agents/skills/codex-math
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/morankor/theorist-toolbox.git /tmp/theorist-toolbox
mkdir -p .claude/skills
cp -r /tmp/theorist-toolbox/codex/.agents/skills/codex-math .claude/skills/codex-math
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Codex Math in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Codex Math on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Codex Math is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Codex Math

Use Codex as an adversarial mathematical co-processor. The goal is not to sound convincing; the goal is to separate proved facts, real gaps, false alarms, and promising leads.

Treat every generated argument as a lead, not a verdict. A proof that looks polished can still be false. A reviewer objection can still be a false positive. Triage every finding.

Mode Selection

  • Verify when the user provides a proof, theorem, lemma, or paper section and wants an audit.
  • Write when the user provides a precise result and asks for a proof.
  • Explore when the result may be false, under-specified, or hard enough that counterexample search and sufficient conditions are valuable.

For high-stakes claims, use two passes: one constructive pass and one hostile pass. In Codex environments that expose subagents, spawn independent verifier/explorer agents only when the user explicitly asks for parallel or independent agents.

Verify Mode

  1. Extract the exact statement, hypotheses, definitions, and proof block.
  2. Build a dependency list: equations, lemmas, citations, domain restrictions, and hidden regularity assumptions.
  3. Walk the proof step by step. Classify each step as:
    • OK: justified by a definition, prior result, explicit algebra, or standard theorem.
    • GAP: a necessary implication is missing.
    • ERROR: the step is false, with a counterexample or algebraic correction.
    • UNCLEAR: the step might be right but needs a missing definition, citation, or convention.
  4. Check signs, dimensions, boundary cases, quantifiers, and whether examples are being used as proof.
  5. Triage findings. Report only issues you can explain concretely.

Verification output:

markdown
## Verdict
PASS | PASS WITH CAVEATS | FAIL | INCONCLUSIVE

## Findings
1. Severity: blocking | major | minor
   Location:
   Issue:
   Why it matters:
   Suggested fix:

## Checked
- Definitions:
- Algebra/signs:
- Edge cases:
- Citations or external results:

Write Mode

  1. Restate the theorem with full domains and quantifiers.
  2. Identify the most likely proof strategy and at least one fallback strategy.
  3. Draft the proof using the math-proof discipline: explicit steps, algebra, signs, and edge cases.
  4. Run an adversarial self-audit of the proof before returning it.
  5. Mark any unresolved step as conjectural or open. Do not hide it inside prose.

After writing, recommend an independent verification pass for important results.

Explore Mode

Use when the truth of a claim is uncertain.

  1. State the exact conjecture and all domains.
  2. Search for counterexamples before trying to prove the strongest version.
  3. Try special cases only as evidence; never conclude the general result from them.
  4. If the global claim fails, identify the boundary: sufficient conditions, necessary conditions, or a weaker true statement.
  5. Use deterministic computation when useful. For numerical exploration, save code and make the counterexample reproducible.

Exploration output:

markdown
## Current Status
Likely true | likely false | true under conditions | unresolved

## Evidence
- Analytic:
- Numerical:
- Counterexamples:

## Next Proof Target
<the strongest clean statement that appears defensible>

Prompt Quality Checklist

Before verifying or exploring, make sure the prompt or extracted context includes:

  • the exact claim,
  • all notation and domains,
  • the relevant definitions and equations,
  • what has already been tried,
  • what counts as a valid proof or counterexample.

When context is missing, ask for it or explicitly state the assumption you are making.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Codex Math AI skill do?

Run an adversarial mathematical workflow in Codex: verify proofs, write hard proofs, explore conjectures, search for counterexamples, and triage possible gaps. Use for important theorem checks, failed proof attempts, conjectures, independent verification, or requests like 'audit this proof', 'find a counterexample', 'explore this claim', or 'verify the math'.

Why use Codex Math on TypingMind?

Because you install it once and use it with any model. Codex Math is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Codex Math in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/morankor/theorist-toolbox/tree/master/codex/.agents/skills/codex-math. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Codex Math?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Codex Math?

As many as you like. As long as a model supports skills, you can use Codex Math with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Codex Math AI skill free?

Yes. It is published on GitHub by morankor under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇