code-analyzer

Extract computational methodology from cloned GitHub repositories and draft Methods sections for scientific reporting.

1|Updated Jan 1, 2026
One-click install
npx skills add https://github.com/sxg/science --skill code-analyzer-sxg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-analyzer
Source: https://github.com/sxg/science/tree/main/plugins/writer/skills/code-analyzer
Command: npx skills add https://github.com/sxg/science --skill code-analyzer-sxg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill analyzes a cloned GitHub repository to extract the computational methodology and draft the Methods section for scientific reporting.

Core Features & Use Cases

  • Code methodology extraction: From notebooks, scripts, and configs, identify data flow, preprocessing steps, analyses, and modeling decisions.
  • Structured documentation generation: Produce notes that feed into drafts/methods.md, aligned with project scope.
  • Use Case: Given a project folder with scope.md and a code/ repository, automatically generate a Methods outline including data sources, preprocessing, and analysis steps.

Quick Start

Run the code-analyzer on a cloned project with scope.md and code/ to produce notes and the Methods draft.

Frequently Asked Questions about code-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract computational methodology from a GitHub repository for scientific reporting?

To extract computational methodology, the project requires a cloned GitHub repository with an accessible codebase and a scope.md file. The analysis identifies data flow, preprocessing steps, and modeling decisions to draft a scientific Methods section.

How do I automatically generate a Methods section for a software engineering project?

You can generate a Methods section by running an analyzer on a project folder containing scope.md and a code/ repository. It outputs notes/code-analysis.md and drafts/methods.md after validating the extracted methodology against the project scope.

What files do I need to draft a Methods section from code analysis?

You need a scope.md document and a code/ repository context containing notebooks, scripts, and data pipelines. These files provide the project scope and accessible codebase required to extract the methodology.

Can I analyze notebooks and data pipelines to extract data preprocessing steps?

Yes, you can analyze notebooks, scripts, and configs to extract data preprocessing steps. The process identifies data sources, flow, and analysis steps from the repository's data pipelines to output structured documentation.

What is the best way to document data sources and analysis steps from a codebase?

The best way to document data sources and analysis steps is extracting the methodology from notebooks and configs, then producing structured notes. These notes feed directly into a Methods draft aligned with the project scope.