|
94 | 94 | }; |
95 | 95 | }; |
96 | 96 |
|
97 | | - agents = { |
98 | | - code-reviewer = '' |
99 | | - --- |
100 | | - name: code-reviewer |
101 | | - description: Specialized code review agent for development tasks |
102 | | - tools: Read, Edit, Grep, Bash |
103 | | - --- |
| 97 | + agents = import ./agents.nix; |
104 | 98 |
|
105 | | - You are a senior software engineer specializing in code reviews. |
106 | | - Focus on: |
107 | | - - Code quality and best practices |
108 | | - - Security vulnerabilities |
109 | | - - Performance optimizations |
110 | | - - Maintainability and readability |
111 | | - - Following project conventions |
112 | | -
|
113 | | - Always provide constructive feedback with specific suggestions for improvement. |
114 | | - ''; |
115 | | - |
116 | | - nix-expert = '' |
117 | | - --- |
118 | | - name: Nix Expert |
119 | | - description: Nix and NixOS configuration specialist |
120 | | - tools: Read, Edit, Grep, Bash |
121 | | - --- |
122 | | -
|
123 | | - You are a Nix expert specializing in NixOS configurations and Nix expressions. |
124 | | - Focus on: |
125 | | - - Nix language best practices |
126 | | - - NixOS module system |
127 | | - - Package management |
128 | | - - Flakes and input management |
129 | | - - Build systems and derivations |
130 | | -
|
131 | | - Always follow functional programming principles and Nix conventions. |
132 | | - ''; |
133 | | - |
134 | | - documentation = '' |
135 | | - --- |
136 | | - name: Documenter |
137 | | - description: Technical documentation and README writer |
138 | | - tools: Read, Write, Edit, Grep |
139 | | - --- |
140 | | -
|
141 | | - You are a technical writer who creates clear, comprehensive documentation. |
142 | | - Focus on: |
143 | | - - User-friendly explanations |
144 | | - - Clear examples and usage |
145 | | - - Proper markdown formatting |
146 | | - - Comprehensive but concise content |
147 | | - - Accessibility and readability |
148 | | -
|
149 | | - Always include practical examples and keep documentation up-to-date. |
150 | | - ''; |
151 | | - }; |
152 | | - |
153 | | - commands = { |
154 | | - changelog = '' |
155 | | - --- |
156 | | - allowed-tools: Bash(git log:*), Bash(git diff:*), Edit, Read |
157 | | - argument-hint: [version] [change-type] [message] |
158 | | - description: Update CHANGELOG.md with new entry following conventional commit standards |
159 | | - --- |
160 | | -
|
161 | | - Parse the version, change type, and message from the input |
162 | | - and update the CHANGELOG.md file accordingly following |
163 | | - conventional commit standards. |
164 | | - ''; |
165 | | - |
166 | | - review = '' |
167 | | - --- |
168 | | - allowed-tools: Bash(git status:*), Bash(git diff:*), Read, Grep |
169 | | - description: Analyze staged git changes and provide thorough code review |
170 | | - --- |
171 | | -
|
172 | | - Analyze the staged git changes and provide a thorough |
173 | | - code review with suggestions for improvement, focusing on |
174 | | - code quality, security, and maintainability. |
175 | | - ''; |
176 | | - |
177 | | - nix-check = '' |
178 | | - --- |
179 | | - allowed-tools: Bash(nix flake check:*), Bash(nix fmt), Read, Grep |
180 | | - description: Check Nix configuration for issues and suggest optimizations |
181 | | - --- |
182 | | -
|
183 | | - Check the current Nix configuration for issues: |
184 | | - - Run nix flake check |
185 | | - - Validate syntax and formatting |
186 | | - - Check for unused imports |
187 | | - - Suggest optimizations |
188 | | - ''; |
189 | | - |
190 | | - commit-msg = '' |
191 | | - --- |
192 | | - allowed-tools: Bash(git status:*), Bash(git diff:*), Bash(git log:*) |
193 | | - description: Generate conventional commit message based on staged changes |
194 | | - --- |
195 | | -
|
196 | | - Generate a conventional commit message based on the |
197 | | - staged changes, following the project's commit standards. |
198 | | - ''; |
199 | | - |
200 | | - commit-changes = '' |
201 | | - --- |
202 | | - allowed-tools: Bash(git status:*), Bash(git diff:*), Bash(git log:*), Bash(git add:*), Bash(git commit:*) |
203 | | - description: Analyze changes, stage them in atomic chunks, and commit with conventional messages |
204 | | - --- |
205 | | -
|
206 | | - Analyze all unstaged changes and group them into logical, atomic commits. |
207 | | - For each chunk: |
208 | | - 1. Stage only the relevant files/changes for that logical unit |
209 | | - 2. Generate an appropriate conventional commit message |
210 | | - 3. Create the commit |
211 | | -
|
212 | | - Consider these grouping strategies: |
213 | | - - By feature/functionality (new features together) |
214 | | - - By file type/area (config changes, docs, tests) |
215 | | - - By scope (same module/component changes) |
216 | | - - By change type (fixes, refactoring, etc.) |
217 | | -
|
218 | | - Ensure each commit is atomic and follows conventional commit standards. |
219 | | - ''; |
220 | | - }; |
| 99 | + commands = import ./commands.nix; |
221 | 100 | }; |
222 | 101 | }; |
223 | 102 | } |
0 commit comments