跳到正文
cccskills
免费在 GitHub 公开

maths

Performs numerical and symbolic mathematics using NumPy, SciPy, SymPy, and mpmath. Use when the user needs linear algebra, arrays, optimization, integration, ODEs, symbolic expressions, equation solving, or arbitrary-precision arithmetic.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(11)

  • SKILL.md3.8 KB
  • examples.md2.7 KB
  • install-by-os.md3.6 KB
  • install.md1.8 KB
  • reference.md2.9 KB
  • scripts/mpmath_precision.py547 B
  • scripts/numpy_solve.py613 B
  • scripts/scipy_integrate.py513 B
  • scripts/scipy_minimize.py610 B
  • scripts/sympy_integrate.py648 B
  • scripts/sympy_solve.py534 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Maths

Install this skill (skills CLI)

Add this skill to your agent from the skills ecosystem:

# List skills in this repo
npx skills add udnisap/skills --list

# Install the maths skill (project scope)
npx skills add udnisap/skills --skill maths -y

# Install globally for all projects
npx skills add udnisap/skills --skill maths -g -y

Repo: github.com/udnisap/skills.

Setup (do this first)

Use a virtual environment and install the maths libraries inside it. Step-by-step: install.md. Install by OS (Linux, macOS, Windows): install-by-os.md.

  • Check (with venv activated): python -c "import numpy, scipy, sympy, mpmath; print('OK')" — if this fails, follow install.md or install-by-os.md for your platform.
  • Quick setup: create venv (e.g. python3 -m venv .venv), activate it, then pip install numpy scipy sympy mpmath. Run scripts with that venv’s python.

Use established Python libraries instead of hand-rolled math. Choose by task:

NeedLibrary
Arrays, linear algebra, FFT, randomNumPy
Optimization, integration, ODEs, stats, sparseSciPy
Symbolic math, simplify, solve, differentiateSymPy
Arbitrary-precision floats, special functionsmpmath

When to use

  • Numerical arrays, matrix ops, eigenvalues, SVD, FFT
  • Minimization, root finding, curve fitting, integration, ODEs
  • Symbolic expressions, equation solving, calculus (symbolic)
  • High-precision decimals or special functions beyond float64

Quick workflow

  1. Identify numeric vs symbolic vs high-precision.
  2. Import only the submodule you need (e.g. scipy.optimize, sympy.solvers).
  3. Prefer library functions over custom loops (vectorize with NumPy; use scipy.integrate, sympy.integrate, etc.).

Using from the CLI (for agents)

When the agent must run maths from the command line, use Python inline:

  • One-liner: python -c 'import numpy as np; print(np.linalg.det([[1,2],[3,4]]))'
  • Multi-line: use a single string with semicolons, or write a short script and run python script.py. For longer code, prefer a temp file over a huge -c string.
  • SymPy (expression in, result out): python -c "import sympy as sp; x=sp.Symbol('x'); print(sp.solve(x**2-4,x))"
  • Exit code: script should print() the result and exit 0; the agent reads stdout. Use sys.exit(1) on error so the agent can detect failure.

Use the venv’s python (or python3); ensure the venv has the needed packages (see install.md).

Scripts

Runnable examples are in scripts/. With the venv activated, run them from the skill directory:

  • scripts/numpy_solve.py — solve Ax = b (option: --eig for eigenvalues)
  • scripts/scipy_minimize.py — minimize a scalar function
  • scripts/scipy_integrate.py — definite integral (Gaussian)
  • scripts/sympy_solve.py — solve equation (arg: expression, e.g. "x**2 - 4")
  • scripts/sympy_integrate.py — symbolic integral (arg: expression, e.g. "sin(x)**2")
  • scripts/mpmath_precision.py — high-precision integral (optional arg: dps)

See examples.md for exact CLI commands and one-liners.

Additional resources

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

12-agent academic paper writing pipeline. 10 modes (full/plan/outline/revision/revision-coach/abstract/lit-review/format-convert/citation-check/disclosure). 6 paper types, 5 citation formats, bilingual abstracts, LaTeX/DOCX-via-Pandoc/PDF output. Style Calibration + Writing Quality Check + Anti-Patterns with IRON RULE markers. Triggers: write paper, academic paper, guide my paper, parse reviews, AI disclosure, 寫論文, 學術論文, 引導我寫論文, 審查意見.

中文简介正在准备中。当前显示原文说明。

bouclem/skills72026年5月31日 更新

Multi-perspective academic paper review with dynamic reviewer personas. Simulates 5 independent reviewers (EIC + 3 peer reviewers + Devil's Advocate) with field-specific expertise. Supports full review, re-review (verification), quick assessment, methodology focus, Socratic guided, and calibration modes. Triggers on: review paper, peer review, manuscript review, referee report, review my paper, critique paper, simulate review, editorial review, calibrate reviewer, reviewer calibration, measure reviewer accuracy.

中文简介正在准备中。当前显示原文说明。

bouclem/skills72026年5月31日 更新

Orchestrator for the full academic research pipeline: research -> write -> integrity check -> review -> revise -> re-review -> re-revise -> final integrity check -> finalize. Coordinates deep-research, academic-paper, and academic-paper-reviewer into a seamless 10-stage workflow with mandatory integrity verification, two-stage peer review, and reproducible quality gates. Triggers on: academic pipeline, research to paper, full paper workflow, paper pipeline, end-to-end paper, research-to-publication, complete paper workflow.

中文简介正在准备中。当前显示原文说明。

bouclem/skills72026年5月31日 更新

Create, iterate, and scale paid ad creative for Google Ads, Meta, LinkedIn, TikTok, and similar platforms. Use when generating headlines, descriptions, primary text, or large sets of ad variations for testing and performance optimization.

中文简介正在准备中。当前显示原文说明。

bouclem/skills72026年5月31日 更新

This skill should be used when the user asks to "implement LLM-as-judge", "compare model outputs", "create evaluation rubrics", "mitigate evaluation bias", or mentions direct scoring, pairwise comparison, position bias, evaluation pipelines, or automated quality assessment.

中文简介正在准备中。当前显示原文说明。

bouclem/skills72026年5月31日 更新

AI agent development workflow for building autonomous agents, multi-agent systems, and agent orchestration with CrewAI, LangGraph, and custom agents.

中文简介正在准备中。当前显示原文说明。

bouclem/skills72026年5月31日 更新

查看 bouclem 的全部技能

报告此技能的问题