sjtu-sai-agents/physmaster/fourier-spectral-analysis
Claude Code and agent skill by sjtu-sai-agents/physmaster
- community
Checking that the SKILL.md file is still in the repository.
Use when decomposing signals or fields into frequency/momentum components, applying Fourier transforms, or using spectral methods to solve differential equations.
Install
npx vskill@latest install sjtu-sai-agents/physmaster/fourier-spectral-analysisSKILL.md
Fourier and Spectral Analysis
Apply this skill when the problem involves transforming between position/time and momentum/frequency domains, analyzing spectral content of signals or fields, or solving differential equations via spectral decomposition.
Goal
Perform Fourier transforms (continuous or discrete), analyze spectral properties, and apply spectral methods to solve physical problems efficiently.
Scope
- Continuous Fourier transform and its inverse (1D and multi-dimensional)
- Discrete Fourier transform (DFT) and Fast Fourier Transform (FFT)
- Power spectral density and Parseval's theorem
- Convolution theorem and filtering
- Spectral methods for solving ODEs and PDEs (Fourier, Chebyshev)
- Sampling theorem (Nyquist) and aliasing
- Windowing and spectral leakage in finite data sets
- Laplace and Z-transforms when appropriate
Inputs
signal_or_field: The function, data set, or field to be transformeddomain: Spatial/temporal domain specification (extent, sampling rate, boundary conditions)transform_type: Which transform to apply (continuous FT, DFT/FFT, Laplace, etc.)analysis_goal: What to extract (frequency content, transfer function, spectral solution of PDE, etc.)
Outputs
transformed_result: The Fourier (or other spectral) transform of the inputspectral_analysis: Power spectrum, dominant frequencies, bandwidthspectral_solution: Solution to a differential equation obtained via spectral methodsnumerical_code: Python implementation using numpy.fft or scipy.fft
Workflow
- Choose the appropriate transform.
- Continuous data on infinite domain: continuous Fourier transform.
- Discrete sampled data: DFT/FFT.
- Periodic boundary conditions: Fourier series / FFT.
- Non-periodic on finite domain: Chebyshev or sine/cosine transforms.
- Apply the transform.
- Use consistent sign and normalization conventions; state them explicitly.
- Common physics convention: f_hat(k) = integral f(x) e^{-ikx} dx.
- numpy convention: uses e^{-2 pi i k n / N} for DFT.
- Analyze in the spectral domain.
- Identify dominant frequencies/modes.
- For PDEs: algebraic equations in Fourier space replace differential operators (d/dx -> ik).
- Apply filters or solve algebraic equations as needed.
- Transform back (if needed).
- Apply the inverse transform.
- Verify by comparing with the original (Parseval's theorem as a consistency check).
- Handle numerical aspects.
- Respect the Nyquist limit: maximum resolvable frequency = sampling_rate / 2.
- Apply windowing (Hann, Hamming) to reduce spectral leakage for finite-length data.
- Zero-pad for finer frequency resolution if needed.
Quality Checks
- Parseval's theorem: total power in time/space domain must equal total power in frequency domain.
- The inverse transform of the forward transform must recover the original signal (within numerical precision).
- Nyquist criterion: the sampling rate must be at least 2x the highest frequency present.
- For spectral PDE solutions, verify against known analytic solutions or convergence under refinement.
Constraints
- Always state the Fourier convention (sign, normalization) being used; mixing conventions is a common source of errors.
- Do not interpret FFT results beyond the Nyquist frequency; those are aliases.
- Spectral methods assume smoothness; for discontinuous solutions (shocks), use appropriate filtering or switch to finite-difference/finite-volume methods.
- When applying DFT, the data is implicitly assumed periodic; non-periodic data requires windowing or alternative transforms.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingLANDAU/skills/fourier_spectral_analysis/SKILL.md
Popularity
- Repository stars
- 5
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sjtu-sai-agents/physmaster/fourier-spectral-analysis)