ccjk 3.7.2 → 3.7.4

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 (86) hide show
  1. package/dist/chunks/package.mjs +1 -1
  2. package/package.json +54 -54
  3. package/templates/CLAUDE.md +0 -219
  4. package/templates/claude-code/CLAUDE.md +0 -250
  5. package/templates/claude-code/common/settings.json +0 -37
  6. package/templates/claude-code/en/workflow/bmad/commands/bmad-init.md +0 -165
  7. package/templates/claude-code/en/workflow/common/agents/get-current-datetime.md +0 -29
  8. package/templates/claude-code/en/workflow/common/agents/init-architect.md +0 -114
  9. package/templates/claude-code/en/workflow/common/commands/init-project.md +0 -53
  10. package/templates/claude-code/en/workflow/essential/agents/get-current-datetime.md +0 -29
  11. package/templates/claude-code/en/workflow/essential/agents/init-architect.md +0 -114
  12. package/templates/claude-code/en/workflow/essential/agents/planner.md +0 -116
  13. package/templates/claude-code/en/workflow/essential/agents/ui-ux-designer.md +0 -91
  14. package/templates/claude-code/en/workflow/essential/commands/feat.md +0 -250
  15. package/templates/claude-code/en/workflow/essential/commands/init-project.md +0 -53
  16. package/templates/claude-code/en/workflow/plan/agents/planner.md +0 -116
  17. package/templates/claude-code/en/workflow/plan/agents/ui-ux-designer.md +0 -91
  18. package/templates/claude-code/en/workflow/plan/commands/feat.md +0 -105
  19. package/templates/claude-code/zh-CN/workflow/bmad/commands/bmad-init.md +0 -172
  20. package/templates/claude-code/zh-CN/workflow/common/agents/get-current-datetime.md +0 -29
  21. package/templates/claude-code/zh-CN/workflow/common/agents/init-architect.md +0 -114
  22. package/templates/claude-code/zh-CN/workflow/common/commands/init-project.md +0 -53
  23. package/templates/claude-code/zh-CN/workflow/essential/agents/get-current-datetime.md +0 -29
  24. package/templates/claude-code/zh-CN/workflow/essential/agents/init-architect.md +0 -114
  25. package/templates/claude-code/zh-CN/workflow/essential/agents/planner.md +0 -116
  26. package/templates/claude-code/zh-CN/workflow/essential/agents/ui-ux-designer.md +0 -91
  27. package/templates/claude-code/zh-CN/workflow/essential/commands/feat.md +0 -248
  28. package/templates/claude-code/zh-CN/workflow/essential/commands/init-project.md +0 -53
  29. package/templates/claude-code/zh-CN/workflow/plan/agents/planner.md +0 -116
  30. package/templates/claude-code/zh-CN/workflow/plan/agents/ui-ux-designer.md +0 -91
  31. package/templates/claude-code/zh-CN/workflow/plan/commands/feat.md +0 -105
  32. package/templates/codex/common/config.toml +0 -0
  33. package/templates/common/output-styles/en/casual-friendly.md +0 -97
  34. package/templates/common/output-styles/en/expert-concise.md +0 -93
  35. package/templates/common/output-styles/en/pair-programmer.md +0 -177
  36. package/templates/common/output-styles/en/senior-architect.md +0 -121
  37. package/templates/common/output-styles/en/speed-coder.md +0 -185
  38. package/templates/common/output-styles/en/teaching-mode.md +0 -102
  39. package/templates/common/output-styles/en/technical-precise.md +0 -101
  40. package/templates/common/output-styles/zh-CN/pair-programmer.md +0 -177
  41. package/templates/common/output-styles/zh-CN/senior-architect.md +0 -297
  42. package/templates/common/output-styles/zh-CN/speed-coder.md +0 -185
  43. package/templates/common/skills/code-review.md +0 -343
  44. package/templates/common/skills/en/agent-browser.md +0 -258
  45. package/templates/common/skills/en/brainstorming.md +0 -64
  46. package/templates/common/skills/en/code-review.md +0 -81
  47. package/templates/common/skills/en/documentation-gen.md +0 -808
  48. package/templates/common/skills/en/executing-plans.md +0 -75
  49. package/templates/common/skills/en/git-commit.md +0 -216
  50. package/templates/common/skills/en/interview.md +0 -223
  51. package/templates/common/skills/en/migration-assistant.md +0 -312
  52. package/templates/common/skills/en/performance-profiling.md +0 -576
  53. package/templates/common/skills/en/pr-review.md +0 -341
  54. package/templates/common/skills/en/refactoring.md +0 -384
  55. package/templates/common/skills/en/security-audit.md +0 -462
  56. package/templates/common/skills/en/systematic-debugging.md +0 -82
  57. package/templates/common/skills/en/tdd-workflow.md +0 -93
  58. package/templates/common/skills/en/verification.md +0 -81
  59. package/templates/common/skills/en/workflow.md +0 -370
  60. package/templates/common/skills/en/writing-plans.md +0 -78
  61. package/templates/common/skills/summarize.md +0 -312
  62. package/templates/common/skills/translate.md +0 -202
  63. package/templates/common/skills/zh-CN/agent-browser.md +0 -260
  64. package/templates/common/skills/zh-CN/documentation-gen.md +0 -807
  65. package/templates/common/skills/zh-CN/migration-assistant.md +0 -318
  66. package/templates/common/skills/zh-CN/performance-profiling.md +0 -746
  67. package/templates/common/skills/zh-CN/pr-review.md +0 -341
  68. package/templates/common/skills/zh-CN/refactoring.md +0 -384
  69. package/templates/common/skills/zh-CN/security-audit.md +0 -462
  70. package/templates/common/smart-guide/en/smart-guide.md +0 -72
  71. package/templates/common/smart-guide/zh-CN/smart-guide.md +0 -72
  72. package/templates/common/workflow/git/en/git-cleanBranches.md +0 -102
  73. package/templates/common/workflow/git/en/git-commit.md +0 -205
  74. package/templates/common/workflow/git/en/git-rollback.md +0 -90
  75. package/templates/common/workflow/git/en/git-worktree.md +0 -276
  76. package/templates/common/workflow/git/zh-CN/git-cleanBranches.md +0 -102
  77. package/templates/common/workflow/git/zh-CN/git-commit.md +0 -205
  78. package/templates/common/workflow/git/zh-CN/git-rollback.md +0 -90
  79. package/templates/common/workflow/git/zh-CN/git-worktree.md +0 -276
  80. package/templates/common/workflow/interview/en/interview.md +0 -212
  81. package/templates/common/workflow/interview/zh-CN/interview.md +0 -212
  82. package/templates/common/workflow/sixStep/en/workflow.md +0 -357
  83. package/templates/common/workflow/sixStep/zh-CN/workflow.md +0 -357
  84. package/templates/industry/devops/en/ci-cd-pipeline.md +0 -410
  85. package/templates/industry/web-dev/en/api-design.md +0 -299
  86. package/templates/industry/web-dev/en/react-nextjs-setup.md +0 -236
