math-skill 1.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en-US.md +313 -0
- package/README.md +313 -278
- package/agents/math-critic.en.md +235 -0
- package/agents/math-critic.md +237 -203
- package/commands/abstraction.md +11 -34
- package/commands/algorithmic-thinking.md +11 -34
- package/commands/ask.md +18 -21
- package/commands/axiomatization.md +11 -34
- package/commands/causal-inference.md +11 -34
- package/commands/discrete-combinatorial.md +11 -34
- package/commands/game-theory.md +11 -34
- package/commands/induction-analogy.md +11 -34
- package/commands/information-theory.md +11 -34
- package/commands/logic-deduction.md +11 -34
- package/commands/modeling.md +11 -37
- package/commands/optimization.md +11 -33
- package/commands/probability-statistics.md +11 -36
- package/commands/symmetry-invariance.md +11 -34
- package/commands/topological-thinking.md +11 -33
- package/commands/transformation.md +11 -33
- package/knowledge-base/overview.en.md +228 -0
- package/knowledge-base/overview.md +230 -230
- package/package.json +73 -59
- package/references/agentic-workflow.en.md +53 -0
- package/references/agentic-workflow.md +55 -0
- package/references/books/abstract-algebra.md +124 -0
- package/references/books/algebraic-geometry-rising-sea.md +171 -0
- package/references/books/differential-geometry.md +140 -0
- package/references/books/matrix-analysis.md +146 -0
- package/references/books/micro-lie-theory.md +116 -0
- package/references/books/optimization-ml.md +164 -0
- package/references/books/smooth-manifolds.md +105 -0
- package/references/gpu-friendly-math.en.md +65 -0
- package/references/gpu-friendly-math.md +67 -0
- package/references/inspiration.en.md +113 -0
- package/{docs → references}/inspiration.md +2 -0
- package/skills/abstraction/SKILL.en.md +117 -0
- package/skills/abstraction/SKILL.md +121 -264
- package/skills/abstraction/original-texts.en.md +163 -0
- package/skills/algorithmic-thinking/SKILL.en.md +132 -0
- package/skills/algorithmic-thinking/SKILL.md +138 -371
- package/skills/algorithmic-thinking/original-texts.en.md +253 -0
- package/skills/axiomatization/SKILL.en.md +144 -0
- package/skills/axiomatization/SKILL.md +151 -213
- package/skills/axiomatization/original-texts.en.md +154 -0
- package/skills/causal-inference/SKILL.en.md +147 -0
- package/skills/causal-inference/SKILL.md +151 -374
- package/skills/causal-inference/original-texts.en.md +136 -0
- package/skills/discrete-combinatorial/SKILL.en.md +124 -0
- package/skills/discrete-combinatorial/SKILL.md +131 -286
- package/skills/discrete-combinatorial/original-texts.en.md +184 -0
- package/skills/game-theory/SKILL.en.md +117 -0
- package/skills/game-theory/SKILL.md +123 -318
- package/skills/game-theory/original-texts.en.md +131 -0
- package/skills/induction-analogy/SKILL.en.md +145 -0
- package/skills/induction-analogy/SKILL.md +152 -310
- package/skills/induction-analogy/original-texts.en.md +140 -0
- package/skills/information-theory/SKILL.en.md +134 -0
- package/skills/information-theory/SKILL.md +140 -242
- package/skills/information-theory/original-texts.en.md +127 -0
- package/skills/logic-deduction/SKILL.en.md +130 -0
- package/skills/logic-deduction/SKILL.md +135 -280
- package/skills/logic-deduction/original-texts.en.md +160 -0
- package/skills/math-research-activator/SKILL.en.md +132 -0
- package/skills/math-research-activator/SKILL.md +136 -0
- package/skills/math-research-activator/original-texts.en.md +105 -0
- package/skills/{meta-selector → math-research-activator}/original-texts.md +104 -104
- package/skills/modeling/SKILL.en.md +135 -0
- package/skills/modeling/SKILL.md +139 -318
- package/skills/modeling/original-texts.en.md +162 -0
- package/skills/optimization/SKILL.en.md +129 -0
- package/skills/optimization/SKILL.md +135 -292
- package/skills/optimization/original-texts.en.md +167 -0
- package/skills/probability-statistics/SKILL.en.md +146 -0
- package/skills/probability-statistics/SKILL.md +151 -312
- package/skills/probability-statistics/original-texts.en.md +191 -0
- package/skills/symmetry-invariance/SKILL.en.md +135 -0
- package/skills/symmetry-invariance/SKILL.md +139 -358
- package/skills/symmetry-invariance/original-texts.en.md +206 -0
- package/skills/topological-thinking/SKILL.en.md +124 -0
- package/skills/topological-thinking/SKILL.md +128 -273
- package/skills/topological-thinking/original-texts.en.md +134 -0
- package/skills/transformation/SKILL.en.md +120 -0
- package/skills/transformation/SKILL.md +124 -264
- package/skills/transformation/original-texts.en.md +204 -0
- package/docs/CLAUDE.md +0 -187
- package/skills/meta-selector/SKILL.md +0 -188
package/README.en-US.md
ADDED
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
<p align="right">
|
|
2
|
+
<a href="README.md">中文</a> | <a href="README.en-US.md">English</a>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
# ⚔️ Math Skill — Math Research Activator
|
|
6
|
+
|
|
7
|
+
> **Activating modern mathematics (algebraic geometry / differential geometry / Lie theory / category theory / matrix analysis / optimization) into algorithm × GPU co-design — beautiful in math, friendly to GPUs.**
|
|
8
|
+
|
|
9
|
+
[](LICENSE)
|
|
10
|
+
[](https://www.npmjs.com/package/math-skill)
|
|
11
|
+
[](https://www.npmjs.com/package/math-skill)
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
> **If this project inspires you, please consider leaving a Star.** Every Star is a resonance with the beauty of mathematics — and the fuel that keeps this project alive. Welcome, every fellow traveler who loves math and sails its vast ocean.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Inspiration
|
|
20
|
+
|
|
21
|
+
The story of Sophus Lie forging a "dragon-slaying blade" tells us this: the Lie group–Lie algebra machinery invented to solve differential equations ended up becoming the lingua franca for describing symmetry and robot state estimation — the value of a mathematical tool far outlives its original intent, which is exactly the prototype of "cross-domain activation." See [`references/inspiration.md`](references/inspiration.md).
|
|
22
|
+
|
|
23
|
+
> The most fascinating thing about mathematics: a tool invented for one problem reveals unforeseen power in an entirely different domain. This skill is a practice of that very spirit of "cross-domain activation."
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Philosophy
|
|
28
|
+
|
|
29
|
+
The mathematical foundation of this AI revolution is **20th-century mathematics stepping onto the commercial computing stage for the first time** — category theory, algebraic topology, algebraic geometry. Most mainstream algorithms today still rest on the 1800–1900s calculus / linear algebra. Activating modern mathematics into algorithm design is the most important thing in the algorithm exploration phase.
|
|
30
|
+
|
|
31
|
+
This skill packages sixteen core mathematical ideas into callable thinking frameworks, and **steps in automatically** when the workspace contains ML / model code, CUDA / kernels, or algorithm research notes: diagnose the problem → map modern mathematical structures → route thinking weapons → GPU feasibility screening. Every deliverable must pass a **double acceptance gate**:
|
|
32
|
+
|
|
33
|
+
1. **Beautiful in math** — self-consistent, differentiable (or relaxable to differentiable), with correctness guarantees.
|
|
34
|
+
2. **Friendly to GPU** — passes the eight-dimensional gate in `references/gpu-friendly-math.md`.
|
|
35
|
+
|
|
36
|
+
> "The model already has enough math inside; what's missing is a single cross-domain activation. Humans pick direction; the agent searches, enumerates, and verifies."
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## What v2.0.1 Does
|
|
41
|
+
|
|
42
|
+
- **Auto-trigger entry**: `math-research-activator` only intervenes when both environment signals (workspace contains architecture core code / CUDA kernel / research notes) AND task signals (designing new architectures / operators, analyzing theoretical properties, transferring mathematical structures) are hit. Pure engineering tasks (debugging, code review, refactoring, hyperparameter tuning) do NOT trigger.
|
|
43
|
+
- **Modern math activation layer**: `references/books/*.md` × 7 (algebraic geometry, differential geometry, Lie theory, abstract algebra, matrix analysis, optimization, manifolds) serve as low-token activation indices, loaded by problem type — they do not replace the full books.
|
|
44
|
+
- **GPU 8-D cross-cut**: all 15 thinking weapons are explicitly mapped to the formal eight dimensions of `references/gpu-friendly-math.md`: tensorization / GEMM-mappability / complexity / memory & KV-Cache / low-precision stability / parallelism & communication / sparse structure / operator fusion.
|
|
45
|
+
- **Single research path**: oriented toward research, algorithms, operators, and training/inference infra; the life-advice mode has been dropped.
|
|
46
|
+
- **Progressive disclosure**: resident layer (activator + description) → methodology layer (on demand) → book layer (on demand), keeping irrelevant context out of the prompt.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Sixteen Thinking Weapons
|
|
51
|
+
|
|
52
|
+
| # | Thinking Weapon | Core Idea | Algorithm / GPU Application |
|
|
53
|
+
|---|----------------|-----------|----------------------------|
|
|
54
|
+
| 0 | 🧭 [Math Research Activator](skills/math-research-activator/SKILL.md) | Auto-trigger entry: diagnose → map → route → GPU filter, with a double acceptance gate | Intervenes only when both environment AND task signals hit; pure engineering tasks are excluded |
|
|
55
|
+
| 1 | 📐 [Axiomatization](skills/axiomatization/SKILL.md) | Build rigorous logic from the fewest assumptions | Review algorithm assumptions; pin down axioms and invariants for structures |
|
|
56
|
+
| 2 | 🧩 [Abstraction](skills/abstraction/SKILL.md) | Grasp the essence, ignore non-essential detail | Extract transferable structures; discover cross-domain commonalities |
|
|
57
|
+
| 3 | 🧠 [Logic Deduction](skills/logic-deduction/SKILL.md) | Rigorously derive new truths from existing truths | Formally verify algorithm correctness; loop invariants |
|
|
58
|
+
| 4 | 🌉 [Modeling](skills/modeling/SKILL.md) | Real problem → math problem → explain reality | Build computable models; parameterized selection |
|
|
59
|
+
| 5 | ⚖️ [Optimization](skills/optimization/SKILL.md) | Find the optimum under constraints | Optimizer selection; second-order GPU feasibility; duality |
|
|
60
|
+
| 6 | 🎲 [Probability & Statistics](skills/probability-statistics/SKILL.md) | Quantify uncertainty; extract patterns from data | Randomized algorithms, sampling, quantization, training dynamics |
|
|
61
|
+
| 7 | 🔄 [Transformation](skills/transformation/SKILL.md) | Complex problem → equivalent simpler problem | Conv → GEMM, spectral transforms, KV frequency-domain compression |
|
|
62
|
+
| 8 | ⚛️ [Symmetry & Invariance](skills/symmetry-invariance/SKILL.md) | Properties preserved under transformations | Equivariant networks (SO(3)/SE(3)), tropical semiring routing |
|
|
63
|
+
| 9 | 📈 [Induction & Analogy](skills/induction-analogy/SKILL.md) | From special to general, known to unknown | Cross-domain structure transfer; inductive bias design |
|
|
64
|
+
| 10 | 🖥️ [Algorithmic Thinking](skills/algorithmic-thinking/SKILL.md) | Reduce to finite steps; evaluate cost and feasibility | Sub-quadratic complexity, parallelism, operator fusion |
|
|
65
|
+
| 11 | 📡 [Information Theory](skills/information-theory/SKILL.md) | Information is the reduction of uncertainty | Compression, pruning, quantization, KV compression, routing |
|
|
66
|
+
| 12 | 🎯 [Game Theory](skills/game-theory/SKILL.md) | Optimal strategy depends on others' choices | Multi-agent, adversarial training, routing games |
|
|
67
|
+
| 13 | 🔗 [Causal Inference](skills/causal-inference/SKILL.md) | Correlation ≠ causation, but causation can be formalized | Interpretability, OOD generalization, DGP modeling |
|
|
68
|
+
| 14 | 🌀 [Topological Thinking](skills/topological-thinking/SKILL.md) | Properties preserved under continuous deformation | Čech cohomology regularization, sheaf attention, TDA |
|
|
69
|
+
| 15 | 🧮 [Discrete & Combinatorial Thinking](skills/discrete-combinatorial/SKILL.md) | Counting, enumeration, laws of finite objects | Sparse structure, routing, finite-field / semiring algorithms |
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Quick Start
|
|
74
|
+
|
|
75
|
+
### Installation
|
|
76
|
+
|
|
77
|
+
Just paste the following into Claude Code or any other terminal-style AI assistant:
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
Please help me install math-skill: https://github.com/the-thinker0/math-skill, and show me how to use it
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Manual-install alternative (downloads the source; does not register the skill automatically):
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
git clone https://github.com/the-thinker0/math-skill.git
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Claude Code / Codex-style platforms: copy or symlink `skills/` and `commands/` according to the platform's skills / commands directory conventions, keeping `references/` at the same repo depth. Don't copy a single `SKILL.md` in isolation — `../../references/*` won't resolve.
|
|
90
|
+
|
|
91
|
+
Cursor / other Markdown-rule platforms: treat `commands/*.md` as the manual entry points and `skills/*/SKILL.md` as the rule / skill body, and keep `references/`. If the platform has no auto-trigger mechanism, fire manually with `/ask` or the matching command.
|
|
92
|
+
|
|
93
|
+
You can also inspect the npm package first:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
npm pack math-skill --dry-run
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Usage
|
|
100
|
+
|
|
101
|
+
**Auto-trigger**: fires only when both conditions hold — (1) the workspace contains architecture core code (attention / transformer / MoE, `*.cu` / kernel, Triton) or research notes, AND (2) the user's task involves **designing / improving** new architectures / operators, **analyzing** theoretical properties, or **transferring** mathematical structures. Pure engineering tasks (debugging, argument-passing checks, refactoring, hyperparameter tuning, loss implementation tweaks) do not trigger.
|
|
102
|
+
|
|
103
|
+
### Does it auto-trigger in normal chat?
|
|
104
|
+
|
|
105
|
+
Yes, but it depends on whether the install platform supports **skill metadata auto-routing**. In skills-aware environments like Claude Code / Codex, you don't need `/ask` on every turn after installing. As of v2.0.1 the trigger has been tightened: the skill loads only when **both environment and task signals hit** — routine code review, debugging, and refactoring will not fire it.
|
|
106
|
+
|
|
107
|
+
For example, you can simply ask:
|
|
108
|
+
|
|
109
|
+
```
|
|
110
|
+
I want to design a long-context attention that uses less KV-Cache — any modern math angle?
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Or:
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
Can the memory access and fusion pattern of this Triton kernel be improved at the algorithmic-structure level?
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Such questions trigger `math-research-activator`, which loads `references/gpu-friendly-math.md` and `references/books/*.md` on demand. `/ask` and the slash commands below are the **explicit / fallback entry**: use them only when the platform has no auto-trigger, or when you want to force a specific thinking weapon.
|
|
120
|
+
|
|
121
|
+
**Manual fallback** (when in doubt, start with `/ask`):
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
/ask <your question> # activator: diagnose + map + route + GPU filter
|
|
125
|
+
/axiomatization <your question> # axiomatization
|
|
126
|
+
/abstraction <your question> # abstraction
|
|
127
|
+
/logic-deduction <your question> # logic deduction
|
|
128
|
+
/modeling <your question> # modeling
|
|
129
|
+
/optimization <your question> # optimization
|
|
130
|
+
/probability-statistics <your question> # probability & statistics
|
|
131
|
+
/transformation <your question> # transformation
|
|
132
|
+
/symmetry-invariance <your question> # symmetry & invariance
|
|
133
|
+
/induction-analogy <your question> # induction & analogy
|
|
134
|
+
/algorithmic-thinking <your question> # algorithmic thinking
|
|
135
|
+
/information-theory <your question> # information theory
|
|
136
|
+
/game-theory <your question> # game theory
|
|
137
|
+
/causal-inference <your question> # causal inference
|
|
138
|
+
/topological-thinking <your question> # topological thinking
|
|
139
|
+
/discrete-combinatorial <your question> # discrete & combinatorial thinking
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Language Switching
|
|
143
|
+
|
|
144
|
+
The skill **auto-detects the user's language**: Chinese messages get Chinese output, English messages get English output — no manual switching needed.
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Usage Examples
|
|
149
|
+
|
|
150
|
+
### Auto-trigger (research / algorithm / GPU)
|
|
151
|
+
|
|
152
|
+
The activator steps in only when the workspace contains a kernel or attention core implementation **and the task involves design / analysis / transfer**: problem diagnosis, transferable modern-math structure candidates, weapon routing, 8-D GPU screening. Pure engineering tasks (debugging, code review, hyperparameter tuning) do not trigger. See the **Tropical Sheaf Attention** example in `skills/math-research-activator/SKILL.md`: it is a candidate exploration template, not a pre-baked benchmark result — it has to be validated on complexity, memory, low-precision stability, and kernel fusibility before adoption.
|
|
153
|
+
|
|
154
|
+
### Manual trigger (research scenarios)
|
|
155
|
+
|
|
156
|
+
**Review an algorithm's theoretical assumptions**:
|
|
157
|
+
```
|
|
158
|
+
/axiomatization This attention variant claims permutation invariance, yet its positional encoding smuggles in an implicit total order — is it self-consistent?
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
**Check a proof / invariant**:
|
|
162
|
+
```
|
|
163
|
+
/logic-deduction Does the step from line 5 to line 6 in this convergence proof skip a premise? Does the loop invariant hold?
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
**Optimizer / second-order feasibility**:
|
|
167
|
+
```
|
|
168
|
+
/optimization I want to replace Adam with K-FAC but memory is tight — is this second-order method feasible on GPU? Is there a retrofittable low-rank approximation?
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
**Change representation via transformation**:
|
|
172
|
+
```
|
|
173
|
+
/transformation Can this custom convolution operator be rewritten as a GEMM that fully saturates Tensor Cores? Is the inverse transform numerically stable?
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
**Equivariance / symmetry**:
|
|
177
|
+
```
|
|
178
|
+
/symmetry-invariance Design an SO(3)-equivariant feature layer — can the group action be tensorized into a GEMM?
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
## Progressive Disclosure
|
|
184
|
+
|
|
185
|
+
| Layer | Content | Load timing |
|
|
186
|
+
|-------|---------|-------------|
|
|
187
|
+
| Resident trigger | `skills/math-research-activator/SKILL.md` + each weapon's short `description` | Loaded on auto / manual trigger |
|
|
188
|
+
| Methodology | `references/agentic-workflow.md` (Human-in-the-Agent-Loop), `references/gpu-friendly-math.md` (8-D gate) | Referenced by activator on demand |
|
|
189
|
+
| Book activation | `references/books/*.md` × 7 (modern-math structure distillations) | Loaded by problem type on demand |
|
|
190
|
+
|
|
191
|
+
**Deep dive / look-up**: the distillations are self-sufficient. When you need the full original text and have `math_book/<PDF>` locally, let the agent run `pdftotext` + grep + Read on the matching page (no pre-embedded anchors required). PDFs are never bundled into npm / git (copyright + 110MB).
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## Directory Structure
|
|
196
|
+
|
|
197
|
+
```
|
|
198
|
+
math-skill/
|
|
199
|
+
├── package.json # v2.0.1, files[] includes references/
|
|
200
|
+
├── .gitignore / .npmignore # excludes math_book/ PDFs
|
|
201
|
+
├── commands/ # manual slash-command entries (15 weapons + ask)
|
|
202
|
+
├── skills/ # 16 thinking weapons (15 weapons + math-research-activator)
|
|
203
|
+
│ ├── math-research-activator/ # auto-trigger entry
|
|
204
|
+
│ └── <weapon>/{SKILL.md, original-texts.md}
|
|
205
|
+
├── references/ # v2 addition: methodology + book activation layer
|
|
206
|
+
│ ├── agentic-workflow.md # collaboration style
|
|
207
|
+
│ ├── gpu-friendly-math.md # 8-D GPU acceptance gate
|
|
208
|
+
│ ├── inspiration.md # inspiration
|
|
209
|
+
│ └── books/ # 7 modern-math distillations
|
|
210
|
+
├── agents/math-critic.md # critic agent (18 dimensions, incl. GPU + modern-math activation)
|
|
211
|
+
├── knowledge-base/overview.md
|
|
212
|
+
├── tests/{validate.sh, validate.ps1}
|
|
213
|
+
├── math_book/ # local PDFs (ignored by git/npm, not published)
|
|
214
|
+
└── README.md / LICENSE
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
## What Each Skill Contains
|
|
220
|
+
|
|
221
|
+
Each `skills/*/SKILL.md` (v2 single research / algorithm path):
|
|
222
|
+
|
|
223
|
+
1. **Core principle** + blockquote sub-section **Mathematical Formalization** (definitions / theorems / formulas)
|
|
224
|
+
2. **GPU friendliness (cross-cut check)** — how this weapon's structure maps to GPU, passing the 8-D gate
|
|
225
|
+
3. **When NOT to use** / **When to use** (research trigger, including algorithm / operator-design usage)
|
|
226
|
+
4. **Method flow** — single research path (all math retained)
|
|
227
|
+
5. **Common mistakes** — including a one-liner on GPU computability
|
|
228
|
+
6. **Operating procedure** — single output format, ending with a `[GPU Feasibility]` item
|
|
229
|
+
7. **Relationship to other skills** — includes a "modern math activation" row, pointing to `references/books/*`
|
|
230
|
+
|
|
231
|
+
Each weapon also ships an `original-texts.md` (math sources and classical references). Outputs can be sent to `agents/math-critic.md` (18 dimensions, including GPU feasibility + modern-math activation) for a second pass.
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Mathematical Knowledge System
|
|
236
|
+
|
|
237
|
+
`knowledge-base/overview.md` provides a math knowledge map: three pillars (algebra / geometry / analysis), main branches, knowledge layers (foundation → algebra → synthesis → frontier), and the mapping from thinking weapons to math branches.
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
## Recommended Books
|
|
242
|
+
|
|
243
|
+
The following 7 modern-math textbooks form the skill's "deep ammunition." Each book has a distillation file (`references/books/*.md`) that ships with the npm package and is self-sufficient. For full-fidelity lookups, place the corresponding PDF in the project root's `math_book/` folder — the agent will automatically use `pdftotext` + grep to locate the relevant pages.
|
|
244
|
+
|
|
245
|
+
| # | Title | Author(s) | Publisher / Edition | Year | ISBN | Distillation | Local PDF |
|
|
246
|
+
|---|-------|-----------|-------------------|------|------|-------------|-----------|
|
|
247
|
+
| 1 | *Contemporary Abstract Algebra* | Joseph A. Gallian | Brooks/Cole, Cengage, 8th ed. | 2013 | 978-1-133-59971-5 | `abstract-algebra.md` | `Contemporary Abstract Algebra.pdf` |
|
|
248
|
+
| 2 | *The Rising Sea: Foundations of Algebraic Geometry* | Ravi Vakil | Princeton University Press | 2025 | 978-0-691-26866-8 | `algebraic-geometry-rising-sea.md` | `The Rising Sea Foundations of Algebraic Geometry.pdf` |
|
|
249
|
+
| 3 | *Manifolds and Differential Geometry* | Jeffrey M. Lee | AMS, Graduate Studies in Math Vol. 107 | 2009 | 978-0-8218-4815-9 | `differential-geometry.md` | `Manifolds and Differential Geometry.pdf` |
|
|
250
|
+
| 4 | *Matrix Analysis* | Roger A. Horn, Charles R. Johnson | Cambridge University Press, 2nd ed. | 2013 | 978-0-521-83940-2 | `matrix-analysis.md` | `Matrix Analysis.pdf` |
|
|
251
|
+
| 5 | *A micro Lie theory for state estimation in robotics* | Joan Solà, Jérémie Deray, Dinesh Atchuthan | arXiv:1812.01537v9 | 2021 | — | `micro-lie-theory.md` | `A micro Lie theory.pdf` |
|
|
252
|
+
| 6 | *An Introduction to Optimization, With Applications to Machine Learning* | Edwin K. P. Chong, Wu-Sheng Lu, Stanisław H. Żak | John Wiley & Sons, 5th ed. | 2024 | 978-1-119-87763-9 | `optimization-ml.md` | `An Introduction to Optimization With Applications to Machine Learning.pdf` |
|
|
253
|
+
| 7 | *Introduction to Smooth Manifolds* | John M. Lee | Springer, GTM 218, 2nd ed. | 2013 | 978-1-4419-9981-8 | `smooth-manifolds.md` | `Introduction to Smooth Manifolds.pdf` |
|
|
254
|
+
|
|
255
|
+
**How to use**:
|
|
256
|
+
- Distillation files (`references/books/*.md`) ship with the npm package — no extra setup needed.
|
|
257
|
+
- For full-fidelity lookups: place the corresponding PDF in the `math_book/` folder, and the agent will auto-search.
|
|
258
|
+
- PDFs are never distributed via npm / git (copyright reasons) — you must obtain them yourself.
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
## Changelog
|
|
263
|
+
|
|
264
|
+
### v2.1.0 — Full Bilingual Support
|
|
265
|
+
- **Complete bilingual coverage**: every skill file now has a dedicated English version — 16 `SKILL.en.md` (thinking weapons), 16 `original-texts.en.md` (math sources), 4 reference `.en.md` files (methodology + GPU 8-D gate), `agents/math-critic.en.md` (18-dimension critic), `knowledge-base/overview.en.md` (knowledge system).
|
|
266
|
+
- **Automatic language routing**: detects the user's message language and routes to the matching version. **Chinese users load only Chinese files; English users load only English files** — no double token cost.
|
|
267
|
+
- **Same commands for all**: Chinese and English users use the exact same commands (`/ask`, `/optimization`, etc.) — no separate entry points to remember.
|
|
268
|
+
- **Routing optimization**: command files check language first and route directly to the target version, avoiding unnecessary file loads.
|
|
269
|
+
- **Recommended books**: added a "Recommended Books" section with full publication details (author, publisher, edition, ISBN) and PDF placement instructions for all 7 modern-math textbooks.
|
|
270
|
+
- **Distillation file enhancements**: "Deep-dive" sections in all 7 `references/books/*.md` now include complete bibliographic info and PDF setup instructions.
|
|
271
|
+
- **Language switching upgrade**: replaced the manual `in English` suffix with automatic user-language detection — zero configuration.
|
|
272
|
+
|
|
273
|
+
### v2.0.1
|
|
274
|
+
- **Tightened auto-trigger conditions**: `math-research-activator` changed from "any environment OR conversation signal hits → trigger" to "environment AND task signals must both hit" (Gate 1 + Gate 2 as dual necessary conditions).
|
|
275
|
+
- **Added an exclusion gate (Gate 0)**: pure engineering tasks — code review, debugging, argument-passing checks, refactoring, hyperparameter tuning, loss implementation tweaks — are now on an explicit exclusion list with the highest priority.
|
|
276
|
+
- **Narrowed environment signals**: mere `model.py`, `trainer.py`, `config.json` and other routine ML engineering files no longer count as environment signals; architecture core code (attention / transformer / MoE, CUDA / Triton kernel) or research notes is required.
|
|
277
|
+
- **Updated `description` field**: explicitly lists "does not trigger on" scenarios, reducing skill metadata mis-matches on AI platforms.
|
|
278
|
+
|
|
279
|
+
### v2.0.0
|
|
280
|
+
- Initial v2 release: 16 thinking weapons, modern-math activation layer, 8-D GPU cross-cut, progressive disclosure.
|
|
281
|
+
|
|
282
|
+
### v1.0.0
|
|
283
|
+
- Initial release: fifteen thinking weapons (axiomatization / abstraction / logic deduction / modeling / optimization / probability & statistics / transformation / symmetry & invariance / induction & analogy / algorithmic thinking / information theory / game theory / causal inference / topology / discrete & combinatorial) + dual research-and-life paths.
|
|
284
|
+
- Fifteen `skills/*/SKILL.md` files (core principle, when-not-to-use, method flow, common mistakes, operating procedure) + matching `original-texts.md` (math sources and classical references).
|
|
285
|
+
- Fifteen manual slash-command entries (`commands/*.md`).
|
|
286
|
+
- `knowledge-base/overview.md` (three pillars / main branches / knowledge layers / weapon mapping).
|
|
287
|
+
- `agents/math-critic.md` critic agent.
|
|
288
|
+
- Validation scripts `tests/{validate.sh, validate.ps1}`.
|
|
289
|
+
- Published to npm (`math-skill`), MIT license.
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
## License
|
|
294
|
+
|
|
295
|
+
MIT License. See `LICENSE`.
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
## Contributing
|
|
300
|
+
|
|
301
|
+
Issues and Pull Requests are welcome — let's learn and build together!
|
|
302
|
+
|
|
303
|
+
---
|
|
304
|
+
|
|
305
|
+
## Star History
|
|
306
|
+
|
|
307
|
+
<a href="https://www.star-history.com/?repos=the-thinker0%2Fmath-skill&type=date&legend=top-left">
|
|
308
|
+
<picture>
|
|
309
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=the-thinker0/math-skill&type=date&theme=dark&legend=top-left" />
|
|
310
|
+
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=the-thinker0/math-skill&type=date&legend=top-left" />
|
|
311
|
+
<img alt="Star History Chart" src="https://api.star-history.com/chart?repos=the-thinker0/math-skill&type=date&legend=top-left" />
|
|
312
|
+
</picture>
|
|
313
|
+
</a>
|