claude-agent-framework 1.0.0
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.
- package/README.md +128 -0
- package/bin/claude-framework +3 -0
- package/framework/agents/design-lead.md +240 -0
- package/framework/agents/product-owner.md +179 -0
- package/framework/agents/tech-lead.md +226 -0
- package/framework/commands/ayuda.md +127 -0
- package/framework/commands/a/303/261adir.md +98 -0
- package/framework/commands/backup.md +397 -0
- package/framework/commands/cambiar.md +110 -0
- package/framework/commands/cloud.md +457 -0
- package/framework/commands/code.md +142 -0
- package/framework/commands/debug.md +334 -0
- package/framework/commands/deploy.md +383 -0
- package/framework/commands/deshacer.md +120 -0
- package/framework/commands/estado.md +218 -0
- package/framework/commands/explica.md +227 -0
- package/framework/commands/feature.md +120 -0
- package/framework/commands/git.md +427 -0
- package/framework/commands/historial.md +202 -0
- package/framework/commands/learn.md +408 -0
- package/framework/commands/movil.md +245 -0
- package/framework/commands/nuevo.md +118 -0
- package/framework/commands/plan.md +134 -0
- package/framework/commands/prd.md +113 -0
- package/framework/commands/probar.md +148 -0
- package/framework/commands/revisar.md +208 -0
- package/framework/commands/seeds.md +230 -0
- package/framework/commands/seguridad.md +226 -0
- package/framework/commands/tasks.md +157 -0
- package/framework/skills/architecture/algorithms.md +970 -0
- package/framework/skills/architecture/clean-code.md +1080 -0
- package/framework/skills/architecture/design-patterns.md +1984 -0
- package/framework/skills/architecture/functional-programming.md +972 -0
- package/framework/skills/architecture/solid.md +991 -0
- package/framework/skills/cloud/cloud-aws.md +848 -0
- package/framework/skills/cloud/cloud-azure.md +931 -0
- package/framework/skills/cloud/cloud-gcp.md +848 -0
- package/framework/skills/cloud/message-queues.md +1229 -0
- package/framework/skills/core/accessibility.md +401 -0
- package/framework/skills/core/api.md +474 -0
- package/framework/skills/core/authentication.md +306 -0
- package/framework/skills/core/authorization.md +388 -0
- package/framework/skills/core/background-jobs.md +341 -0
- package/framework/skills/core/caching.md +473 -0
- package/framework/skills/core/code-review.md +341 -0
- package/framework/skills/core/controllers.md +290 -0
- package/framework/skills/core/cua.md +285 -0
- package/framework/skills/core/documentation.md +472 -0
- package/framework/skills/core/file-uploads.md +351 -0
- package/framework/skills/core/hotwire-native.md +296 -0
- package/framework/skills/core/hotwire.md +278 -0
- package/framework/skills/core/i18n.md +334 -0
- package/framework/skills/core/imports-exports.md +750 -0
- package/framework/skills/core/infrastructure.md +337 -0
- package/framework/skills/core/models.md +228 -0
- package/framework/skills/core/notifications.md +672 -0
- package/framework/skills/core/payments.md +581 -0
- package/framework/skills/core/performance.md +361 -0
- package/framework/skills/core/rails-scaffold.md +131 -0
- package/framework/skills/core/search.md +518 -0
- package/framework/skills/core/security.md +565 -0
- package/framework/skills/core/seeds.md +307 -0
- package/framework/skills/core/seo.md +542 -0
- package/framework/skills/core/testing.md +393 -0
- package/framework/skills/core/views.md +260 -0
- package/framework/skills/core/websockets.md +564 -0
- package/framework/skills/data/advanced-sql.md +1204 -0
- package/framework/skills/data/nosql.md +1141 -0
- package/framework/skills/devops/containers-advanced.md +1237 -0
- package/framework/skills/devops/debugging.md +834 -0
- package/framework/skills/devops/git-workflow.md +752 -0
- package/framework/skills/devops/networking.md +932 -0
- package/framework/skills/devops/shell-scripting.md +1132 -0
- package/framework/sub-agents/architecture-patterns-agent.md +1450 -0
- package/framework/sub-agents/cloud-agent.md +677 -0
- package/framework/sub-agents/data.md +504 -0
- package/framework/sub-agents/debugging-agent.md +554 -0
- package/framework/sub-agents/devops.md +483 -0
- package/framework/sub-agents/docs.md +176 -0
- package/framework/sub-agents/frontend-dev.md +349 -0
- package/framework/sub-agents/git-workflow-agent.md +697 -0
- package/framework/sub-agents/integrations.md +630 -0
- package/framework/sub-agents/native-dev.md +434 -0
- package/framework/sub-agents/qa.md +138 -0
- package/framework/sub-agents/rails-dev.md +375 -0
- package/framework/sub-agents/security.md +526 -0
- package/framework/sub-agents/ui.md +437 -0
- package/framework/sub-agents/ux.md +284 -0
- package/framework/templates/api-spec.md +500 -0
- package/framework/templates/component-spec.md +248 -0
- package/framework/templates/feature.json +13 -0
- package/framework/templates/model-spec.md +318 -0
- package/framework/templates/prd-template.md +80 -0
- package/framework/templates/task-plan.md +122 -0
- package/framework/templates/task-user-story.md +52 -0
- package/framework/templates/technical-spec.md +260 -0
- package/framework/templates/user-story.md +95 -0
- package/package.json +42 -0
- package/project-templates/CLAUDE.md +42 -0
- package/project-templates/contexts/architecture.md +25 -0
- package/project-templates/contexts/conventions.md +46 -0
- package/project-templates/contexts/design-system.md +47 -0
- package/project-templates/contexts/requirements.md +38 -0
- package/project-templates/contexts/stack.md +30 -0
- package/project-templates/history/active/models.md +11 -0
- package/project-templates/history/changelog.md +15 -0
- package/project-templates/workspace/.gitkeep +0 -0
- package/src/cli.js +52 -0
- package/src/init.js +104 -0
- package/src/status.js +75 -0
- package/src/update.js +88 -0
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
# Skill: Computer Use Agent (CUA)
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
Test applications by navigating them as a real user would, using visual interaction with the browser.
|
|
5
|
+
|
|
6
|
+
## Overview
|
|
7
|
+
|
|
8
|
+
The Computer Use Agent (CUA) allows automated testing by:
|
|
9
|
+
- Taking screenshots of the application
|
|
10
|
+
- Clicking on elements visually
|
|
11
|
+
- Typing text into inputs
|
|
12
|
+
- Navigating through flows
|
|
13
|
+
- Validating visual output
|
|
14
|
+
|
|
15
|
+
## Testing Workflow
|
|
16
|
+
|
|
17
|
+
### 1. Start the Application
|
|
18
|
+
```bash
|
|
19
|
+
# Ensure the app is running
|
|
20
|
+
rails server -p 3000
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### 2. Navigate and Test
|
|
24
|
+
```markdown
|
|
25
|
+
## Test: User Registration Flow
|
|
26
|
+
|
|
27
|
+
1. Open browser to http://localhost:3000
|
|
28
|
+
2. Click "Sign Up" link
|
|
29
|
+
3. Fill in the registration form:
|
|
30
|
+
- Email: test@example.com
|
|
31
|
+
- Password: password123
|
|
32
|
+
- Confirm Password: password123
|
|
33
|
+
4. Click "Create Account" button
|
|
34
|
+
5. Verify success message appears
|
|
35
|
+
6. Verify redirect to dashboard
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### 3. Visual Verification
|
|
39
|
+
```markdown
|
|
40
|
+
## Verify: Article List Page
|
|
41
|
+
|
|
42
|
+
1. Navigate to /articles
|
|
43
|
+
2. Screenshot shows:
|
|
44
|
+
- Navigation bar at top
|
|
45
|
+
- List of article cards
|
|
46
|
+
- Each card has title, excerpt, author
|
|
47
|
+
- "New Article" button visible (if logged in)
|
|
48
|
+
3. Click on first article
|
|
49
|
+
4. Verify article detail page loads
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Test Scenarios
|
|
53
|
+
|
|
54
|
+
### Authentication Flow
|
|
55
|
+
```markdown
|
|
56
|
+
### Login Test
|
|
57
|
+
1. Go to /session/new
|
|
58
|
+
2. Enter email: user@example.com
|
|
59
|
+
3. Enter password: password123
|
|
60
|
+
4. Click "Sign In"
|
|
61
|
+
5. Verify: Dashboard page loads
|
|
62
|
+
6. Verify: User name appears in navigation
|
|
63
|
+
|
|
64
|
+
### Logout Test
|
|
65
|
+
1. Click user menu in navigation
|
|
66
|
+
2. Click "Sign Out"
|
|
67
|
+
3. Verify: Redirected to home page
|
|
68
|
+
4. Verify: "Sign In" link appears
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### CRUD Operations
|
|
72
|
+
```markdown
|
|
73
|
+
### Create Article
|
|
74
|
+
1. Navigate to /articles/new
|
|
75
|
+
2. Fill in:
|
|
76
|
+
- Title: "Test Article"
|
|
77
|
+
- Body: "This is test content"
|
|
78
|
+
3. Click "Create Article"
|
|
79
|
+
4. Verify: Success message
|
|
80
|
+
5. Verify: Article page shows entered content
|
|
81
|
+
|
|
82
|
+
### Edit Article
|
|
83
|
+
1. On article page, click "Edit"
|
|
84
|
+
2. Change title to "Updated Title"
|
|
85
|
+
3. Click "Update Article"
|
|
86
|
+
4. Verify: Title updated on page
|
|
87
|
+
|
|
88
|
+
### Delete Article
|
|
89
|
+
1. On article page, click "Delete"
|
|
90
|
+
2. Confirm deletion dialog
|
|
91
|
+
3. Verify: Redirected to articles list
|
|
92
|
+
4. Verify: Article no longer in list
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Form Validation
|
|
96
|
+
```markdown
|
|
97
|
+
### Required Field Validation
|
|
98
|
+
1. Go to /articles/new
|
|
99
|
+
2. Leave title empty
|
|
100
|
+
3. Click "Create Article"
|
|
101
|
+
4. Verify: Error message "Title can't be blank"
|
|
102
|
+
5. Verify: Form still shows entered content
|
|
103
|
+
|
|
104
|
+
### Email Format Validation
|
|
105
|
+
1. Go to /registration/new
|
|
106
|
+
2. Enter invalid email: "notanemail"
|
|
107
|
+
3. Submit form
|
|
108
|
+
4. Verify: Error message about email format
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Navigation Testing
|
|
112
|
+
```markdown
|
|
113
|
+
### Mobile Navigation
|
|
114
|
+
1. Resize window to 375px width
|
|
115
|
+
2. Verify: Hamburger menu icon visible
|
|
116
|
+
3. Click hamburger menu
|
|
117
|
+
4. Verify: Navigation menu slides in
|
|
118
|
+
5. Click "Articles"
|
|
119
|
+
6. Verify: Menu closes, navigates to articles
|
|
120
|
+
|
|
121
|
+
### Breadcrumb Navigation
|
|
122
|
+
1. Go to /articles/1
|
|
123
|
+
2. Verify: Breadcrumb shows "Home > Articles > Article Title"
|
|
124
|
+
3. Click "Articles" in breadcrumb
|
|
125
|
+
4. Verify: Navigates to articles list
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### Interactive Features
|
|
129
|
+
```markdown
|
|
130
|
+
### Turbo Frame Update
|
|
131
|
+
1. Go to /articles
|
|
132
|
+
2. Click "Edit" on inline-editable item
|
|
133
|
+
3. Verify: Form appears without page reload
|
|
134
|
+
4. Update content
|
|
135
|
+
5. Click "Save"
|
|
136
|
+
6. Verify: Content updates without page reload
|
|
137
|
+
|
|
138
|
+
### Real-time Updates
|
|
139
|
+
1. Open /articles in two browser tabs
|
|
140
|
+
2. In Tab 1, create new article
|
|
141
|
+
3. Verify: Article appears in Tab 2 automatically
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Accessibility Testing
|
|
145
|
+
```markdown
|
|
146
|
+
### Keyboard Navigation
|
|
147
|
+
1. Press Tab to move through interactive elements
|
|
148
|
+
2. Verify: Focus indicators visible
|
|
149
|
+
3. Press Enter on focused button
|
|
150
|
+
4. Verify: Action executes
|
|
151
|
+
|
|
152
|
+
### Screen Reader Check
|
|
153
|
+
1. Enable screen reader
|
|
154
|
+
2. Navigate through page
|
|
155
|
+
3. Verify: All content announced correctly
|
|
156
|
+
4. Verify: Form labels read properly
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
## Reporting Format
|
|
160
|
+
|
|
161
|
+
### Test Report Structure
|
|
162
|
+
```markdown
|
|
163
|
+
# Test Report: [Feature Name]
|
|
164
|
+
Date: YYYY-MM-DD
|
|
165
|
+
Tester: CUA
|
|
166
|
+
|
|
167
|
+
## Summary
|
|
168
|
+
- Total Tests: X
|
|
169
|
+
- Passed: X
|
|
170
|
+
- Failed: X
|
|
171
|
+
|
|
172
|
+
## Test Results
|
|
173
|
+
|
|
174
|
+
### ✅ Test 1: [Name]
|
|
175
|
+
- Steps completed successfully
|
|
176
|
+
- Expected behavior confirmed
|
|
177
|
+
|
|
178
|
+
### ❌ Test 2: [Name]
|
|
179
|
+
- **Failed at step**: [step number]
|
|
180
|
+
- **Expected**: [what should happen]
|
|
181
|
+
- **Actual**: [what happened]
|
|
182
|
+
- **Screenshot**: [description of visual state]
|
|
183
|
+
|
|
184
|
+
## Issues Found
|
|
185
|
+
1. [Issue description]
|
|
186
|
+
- Severity: High/Medium/Low
|
|
187
|
+
- Steps to reproduce
|
|
188
|
+
- Suggested fix
|
|
189
|
+
|
|
190
|
+
## Recommendations
|
|
191
|
+
- [Recommendation 1]
|
|
192
|
+
- [Recommendation 2]
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
## Common Test Patterns
|
|
196
|
+
|
|
197
|
+
### Login Before Tests
|
|
198
|
+
```markdown
|
|
199
|
+
## Setup: Authenticate User
|
|
200
|
+
1. Go to /session/new
|
|
201
|
+
2. Login as test user
|
|
202
|
+
3. Verify logged in state
|
|
203
|
+
4. Continue with tests...
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
### Data Setup
|
|
207
|
+
```markdown
|
|
208
|
+
## Setup: Create Test Data
|
|
209
|
+
1. Login as admin
|
|
210
|
+
2. Create test article via UI
|
|
211
|
+
3. Note the article ID
|
|
212
|
+
4. Proceed with tests using this data
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Cleanup
|
|
216
|
+
```markdown
|
|
217
|
+
## Cleanup: Remove Test Data
|
|
218
|
+
1. Navigate to created resources
|
|
219
|
+
2. Delete each test resource
|
|
220
|
+
3. Verify deletion
|
|
221
|
+
4. Logout
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
## Visual Checks
|
|
225
|
+
|
|
226
|
+
### Layout Verification
|
|
227
|
+
```markdown
|
|
228
|
+
## Check: Page Layout
|
|
229
|
+
- [ ] Header present and styled correctly
|
|
230
|
+
- [ ] Main content centered
|
|
231
|
+
- [ ] Footer at bottom
|
|
232
|
+
- [ ] No horizontal scroll
|
|
233
|
+
- [ ] Responsive at mobile widths
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### Style Verification
|
|
237
|
+
```markdown
|
|
238
|
+
## Check: Component Styling
|
|
239
|
+
- [ ] Buttons have correct colors
|
|
240
|
+
- [ ] Links are distinguishable
|
|
241
|
+
- [ ] Forms are aligned
|
|
242
|
+
- [ ] Error states are red
|
|
243
|
+
- [ ] Success states are green
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Content Verification
|
|
247
|
+
```markdown
|
|
248
|
+
## Check: Content Display
|
|
249
|
+
- [ ] Headings hierarchy correct
|
|
250
|
+
- [ ] Text readable (size, contrast)
|
|
251
|
+
- [ ] Images load and display
|
|
252
|
+
- [ ] No placeholder text visible
|
|
253
|
+
- [ ] Dates formatted correctly
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
## Error Handling Tests
|
|
257
|
+
|
|
258
|
+
### Network Errors
|
|
259
|
+
```markdown
|
|
260
|
+
### Offline Behavior
|
|
261
|
+
1. Go to /articles
|
|
262
|
+
2. Disable network
|
|
263
|
+
3. Try to create article
|
|
264
|
+
4. Verify: Appropriate error message shown
|
|
265
|
+
5. Re-enable network
|
|
266
|
+
6. Verify: App recovers gracefully
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
### Server Errors
|
|
270
|
+
```markdown
|
|
271
|
+
### 500 Error Page
|
|
272
|
+
1. Trigger server error (if testable)
|
|
273
|
+
2. Verify: Custom error page shows
|
|
274
|
+
3. Verify: User-friendly message
|
|
275
|
+
4. Verify: Navigation still works
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
## Best Practices
|
|
279
|
+
|
|
280
|
+
1. **Start fresh** - Clear session before each test suite
|
|
281
|
+
2. **Take screenshots** - Document visual state at key points
|
|
282
|
+
3. **Test mobile** - Always verify responsive behavior
|
|
283
|
+
4. **Check accessibility** - Use keyboard, verify focus
|
|
284
|
+
5. **Verify data** - Confirm changes persist correctly
|
|
285
|
+
6. **Test edge cases** - Empty states, long content, special characters
|