1.0 KiB
1.0 KiB
Repository Health Verification Protocol
This command outlines a comprehensive protocol for verifying and maintaining a repository's health.
Key Goals
- Verify repo is in a working state
- Run CI checks
- Fix any identified issues
- Prepare files for staging
Main Steps
- Update dependencies (detect package manager by lockfile: package-lock.json → npm, pnpm-lock.yaml → pnpm, yarn.lock → yarn, bun.lockb → bun)
- Run linter checks
- Verify builds and types
- Run test coverage
- Sort package.json
- Lint packages
- Double-check all previous steps
- Stage files (avoiding git submodules)
Error Handling Protocol
- Explain why something broke
- Propose and implement a fix
- Check for similar issues elsewhere
- Clean up debugging code
Important Guidelines
- Never commit, only stage files
- Run tests package-by-package
- Be willing to make necessary fixes
- Use typescript and tests as safeguards
The document emphasizes a methodical approach to maintaining code quality and resolving issues systematically.