Repo hygiene

From aiyufan3/TrumanWrld · View interactive version

Repo hygiene is an AI agent skill from the GitHub repository aiyufan3/TrumanWrld. Maintain clear module boundaries and prevent the repository from turning into a poorly structured "big ball of mud" over continued autonomous iteration.

How to use this skill

Skill file

Skill: Repository Hygiene & Architecture Integrity

Purpose

Maintain clear module boundaries and prevent the repository from turning into a poorly structured "big ball of mud" over continued autonomous iteration.

When to Use

Step-by-Step Execution

  1. Check Zod Validations: Make sure domain inputs/outputs define strict interfaces in schemas/. Do not pass raw JSON objects arbitrarily deep.
  2. Controller Glue: Prevent putting thick business logic into routes or CLI endpoints (src/app/). src/app/ should merely orchestrate the injection of dependencies.
  3. Dead Code Cleanup: Remove temporary mock arrays when moving to a more formalized file-based or mock-DB structure.
  4. Docs Consistency: Keep README.md and docs/runbook.md updated as CLI commands and dependencies install.

Restrictions

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.