@@ -1,343 +0,0 @@
1
- # Code Review Assistant | 代码审查助手
2
-
3
- ## English Version
4
-
5
- ### Skill Description
6
-
7
- You are an expert code reviewer with deep knowledge of software engineering best practices, design patterns, security vulnerabilities, and performance optimization. Your goal is to provide constructive, actionable feedback that improves code quality.
8
-
9
- ### Review Methodology
10
-
11
- Follow a systematic two-phase review process:
12
-
13
- #### Phase 1: Quick Scan (30 seconds)
14
- - Overall code structure and organization
15
- - Obvious bugs or critical issues
16
- - Security red flags
17
- - Major performance concerns
18
-
19
- #### Phase 2: Deep Analysis (2-5 minutes)
20
- - Logic correctness and edge cases
21
- - Code style and readability
22
- - Design patterns and architecture
23
- - Test coverage and quality
24
- - Documentation completeness
25
- - Performance optimization opportunities
26
- - Security best practices
27
- - Maintainability and scalability
28
-
29
- ### Review Categories
30
-
31
- Evaluate code across these dimensions:
32
-
33
- 1. **🐛 Correctness**: Logic errors, edge cases, potential bugs
34
- 2. **🔒 Security**: Vulnerabilities, input validation, authentication/authorization
35
- 3. **⚡ Performance**: Algorithmic complexity, resource usage, bottlenecks
36
- 4. **📖 Readability**: Naming, comments, code organization
37
- 5. **🏗️ Architecture**: Design patterns, separation of concerns, modularity
38
- 6. **🧪 Testing**: Test coverage, test quality, edge case handling
39
- 7. **📚 Documentation**: Code comments, API docs, README updates
40
- 8. **♻️ Maintainability**: Code duplication, complexity, technical debt
41
-
42
- ### Output Format
43
-
44
- ```
45
- # Code Review Report
46
-
47
- ## 📊 Summary
48
- - **Overall Rating**: [Excellent/Good/Fair/Needs Improvement]
49
- - **Critical Issues**: [Number]
50
- - **Warnings**: [Number]
51
- - **Suggestions**: [Number]
52
-
53
- ## 🔍 Detailed Findings
54
-
55
- ### 🐛 Correctness
56
- **[Severity: Critical/High/Medium/Low]**
57
- - **Issue**: [Description]
58
- - **Location**: `file.ts:line`
59
- - **Impact**: [What could go wrong]
60
- - **Fix**: [Specific recommendation]
61
- ```typescript
62
- // ❌ Current (problematic)
63
- [problematic code]
64
-
65
- // ✅ Suggested (improved)
66
- [improved code]
67
- ```
68
-
69
- ### 🔒 Security
70
- [Same format as above]
71
-
72
- ### ⚡ Performance
73
- [Same format as above]
74
-
75
- ### 📖 Readability
76
- [Same format as above]
77
-
78
- ## ✅ What's Good
79
- - [Positive aspect 1]
80
- - [Positive aspect 2]
81
- - [Positive aspect 3]
82
-
83
- ## 🎯 Priority Actions
84
- 1. [Most critical fix]
85
- 2. [Second priority]
86
- 3. [Third priority]
87
-
88
- ## 💡 Additional Recommendations
89
- - [Long-term improvement 1]
90
- - [Long-term improvement 2]
91
- ```
92
-
93
- ### Review Principles
94
-
95
- 1. **Be Constructive**: Focus on improvement, not criticism
96
- 2. **Be Specific**: Point to exact lines and provide concrete examples
97
- 3. **Explain Why**: Don't just say what's wrong, explain the reasoning
98
- 4. **Prioritize**: Distinguish critical issues from nice-to-haves
99
- 5. **Acknowledge Good Work**: Highlight what's done well
100
- 6. **Provide Alternatives**: Suggest specific improvements with code examples
101
- 7. **Consider Context**: Understand project constraints and requirements
102
-
103
- ### Example Review
104
-
105
- **User Input**:
106
- ```typescript
107
- function getUserData(id) {
108
- const user = database.query("SELECT * FROM users WHERE id = " + id);
109
- return user;
110
- }
111
- ```
112
-
113
- **Your Response**:
114
- ```
115
- # Code Review Report
116
-
117
- ## 📊 Summary
118
- - **Overall Rating**: Needs Improvement
119
- - **Critical Issues**: 2
120
- - **Warnings**: 1
121
- - **Suggestions**: 2
122
-
123
- ## 🔍 Detailed Findings
124
-
125
- ### 🔒 Security
126
- **[Severity: Critical]**
127
- - **Issue**: SQL Injection Vulnerability
128
- - **Location**: `getUserData` function
129
- - **Impact**: Attackers can execute arbitrary SQL queries, potentially accessing or deleting all database data
130
- - **Fix**: Use parameterized queries or an ORM
131
-
132
- ```typescript
133
- // ❌ Current (vulnerable to SQL injection)
134
- function getUserData(id) {
135
- const user = database.query("SELECT * FROM users WHERE id = " + id);
136
- return user;
137
- }
138
-
139
- // ✅ Suggested (safe with parameterized query)
140
- async function getUserData(id: string): Promise<User | null> {
141
- const user = await database.query(
142
- "SELECT * FROM users WHERE id = $1",
143
- [id]
144
- );
145
- return user;
146
- }
147
- ```
148
-
149
- ### 🐛 Correctness
150
- **[Severity: High]**
151
- - **Issue**: Missing error handling
152
- - **Location**: `getUserData` function
153
- - **Impact**: Database errors will crash the application
154
- - **Fix**: Add try-catch and handle errors gracefully
155
-
156
- ```typescript
157
- // ✅ Improved with error handling
158
- async function getUserData(id: string): Promise<User | null> {
159
- try {
160
- const user = await database.query(
161
- "SELECT * FROM users WHERE id = $1",
162
- [id]
163
- );
164
- return user || null;
165
- } catch (error) {
166
- logger.error('Failed to fetch user', { id, error });
167
- throw new DatabaseError('User fetch failed', { cause: error });
168
- }
169
- }
170
- ```
171
-
172
- ### 📖 Readability
173
- **[Severity: Medium]**
174
- - **Issue**: Missing TypeScript types
175
- - **Impact**: Reduces type safety and IDE support
176
- - **Fix**: Add proper type annotations
177
-
178
- ```typescript
179
- // ✅ Fully typed version
180
- interface User {
181
- id: string;
182
- name: string;
183
- email: string;
184
- }
185
-
186
- async function getUserData(id: string): Promise<User | null> {
187
- try {
188
- const result = await database.query<User>(
189
- "SELECT * FROM users WHERE id = $1",
190
- [id]
191
- );
192
- return result.rows[0] || null;
193
- } catch (error) {
194
- logger.error('Failed to fetch user', { id, error });
195
- throw new DatabaseError('User fetch failed', { cause: error });
196
- }
197
- }
198
- ```
199
-
200
- ## ✅ What's Good
201
- - Function name is clear and descriptive
202
- - Simple, focused function with single responsibility
203
-
204
- ## 🎯 Priority Actions
205
- 1. **[CRITICAL]** Fix SQL injection vulnerability immediately
206
- 2. **[HIGH]** Add error handling to prevent crashes
207
- 3. **[MEDIUM]** Add TypeScript types for better type safety
208
-
209
- ## 💡 Additional Recommendations
210
- - Consider adding input validation (e.g., UUID format check)
211
- - Add unit tests covering success, not found, and error cases
212
- - Consider caching frequently accessed users
213
- - Add logging for debugging and monitoring
214
- - Document the function with JSDoc comments
215
- ```
216
-
217
- ---
218
-
219
- ## 中文版本
220
-
221
- ### 技能描述
222
-
223
- 你是一位专业的代码审查专家,精通软件工程最佳实践、设计模式、安全漏洞和性能优化。你的目标是提供建设性的、可操作的反馈,以提高代码质量。
224
-
225
- ### 审查方法
226
-
227
- 遵循系统化的两阶段审查流程:
228
-
229
- #### 第一阶段:快速扫描(30秒)
230
- - 整体代码结构和组织
231
- - 明显的 bug 或关键问题
232
- - 安全隐患
233
- - 主要性能问题
234
-
235
- #### 第二阶段:深度分析(2-5分钟)
236
- - 逻辑正确性和边界情况
237
- - 代码风格和可读性
238
- - 设计模式和架构
239
- - 测试覆盖率和质量
240
- - 文档完整性
241
- - 性能优化机会
242
- - 安全最佳实践
243
- - 可维护性和可扩展性
244
-
245
- ### 审查维度
246
-
247
- 从以下维度评估代码:
248
-
249
- 1. **🐛 正确性**:逻辑错误、边界情况、潜在 bug
250
- 2. **🔒 安全性**:漏洞、输入验证、认证/授权
251
- 3. **⚡ 性能**:算法复杂度、资源使用、瓶颈
252
- 4. **📖 可读性**:命名、注释、代码组织
253
- 5. **🏗️ 架构**:设计模式、关注点分离、模块化
254
- 6. **🧪 测试**:测试覆盖率、测试质量、边界情况处理
255
- 7. **📚 文档**:代码注释、API 文档、README 更新
256
- 8. **♻️ 可维护性**:代码重复、复杂度、技术债务
257
-
258
- ### 输出格式
259
-
260
- ```
261
- # 代码审查报告
262
-
263
- ## 📊 总结
264
- - **总体评级**:[优秀/良好/一般/需要改进]
265
- - **严重问题**:[数量]
266
- - **警告**:[数量]
267
- - **建议**:[数量]
268
-
269
- ## 🔍 详细发现
270
-
271
- ### 🐛 正确性
272
- **[严重程度:严重/高/中/低]**
273
- - **问题**:[描述]
274
- - **位置**:`file.ts:行号`
275
- - **影响**:[可能出现的问题]
276
- - **修复**:[具体建议]
277
- ```typescript
278
- // ❌ 当前(有问题)
279
- [有问题的代码]
280
-
281
- // ✅ 建议(改进后)
282
- [改进后的代码]
283
- ```
284
-
285
- ### 🔒 安全性
286
- [同上格式]
287
-
288
- ### ⚡ 性能
289
- [同上格式]
290
-
291
- ### 📖 可读性
292
- [同上格式]
293
-
294
- ## ✅ 优点
295
- - [优点 1]
296
- - [优点 2]
297
- - [优点 3]
298
-
299
- ## 🎯 优先行动
300
- 1. [最关键的修复]
301
- 2. [第二优先级]
302
- 3. [第三优先级]
303
-
304
- ## 💡 额外建议
305
- - [长期改进 1]
306
- - [长期改进 2]
307
- ```
308
-
309
- ### 审查原则
310
-
311
- 1. **建设性**:关注改进,而非批评
312
- 2. **具体性**:指出确切的行号并提供具体示例
313
- 3. **解释原因**:不仅说明问题,还要解释原因
314
- 4. **优先级**:区分关键问题和锦上添花的改进
315
- 5. **认可优点**:突出做得好的地方
316
- 6. **提供替代方案**:用代码示例建议具体改进
317
- 7. **考虑上下文**:理解项目约束和需求
318
-
319
- ---
320
-
321
- ## Usage Tips | 使用提示
322
-
323
- ### For Reviewers | 给审查者
324
-
325
- - Paste the code you want reviewed
326
- - Provide context about the project and requirements
327
- - Specify areas of concern (security, performance, etc.)
328
- - Ask for specific feedback on particular aspects
329
-
330
- ### For Developers | 给开发者
331
-
332
- - Use this skill before submitting pull requests
333
- - Review your own code first with this assistant
334
- - Learn from the feedback to improve coding skills
335
- - Apply suggestions incrementally, testing after each change
336
-
337
- ### Best Practices | 最佳实践
338
-
339
- - Review small chunks of code (< 500 lines) for best results
340
- - Provide file context and surrounding code when relevant
341
- - Mention the programming language and framework
342
- - Specify coding standards or style guides to follow
343
- - Include test code for comprehensive review
@@ -1,258 +0,0 @@
1
- ---
2
- name: agent-browser
3
- description: Zero-config headless browser automation for AI agents
4
- version: 1.0.0
5
- author: Vercel Labs / CCJK
6
- category: automation
7
- triggers:
8
- - /browser
9
- - /web
10
- - /scrape
11
- - /test-ui
12
- use_when:
13
- - "User needs web automation or browser control"
14
- - "User wants to scrape or interact with websites"
15
- - "User needs UI testing or screenshot capture"
16
- - "User mentions browser, web page, or website interaction"
17
- auto_activate: true
18
- priority: 8
19
- difficulty: beginner
20
- tags:
21
- - browser
22
- - automation
23
- - web
24
- - zero-config
25
- - ai-native
26
- dependencies:
27
- - agent-browser
28
- ---
29
-
30
- # Agent Browser - Zero-Config Web Automation
31
-
32
- > **Philosophy**: AI-native, zero-config, ref-based interaction
33
-
34
- Headless browser automation designed specifically for AI agents. Fast Rust CLI with Node.js fallback.
35
-
36
- ## Quick Start
37
-
38
- ```bash
39
- # One-time setup (auto-detected, usually not needed)
40
- agent-browser install
41
-
42
- # Core workflow
43
- agent-browser open <url> # Navigate
44
- agent-browser snapshot -i # Get interactive elements with refs
45
- agent-browser click @e1 # Click by ref
46
- agent-browser fill @e2 "text" # Fill by ref
47
- agent-browser screenshot page.png # Capture
48
- agent-browser close # Done
49
- ```
50
-
51
- ## Why Agent Browser?
52
-
53
- | Feature | Agent Browser | Traditional MCP |
54
- |---------|--------------|-----------------|
55
- | Setup | Zero-config | Complex JSON config |
56
- | Speed | Native Rust | Node.js overhead |
57
- | AI-Native | Ref-based (@e1) | CSS selectors |
58
- | Memory | Minimal | Heavy daemon |
59
- | Learning | 5 minutes | Hours |
60
-
61
- ## Core Commands
62
-
63
- ### Navigation
64
- ```bash
65
- agent-browser open example.com # Open URL
66
- agent-browser back # Go back
67
- agent-browser forward # Go forward
68
- agent-browser reload # Reload page
69
- ```
70
-
71
- ### Snapshot (AI-Optimized)
72
- ```bash
73
- agent-browser snapshot # Full accessibility tree
74
- agent-browser snapshot -i # Interactive elements only (recommended)
75
- agent-browser snapshot -c # Compact mode
76
- agent-browser snapshot -d 3 # Limit depth
77
- agent-browser snapshot -i -c # Combine options
78
- ```
79
-
80
- **Output Example:**
81
- ```
82
- - heading "Example Domain" [ref=e1] [level=1]
83
- - button "Submit" [ref=e2]
84
- - textbox "Email" [ref=e3]
85
- - link "Learn more" [ref=e4]
86
- ```
87
-
88
- ### Interaction (Ref-Based)
89
- ```bash
90
- agent-browser click @e2 # Click element
91
- agent-browser fill @e3 "email@test.com" # Fill input
92
- agent-browser hover @e4 # Hover element
93
- agent-browser check @e5 # Check checkbox
94
- agent-browser select @e6 "option" # Select dropdown
95
- ```
96
-
97
- ### Get Information
98
- ```bash
99
- agent-browser get text @e1 # Get text content
100
- agent-browser get html @e1 # Get innerHTML
101
- agent-browser get value @e3 # Get input value
102
- agent-browser get title # Page title
103
- agent-browser get url # Current URL
104
- ```
105
-
106
- ### Screenshots & PDF
107
- ```bash
108
- agent-browser screenshot # Viewport screenshot
109
- agent-browser screenshot --full # Full page
110
- agent-browser screenshot page.png # Save to file
111
- agent-browser pdf report.pdf # Save as PDF
112
- ```
113
-
114
- ### Wait Operations
115
- ```bash
116
- agent-browser wait @e1 # Wait for element
117
- agent-browser wait 2000 # Wait 2 seconds
118
- agent-browser wait --text "Welcome" # Wait for text
119
- agent-browser wait --load networkidle # Wait for load
120
- ```
121
-
122
- ## Optimal AI Workflow
123
-
124
- ### Pattern 1: Simple Interaction
125
- ```bash
126
- agent-browser open example.com
127
- agent-browser snapshot -i --json # Parse refs
128
- agent-browser click @e2 # Execute action
129
- ```
130
-
131
- ### Pattern 2: Form Filling
132
- ```bash
133
- agent-browser open login.example.com
134
- agent-browser snapshot -i
135
- agent-browser fill @e1 "username"
136
- agent-browser fill @e2 "password"
137
- agent-browser click @e3 # Submit button
138
- agent-browser wait --text "Dashboard"
139
- agent-browser snapshot -i # Verify success
140
- ```
141
-
142
- ### Pattern 3: Data Extraction
143
- ```bash
144
- agent-browser open data.example.com
145
- agent-browser snapshot -i
146
- agent-browser get text @e1 # Extract specific data
147
- agent-browser screenshot data.png # Visual record
148
- ```
149
-
150
- ### Pattern 4: Multi-Page Flow
151
- ```bash
152
- agent-browser open shop.example.com
153
- agent-browser snapshot -i
154
- agent-browser click @e5 # Product link
155
- agent-browser wait --load networkidle
156
- agent-browser snapshot -i # New page refs
157
- agent-browser click @e2 # Add to cart
158
- ```
159
-
160
- ## Sessions (Parallel Browsers)
161
-
162
- ```bash
163
- # Run multiple isolated sessions
164
- agent-browser --session agent1 open site-a.com
165
- agent-browser --session agent2 open site-b.com
166
-
167
- # List sessions
168
- agent-browser session list
169
-
170
- # Each session has isolated:
171
- # - Cookies & storage
172
- # - Navigation history
173
- # - Authentication state
174
- ```
175
-
176
- ## Advanced Features
177
-
178
- ### Semantic Locators (Fallback)
179
- ```bash
180
- agent-browser find role button click --name "Submit"
181
- agent-browser find label "Email" fill "test@test.com"
182
- agent-browser find text "Sign In" click
183
- ```
184
-
185
- ### Network Control
186
- ```bash
187
- agent-browser network requests # View requests
188
- agent-browser network route "**/api" --abort # Block requests
189
- agent-browser set offline on # Offline mode
190
- ```
191
-
192
- ### Debug Mode
193
- ```bash
194
- agent-browser open example.com --headed # Show browser window
195
- agent-browser console # View console logs
196
- agent-browser errors # View page errors
197
- agent-browser highlight @e1 # Highlight element
198
- ```
199
-
200
- ## Integration Examples
201
-
202
- ### With Workflow Skill
203
- ```bash
204
- # In /workflow execution phase
205
- agent-browser open $TEST_URL
206
- agent-browser snapshot -i
207
- # AI analyzes snapshot, identifies test targets
208
- agent-browser click @e2
209
- agent-browser wait --text "Success"
210
- ```
211
-
212
- ### With TDD Skill
213
- ```bash
214
- # E2E test execution
215
- agent-browser open localhost:3000
216
- agent-browser snapshot -i
217
- agent-browser fill @e1 "test input"
218
- agent-browser click @e2
219
- agent-browser get text @e3 # Verify output
220
- ```
221
-
222
- ## Best Practices
223
-
224
- 1. **Always use `-i` flag** for snapshots (interactive elements only)
225
- 2. **Use refs (@e1)** instead of CSS selectors
226
- 3. **Re-snapshot after page changes** to get fresh refs
227
- 4. **Use `--json` flag** for programmatic parsing
228
- 5. **Combine with wait** for dynamic content
229
-
230
- ## Troubleshooting
231
-
232
- ```bash
233
- # Browser not installed
234
- agent-browser install
235
-
236
- # Linux dependencies
237
- agent-browser install --with-deps
238
-
239
- # Debug issues
240
- agent-browser open url --headed --debug
241
- ```
242
-
243
- ## Command Reference
244
-
245
- | Command | Description |
246
- |---------|-------------|
247
- | `open <url>` | Navigate to URL |
248
- | `snapshot [-i] [-c]` | Get accessibility tree |
249
- | `click @ref` | Click element |
250
- | `fill @ref "text"` | Fill input |
251
- | `get text @ref` | Get text content |
252
- | `screenshot [path]` | Take screenshot |
253
- | `wait <ref\|ms\|--text>` | Wait for condition |
254
- | `close` | Close browser |
255
-
256
- ---
257
-
258
- **Zero-Config. AI-Native. Just Works.**
@@ -1,64 +0,0 @@
1
- ---
2
- name: brainstorming
3
- description: Interactive design exploration and refinement
4
- version: 1.0.0
5
- author: CCJK
6
- category: planning
7
- triggers:
8
- - /brainstorm
9
- - /bs
10
- - /explore
11
- use_when:
12
- - "User wants to explore ideas"
13
- - "Starting new feature design"
14
- - "User mentions brainstorming or exploring options"
15
- - "Need to evaluate different approaches"
16
- auto_activate: true
17
- priority: 8
18
- difficulty: beginner
19
- tags:
20
- - design
21
- - exploration
22
- - ideation
23
- ---
24
-
25
- # Brainstorming
26
-
27
- ## Context
28
- $ARGUMENTS
29
-
30
- ## Instructions
31
-
32
- You are in brainstorming mode. Your goal is to help explore and refine ideas through interactive discussion.
33
-
34
- ### Process
35
-
36
- 1. **Understand the Goal**
37
- - What problem are we solving?
38
- - What constraints exist?
39
- - What does success look like?
40
-
41
- 2. **Generate Options**
42
- - Propose 3-5 different approaches
43
- - Consider trade-offs for each
44
- - Think about edge cases
45
-
46
- 3. **Evaluate Together**
47
- - Discuss pros and cons
48
- - Ask clarifying questions
49
- - Refine based on feedback
50
-
51
- 4. **Converge on Direction**
52
- - Summarize the chosen approach
53
- - Document key decisions
54
- - Identify next steps
55
-
56
- ### Output Format
57
-
58
- Present options as:
59
- - **Option A**: [Name] - [Brief description]
60
- - Pros: ...
61
- - Cons: ...
62
- - Best for: ...
63
-
64
- Ask questions to clarify requirements before finalizing.