Skip to content
Back to skills

Check Physics

ASecurity

実装内容が数学的・物理学的に妥当か検証する

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
testingaws

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill check-physics --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Check Physics?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Check Physics
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-check-physics/badge)](https://www.skillsdirectory.com/skills/david-li0406-check-physics)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: check_physics
description: 実装内容が数学的・物理学的に妥当か検証する
---

# Verify Physics

This skill performs a review of the code specifically focusing on physics and math correctness.

## Instructions

1. **Dimensional Analysis**:
    * Check if unit handling (e.g., `astropy.units`, `quantities`) is used correctly.
    * Ensure operations are physically valid (e.g., not adding Length to Time).
    * **Unit-Safe Assignment**: Avoid direct slice assignment `series[:] = raw_array` if `series` has units. Use `series.value[:] = raw_array` to update data while preserving unit metadata.

2. **Mathematical Inspection**:
    * Verify equations against known reference papers or standard textbooks.
    * Check for numerical stability issues (e.g., division by zero, floating point precision loss).
    * Check edge cases (e.g., $f=0$, infinite limits).

3. **Sanity Checks**:
    * **Conservation Laws**: Create a script to verify energy conservation (Parseval's theorem) for FFT/PSD transformations. Ratio of frequency-domain energy to time-domain energy should be ~1.0.
    * **Theoretical Benchmarks**: Use known signals (Sine wave, Gaussian noise) to verify peak frequency, amplitude, and spectral flatness.
    * **Multi-domain Verification**: For multi-dimensional fields, verify transformations along *all* applicable axes (e.g., spatial FFT as well as temporal FFT).
    * Verify that reasonable inputs produce physically reasonable outputs.

4. **Report**:
    * Provide a summary of the analysis, pointing out any suspect logic or confirming validity.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…