refactor: restructured and condensed agent prompts and system instructions

- Refactored and condensed numerous system prompts, agent instructions, and tool documentation files across packages.
- Streamlined workflow rules, formatting constraints, and execution guidelines for improved clarity and brevity.
- Updated discovery rules, recommendation criteria, and syntax standards in prompt templates.
This commit is contained in:
can1357
2026-08-12 01:38:55 +02:00
parent bc4404203c
commit c101452bb5
173 changed files with 1856 additions and 2148 deletions
@@ -6,7 +6,7 @@ astCondition:
- "for $I := 0; $I < $N; $I++ { $$$BODY }"
---
Go 1.22 lets `for` range over an integer. A plain counting loop from `0` to `n` with step `1` reads better as `for i := range n` (or `for range n` when the index is unused).
Go 1.22: `for` ranges integers. For `i := 0; i < n; i++`, prefer `for i := range n`; if index unused, `for range n`.
## Avoid
@@ -38,8 +38,8 @@ for range n {
}
```
## When it does not apply
## Exceptions
- Non-zero start, step other than `++`, or a descending loop (`for i := n - 1; i >= 0; i--`) — keep the explicit form.
- The body reassigns the loop variable or depends on `i` surviving past the loop.
- Requires Go 1.22+. If the module's `go` directive is older, keep the classic loop.
- Keep explicit: non-zero start; step other than `++`; descending (`for i := n - 1; i >= 0; i--`).
- Keep explicit if body reassigns loop variable or depends on `i` surviving past loop.
- Requires Go 1.22+. If module `go` directive older, keep classic loop.