name: analyze_code description: 外部ライブラリや他言語で書かれたコードの実装を分析して知見を得る
Analyze Code
This skill helps in understanding code outside of the main project source tree.
Instructions
-
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 directory tree.
- If analyzing an installed library: Find where it is installed (usually
-
Read and Analyze:
- Use
view_fileto read the implementation. - For binary files or unknown formats, try to find a parser or read as text if applicable (e.g. MEDM
.adlfiles are text). - Map the external logic to how it interacts with or should be implemented in the current project.
- Use
-
Report:
- Explain the data structures, algorithms, or logic flow found.
- Highlight differences with the current implementation.