科研 Skill
工程工具与数据库清点
get-available-resources
Enumerates installed Python packages, databases, and simulation tools available in the current environment. Use at the start of a session to avoid recommending unavailable tools.
SKILL.md
Resource Availability Helper
Purpose
Help Claude quickly determine what resources, tools, packages, and databases are available in the current environment. This skill eliminates guesswork and enables Claude to:
- Use only installed packages in code suggestions
- Recommend appropriate tools for engineering tasks
- Identify missing dependencies before starting work
- Verify database connectivity for data-driven workflows
- Discover available simulation tools (OpenFOAM, ANSYS, etc.)
This diagnostic tool should be run at the beginning of engineering sessions to establish environmental context.
What It Checks
Python Packages
- Core Scientific Computing: numpy, scipy, pandas, matplotlib
- Engineering & Physics: fluids, thermo, CoolProp, pint, sympy
- Optimization: scipy.optimize, pyomo, gekko, cvxpy
- CFD & Simulation: OpenFOAM bindings, PyFluent, pyMesh
- Data Analysis: sklearn, statsmodels, seaborn
- Network Analysis: networkx
- Database Connectors: psycopg2, pymongo, redis, sqlalchemy
- All Installed Packages: Complete pip list with versions
Database Connections
- PostgreSQL: Connection test and version check
- MySQL/MariaDB: Availability and connectivity
- SQLite: Built-in database availability
- MongoDB: Server status and connection
- Redis: In-memory database availability
- Database connection strings: Environment variable detection
Software Installations
- OpenFOAM: Version detection and installation path
- ANSYS: Workbench, Fluent, CFX availability
- COMSOL Multiphysics: Installation check
- MATLAB: Version and toolbox detection
- SolidWorks: CAD software availability
- ParaView: Visualization tool detection
- GiD: Pre/post-processor availability
- Gmsh: Mesh generator detection
Environment Variables
- PATH: Executable search paths
- LD_LIBRARY_PATH: Dynamic library paths
- PYTHONPATH: Python module search paths
- Database URLs: Connection string variables
- License Servers: ANSYS_LICENSE_FILE, LM_LICENSE_FILE
- Tool-Specific: OPENFOAM_DIR, MATLAB_ROOT, etc.
System Information
- Operating System: Linux distribution, version
- Python Version: Interpreter version and location
- Architecture: 64-bit vs 32-bit
- Available Disk Space: Critical for large simulations
- Memory: Total and available RAM
- CPU Info: Cores and model for parallel processing
File Paths
- Project Directories: Common engineering workspace locations
- Data Directories: Standard data storage paths
- Temporary Storage: Scratch space for simulations
- License Files: Software license locations
Resource Reporting Format
The tool generates a structured report with:
Summary Section
=== ENVIRONMENT RESOURCE REPORT ===
Timestamp: 2025-11-07 21:30:45
Python: 3.11.14 (/usr/bin/python3)
OS: Ubuntu 22.04 LTS (Linux 5.15.0)
Architecture: x86_64
Package Availability
[✓] numpy 1.24.3
[✓] scipy 1.10.1
[✓] pandas 2.0.2
[✗] CoolProp (not installed)
[✓] matplotlib 3.7.1
Database Status
PostgreSQL: ✓ Connected (version 14.8)
Redis: ✓ Running (version 7.0.11)
MySQL: ✗ Not installed
MongoDB: ✗ Not running
Software Tools
OpenFOAM: ✓ v10 (/opt/openfoam10)
ANSYS: ✗ Not found
MATLAB: ✗ Not found
ParaView: ✓ v5.11.0 (/usr/bin/paraview)
Recommendations
MISSING PACKAGES FOR FULL ENGINEERING WORKFLOW:
- pip install CoolProp (thermodynamic properties)
- pip install fluids (fluid mechanics calculations)
- pip install thermo (chemical engineering thermodynamics)
OPTIMIZATION:
- Consider installing pyomo for optimization problems
Usage
Quick Check
python3 resource-lister.py
Detailed Report
python3 resource-lister.py --detailed
Check Specific Categories
# Check only Python packages
python3 resource-lister.py --packages-only
# Check only databases
python3 resource-lister.py --databases-only
# Check only software tools
python3 resource-lister.py --software-only
# Check specific package
python3 resource-lister.py --check numpy scipy pandas
JSON Output
# Machine-readable format for automation
python3 resource-lister.py --json > resources.json
Export Report
# Save detailed report to file
python3 resource-lister.py --detailed --output report.txt
Example Output
=== ENGINEERING ENVIRONMENT RESOURCE REPORT ===
Generated: 2025-11-07 21:30:45
System: Linux Ubuntu 22.04 LTS (x86_64)
Python: 3.11.14 (/usr/bin/python3)
Working Directory: /home/user/projects
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PYTHON PACKAGES (38 installed)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Core Scientific Computing:
[✓] numpy 1.24.3
[✓] scipy 1.10.1
[✓] matplotlib 3.7.1
[✗] pandas Not installed
Engineering Libraries:
[✗] fluids Not installed
[✗] thermo Not installed
[✗] CoolProp Not installed
[✗] pint Not installed
[✓] sympy 1.12
Optimization:
[✓] scipy.optimize (included in scipy)
[✗] pyomo Not installed
[✗] gekko Not installed
Network Analysis:
[✗] networkx Not installed
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DATABASES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[✓] PostgreSQL 14.8 /usr/bin/psql
Connection: SUCCESS (test database)
[✓] Redis 7.0.11 /usr/bin/redis-server
Status: Running on port 6379
[✗] MySQL Not installed
[✗] MongoDB Not installed
[✓] SQLite3 3.37.2 (built-in)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SOFTWARE TOOLS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Simulation & CFD:
[✗] OpenFOAM Not found
[✗] ANSYS Fluent Not found
[✗] COMSOL Not found
CAD & Visualization:
[✓] ParaView 5.11.0 /usr/bin/paraview
[✗] SolidWorks Not found (Windows only)
[✓] Gmsh 4.10.5 /usr/bin/gmsh
Computing:
[✗] MATLAB Not found
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SYSTEM RESOURCES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CPU: 8 cores (Intel Xeon E5-2680 v4)
RAM: 32.0 GB total, 28.4 GB available
Disk: 450 GB available in /home
Tmp Space: 50 GB available in /tmp
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
RECOMMENDATIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Essential Engineering Packages:
pip install pandas fluids thermo pint
Recommended for Fluid Mechanics:
pip install CoolProp networkx
For Optimization Workflows:
pip install pyomo
For Enhanced Data Analysis:
pip install seaborn scikit-learn
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Integration with Claude Workflows
Typical Workflow
- Start Session: Run resource-lister.py to establish baseline
- Review Report: Claude reviews available packages and tools
- Plan Approach: Select methods based on available resources
- Code Generation: Use only verified available packages
- Error Handling: If missing dependencies detected, suggest installation
Use Cases
Case 1: Pump Design Task
User: "Design a centrifugal pump for water transport"
Claude runs resource-lister.py and sees:
- numpy, scipy, matplotlib: Available
- fluids, thermo: Not available
- CoolProp: Not available
Claude Response:
"I can design the pump using numpy and scipy for calculations.
However, I recommend installing 'fluids' package for more
accurate hydraulic calculations:
pip install fluids
For now, I'll use scipy for fluid properties with manual
property definitions."
Case 2: CFD Simulation
User: "Set up an OpenFOAM simulation for pipe flow"
Claude runs resource-lister.py and sees:
- OpenFOAM: Not installed
- ParaView: Available
Claude Response:
"OpenFOAM is not currently installed. I can:
1. Provide installation instructions for OpenFOAM
2. Create case files that will work once installed
3. Use ParaView for post-processing once simulation runs
Would you like me to proceed with case setup or help
with OpenFOAM installation?"
Case 3: Database-Backed Analysis
User: "Analyze pump performance data from database"
Claude runs resource-lister.py and sees:
- PostgreSQL: Connected and running
- pandas: Not installed
- numpy, scipy: Available
Claude Response:
"I can query your PostgreSQL database and perform analysis.
For better data handling, I recommend:
pip install pandas
For now, I'll use numpy arrays to process the query results."
Files Included
- SKILL.md: This documentation
- resource-lister.py: Main diagnostic script
Notes
- The tool requires no external dependencies (uses only Python standard library)
- Database connection tests are non-destructive and read-only
- Software detection is path-based and environment variable-based
- Reports can be cached for session duration to avoid repeated checks
- Safe to run repeatedly without side effects
Best Practices
- Run at Session Start: Establish baseline before beginning work
- Update After Installations: Re-run after installing new packages
- Share Reports: Include in issue reports for debugging
- Cache Results: Store for reference throughout session
- Version Tracking: Monitor version changes between sessions
Extensibility
Add custom checks by modifying resource-lister.py:
- Domain-specific packages (aerospace, chemical, structural)
- Custom software installations
- Cloud service availability
- License server status
- Network-mounted resources
示例提示词
帮我列一下当前环境里装了哪些工程计算库和物性数据库。
所属插件
安装该插件会一并获得同领域的 36 个 Skill / MCP。
同插件的其他科研 Skill
- ANSYS Fluent CFD仿真自动化Automates ANSYS Fluent CFD setup, meshing, and batch runs via Python scripting, journal files, and the PyAnsys ecosystem. Use when a user wants to script or automate an ANSYS Fluent simulation.
- Cantera燃烧仿真Runs Cantera combustion simulations: flame temperature, ignition delay, laminar flame speed, PSR. Use for mechanism-based combustion analysis tasks.
- 离心泵气蚀风险评估Calculates NPSHa and NPSHr and assesses cavitation risk for centrifugal pumps, with prevention and detection guidance. Use when sizing suction piping or diagnosing pump cavitation.
- 气蚀评估物性数据库Looks up vapor pressure, NPSHr data, and correlations for cavitation risk assessment in pumps. Use when cavitation-analysis needs reference property or NPSHr data.
- 离心泵设计计算Designs centrifugal pumps from first principles using Euler equations, velocity triangles, and specific speed. Use for impeller sizing or new centrifugal pump design.
- COMSOL多物理场耦合仿真Sets up coupled fluid-structure interaction simulations in COMSOL Multiphysics, focused on pump vibration analysis. Use when a user wants to script or automate a COMSOL FSI model.
- CoolProp流体物性查询Queries thermodynamic and transport properties for 100+ pure and pseudo-pure fluids via the CoolProp library. Use when a calculation needs fluid density, viscosity, or enthalpy data.
- 工程计算环境初始化Sets up a Python session with engineering constants, Pint units, and plotting defaults. Use at the start of a calculation session.
- 流体计算数值错误校验Handles common numerical errors in fluid calculations, such as division by zero and out-of-range physical values, with validation checks. Use when fluid code fails or returns unphysical results.
- 流体力学分析工作流Guides a systematic fluid dynamics analysis from problem setup and domain definition through model selection to validation. Use when planning a CFD or analytical fluid mechanics study end to end.
- 经验公式流体物性速算Computes quick fluid property estimates (density, viscosity, vapor pressure) from empirical correlations without needing a database. Use for fast order-of-magnitude property checks.
- 管道流动与泵选型计算Computes pipe flow, pump sizing, friction factor, and compressible flow results with the fluids Python package. Use for quick, code-based fluid mechanics calculations.
- 管路元件损失系数查询Looks up loss coefficients (K-values) and equivalent lengths for pipes, valves, and fittings in pump and piping systems. Use when computing system head loss.
- 流体与材料物性查询Looks up temperature-dependent fluid viscosities, densities, and other material properties for pump and heat-transfer calculations. Use when a calculation needs property data at a given temperature.
- 泵性能曲线绘制Creates professional engineering plots such as pump performance curves, CFD velocity contours, and publication-quality figures with matplotlib. Use when a result needs a plotted figure.
- NASA大气与航空流体数据Accesses atmospheric property profiles and standard-atmosphere models from NASA Earthdata for high-altitude and aerospace fluid analysis. Use when a task needs altitude-dependent atmospheric data.
- 管网图论建模Models hydraulic piping networks and multi-pump systems as graphs using NetworkX flow algorithms. Use for analyzing flow distribution across a branched or looped piping network.
- REFPROP高精度物性查询Queries high-accuracy thermodynamic and transport properties from the commercial NIST REFPROP database. Use when a calculation needs reference-quality fluid property data and REFPROP is licensed.
- 数值数组计算Performs numerical array operations with NumPy: velocity field processing, pump curve interpolation, linear systems, and matrix methods. Use for general numerical computation in engineering code.
- OpenFOAM仿真与后处理Runs and post-processes OpenFOAM CFD simulations with PyFoam, pyvista, and vtk for mesh setup, solver control, and visualization. Use for scripted OpenFOAM workflows outside ParaView.
- 泵性能曲线与相似定律Generates and interprets pump H-Q/efficiency/power/NPSH curves, applies affinity laws, and predicts off-design performance. Use for pump curve analysis.
- 工程单位换算与量纲分析Handles engineering units with automatic conversion and dimensional-consistency checking using the Pint library. Use whenever a calculation mixes units or needs unit safety.
- 容积式泵设计分析Designs and analyzes gear, piston, and screw positive-displacement pumps, including volumetric efficiency and slip. Use when the pump is positive-displacement rather than centrifugal.
- 泵效率优化Maximizes pump efficiency through hydraulic design changes and operational strategies such as trimming, VFD control, and system matching. Use when a pump is running inefficiently.
常见问题
工程工具与数据库清点能做什么?
Enumerates installed Python packages, databases, and simulation tools available in the current environment. Use at the start of a session to avoid recommending unavailable tools。
如何安装工程工具与数据库清点?
在科搭 Codar 左侧点击「插件」,在「组件」页签搜索「工程工具与数据库清点」并安装;在 Claude Code 或 Codex 中可以发送本页的安装提示词,或下载 Skill 包后解压到 ~/.claude/skills 或 ~/.codex/skills。
工程工具与数据库清点需要哪些权限?
该科研 Skill没有声明额外权限;执行具体操作时仍由 Agent 按自身规则请求确认。
工程工具与数据库清点经过官方审核吗?
是。SpeedSkills 收录的每个版本都会记录内容摘要与权限声明,当前版本已通过安全审核。