nsforge-code-generation

nsforge-code-generation is a skill for Claude Code, Codex from u9401066/nsforge-mcp. It costs 38 tokens per session (705 once invoked), scanned A, original, Apache-2.0.

A code and report generation skill with instructions and tools for producing Python functions, LaTeX formulas, Markdown reports, and SymPy scripts. LaTeX is a text format for typeset documents and formulas; SymPy is a Python library for symbolic mathematics.

In plain words
What is it for?
Use it to create Python calculations, mathematical derivations, technical reports, and scripts that manipulate symbolic expressions.
Why use it?
It provides structured ways to generate technical outputs and requires the generated result to be shown to the user.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/u9401066/nsforge-mcp/nsforge-code-generation
Any agent
npx skills add u9401066/nsforge-mcp --skill nsforge-code-generation
Clone the repo
git clone --depth 1 https://github.com/u9401066/nsforge-mcp

Made for: Claude Code, 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 nsforge-code-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/u9401066/nsforge-mcp/nsforge-code-generation.svg)](https://agentmods.dev/skills/u9401066/nsforge-mcp/nsforge-code-generation)
Your own site
<a href="https://agentmods.dev/skills/u9401066/nsforge-mcp/nsforge-code-generation"><img src="https://agentmods.dev/badge/skills/u9401066/nsforge-mcp/nsforge-code-generation.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 705 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00038 $0.00705
Opus 5 $0.00019 $0.00352
Sonnet 5 $0.00008 $0.00141
Haiku 4.5 $0.00004 $0.00071

Measured 3d ago against content hash 79ee4efeb922, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

nsforge-code-generation 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 3d 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.

.claude/skills/nsforge-code-generation/SKILL.md · 83 lines

How it starts

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

程式碼生成 Skill

⚠️ 生成後必須向用戶展示結果!

  • 生成的 Python 函數要用程式碼區塊展示
  • 生成的 LaTeX 要渲染給用戶看
  • 生成 Markdown 報告後顯示完整內容

工具速查

輸出類型 工具
Python 函數 generate_python_function(name, description, parameters, steps, return_vars)
LaTeX 公式 generate_latex_derivation(steps, title?, include_preamble?)
Markdown 報告 generate_derivation_report(title, given, steps, result, assumptions?, limitations?)
SymPy 腳本 generate_sympy_script(expressions, operations)

調用範例

Python 函數

generate_python_function(
    name="arrhenius_rate",
    description="Calculate rate using Arrhenius equation",
    parameters=[
        {"name": "k_ref", "type": "float", "description": "Reference rate (1/s)"},
        {"name": "E_a", "type": "float", "description": "Activation energy (J/mol)"},
        {"name": "T", "type": "float", "description": "Temperature (K)"}
    ],
    steps=[
        {"description": "Arrhenius equation", "expression": "k_ref * exp(E_a/R * (1/T_ref - 1/T))", "result_var": "k"}
    ],
    return_vars=["k"]
)

LaTeX

generate_latex_derivation(
    steps=[
        {"description": "Base model", "expression": "C = C_0 e^{-kt}"},
        {"description": "Substitute k", "expression": "C = C_0 e^{-k_{ref} e^{...} t}"}
    ],
    title="Temperature-Corrected Elimination"
)

Markdown 報告

generate_derivation_report(
    title="Temperature-Corrected Elimination",
    given=["One-compartment model: $C = C_0 e^{-kt}$"],
    steps=[{"description": "...", "expression": "..."}],
    result="$C(t,T) = ...$",
    assumptions=["First-order elimination"],
    limitations=["Valid for 32-42°C"]
)

SymPy 腳本

generate_sympy_script(
    expressions=[
        {"name": "C_base", "expr": "C_0 * exp(-k*t)", "description": "One-compartment"}
    ],
    operations=[
        {"op": "substitute", "input": "C_base", "var": "k", "replacement": "k_arrhenius"}
    ]
)

先計算再生成

複雜情況先用 SymPy-MCP 計算(如 dsolve_ode),再用 NSForge 生成程式碼。

Read the full file on GitHub · 83 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. 3d ago First seen · 83 lines · 38 tokens per session scan A 79ee4efeb922

Subscribe to this mod's changes

nsforge-code-generation is a skill published in the GitHub repository u9401066/nsforge-mcp (4 stars, last pushed 3d ago), licensed Apache-2.0. It adds 38 tokens to every session and 705 once invoked, about $0.0002 per session on Opus 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-31.

Related

Other skills, from other repositories

x402

Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — "just use it" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing…

browser-use/browser-use · 175 tokens

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work.

browser-use/browser-use · 26 tokens

final-release-review

Perform pre-release planning or a final release-candidate review for openai-agents-python by comparing the target with the previous remote tag, determining the minimum compatible release type, auditing regressions and contract changes, reviewing open documentation PR coverage, drafting minor-release Key Changes, and…

openai/openai-agents-python · 64 tokens

implementation-strategy

Choose compatibility-aware scope for runtime and API changes in openai-agents-python. Use before initial implementation and each review-feedback batch to decide whether to patch, reset the design, preserve compatibility, or reject unsupported cases.

openai/openai-agents-python · 47 tokens

mem0-dream

Consolidates stored memories by merging duplicates, resolving contradictions, and pruning stale entries. Use when memory count is high, search results feel noisy or repetitive, or periodic cleanup is needed to maintain memory quality.

mem0ai/mem0 · 46 tokens

mem0-tour

Browses all stored memories grouped by category with full content display. Use when reviewing all project memories, exploring stored knowledge, onboarding to a project, or getting an overview of captured decisions, conventions, and learnings.

mem0ai/mem0 · 47 tokens