Skip to content

Commit d05f7ab

Browse files
committed
chore: Add development rule covering TDD, self-check and line wrap
1 parent 6d636bf commit d05f7ab

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.claude/rules/development.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Development Rules
2+
3+
When writing code, follow these rules.
4+
5+
## Test policy
6+
7+
- **If the project has a test suite, implement using TDD.** Write the test first, then proceed in red → green → refactor order.
8+
- **If the project has no test suite, manually verify after implementation.** Confirm there are no defects in the expected cases before marking the work complete.
9+
10+
## Self-check after completion
11+
12+
- **After the code is complete, re-check that it does not violate the comment discipline in [comment.md](comment.md).** If you also edited AI-facing prompts, re-check against [prompt.md](prompt.md) as well.
13+
- **If the project has a test suite, run the tests after the code is complete.** Do not mark the work complete until you have confirmed there are no errors or failures.
14+
15+
## Formatting
16+
17+
- **Wrap code at a reasonable line length.** Target a maximum of around 100 characters per line.

0 commit comments

Comments
 (0)