Agent skill
numpy
NumPy numerical computing with arrays. Use for numerical operations.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/numpy
SKILL.md
NumPy
NumPy is the bedrock of the Python ecosystem. v2.0 (2024) brought the first major ABI change in 15 years, improving performance and API consistency.
When to Use
- Linear Algebra: Matrix multiplication, eigenvalues.
- Array Manipulation: Reshaping, broadcasting.
- Foundation: When building libraries (like PyTorch or Pandas).
Core Concepts
Broadcasting
The magic rule that allows array(3x1) + array(3) to work.
Dtypes
Precision matters. float32 vs float64.
Stride Tricks
Efficient memory views without copying data.
Best Practices (2025)
Do:
- Check v2.0 compat: Many old libraries broke with NumPy 2.0.
- Use
numpy.strings: New string kernels in v2.0 are much faster.
Don't:
- Don't write
forloops: Always vectorize operations.
References
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?