From researcher
Analyze a source-code repository that already exists and turn it into publication text. Triggers: analyze codebase, describe implementation, methods from code, write the methods section from my source code, document algorithm as pseudocode, review this codebase for reproducibility, check whether the code is reproducible, check the code matches the described method. It reads existing code and writes about it; writing new code is implementation, and judging a manuscript is peer-review. Runs in the code-agent subagent (Sonnet).
How this skill is triggered — by the user, by Claude, or both
Slash command
/researcher:code-analysiscode-agentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Analyze a project's source code to produce a publication-ready methods section, algorithm pseudocode, and reproducibility documentation.
Analyze a project's source code to produce a publication-ready methods section, algorithm pseudocode, and reproducibility documentation.
This skill executes inside the code-agent subagent via its frontmatter (context: fork, agent: code-agent), which is pinned to Sonnet. The fork receives only the task description and the repository, not the whole conversation, so name the codebase paths to analyze and the target manuscript section explicitly in the task.
manuscript/, node_modules/, .git/, venv/)scripts/codebase-analyzer.py on the target directory to extract structure metadata| Code Artifact | Paper Section | Output |
|---|---|---|
| Data loading / preprocessing | Methods: Data | Description of pipeline, transformations |
| Model / algorithm definition | Methods: Approach | Pseudocode + prose description |
| Training / optimization loop | Methods: Training | Hyperparameters, optimization details |
| Evaluation scripts | Methods: Evaluation | Metrics, test protocols |
| Config files / CLI args | Methods: Experimental Setup | Hyperparameter tables |
| Test suites / benchmarks | Results | Evaluation metrics, baseline comparisons |
requirements.txt, pyproject.toml, package.json, Cargo.toml, environment.ymlGenerate LaTeX for manuscript/methods.tex with appropriate subsections:
\section{Methods}
\subsection{Data}
% Data collection, preprocessing, splits
\subsection{Proposed Approach}
% Core algorithm/model description with pseudocode
\subsection{Experimental Setup}
% Hardware, software, hyperparameters
\subsection{Evaluation}
% Metrics and evaluation protocol
Generate algorithm blocks using algorithm2e (default) or algorithmicx (on request):
\begin{algorithm}[H]
\SetAlgoLined
\KwIn{Input description}
\KwOut{Output description}
Initialization\;
\While{convergence criterion not met}{
Step 1\;
Step 2\;
\eIf{condition}{
Action A\;
}{
Action B\;
}
}
\caption{Algorithm Name}
\label{alg:name}
\end{algorithm}
Write pseudocode at the appropriate abstraction level for a methods section: high enough to convey the approach without language-specific syntax, detailed enough to reproduce the work.
Generate a booktabs-style table in manuscript/tables/hyperparameters.tex:
\begin{table}[h]
\centering
\caption{Hyperparameters used in experiments.}
\label{tab:hyperparams}
\begin{tabular}{@{}llr@{}}
\toprule
Parameter & Description & Value \\
\midrule
Learning rate & Adam optimizer & 3e-4 \\
Batch size & Training & 64 \\
...
\bottomrule
\end{tabular}
\end{table}
After analysis, verify and report:
npx claudepluginhub sokolmarek/researcherScans Python ML experiment repos to generate hierarchical paper outlines (H1/H2/H3) with user approval checkpoints at each level, then body text with evidence annotations, citations, and bilingual output.
Prepares research code repositories for open-source release by auditing sensitive content, ensuring reproducibility via checklists, suggesting standard structures, and generating publication-ready READMEs.
Verifies every number, table, and figure in a manuscript derives from code, not manual entry. Produces a provenance map linking artifacts to generating code.