Analyze External Code

VerifiedSafe

Analyzes source code from external libraries or non-Python languages (C++, MEDM) to understand data structures, algorithms, and logic flow. Helps when porting or integrating features into a Python project like gwexpy.

Sby Skills Guide Bot
DevelopmentIntermediate
706/2/2026
Claude Code
#code-analysis#external-libraries#implementation-review#software-understanding

Recommended for

Our review

This skill analyzes implementations of external libraries or non-Python code to understand their logic and map them to the Python project gwexpy.

Strengths

  • Provides deep understanding of how installed libraries work
  • Handles various file formats (Python, C++, text files like MEDM .adl)
  • Highlights differences with the current gwexpy implementation

Limitations

  • Requires the source code to be accessible and readable
  • May be limited for binary files or very large codebases
  • Relies on manual analysis, not automated
When to use it

When integrating or adapting external code into gwexpy and you need to understand its data structures or algorithms in detail.

When not to use it

When the external API documentation is sufficient or you do not need to modify the implementation.

Security analysis

Safe
Quality score80/100

The skill only instructs reading and analyzing code files; no execution of shell commands or destructive operations.

No concerns found

Examples

Analyze numpy array reshape
Analyze the implementation of numpy's array reshape function from the installed library. Find the source code in the site-packages and explain the logic flow and key data structures.
Understand C++ extension data structure
Read the C++ source file of a Python extension (e.g., a .so file's corresponding .cpp) to understand the data structures used for serialization. Map them to equivalent Python classes in gwexpy.

name: analyze_code description: 外部ライブラリや他言語で書かれたコードの実装を分析する

Analyze External Code

This skill helps in understanding code outside of the main Python source tree.

Instructions

  1. Locate Source:

    • If analyzing an installed library: Find where it is installed (usually .venv/lib/pythonX.X/site-packages/).
    • If analyzing non-Python code (e.g. C++, MEDM files): Find the files in the file tree.
  2. Read and Analyze:

    • Use view_file to read the implementation.
    • For binary files or unknown formats, try to find a parser or read as text if applicable (e.g. MEDM .adl files are text).
    • Map the external logic to how it interacts with or should be implemented in gwexpy.
  3. Report:

    • Explain the data structures, algorithms, or logic flow found.
    • Highlight differences with the current gwexpy implementation.
Related skills