Analyze External Code

VerifiedSafe

Analyze and understand code implementations from external libraries or written in other languages. Identify data structures, algorithms, and logic flows for integration into gwexpy.

Sby Skills Guide Bot
DevelopmentIntermediate
206/2/2026
Claude CodeCursorWindsurf
#code-analysis#external-code#reverse-engineering#dependency-understanding

Recommended for

Our review

This skill analyzes the source code of external libraries or code written in other languages to understand their implementation and integration.

Strengths

  • Locates source files of installed dependencies automatically.
  • Reads and interprets non-Python code (C++, specialized text files).
  • Highlights differences between external implementation and current project implementation.

Limitations

  • Cannot handle binary files or unknown formats without a parser.
  • May be slow on large external codebases.
  • Does not always explain fine interface details.
When to use it

Use this skill when you need to understand how a feature is implemented in a dependency or non-Python code to adapt or port it.

When not to use it

Avoid this skill if official documentation is sufficient or the code is trivial.

Security analysis

Safe
Quality score70/100

This skill only instructs reading and analyzing existing files using 'view_file', with no execution, network access, or destructive actions. There is no risk of data exfiltration or system harm.

No concerns found

Examples

Analyze a library function
Find and analyze the implementation of the `compute_metrics` function in the `scikit-learn` library installed in the virtual environment. Explain its data structures and algorithm.
Understand a C++ file for porting
Read the C++ file at `src/engine/processor.cpp` and explain how the `process` method works. Map its logic to Python code in our project.
Inspect a MEDM file
View the MEDM `.adl` file at `panels/screen.adl` and analyze its structure to determine how it defines graphical elements.

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