# Refactoring 07 Documentation Usage

> Use when documenting Python research code usage, setup, and experiment reproduction.

- Skill: `majiayu000/refactoring-07-documentation-usage` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/refactoring-07-documentation-usage`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/refactoring-07-documentation-usage/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/refactoring-07-documentation-usage

---


# Refactoring 07: Documentation and Usage

## Goal

Make the project understandable and runnable by a new contributor.

## Sequence

- Order: 07
- Previous: refactoring-06-static-analysis-style
- Next: refactoring-08-experiment-tracking

## Workflow

- Update `README.md` with purpose, setup, data expectations, and run commands.
  - Success: README includes accurate setup and run instructions.
- Add docstrings for public modules and functions that are reused.
  - Success: Public APIs have concise docstrings.
- Provide a minimal example command or notebook that reproduces results.
  - Success: A minimal example reproduces expected output.
- Document output artifacts and how to interpret them.
  - Success: Outputs and metrics are explained in docs.
- Keep docs synced with the current entrypoints and config fields.
  - Success: Docs match current entrypoints and config options.

## Guardrails

- Avoid duplicating API docs already generated elsewhere.
- Keep examples small and fast to run.
- Prefer concrete commands over narrative text.

