agentsys 5.3.4 → 5.3.5

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.
Files changed (74) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +8 -0
  4. package/bin/cli.js +40 -28
  5. package/lib/adapter-transforms.js +3 -3
  6. package/package.json +1 -1
  7. package/site/content.json +32 -8
  8. package/.cursor/commands/audit-project-agents.md +0 -454
  9. package/.cursor/commands/audit-project-github.md +0 -141
  10. package/.cursor/commands/audit-project.md +0 -330
  11. package/.cursor/commands/consult.md +0 -417
  12. package/.cursor/commands/debate.md +0 -381
  13. package/.cursor/commands/delivery-approval.md +0 -334
  14. package/.cursor/commands/deslop.md +0 -142
  15. package/.cursor/commands/drift-detect.md +0 -259
  16. package/.cursor/commands/enhance.md +0 -172
  17. package/.cursor/commands/learn.md +0 -165
  18. package/.cursor/commands/next-task.md +0 -519
  19. package/.cursor/commands/perf.md +0 -464
  20. package/.cursor/commands/repo-map.md +0 -124
  21. package/.cursor/commands/ship-ci-review-loop.md +0 -468
  22. package/.cursor/commands/ship-deployment.md +0 -348
  23. package/.cursor/commands/ship-error-handling.md +0 -265
  24. package/.cursor/commands/ship.md +0 -517
  25. package/.cursor/commands/sync-docs.md +0 -171
  26. package/.cursor/commands/web-ctl.md +0 -101
  27. package/.cursor/skills/consult/SKILL.md +0 -425
  28. package/.cursor/skills/debate/SKILL.md +0 -316
  29. package/.cursor/skills/deslop/SKILL.md +0 -204
  30. package/.cursor/skills/discover-tasks/SKILL.md +0 -297
  31. package/.cursor/skills/drift-analysis/SKILL.md +0 -324
  32. package/.cursor/skills/enhance-agent-prompts/SKILL.md +0 -277
  33. package/.cursor/skills/enhance-claude-memory/SKILL.md +0 -387
  34. package/.cursor/skills/enhance-cross-file/SKILL.md +0 -110
  35. package/.cursor/skills/enhance-docs/SKILL.md +0 -298
  36. package/.cursor/skills/enhance-hooks/SKILL.md +0 -554
  37. package/.cursor/skills/enhance-orchestrator/SKILL.md +0 -255
  38. package/.cursor/skills/enhance-plugins/SKILL.md +0 -319
  39. package/.cursor/skills/enhance-prompts/SKILL.md +0 -340
  40. package/.cursor/skills/enhance-skills/SKILL.md +0 -436
  41. package/.cursor/skills/learn/SKILL.md +0 -349
  42. package/.cursor/skills/orchestrate-review/SKILL.md +0 -260
  43. package/.cursor/skills/perf-analyzer/SKILL.md +0 -37
  44. package/.cursor/skills/perf-baseline-manager/SKILL.md +0 -30
  45. package/.cursor/skills/perf-benchmarker/SKILL.md +0 -52
  46. package/.cursor/skills/perf-code-paths/SKILL.md +0 -32
  47. package/.cursor/skills/perf-investigation-logger/SKILL.md +0 -41
  48. package/.cursor/skills/perf-profiler/SKILL.md +0 -42
  49. package/.cursor/skills/perf-theory-gatherer/SKILL.md +0 -35
  50. package/.cursor/skills/perf-theory-tester/SKILL.md +0 -36
  51. package/.cursor/skills/repo-mapping/SKILL.md +0 -83
  52. package/.cursor/skills/sync-docs/SKILL.md +0 -351
  53. package/.cursor/skills/validate-delivery/SKILL.md +0 -186
  54. package/.cursor/skills/web-auth/SKILL.md +0 -177
  55. package/.cursor/skills/web-browse/SKILL.md +0 -516
  56. package/.kiro/steering/audit-project-agents.md +0 -459
  57. package/.kiro/steering/audit-project-github.md +0 -146
  58. package/.kiro/steering/audit-project.md +0 -330
  59. package/.kiro/steering/consult.md +0 -422
  60. package/.kiro/steering/debate.md +0 -386
  61. package/.kiro/steering/delivery-approval.md +0 -339
  62. package/.kiro/steering/deslop.md +0 -149
  63. package/.kiro/steering/drift-detect.md +0 -264
  64. package/.kiro/steering/enhance.md +0 -177
  65. package/.kiro/steering/learn.md +0 -166
  66. package/.kiro/steering/next-task.md +0 -481
  67. package/.kiro/steering/perf.md +0 -469
  68. package/.kiro/steering/repo-map.md +0 -126
  69. package/.kiro/steering/ship-ci-review-loop.md +0 -473
  70. package/.kiro/steering/ship-deployment.md +0 -353
  71. package/.kiro/steering/ship-error-handling.md +0 -270
  72. package/.kiro/steering/ship.md +0 -522
  73. package/.kiro/steering/sync-docs.md +0 -178
  74. package/.kiro/steering/web-ctl.md +0 -106
