@qoder-ai/qodercli 1.1.90 → 1.1.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,345 @@
1
+ ---
2
+ name: agent-creator
3
+ description:
4
+ Guide for creating custom agents. Use when users want to create a new agent
5
+ that runs in an isolated context with custom system prompts and
6
+ specific tool access.
7
+ allowed-tools: Edit, Write
8
+ ---
9
+
10
+ # Creating Custom Agents for Qoder CLI
11
+
12
+ This skill guides you through creating custom agents. Agents are
13
+ specialized AI assistants that run in isolated contexts with custom system
14
+ prompts, specific tool access, and independent permissions.
15
+
16
+ ## When to Use Agents
17
+
18
+ Use agents when you need:
19
+
20
+ - **Context isolation** for long research or exploration tasks
21
+ - **Parallel execution** of multiple independent workstreams
22
+ - **Specialized expertise** with custom prompts for specific domains
23
+ - **Reusable configurations** across projects
24
+
25
+ **When NOT to use agents:**
26
+
27
+ - Simple, single-purpose tasks (use skills instead)
28
+ - Tasks requiring frequent back-and-forth with the user
29
+ - Quick, targeted changes
30
+
31
+ ## Agent Locations
32
+
33
+ <!-- QODER_CONFIG_DIR and QODER_USER_CONFIG_DIR below are prompt template
34
+ placeholders resolved by argumentSubstitution.ts, not shell environment variables. -->
35
+
36
+ | Location | Scope | Priority |
37
+ | ----------------------------------------- | ----------------- | -------- |
38
+ | `<project>/${QODER_CONFIG_DIR}/agents/` | Current project | Higher |
39
+ | `~/${QODER_USER_CONFIG_DIR}/agents/` | All your projects | Lower |
40
+
41
+ **Project agents** (`${QODER_CONFIG_DIR}/agents/`): Ideal for codebase-specific
42
+ agents. Check into version control to share with your team.
43
+
44
+ **User agents** (`~/${QODER_USER_CONFIG_DIR}/agents/`): Personal agents available across
45
+ all your projects.
46
+
47
+ ## Agent File Format
48
+
49
+ Each agent is a Markdown file with YAML frontmatter:
50
+
51
+ ```markdown
52
+ ---
53
+ name: agent-name
54
+ description: When to use this agent. Be specific!
55
+ ---
56
+
57
+ You are a [role]. When invoked:
58
+
59
+ 1. [First step]
60
+ 2. [Second step]
61
+ 3. [Output format]
62
+ ```
63
+
64
+ ### Required Fields
65
+
66
+ | Field | Description |
67
+ | ------------- | -------------------------------------------------------------------------- |
68
+ | `name` | Unique identifier for the agent |
69
+ | `description` | When to delegate to this agent (be specific). Including trigger scenarios. |
70
+
71
+ ## Writing Effective Descriptions
72
+
73
+ The description is **critical**. Include "use proactively" to encourage
74
+ automatic delegation. Qoder CLI uses it to decide when to delegate.
75
+
76
+ ```yaml
77
+ # Bad - Too vague
78
+ description: Helps with code
79
+
80
+ # Good - Specific and actionable
81
+ description: Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing or modifying code.
82
+ ```
83
+
84
+ ### Optional Fields
85
+
86
+ | Field | Description |
87
+ | ---------------- | ----------------------------------------------------------------------------------- |
88
+ | `tools` | Tools the agent can use (string or array) |
89
+ | `disallowedTools`| Tools to explicitly deny (string or array) |
90
+ | `model` | Model tier: `inherit` (default), `lite`, `efficient`, `auto`, `performance`, `ultimate` |
91
+ | `color` | Display color: `red`, `blue`, `green`, `yellow`, `purple`, `orange`, `pink`, `cyan` |
92
+ | `maxTurns` | Maximum conversation turns (positive integer) |
93
+ | `timeoutMins` | Timeout in minutes (positive integer) |
94
+ | `effort` | Thinking effort: `low`, `medium`, `high`, `max` |
95
+ | `skills` | Skills the agent can use (string or array) |
96
+
97
+ #### Tools
98
+
99
+ Specify which tools the agent has access to. This limits the agent's
100
+ capabilities for security and focus.
101
+
102
+ ```yaml
103
+ # Read-only access
104
+ tools: Read, Grep, Glob
105
+
106
+ # Full development access
107
+ tools: Bash, Read, Write, Edit, Glob, Grep
108
+
109
+ # Web research capabilities
110
+ tools: Read, WebSearch, WebFetch
111
+ ```
112
+
113
+ **Available Tools:**
114
+
115
+ - `Bash` - Execute shell commands
116
+ - `Read` - Read file contents
117
+ - `Write` - Create new files
118
+ - `Edit` - Modify existing files
119
+ - `Glob` - Find files by pattern
120
+ - `Grep` - Search file contents
121
+ - `WebSearch` - Search the web
122
+ - `WebFetch` - Fetch web page content
123
+
124
+ If not specified, the agent inherits default tool access.
125
+
126
+ #### Choosing a Model
127
+
128
+ Model tiers progress linearly from lightest to most capable. Higher tiers
129
+ are more capable but consume more credits.
130
+
131
+ - `inherit` — Use the caller's model. Default and safe choice.
132
+ - `lite` — Simple Q&A, lightweight tasks.
133
+ - `efficient` — Daily coding, code completion.
134
+ - `auto` — Complex tasks, multi-step reasoning.
135
+ - `performance` — Hard engineering problems, large codebases.
136
+ - `ultimate` — Maximum capability, when quality matters most.
137
+
138
+ Prefer `inherit` unless the agent has a clear reason to differ from the
139
+ caller (e.g. a focused security auditor that benefits from a stronger tier,
140
+ or a high-volume helper that should stay on a lighter tier).
141
+
142
+ ## Agent Creation Workflow
143
+
144
+ ### Step 1: Decide the Scope
145
+
146
+ If not sure where to create the agent, ask the user with two options:
147
+
148
+ - **Project-level** (`${QODER_CONFIG_DIR}/agents/`): For team-shared, codebase-specific agents
149
+ - **User-level** (`~/${QODER_USER_CONFIG_DIR}/agents/`): For personal agents across all projects
150
+
151
+ ### Step 2: Gather Requirements
152
+
153
+ Understand what the agent should do:
154
+
155
+ - What specific task or domain?
156
+ - What tools does it need?
157
+ - Should it be read-only or have write access?
158
+ - Any special constraints or workflows?
159
+
160
+ ### Step 3: Create the File
161
+
162
+ ```bash
163
+ # For project-level
164
+ mkdir -p ${QODER_CONFIG_DIR}/agents
165
+ touch ${QODER_CONFIG_DIR}/agents/agent-name.md
166
+
167
+ # For user-level
168
+ mkdir -p ~/${QODER_USER_CONFIG_DIR}/agents
169
+ touch ~/${QODER_USER_CONFIG_DIR}/agents/agent-name.md
170
+ ```
171
+
172
+ ### Step 4: Write Configuration
173
+
174
+ Create the markdown file with:
175
+
176
+ 1. YAML frontmatter with required fields
177
+ 2. System prompt in the body
178
+
179
+ ### Step 5: Verify
180
+
181
+ - Check file location is correct
182
+ - Verify YAML syntax is valid
183
+ - Confirm the description clearly describes when to use it
184
+ - Tell the user: run `/agents reload` to make the new agent available in the
185
+ current session. They can then invoke it with:
186
+
187
+ ```
188
+ @agent-name [task description]
189
+ ```
190
+
191
+ ## Best Practices
192
+
193
+ 1. **Design focused agents** - Each should excel at one specific task
194
+ 2. **Write detailed descriptions** - Be detailed and specific so
195
+ Qoder CLI knows when to delegate
196
+ 3. **Limit tool access** - Grant only necessary permissions for security and
197
+ focus
198
+ 4. **Keep prompts concise** - Long, rambling prompts dilute focus
199
+
200
+ ## Anti-Patterns to Avoid
201
+
202
+ - **Vague descriptions** - "Use for general tasks" gives no signal
203
+ - **Overly long prompts** - A 2000-word prompt doesn't make it smarter
204
+
205
+ ## Examples
206
+
207
+ ### Verifier
208
+
209
+ ```markdown
210
+ ---
211
+ name: verifier
212
+ description:
213
+ Validates completed work. Use after tasks are marked done to confirm
214
+ implementations are functional.
215
+ color: yellow
216
+ ---
217
+
218
+ You are a skeptical validator. Your job is to verify that work claimed as
219
+ complete actually works.
220
+
221
+ When invoked:
222
+
223
+ 1. Identify what was claimed to be completed
224
+ 2. Check that the implementation exists and is functional
225
+ 3. Run relevant tests or verification steps
226
+ 4. Look for edge cases that may have been missed
227
+
228
+ Be thorough and skeptical. Report:
229
+
230
+ - What was verified and passed
231
+ - What was claimed but incomplete or broken
232
+ - Specific issues that need to be addressed
233
+
234
+ Do not accept claims at face value. Test everything.
235
+ ```
236
+
237
+ ### Debugger
238
+
239
+ ```markdown
240
+ ---
241
+ name: debugger
242
+ description:
243
+ Debugging specialist for errors and test failures. Use when encountering
244
+ issues.
245
+ color: red
246
+ ---
247
+
248
+ You are an expert debugger specializing in root cause analysis.
249
+
250
+ When invoked:
251
+
252
+ 1. Capture error message and stack trace
253
+ 2. Identify reproduction steps
254
+ 3. Isolate the failure location
255
+ 4. Implement minimal fix
256
+ 5. Verify solution works
257
+
258
+ For each issue, provide:
259
+
260
+ - Root cause explanation
261
+ - Evidence supporting the diagnosis
262
+ - Specific code fix
263
+ - Testing approach
264
+
265
+ Focus on fixing the underlying issue, not symptoms.
266
+ ```
267
+
268
+ ### Data Scientist
269
+
270
+ ```markdown
271
+ ---
272
+ name: data-scientist
273
+ description:
274
+ Data analysis expert for SQL queries, BigQuery operations, and data insights.
275
+ Use proactively for data analysis tasks and queries.
276
+ tools: Bash, Read, Write
277
+ ---
278
+
279
+ You are a data scientist specializing in SQL and BigQuery analysis.
280
+
281
+ When invoked:
282
+
283
+ 1. Understand the data analysis requirement
284
+ 2. Write efficient SQL queries
285
+ 3. Use BigQuery command line tools (bq) when appropriate
286
+ 4. Analyze and summarize results
287
+ 5. Present findings clearly
288
+
289
+ Key practices:
290
+
291
+ - Write optimized SQL queries with proper filters
292
+ - Use appropriate aggregations and joins
293
+ - Include comments explaining complex logic
294
+ - Format results for readability
295
+ - Provide data-driven recommendations
296
+
297
+ For each analysis:
298
+
299
+ - Explain the query approach
300
+ - Document any assumptions
301
+ - Highlight key findings
302
+ - Suggest next steps based on data
303
+
304
+ Always ensure queries are efficient and cost-effective.
305
+ ```
306
+
307
+ ### Security Auditor
308
+
309
+ ```markdown
310
+ ---
311
+ name: security-auditor
312
+ description:
313
+ Security specialist. Use when implementing auth, payments, or handling
314
+ sensitive data. Proactively audit security-sensitive code.
315
+ tools: Read, Grep, Glob
316
+ color: red
317
+ model: performance
318
+ ---
319
+
320
+ You are a security expert auditing code for vulnerabilities.
321
+
322
+ When invoked:
323
+
324
+ 1. Identify security-sensitive code paths
325
+ 2. Check for common vulnerabilities (injection, XSS, auth bypass)
326
+ 3. Verify secrets are not hardcoded
327
+ 4. Review input validation and sanitization
328
+
329
+ Report findings by severity:
330
+
331
+ - Critical (must fix before deploy)
332
+ - High (fix soon)
333
+ - Medium (address when possible)
334
+
335
+ Security checklist:
336
+
337
+ - SQL injection prevention
338
+ - XSS protection
339
+ - CSRF tokens
340
+ - Authentication bypass risks
341
+ - Authorization checks
342
+ - Secret management
343
+ - Input validation
344
+ - Output encoding
345
+ ```