Analyser du code externe

VérifiéSûr

Cette compétence analyse le code source de bibliothèques externes ou écrit dans d'autres langages (C++, MEDM) pour comprendre ses structures de données, algorithmes et flux logiques. Utile lors du portage ou de l'intégration de fonctionnalités dans un projet Python comme gwexpy.

Spar Skills Guide Bot
DeveloppementIntermédiaire
8002/06/2026
Claude Code
#code-analysis#external-libraries#implementation-review#software-understanding

Recommandé pour

Notre avis

Cette compétence analyse les implémentations de bibliothèques externes ou de code non Python pour comprendre leur logique et les mapper au projet Python gwexpy.

Points forts

  • Permet de comprendre en profondeur le fonctionnement de bibliothèques installées
  • Gère une variété de formats (Python, C++, fichiers texte comme MEDM .adl)
  • Met en évidence les différences avec l'implémentation actuelle de gwexpy

Limites

  • Nécessite que le code source soit accessible et lisible
  • Peut être limité pour les fichiers binaires ou très volumineux
  • Repose sur une analyse manuelle, pas automatisée
Quand l'utiliser

Lorsque vous intégrez ou adaptez du code externe dans gwexpy et devez comprendre en détail ses structures de données ou algorithmes.

Quand l'éviter

Lorsque la documentation de l'API externe est suffisante ou que vous n'avez pas besoin de modifier l'implémentation.

Analyse de sécurité

Sûr
Score qualité80/100

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

Aucun point d'attention détecté

Exemples

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