Skip to content

Commit ff25da0

Browse files
committed
fix: strengthen /init command to aggressively remove obvious information
- Add explicit instructions to DELETE obvious information first - Emphasize that files should get SHORTER, not longer - Use stronger language: CRITICALLY EVALUATE, AGGRESSIVELY DELETE - Make clear that standard practices must be removed even if previously included - Add success metric: files should be more concise and valuable - Goal is to fix the tendency to just append instead of clean up
1 parent 9993247 commit ff25da0

File tree

1 file changed

+33
-24
lines changed

1 file changed

+33
-24
lines changed

src/services/command/built-in-commands.ts

Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ Please analyze this codebase and create an AGENTS.md file containing:
4949
5050
If ANY of these exist:
5151
- Read them thoroughly
52-
- Analyze what's already documented
53-
- Plan improvements: what to add, update, or clean up
54-
- Focus on iterating and enhancing, not replacing
52+
- CRITICALLY EVALUATE: Remove ALL obvious information
53+
- DELETE entries that are standard practice or framework defaults
54+
- REMOVE anything that could be guessed without reading files
55+
- Only KEEP truly non-obvious, project-specific discoveries
56+
- Then add any new non-obvious patterns you discover
5557
5658
Also check for other AI assistant rules:
5759
- .cursorrules, CLAUDE.md, .roorules
@@ -83,11 +85,13 @@ Please analyze this codebase and create an AGENTS.md file containing:
8385
- Directory requirements
8486
8587
8. Compile/Update AGENTS.md files
86-
- If files exist: Deep dive into improving them
87-
* Clean up outdated information
88-
* Add newly discovered non-obvious patterns
89-
* Reorganize for better clarity
90-
* Ensure consistency across all files
88+
- If files exist: AGGRESSIVELY clean them up
89+
* DELETE all obvious information (even if it was there before)
90+
* REMOVE standard practices, framework defaults, common patterns
91+
* STRIP OUT anything derivable from file structure or names
92+
* ONLY KEEP truly non-obvious discoveries
93+
* Then add newly discovered non-obvious patterns
94+
* Result should be SHORTER and MORE FOCUSED than before
9195
- If creating new: Follow the non-obvious-only principle
9296
- Create mode-specific files in .roo/rules-*/ directories
9397
@@ -106,11 +110,12 @@ Please analyze this codebase and create an AGENTS.md file containing:
106110
- ./.roo/rules-ask/AGENTS.md
107111
- ./.roo/rules-architect/AGENTS.md
108112
109-
If found, perform deep analysis:
110-
- What information is already captured?
111-
- What's outdated or incorrect?
112-
- What non-obvious patterns are missing?
113-
- How can the organization be improved?
113+
If found, perform CRITICAL analysis:
114+
- What information is OBVIOUS and must be DELETED?
115+
- What violates the non-obvious-only principle?
116+
- What would an experienced developer already know?
117+
- DELETE first, then consider what to add
118+
- The file should get SHORTER, not longer
114119
115120
Also find other AI assistant rules and documentation
116121
@@ -130,11 +135,13 @@ Please analyze this codebase and create an AGENTS.md file containing:
130135
Create or deeply improve AGENTS.md with ONLY non-obvious information:
131136
132137
If AGENTS.md exists:
133-
- Perform thorough review and enhancement
134-
- Clean up any outdated or obvious information
135-
- Add newly discovered non-obvious patterns
136-
- Improve organization and clarity
137-
- Ensure it follows the non-obvious-only principle
138+
- FIRST: Delete ALL obvious information
139+
- REMOVE: Standard commands, framework defaults, common patterns
140+
- STRIP: Anything that doesn't require file reading to know
141+
- EVALUATE: Each line - would an experienced dev be surprised?
142+
- If not surprised, DELETE IT
143+
- THEN: Add only truly non-obvious new discoveries
144+
- Goal: File should be SHORTER and MORE VALUABLE
138145
139146
Content should include:
140147
- Header: "# AGENTS.md\\n\\nThis file provides guidance to agents when working with code in this repository."
@@ -165,11 +172,12 @@ Please analyze this codebase and create an AGENTS.md file containing:
165172
- ./.roo/rules-architect/AGENTS.md
166173
167174
If files exist:
168-
- Perform deep analysis and improvement
169-
- Clean up redundant or obvious information
170-
- Add new non-obvious discoveries
171-
- Ensure consistency with main AGENTS.md
172-
- Reorganize for better clarity
175+
- AGGRESSIVELY DELETE obvious information
176+
- Remove EVERYTHING that's standard practice
177+
- Strip out framework defaults and common patterns
178+
- Each remaining line must be surprising/non-obvious
179+
- Only then add new non-obvious discoveries
180+
- Files should become SHORTER, not longer
173181
174182
Example structure:
175183
\`\`\`
@@ -259,7 +267,8 @@ Please analyze this codebase and create an AGENTS.md file containing:
259267
- Be extremely concise - if it's obvious, don't include it
260268
- Every line should prevent a potential mistake or confusion
261269
- Test: Would an experienced developer be surprised by this information?
262-
- If updating existing files: Ensure deep improvement, not just appending
270+
- If updating existing files: DELETE obvious info first, files should get SHORTER
271+
- Measure success: Is the file more concise and valuable than before?
263272
</quality_criteria>
264273
265274
Remember: The goal is to create documentation that enables AI assistants to be immediately productive in this codebase, focusing on project-specific knowledge that isn't obvious from the code structure alone.`,

0 commit comments

Comments
 (0)