Skip to main content

math-checker

Spawn an isolated math-checker subagent to independently verify that src/ code matches docs/MATHEMATICAL_FORMULAS.md. Use after any edit to fusion.py, model.py, interaction.py, or loss.py.

Quellinformationen

Repository
Cuki2910/M2G-NET
Letzte Quellaktivität
14. Mai 2026 um 17:58
Erkannte Sprache von SKILL.md
Englisch
Sterne
1
Forks
0

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
math-checker
description
Spawn an isolated math-checker subagent to independently verify that src/ code matches docs/MATHEMATICAL_FORMULAS.md. Use after any edit to fusion.py, model.py, interaction.py, or loss.py.
tags
["m2g-net","math","verification","subagent"]
version
1.0.0
user-invocable
true
allowed-tools
["Agent"]
# Math Checker — Subagent Launcher Spawns an isolated subagent that independently verifies M2G-NET math implementation. The subagent has no access to the current conversation context — it gives a clean second opinion. ## When to Invoke - After any edit to `src/fusion.py`, `src/model.py`, `src/interaction.py`, `src/loss.py` - Before committing a change that touches loss, gate, or calibration logic - When the `math-validator` skill flags a WARN and you want independent confirmation ## How to Invoke Use the Agent tool with the subagent definition: ``` Agent( description="Independent math verification for M2G-NET", subagent_type="general-purpose", prompt=[contents of .agents/subagents/math-checker/agent.yaml default_prompt] ) ``` ## What it Checks 1. `docs/MATHEMATICAL_FORMULAS.md` vs. `src/fusion.py` — sparsemax, gate shapes, temperature 2. `src/loss.py` — mask `m_k` applied correctly (zero, not average) 3. `src/model.py` — view concatenation order matches formula notation 4. `src/interaction.py` — cross-level interaction dimensions 5. `python scripts/verify_math.py` — automated shape checks ## Output Returns a table: Formula | File:Line | ✅PASS / ⚠️WARN / ❌FAIL | Detail A clean run should show all PASS. Any FAIL must be fixed before the next commit to `src/`.
Auf GitHub ansehen