Janitor Skill
Goals
- •Maintain a lean, high-performance us-west1 GCP footprint.
- •Ensure the repository remains readable for other agents in the swarm.
Instructions
- •Introspection: Read
ARCHITECTURE.mdand thepackage.jsonto understand the intended stack. - •Analysis: Traverse the
src/directory. Use static analysis to find functions with no internal references. - •GCP Guardrails: Verify Cloud Run configurations in
server/aren't bundling unnecessary folders (e.g.,tests/ordocs/) into the production container. - •Propose: Create a "Hygiene Report" artifact with a checklist of suggested deletions.
Execution
Use the custom script scripts/janitor.ts to perform the heavy lifting of static analysis.
bash
npx tsx scripts/janitor.ts