Formula Derivation logo

Formula Derivation

Community
Immortalqx
formula-derivation

Structure and derive research formulas when the user wants to 推导公式, derive a theory line, build equations from a problem statement, clarify assumptions, separate formal derivation from remarks, or turn messy theory notes into a paper-ready derivation skeleton. Use for research-style formula development, not for fully rigorous theorem proving once the claim is already fixed.

Overview

PublisherImmortalqx
Repositorymy_codex_skills
Skill nameformula-derivation
Stars
56
Forks
0
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 Immortalqx on GitHub. Read the source before you install it.

Installation

Install the Formula Derivation 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/Immortalqx/my_codex_skills/tree/main/formula-derivation
  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/Immortalqx/my_codex_skills.git /tmp/my_codex_skills
mkdir -p .claude/skills
cp -r /tmp/my_codex_skills/formula-derivation .claude/skills/formula-derivation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Formula Derivation 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 Formula Derivation 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 Formula Derivation 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.

Formula Derivation

Use this skill when the task is not merely to prove a finished theorem, but to build the derivation itself:

  • define the right object,
  • decide what should be assumed,
  • determine what is identity vs proposition vs approximation,
  • connect simple and general regimes without splitting into two unrelated stories,
  • and turn messy notes into a derivation line that can later be written into a paper.

Do not use this skill as a replacement for strict proof writing once the exact claim is already fixed and the user wants a theorem-proof package. In that case, stay focused on clarifying the derivation boundary, assumptions, and missing steps rather than pretending the proof is already complete.

Core Principle

The derivation must be built around one invariant object. Do not start from scattered formulas. Start from the object that survives across regimes, then derive proxies, decompositions, and interpretations from it.

What to Produce

Prefer one of these outputs:

  1. a mainline derivation note for internal alignment;
  2. a paper-style theory draft with tighter narrative;
  3. a blocker report if the current notes cannot support a coherent derivation.

Workflow

1. Freeze the Target

State explicitly:

  • what phenomenon is being explained;
  • what claim is being supported;
  • whether the goal is:
    • identity / algebra,
    • local comparative statics,
    • approximation,
    • or mechanism interpretation.

Do not start symbolic manipulation before this is fixed.

2. Choose the Invariant Object

Find the single quantity that should remain meaningful across regimes.

Examples:

  • objective / loss / utility
  • total energy / cost / welfare
  • state variable / conserved quantity / effective rate
  • expected performance metric

If the current notes use a narrower quantity (c_i, throughput, delay, CW, etc.), decide whether it is:

  • the true top-level object,
  • or only a proxy / slice / approximation.

3. Put Assumptions and Notation First

Before deriving, list:

  • assumptions;
  • notation;
  • regime boundaries;
  • which quantities are fixed and which are state dependent.

Do not introduce hidden assumptions mid-derivation unless they are clearly marked as extra local assumptions.

4. Classify Every Step

Every nontrivial part of the derivation must be labeled mentally as one of:

  • identity: exact algebraic reformulation;
  • proposition: a claim requiring conditions;
  • approximation: model simplification or surrogate;
  • interpretation: prose-level explanation of what the formula means.

Never mix these without signaling the change.

5. Derive from the Global Quantity When Splitting Costs

If the goal is to split a quantity into components, start from the global quantity and then differentiate / decompose.

Pattern:

  1. define the global quantity, e.g. W = \sum_j \Gamma_j;
  2. perturb one local variable, e.g. c_i;
  3. compute the marginal social effect;
  4. split the result into:
    • direct term,
    • indirect term,
    • or private / external terms if that distinction is part of the model.

Do not present the decomposition as if it appeared magically from one local variable itself. The split must come from the effect of changing that variable on the chosen global quantity.

6. Keep Special Cases and General Cases in One Line

If the theory must cover both a simplified regime and a more general regime, do not write two unrelated stories.

Use this pattern:

  • same invariant object across all regimes;
  • special case: some terms vanish or collapse;
  • general case: the same object gains extra structure.

This prevents the simple case from looking like an exception and the general case from looking like a different theory.

7. Treat Simplified Parameters as Analysis Slices

If the true object is state dependent, adaptive, vector-valued, or otherwise complicated, but a theorem needs a simpler parameterization, write:

  • the general object first;
  • then define the simpler case as a tractable slice.

Use language such as:

  • frozen-parameter approximation;
  • constant-coefficient slice;
  • local linearization;
  • reduced-order case.

Do not let the simplified case silently replace the real conceptual object.

8. Separate Main Text from Remarks

For derivations intended for papers:

  • the main derivation should contain only equations and immediate mathematical consequences;
  • explanatory prose, intuition, scenario reading, and caveats should be moved to Remark / Discussion / Scope paragraphs.

If a section starts to read like an internal lecture note, split it into:

  • derivation body;
  • remark.

9. Write Boundaries Explicitly

At the end, state:

  • what the derivation actually proves;
  • what remains approximation;
  • what should not be claimed.

Especially guard against:

  • turning a local proposition into a universal theorem;
  • letting an interpretation sound like a proof;
  • hiding a proxy as if it were the true quantity.

Common Derivation Patterns

When the user is unsure how to start, try one of these common patterns:

  1. Definition -> substitution -> simplification Use when the target formula is mostly algebraic.

  2. Global quantity -> perturbation -> decomposition Use when the target needs direct / indirect, private / external, or local / global splitting.

  3. Primitive law -> intermediate variable -> target expression Use when deriving from a physical principle, conservation law, or probabilistic identity.

  4. Exact model -> approximation -> interpretable closed form Use when the exact formula is too heavy and a paper needs a usable surrogate.

  5. General dynamic object -> frozen slice -> theorem -> return to general case Use when the real system is adaptive or state dependent, but the proof needs a simpler slice.

Recommended Output Structure

For an internal derivation note:

  1. Target
  2. Invariant object
  3. Assumptions and notation
  4. Main derivation
  5. Regime interpretation
  6. Approximations and open risks

For a paper-style theory section:

  1. Unified object
  2. Formal proxy and assumptions
  3. Special-case to general-case decomposition
  4. Reward / objective reformulation
  5. Local theorem or proposition
  6. State-dependent extension
  7. Scope and non-claims

Boundary With Finished Proofs

Use formula-derivation when the user says things like:

  • “我不知道怎么起这条推导主线”
  • “这个公式到底该从哪个量出发”
  • “帮我把理论搭顺”
  • “把说明文档变成可写进论文的公式文档”

The derivation is usually mature enough for a finished theorem-proof package only after:

  • the exact claim is already fixed,
  • the assumptions are stable,
  • and the task is now to prove or refute that claim rigorously.

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 Formula Derivation AI skill do?

Structure and derive research formulas when the user wants to 推导公式, derive a theory line, build equations from a problem statement, clarify assumptions, separate formal derivation from remarks, or turn messy theory notes into a paper-ready derivation skeleton. Use for research-style formula development, not for fully rigorous theorem proving once the claim is already fixed.

Why use Formula Derivation on TypingMind?

Because you install it once and use it with any model. Formula Derivation 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 Formula Derivation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Immortalqx/my_codex_skills/tree/main/formula-derivation. 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 Formula Derivation?

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 Formula Derivation?

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

Is the Formula Derivation AI skill free?

Yes. It is published on GitHub by Immortalqx 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 👇