@@ -1,436 +0,0 @@
1
- ---
2
- name: enhance-skills
3
- description: "Use when reviewing SKILL.md files for structure and trigger quality."
4
- version: 5.1.0
5
- argument-hint: "[path] [--fix]"
6
- ---
7
-
8
- # enhance-skills
9
-
10
- Analyze skill definitions for trigger quality, structure, and discoverability.
11
-
12
- ## Workflow
13
-
14
- 1. **Discover** - Find all SKILL.md files
15
- 2. **Parse** - Extract frontmatter and content
16
- 3. **Check** - Run all pattern checks against knowledge below
17
- 4. **Filter** - Apply certainty filtering
18
- 5. **Report** - Generate markdown output
19
- 6. **Fix** - Apply auto-fixes if --fix flag present
20
-
21
- ---
22
-
23
- ## Skill Knowledge Reference
24
-
25
- ### Frontmatter Fields (Complete Reference)
26
-
27
- | Field | Required | Description | Validation |
28
- |-------|----------|-------------|------------|
29
- | `name` | No | Display name, defaults to directory name | lowercase, max 64 chars |
30
- | `description` | Recommended | What skill does and when to use | max 1024 chars, should include trigger |
31
- | `argument-hint` | No | Autocomplete hint, e.g., `[file-path]` | keep under 30 chars |
32
- | `disable-model-invocation` | No | `true` = manual only (for side effects) | boolean, default false |
33
- | `user-invocable` | No | `false` = hidden from `/` menu (auto-only) | boolean, default true |
34
- | `allowed-tools` | No | Tools Claude can use without permission | comma-separated list |
35
- | `model` | No | Specific model when skill is active | opus, sonnet, haiku |
36
- | `context` | No | `fork` = run in isolated subagent context | fork or omit |
37
- | `agent` | No | Subagent type for execution | Explore, Plan, general-purpose |
38
- | `hooks` | No | Skill-scoped lifecycle hooks | PreToolUse, PostToolUse |
39
-
40
- ### Directory Structure
41
-
42
- ```
43
- skills/my-skill/
44
- ├── SKILL.md # Required - core definition (under 500 lines)
45
- ├── reference.md # Optional - detailed documentation
46
- ├── examples.md # Optional - usage examples
47
- └── scripts/ # Optional - helper scripts
48
- └── helper.py
49
- ```
50
-
51
- **Storage Locations:**
52
- - Enterprise: Managed settings
53
- - Personal: `~/.claude/skills/<name>/SKILL.md`
54
- - Project: `.claude/skills/<name>/SKILL.md`
55
-
56
- ### Invocation Control Patterns
57
-
58
- **Manual Only (for skills with side effects):**
59
- ```yaml
60
- ---
61
- name: deploy
62
- description: Deploy to production
63
- disable-model-invocation: true
64
- ---
65
- ```
66
-
67
- **Background Knowledge (auto-only, hidden from menu):**
68
- ```yaml
69
- ---
70
- name: legacy-context
71
- description: How the legacy payment system works
72
- user-invocable: false
73
- ---
74
- ```
75
-
76
- **Full Access (default - both auto and manual):**
77
- ```yaml
78
- ---
79
- name: review
80
- description: Use when user asks to review code. Checks quality and security.
81
- ---
82
- ```
83
-
84
- ### Trigger Phrases
85
-
86
- Description should include trigger context for auto-discovery:
87
- - "Use when user asks..."
88
- - "Use when..."
89
- - "Invoke when..."
90
-
91
- **Good:** `"Use when user asks to 'review code', 'check PR', or 'code review'"`
92
- **Bad:** `"Reviews code"` (no trigger context)
93
-
94
- ### Dynamic Context Injection
95
-
96
- Skills can inject dynamic content using backtick syntax:
97
-
98
- ```yaml
99
- ---
100
- name: pr-summary
101
- description: Summarize PR changes
102
- context: fork
103
- agent: Explore
104
- allowed-tools: Bash(gh:*)
105
- ---
106
-
107
- ## Pull request context
108
- - PR diff: !`gh pr diff`
109
- - PR comments: !`gh pr view --comments`
110
- - Changed files: !`gh pr diff --name-only`
111
- ```
112
-
113
- **Rules:**
114
- - Use `!` followed by backtick-wrapped command
115
- - Limit to 3 injections per skill
116
- - Each injection adds to context budget
117
-
118
- ### String Substitutions
119
-
120
- | Variable | Description |
121
- |----------|-------------|
122
- | `$ARGUMENTS` | All arguments passed when invoking |
123
- | `${CLAUDE_SESSION_ID}` | Current session ID |
124
-
125
- ### Context Budget
126
-
127
- - Skill descriptions have ~15,000 character default limit
128
- - Content beyond limit is truncated
129
- - Check with `/context` command
130
- - Increase via: `SLASH_COMMAND_TOOL_CHAR_BUDGET=30000`
131
-
132
- ### Subagent Execution
133
-
134
- When using `context: fork`:
135
-
136
- ```yaml
137
- ---
138
- name: deep-research
139
- description: Research a topic thoroughly
140
- context: fork
141
- agent: Explore
142
- allowed-tools: Read, Grep, Glob
143
- ---
144
-
145
- Research $ARGUMENTS thoroughly:
146
- 1. Find relevant files
147
- 2. Analyze the code
148
- 3. Summarize findings
149
- ```
150
-
151
- **Agent Types:**
152
- | Agent | Purpose | Tool Access |
153
- |-------|---------|-------------|
154
- | `Explore` | Read-only codebase exploration | Read, Grep, Glob only |
155
- | `Plan` | Planning-focused reasoning | Read, analysis tools |
156
- | `general-purpose` | Full capabilities | All tools |
157
-
158
- ### Skill-Scoped Hooks
159
-
160
- ```yaml
161
- ---
162
- name: secure-operations
163
- hooks:
164
- PreToolUse:
165
- - matcher: "Bash"
166
- hooks:
167
- - type: command
168
- command: "./scripts/security-check.sh"
169
- ---
170
- ```
171
-
172
- ### Tool Restrictions
173
-
174
- Use scoped tool patterns for security:
175
-
176
- | Pattern | Meaning |
177
- |---------|---------|
178
- | `Bash(git:*)` | Only git commands |
179
- | `Bash(npm:*)` | Only npm commands |
180
- | `Bash(gh:*)` | Only GitHub CLI |
181
- | `Read(src/**)` | Only files in src/ |
182
-
183
- ---
184
-
185
- ## Detection Patterns
186
-
187
- ### 1. Frontmatter Validation (HIGH Certainty)
188
-
189
- **Required:**
190
- - YAML frontmatter with `---` delimiters
191
- - `name` field (lowercase, max 64 chars)
192
- - `description` field (max 1024 chars)
193
-
194
- **Recommended:**
195
- - `version` field for tracking
196
- - `argument-hint` for skills accepting input
197
- - `allowed-tools` for security
198
- - `model` when specific model required
199
-
200
- **Flag:**
201
- - Missing frontmatter delimiters
202
- - Invalid field values (uppercase name, description >1024 chars)
203
-
204
- ### 2. Trigger Quality (HIGH Certainty)
205
-
206
- **Check:** Description includes trigger phrase
207
- **Trigger patterns:** "Use when", "Invoke when", "Use when user asks"
208
-
209
- **Flag:**
210
- - Description without trigger context
211
- - Vague descriptions like "Useful tool" or "Does stuff"
212
-
213
- ### 3. Invocation Control (HIGH Certainty)
214
-
215
- **Check:** Side-effect skills are protected
216
-
217
- **Flag:**
218
- - Skills with deploy/ship/publish in name but `disable-model-invocation` not set
219
- - Dangerous auto-invocable skills (can accidentally trigger)
220
-
221
- ### 4. Tool Restrictions (HIGH Certainty)
222
-
223
- **Check:** Tools are appropriately scoped
224
-
225
- **Flag:**
226
- - Unrestricted `Bash` (should be `Bash(git:*)` or similar)
227
- - Read-only skills with Write/Edit
228
- - Research skills with Task tool
229
-
230
- ### 5. Content Scope (MEDIUM Certainty)
231
-
232
- **Guidelines:**
233
- - SKILL.md under 500 lines
234
- - Large content in `references/` subdirectory
235
- - Max 3 dynamic injections
236
-
237
- **Flag:**
238
- - SKILL.md over 500 lines
239
- - More than 3 `!`backtick`` injections
240
- - Embedded large examples (move to examples.md)
241
-
242
- ### 6. Structure Quality (MEDIUM Certainty)
243
-
244
- **Recommended Sections:**
245
- - Purpose/overview
246
- - Required checks or workflow steps
247
- - Output format
248
- - Examples (if complex)
249
-
250
- ### 7. Context Configuration (MEDIUM Certainty)
251
-
252
- **Check:** Context settings are appropriate
253
-
254
- **Flag:**
255
- - `context: fork` without `agent` type
256
- - `agent` type without `context: fork`
257
- - Mismatch between agent type and allowed-tools
258
-
259
- ### 8. Anti-Patterns (LOW Certainty)
260
-
261
- - Vague descriptions without specific triggers
262
- - Too many responsibilities (should split into multiple skills)
263
- - Missing `argument-hint` for skills that clearly need input
264
- - Redundant chain-of-thought instructions (modern models don't need "think step by step")
265
-
266
- ---
267
-
268
- ## Auto-Fix Implementations
269
-
270
- ### 1. Missing frontmatter
271
- ```yaml
272
- ---
273
- name: skill-name
274
- description: "Use when..."
275
- version: 4.2.0
276
- ---
277
- ```
278
-
279
- ### 2. Missing trigger phrase
280
- Add "Use when user asks..." prefix to description
281
-
282
- ### 3. Unrestricted Bash
283
- Replace `Bash` with `Bash(git:*)` or appropriate scope
284
-
285
- ---
286
-
287
- ## Output Format
288
-
289
- ```markdown
290
- ## Skill Analysis: {skill-name}
291
-
292
- **File**: {path}
293
-
294
- ### Summary
295
- - HIGH: {count} issues
296
- - MEDIUM: {count} issues
297
-
298
- ### Frontmatter Issues ({n})
299
- | Issue | Fix | Certainty |
300
-
301
- ### Trigger Issues ({n})
302
- | Issue | Fix | Certainty |
303
-
304
- ### Invocation Issues ({n})
305
- | Issue | Fix | Certainty |
306
-
307
- ### Tool Issues ({n})
308
- | Issue | Fix | Certainty |
309
-
310
- ### Scope Issues ({n})
311
- | Issue | Fix | Certainty |
312
- ```
313
-
314
- ---
315
-
316
- ## Pattern Statistics
317
-
318
- | Category | Patterns | Auto-Fixable |
319
- |----------|----------|--------------|
320
- | Frontmatter | 5 | 2 |
321
- | Trigger | 2 | 1 |
322
- | Invocation | 3 | 1 |
323
- | Tool | 3 | 1 |
324
- | Scope | 3 | 0 |
325
- | Structure | 2 | 0 |
326
- | Context | 3 | 0 |
327
- | Anti-Pattern | 4 | 0 |
328
- | **Total** | **25** | **5** |
329
-
330
- ---
331
-
332
- <examples>
333
- ### Example: Missing Trigger Phrase
334
-
335
- <bad_example>
336
- ```yaml
337
- name: code-review
338
- description: "Reviews code for issues"
339
- ```
340
- **Why it's bad**: No trigger context for auto-discovery.
341
- </bad_example>
342
-
343
- <good_example>
344
- ```yaml
345
- name: code-review
346
- description: "Use when user asks to 'review code', 'check this PR'. Reviews code for issues."
347
- ```
348
- **Why it's good**: Clear trigger phrases enable auto-discovery.
349
- </good_example>
350
-
351
- ### Example: Dangerous Auto-Invocation
352
-
353
- <bad_example>
354
- ```yaml
355
- name: deploy
356
- description: "Deploys code to production"
357
- ```
358
- **Why it's bad**: Side-effect skill could be auto-invoked accidentally.
359
- </bad_example>
360
-
361
- <good_example>
362
- ```yaml
363
- name: deploy
364
- description: "Deploy to production environment"
365
- disable-model-invocation: true
366
- ```
367
- **Why it's good**: Manual-only prevents accidental deployments.
368
- </good_example>
369
-
370
- ### Example: Unrestricted Tools
371
-
372
- <bad_example>
373
- ```yaml
374
- name: git-helper
375
- allowed-tools: Bash
376
- ```
377
- **Why it's bad**: Unrestricted Bash allows any command.
378
- </bad_example>
379
-
380
- <good_example>
381
- ```yaml
382
- name: git-helper
383
- allowed-tools: Bash(git:*)
384
- ```
385
- **Why it's good**: Scoped to only git commands.
386
- </good_example>
387
-
388
- ### Example: Oversized Skill
389
-
390
- <bad_example>
391
- ```markdown
392
- # Complex Analysis
393
- [800 lines of detailed instructions]
394
- ```
395
- **Why it's bad**: Large skills consume context budget (15K char limit).
396
- </bad_example>
397
-
398
- <good_example>
399
- ```markdown
400
- # Complex Analysis
401
- Core instructions here (under 500 lines).
402
- For details, see `references/detailed-guide.md`.
403
- ```
404
- **Why it's good**: Core skill is concise; details in separate files.
405
- </good_example>
406
-
407
- ### Example: Context/Agent Mismatch
408
-
409
- <bad_example>
410
- ```yaml
411
- name: researcher
412
- context: fork
413
- # Missing agent type
414
- ```
415
- **Why it's bad**: Fork context without specifying agent type.
416
- </bad_example>
417
-
418
- <good_example>
419
- ```yaml
420
- name: researcher
421
- context: fork
422
- agent: Explore
423
- allowed-tools: Read, Grep, Glob
424
- ```
425
- **Why it's good**: Agent type matches allowed tools (Explore = read-only).
426
- </good_example>
427
- </examples>
428
-
429
- ---
430
-
431
- ## Constraints
432
-
433
- - Only apply auto-fixes for HIGH certainty issues
434
- - Consider skill context when evaluating trigger quality
435
- - Never remove content, only suggest improvements
436
- - Validate against embedded knowledge reference above