name: lg-workflow description: Performs full pre-commit hygiene (changelog, docs, deps, security, Vulture dead-code check), then stages, commits, and pushes to the current branch. Use when the user says "lg" or "LG"; do not commit or push on "go" or "implement" unless they also say LG.
LG (Looks Good) Workflow
When the user says lg or LG, run the full workflow yourself from hygiene through push to the current branch. Do not stop at commit or ask the user to push manually.
Order
- Full hygiene (so the commit includes these updates):
- Deslop — Check diff against main and remove AI-generated slop (unnecessary comments, defensive checks, any casts, inconsistent patterns). Keep behavior unchanged.
- Changelog — Update CHANGELOG (or
docs/CHANGELOG.md) with this session's changes. - Docs — Ensure docs reflect changes (README, GETTING_STARTED, or touched features).
- Deps — Verify dependency hygiene (e.g.
pip check, lockfiles). - Security — Run
pip-auditandsafety scan(requirespip install -r requirements-test.txt). - Vulture — Run
.venv/bin/vulture src scriptsfor dead-code detection. Fix or whitelist findings before commit.
- Stage —
git add(or equivalent) so all changes are staged. - Commit — Commit with a clear message (no auto-commit before user says LG).
- Push — Push the current branch (e.g.
git push origin HEADorgit push). Complete the push; do not hand off to the user.
Fallback
If the environment's git wrapper breaks (e.g. unsupported --trailer), use the real git binary (e.g. /usr/local/bin/git) so the workflow completes.
Trigger
Only run this workflow when the user has said LG. Do not commit/push on "go" or "implement" unless they also say LG.