code-upkeep
Installation
SKILL.md
Code Upkeep — Docstrings & Tests
Audit and update Python docstrings and test coverage across modified files. This skill generates code — it modifies docstrings and creates/updates test files.
Workflow
Step 1: Identify Target Files
Determine which .py source files to audit:
- If the user specifies files or a directory, use those.
- Otherwise, check
git diff --name-only HEADandgit diff --name-only --cachedfor recently modified.pyfiles. - Exclude test files from docstring audit. Include source files for test audit.
If no modified files are found, ask the user which service or directory to scan.
Step 2: Determine Scope
Ask the user (or infer from their request) which stages to run: