agentsys 5.3.4 → 5.3.6

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 +11 -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,110 +0,0 @@
1
- ---
2
- name: enhance-cross-file
3
- description: "Use when checking cross-file consistency: tools vs frontmatter, agent references, duplicate rules, contradictions."
4
- version: 5.1.0
5
- argument-hint: "[path]"
6
- ---
7
-
8
- # enhance-cross-file
9
-
10
- Analyze cross-file semantic consistency across agents, skills, and workflows.
11
-
12
- ## Parse Arguments
13
-
14
- ```javascript
15
- const args = '$ARGUMENTS'.split(' ').filter(Boolean);
16
- const targetPath = args.find(a => !a.startsWith('--')) || '.';
17
- ```
18
-
19
- ## Purpose
20
-
21
- Detects issues that span multiple files - things single-file analysis misses:
22
- - Tools used in prompt body but not declared in frontmatter
23
- - Agent references that don't exist
24
- - Duplicate instructions across files (maintenance burden)
25
- - Contradictory rules (ALWAYS vs NEVER conflicts)
26
- - Orphaned agents not referenced by any workflow
27
- - Skill tool mismatches (allowed-tools vs actual usage)
28
-
29
- ## Workflow
30
-
31
- 1. **Run Analyzer** - Execute the JavaScript analyzer to get findings:
32
- ```bash
33
- node -e "const a = require('./lib/enhance/cross-file-analyzer.js'); console.log(JSON.stringify(a.analyze('.'), null, 2));"
34
- ```
35
- For a specific path: `a.analyze('./plugins/enhance')`
36
-
37
- 2. **Parse Results** - The analyzer returns JSON with `summary` and `findings`
38
- 3. **Report** - Return findings grouped by category
39
-
40
- The JavaScript analyzer (`lib/enhance/cross-file-analyzer.js`) implements all cross-file detection. The patterns below are reference documentation.
41
-
42
- ## Detection Patterns
43
-
44
- ### 1. Tool Consistency (MEDIUM Certainty)
45
-
46
- **tool_not_in_allowed_list**: Tool used in prompt body but not in frontmatter `tools:` list
47
-
48
- ```yaml
49
- # Frontmatter declares:
50
- tools: Read, Grep
51
-
52
- # But body uses:
53
- Use Write({ file_path: "/out" }) # <- Not declared!
54
- ```
55
-
56
- **skill_tool_mismatch**: Skill's `allowed-tools` doesn't match actual tool usage in skill body
57
-
58
- ### 2. Workflow Consistency (MEDIUM Certainty)
59
-
60
- **missing_workflow_agent**: `subagent_type: "plugin:agent-name"` references non-existent agent
61
-
62
- **orphaned_prompt**: Agent file exists but no workflow references it (may be entry point - check manually)
63
-
64
- **incomplete_phase_transition**: Workflow phase mentions "Phase N" but no corresponding section
65
-
66
- ### 3. Instruction Consistency (MEDIUM Certainty)
67
-
68
- **duplicate_instructions**: Same MUST/NEVER instruction in 3+ files (extract to shared location)
69
-
70
- **contradictory_rules**: One file says "ALWAYS X" while another says "NEVER X"
71
-
72
- ## Output Format
73
-
74
- ```markdown
75
- ## Cross-File Analysis
76
-
77
- **Files Analyzed**: {agents} agents, {skills} skills, {commands} commands
78
-
79
- ### Tool Consistency ({n})
80
- | Agent | Issue | Fix |
81
- |-------|-------|-----|
82
- | exploration-agent | Uses Write but not in tools list | Add Write to frontmatter |
83
-
84
- ### Workflow Issues ({n})
85
- | Source | Issue | Fix |
86
- |--------|-------|-----|
87
- | workflow.md | References nonexistent agent | Check spelling or create agent |
88
-
89
- ### Instruction Consistency ({n})
90
- | Instruction | Files | Fix |
91
- |-------------|-------|-----|
92
- | "NEVER push --force" | 4 files | Extract to CLAUDE.md |
93
- ```
94
-
95
- ## Constraints
96
-
97
- - All patterns are MEDIUM certainty (require context)
98
- - No auto-fix (cross-file changes need human review)
99
- - Skip content inside `<bad-example>`, `<bad_example>`, `<badexample>` tags
100
- - Skip content inside code blocks with "bad" in info string
101
- - Entry point agents (orchestrator, validator, discoverer) are not orphaned
102
-
103
- ## Pattern Statistics
104
-
105
- | Category | Patterns | Auto-Fixable |
106
- |----------|----------|--------------|
107
- | Tool Consistency | 2 | 0 |
108
- | Workflow | 3 | 0 |
109
- | Consistency | 3 | 0 |
110
- | **Total** | **8** | **0** |
@@ -1,298 +0,0 @@
1
- ---
2
- name: enhance-docs
3
- description: "Use when improving documentation structure, accuracy, and RAG readiness."
4
- version: 5.1.0
5
- argument-hint: "[path] [--fix] [--ai]"
6
- ---
7
-
8
- # enhance-docs
9
-
10
- Analyze documentation for readability, structure, and RAG optimization.
11
-
12
- ## Parse Arguments
13
-
14
- ```javascript
15
- const args = '$ARGUMENTS'.split(' ').filter(Boolean);
16
- const targetPath = args.find(a => !a.startsWith('--')) || '.';
17
- const fix = args.includes('--fix');
18
- const aiMode = args.includes('--ai');
19
- ```
20
-
21
- ## Documentation Locations
22
-
23
- | Type | Location | Purpose |
24
- |------|----------|---------|
25
- | User docs | `docs/*.md`, `README.md` | Human-readable guides |
26
- | Agent docs | `agent-docs/*.md` | AI reference material |
27
- | Project memory | `CLAUDE.md`, `AGENTS.md` | AI context/instructions |
28
-
29
- ## Optimization Modes
30
-
31
- ### AI-Only Mode (`--ai`)
32
- For agent-docs and RAG-optimized documentation:
33
- - Aggressive token reduction
34
- - Dense information packing
35
- - Self-contained sections for retrieval
36
- - Optimal chunking boundaries
37
-
38
- ### Both Mode (`--both`, default)
39
- For user-facing documentation:
40
- - Balance readability with AI-friendliness
41
- - Clear structure for both humans and retrievers
42
-
43
- ## Workflow
44
-
45
- 1. **Discover** - Find all .md files
46
- 2. **Parse** - Extract structure and content
47
- 3. **Check** - Run pattern checks based on mode
48
- 4. **Report** - Generate markdown output
49
- 5. **Fix** - Apply auto-fixes if --fix
50
-
51
- ## Detection Patterns
52
-
53
- ### 1. Link Validation (HIGH)
54
-
55
- - Broken anchor links (`[text](#missing-anchor)`)
56
- - Links to non-existent files
57
- - Malformed link syntax
58
-
59
- ### 2. Structure Validation (HIGH)
60
-
61
- **Heading hierarchy:**
62
- - No jumps (H1 → H3 without H2)
63
- - Single H1 per document
64
- - Code blocks with language tags
65
-
66
- **Position-aware content** (based on "lost in the middle" research):
67
- - Critical info at START or END of document
68
- - Supporting details in MIDDLE
69
- - Flag important content buried in middle sections
70
-
71
- **Recommended structure:**
72
- ```
73
- 1. Overview/Purpose (START - high attention)
74
- 2. Quick Start / TL;DR
75
- 3. Detailed Content
76
- 4. Reference / API
77
- 5. Summary / Key Points (END - high attention)
78
- ```
79
-
80
- ### 3. Token Efficiency (HIGH - AI Mode)
81
-
82
- **Token estimation:** `characters / 4` or `words * 1.3`
83
-
84
- **Unnecessary prose:**
85
- - "In this document..."
86
- - "As you can see..."
87
- - "Let's explore..."
88
- - "It's important to note that..."
89
-
90
- **Verbose phrases:**
91
- | Verbose | Concise |
92
- |---------|---------|
93
- | "in order to" | "to" |
94
- | "due to the fact that" | "because" |
95
- | "has the ability to" | "can" |
96
- | "at this point in time" | "now" |
97
- | "for the purpose of" | "for" |
98
- | "in the event that" | "if" |
99
-
100
- **Target:** ~1500 tokens for project memory files, flexible for reference docs.
101
-
102
- ### 4. RAG Optimization (MEDIUM - AI Mode)
103
-
104
- **Chunk size guidelines:**
105
- | Size | Issue |
106
- |------|-------|
107
- | >1000 tokens | Too long, split into subtopics |
108
- | <50 tokens | Too short, merge with related content |
109
- | 200-500 tokens | Optimal for retrieval |
110
-
111
- **Semantic boundaries:**
112
- - Single topic per section
113
- - Self-contained sections (avoid "It", "This" at section start)
114
- - Clear section titles that describe content
115
-
116
- **Context anchors:**
117
- ```markdown
118
- # Bad - ambiguous start
119
- ## Configuration
120
- It requires several settings...
121
-
122
- # Good - self-contained
123
- ## Configuration
124
- The plugin configuration requires several settings...
125
- ```
126
-
127
- ### 5. Information Density (MEDIUM - AI Mode)
128
-
129
- **Prefer tables over prose:**
130
- ```markdown
131
- # Bad - verbose
132
- The function accepts a path parameter which is required,
133
- a limit parameter which defaults to 10, and an optional
134
- format parameter.
135
-
136
- # Good - dense
137
- | Param | Required | Default | Description |
138
- |-------|----------|---------|-------------|
139
- | path | Yes | - | File path |
140
- | limit | No | 10 | Max results |
141
- | format | No | json | Output format |
142
- ```
143
-
144
- **Prefer lists over paragraphs** for sequential items.
145
-
146
- **Use code blocks** for examples, commands, configurations.
147
-
148
- ### 6. Cross-Reference Quality (MEDIUM)
149
-
150
- - Internal links should use relative paths
151
- - External links should be stable (avoid commit hashes)
152
- - Reference sections should point to canonical sources
153
-
154
- ### 7. Balance Suggestions (MEDIUM - Both Mode)
155
-
156
- - Missing section headers in long content (>500 words without heading)
157
- - Important information buried late in document
158
- - Missing TL;DR or summary for long documents
159
-
160
- ## Auto-Fixes
161
-
162
- | Issue | Fix |
163
- |-------|-----|
164
- | Inconsistent headings | H1 → H3 becomes H1 → H2 |
165
- | Verbose phrases | Replace with concise alternatives |
166
- | Missing code language | Add based on content detection |
167
-
168
- ## Output Format
169
-
170
- ```markdown
171
- ## Documentation Analysis: {name}
172
-
173
- **File**: {path}
174
- **Mode**: {AI-only | Both}
175
- **Tokens**: ~{count}
176
-
177
- | Certainty | Count |
178
- |-----------|-------|
179
- | HIGH | {n} |
180
- | MEDIUM | {n} |
181
-
182
- ### Link Issues
183
- | Line | Issue | Fix | Certainty |
184
-
185
- ### Structure Issues
186
- | Line | Issue | Fix | Certainty |
187
-
188
- ### Efficiency Issues [AI mode]
189
- | Line | Issue | Fix | Certainty |
190
-
191
- ### RAG Issues [AI mode]
192
- | Line | Issue | Fix | Certainty |
193
- ```
194
-
195
- ## Pattern Statistics
196
-
197
- | Category | Patterns | Mode | Certainty |
198
- |----------|----------|------|-----------|
199
- | Links | 3 | shared | HIGH |
200
- | Structure | 4 | shared | HIGH |
201
- | Token Efficiency | 3 | ai | HIGH |
202
- | RAG Optimization | 3 | ai | MEDIUM |
203
- | Information Density | 2 | ai | MEDIUM |
204
- | Cross-Reference | 2 | shared | MEDIUM |
205
- | Balance | 3 | both | MEDIUM |
206
- | **Total** | **20** | - | - |
207
-
208
- <examples>
209
- ### Verbose Phrase
210
- <bad_example>
211
- ```markdown
212
- In order to configure the plugin, you need to...
213
- ```
214
- </bad_example>
215
- <good_example>
216
- ```markdown
217
- To configure the plugin...
218
- ```
219
- </good_example>
220
-
221
- ### RAG Chunking
222
- <bad_example>
223
- ```markdown
224
- ## Installation
225
- [2000+ tokens of mixed content covering install, config, and usage]
226
- ```
227
- </bad_example>
228
- <good_example>
229
- ```markdown
230
- ## Installation
231
- [400 tokens - installation only]
232
-
233
- ## Configuration
234
- [300 tokens - config only]
235
-
236
- ## Usage
237
- [400 tokens - usage only]
238
- ```
239
- </good_example>
240
-
241
- ### Position-Aware Content
242
- <bad_example>
243
- ```markdown
244
- ## Introduction
245
- [Long background...]
246
-
247
- ## History
248
- [More context...]
249
-
250
- ## Critical Setup Steps
251
- [Important info buried in middle]
252
- ```
253
- </bad_example>
254
- <good_example>
255
- ```markdown
256
- ## Quick Start (Critical)
257
- [Important setup steps at START]
258
-
259
- ## Background
260
- [Supporting context in middle]
261
-
262
- ## Reference
263
- [Details...]
264
-
265
- ## Key Reminders
266
- [Critical points repeated at END]
267
- ```
268
- </good_example>
269
-
270
- ### Tables vs Prose
271
- <bad_example>
272
- ```markdown
273
- The API accepts three parameters. The first is `query` which is required.
274
- The second is `limit` which defaults to 10. The third is `format`.
275
- ```
276
- </bad_example>
277
- <good_example>
278
- ```markdown
279
- | Param | Required | Default |
280
- |-------|----------|---------|
281
- | query | Yes | - |
282
- | limit | No | 10 |
283
- | format | No | json |
284
- ```
285
- </good_example>
286
- </examples>
287
-
288
- ## References
289
-
290
- - `agent-docs/CONTEXT-OPTIMIZATION-REFERENCE.md` - Token budgeting, position awareness, chunking
291
- - `agent-docs/PROMPT-ENGINEERING-REFERENCE.md` - Structure, information density
292
-
293
- ## Constraints
294
-
295
- - Auto-fix only HIGH certainty issues
296
- - Preserve original tone and style
297
- - Balance AI optimization with human readability (default mode)
298
- - Don't remove content, only restructure or condense