.agents/skills/agent-md-refactor/references/examples-and-anti-patterns.md
Use these examples to guide consistent refactors.
Good root structure:
# Project Instructions
One-line project description.
## Commands
- `pnpm build`
- `pnpm test`
- `pnpm typecheck`
## Detailed Guidance
- [Architecture](.agent-instructions/architecture.md)
- [Code Style](.agent-instructions/code-style.md)
- [Testing](.agent-instructions/testing.md)
Avoid:
# AGENTS.md
## Code Style
... 150 lines ...
## Testing
... 120 lines ...
## TypeScript
... 180 lines ...
Good topic file:
# Testing
## Scope
When to use each test type.
## Rules
- Use integration tests for persistence adapters.
- Keep unit tests deterministic.
## Examples
- Good: verifies behavior with stable fixtures.
- Avoid: brittle tests tied to timestamps.
Flag these for removal during refactor: