Analyser du code externe

VérifiéSûr

Analyser et comprendre l'implémentation de code provenant de bibliothèques externes ou écrit dans d'autres langages. Identifier les structures de données, algorithmes et flux logiques pour une intégration dans gwexpy.

Spar Skills Guide Bot
DeveloppementIntermédiaire
3002/06/2026
Claude CodeCursorWindsurf
#code-analysis#external-code#reverse-engineering#dependency-understanding

Recommandé pour

Notre avis

Cette compétence permet d'analyser le code source de bibliothèques externes ou de codes écrits dans d'autres langages pour comprendre leur fonctionnement et leur intégration.

Points forts

  • Localise automatiquement les fichiers source des dépendances installées.
  • Lit et interprète du code non-Python (C++, fichiers texte spécialisés).
  • Identifie les différences entre l'implémentation externe et l'implémentation actuelle dans le projet.

Limites

  • Ne gère pas les fichiers binaires ou formats inconnus sans parseur.
  • Peut être lent sur de grandes bases de code externes.
  • N'explique pas toujours les détails fins d'interface.
Quand l'utiliser

Utilisez cette compétence lorsque vous devez comprendre comment une fonctionnalité est implémentée dans une dépendance ou un code non-Python pour l'adapter ou le porter.

Quand l'éviter

Évitez cette compétence si la documentation officielle est suffisante ou si le code est trivial.

Analyse de sécurité

Sûr
Score qualité70/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.

Aucun point d'attention détecté

Exemples

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.
Skills similaires