Skip to content

Commit 2f45cf8

Browse files
Add agent rules
1 parent 4129c8b commit 2f45cf8

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,49 @@
1+
# Agent Rules
2+
3+
1. **Public Repository Warning**: This is a PUBLIC repository. Never include internal/sensitive information in the project.
4+
5+
2. **File Operations**:
6+
7+
- Always read files before editing them
8+
- Always prefer editing existing files instead of creating new ones
9+
- Always use specialized tools (read_files, edit, write) instead of bash commands where possible
10+
- Never create documentation files unless directed
11+
12+
3. **Communication Style**:
13+
14+
- Always be concise and technical
15+
- Always output text directly to user, NOT via bash echo or comments
16+
- Always request more information when necessary
17+
- Never use emoji
18+
19+
4. **Code Quality**:
20+
21+
- Always run relevant tests for the area of code being modified
22+
- Always improve the test suite when fixing issues instead of just reading the code or using CLI
23+
- Always format files after editing using the relevant tool
24+
- Never use placeholders in code, always use real values or ask for them
25+
26+
5. **Git Safety**:
27+
28+
- Never push or commit unless directed
29+
- Never update git config
30+
- Never force push to main/master
31+
- Never use interactive git commands (`-i` flag)
32+
- Never skip hooks (--no-verify, --no-gpg-sign)
33+
- Never run destructive git commands unless directed
34+
- Never create PRs unless directed
35+
36+
6. **Task Management**:
37+
38+
- Always use the todo/task tool
39+
- Always mark todos/tasks as complete immediately after finishing them
40+
- Never work on multiple todos/tasks simultaneously
41+
42+
7. **When stuck**:
43+
- Check existing documentation
44+
- Ask the developer for clarification
45+
- Review recent commits for context
46+
147
# Project Overview
248

349
Compiled is a **compile-time CSS-in-JS library** for React that transforms styled components into atomic CSS at build time via Babel AST transformations. Unlike runtime CSS-in-JS libraries, all styles are extracted and processed during compilation.

0 commit comments

Comments
 (0)