← 返回
未分类 中文

Nm Pensive Math Review

Verify math-heavy code for algorithm correctness, numerical stability, and standards alignment
验证数学密集型代码的算法正确性和数值稳定性
athola athola 来源
未分类 clawhub v1.9.14 5 版本 100000 Key: 无需
★ 0
Stars
📥 443
下载
💾 1
安装
5
版本
#latest

概述

> Night Market Skill — ported from claude-night-market/pensive. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

Table of Contents

Mathematical Algorithm Review

Intensive analysis ensuring numerical stability and alignment with standards.

Quick Start

/math-review

Verification: Run the command with --help flag to verify availability.

When To Use

  • Changes to mathematical models or algorithms
  • Statistical routines or probabilistic logic
  • Numerical integration or optimization
  • Scientific computing code
  • ML/AI model implementations
  • Safety-critical calculations

When NOT To Use

  • General algorithm review -

use architecture-review

  • Performance optimization - use parseltongue:python-performance
  • General algorithm review -

use architecture-review

  • Performance optimization - use parseltongue:python-performance

Required TodoWrite Items

  1. math-review:context-synced
  2. math-review:requirements-mapped
  3. math-review:derivations-verified
  4. math-review:stability-assessed
  5. math-review:evidence-logged

Core Workflow

1. Context Sync

pwd && git status -sb && git diff --stat origin/main..HEAD

Verification: Run git status to confirm working tree state.

Enumerate math-heavy files (source, tests, docs, notebooks). Classify risk: safety-critical, financial, ML fairness.

2. Requirements Mapping

Translate requirements → mathematical invariants. Document pre/post conditions, conservation laws, bounds. Load: modules/requirements-mapping.md

3. Derivation Verification

Re-derive formulas using CAS. Challenge approximations. Cite authoritative standards (NASA-STD-7009, ASME VVUQ). Load: modules/derivation-verification.md

4. Stability Assessment

Evaluate conditioning, precision, scaling, randomness. Compare complexity. Quantify uncertainty. Load: modules/numerical-stability.md

5. Proof of Work

pytest tests/math/ --benchmark
jupyter nbconvert --execute derivation.ipynb

Verification: Run pytest -v tests/math/ to verify.

Log deviations, recommend: Approve / Approve with actions / Block. Load: modules/testing-strategies.md

Progressive Loading

Default (200 tokens): Core workflow, checklists

+Requirements (+300 tokens): Invariants, pre/post conditions, coverage analysis

+Derivation (+350 tokens): CAS verification, standards, citations

+Stability (+400 tokens): Numerical properties, precision, complexity

+Testing (+350 tokens): Edge cases, benchmarks, reproducibility

Total with all modules: ~1600 tokens

Essential Checklist

Correctness: Formulas match spec | Edge cases handled | Units consistent | Domain enforced

Stability: Condition number OK | Precision sufficient | No cancellation | Overflow prevented

Verification: Derivations documented | References cited | Tests cover invariants | Benchmarks reproducible

Documentation: Assumptions stated | Limitations documented | Error bounds specified | References linked

Output Format

## Summary
[Brief findings]

## Context
Files | Risk classification | Standards

## Requirements Analysis
| Invariant | Verified | Evidence |

## Derivation Review
[Status and conflicts]

## Stability Analysis
Condition number | Precision | Risks

## Issues
[M1] [Title]: Location | Issue | Fix

## Recommendation
Approve / Approve with actions / Block

Verification: Run the command with --help flag to verify availability.

Exit Criteria

  • Context synced, requirements mapped, derivations verified, stability assessed, evidence logged with citations

版本历史

共 5 个版本

  • v1.9.14 当前
    2026-07-02 08:45
  • v1.9.13
    2026-06-30 16:49 安全 安全
  • v1.9.12
    2026-06-19 19:55 安全 安全
  • v1.0.2
    2026-05-09 16:44 安全 安全
  • v1.0.1
    2026-05-07 17:58 安全 安全

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 81 📥 182,968
it-ops-security

Nm Abstract Hooks Eval

athola
评估钩子安全性、性能和SDK合规性。用于审计
★ 0 📥 775
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 198 📥 68,190