@defai.digital/automatosx 5.0.1
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/CHANGELOG.md +2877 -0
- package/CONTRIBUTING.md +357 -0
- package/FAQ.md +604 -0
- package/FIXES.md +277 -0
- package/LICENSE +190 -0
- package/README.md +603 -0
- package/REVIEW-REPORT.md +278 -0
- package/TROUBLESHOOTING.md +612 -0
- package/automatosx.config.json +219 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +11806 -0
- package/dist/index.js.map +1 -0
- package/docs/README.md +227 -0
- package/docs/guide/core-concepts.md +568 -0
- package/docs/guide/installation.md +406 -0
- package/docs/guide/introduction.md +199 -0
- package/docs/guide/quick-start.md +387 -0
- package/docs/index.md +132 -0
- package/docs/reference/cli-commands.md +894 -0
- package/docs/tutorials/first-agent.md +691 -0
- package/docs/tutorials/memory-management.md +785 -0
- package/examples/AGENTS_INFO.md +293 -0
- package/examples/README.md +434 -0
- package/examples/abilities/best-practices.md +102 -0
- package/examples/abilities/code-generation.md +1035 -0
- package/examples/abilities/code-review.md +42 -0
- package/examples/abilities/content-creation.md +97 -0
- package/examples/abilities/debugging.md +43 -0
- package/examples/abilities/documentation.md +54 -0
- package/examples/abilities/error-analysis.md +107 -0
- package/examples/abilities/general-assistance.md +26 -0
- package/examples/abilities/our-architecture-decisions.md +242 -0
- package/examples/abilities/our-code-review-checklist.md +217 -0
- package/examples/abilities/our-coding-standards.md +389 -0
- package/examples/abilities/our-project-structure.md +502 -0
- package/examples/abilities/performance-analysis.md +56 -0
- package/examples/abilities/problem-solving.md +50 -0
- package/examples/abilities/refactoring.md +49 -0
- package/examples/abilities/security-audit.md +65 -0
- package/examples/abilities/task-planning.md +65 -0
- package/examples/abilities/technical-writing.md +77 -0
- package/examples/abilities/testing.md +47 -0
- package/examples/abilities/troubleshooting.md +80 -0
- package/examples/agents/assistant.yaml +45 -0
- package/examples/agents/backend.yaml +60 -0
- package/examples/agents/ceo.yaml +47 -0
- package/examples/agents/coder.yaml +388 -0
- package/examples/agents/cto.yaml +47 -0
- package/examples/agents/data.yaml +47 -0
- package/examples/agents/debugger.yaml +59 -0
- package/examples/agents/design.yaml +46 -0
- package/examples/agents/devops.yaml +47 -0
- package/examples/agents/frontend.yaml +61 -0
- package/examples/agents/product.yaml +47 -0
- package/examples/agents/quality.yaml +47 -0
- package/examples/agents/reviewer.yaml +49 -0
- package/examples/agents/security.yaml +47 -0
- package/examples/agents/writer.yaml +66 -0
- package/examples/claude/commands/ax:agent.md +37 -0
- package/examples/claude/commands/ax:clear.md +22 -0
- package/examples/claude/commands/ax:init.md +25 -0
- package/examples/claude/commands/ax:list.md +19 -0
- package/examples/claude/commands/ax:memory.md +25 -0
- package/examples/claude/commands/ax:status.md +24 -0
- package/examples/claude/commands/ax:update.md +28 -0
- package/examples/claude/mcp/automatosx.json +74 -0
- package/examples/templates/analyst.yaml +60 -0
- package/examples/templates/basic-agent.yaml +28 -0
- package/examples/templates/designer.yaml +69 -0
- package/examples/templates/developer.yaml +60 -0
- package/examples/templates/qa-specialist.yaml +71 -0
- package/examples/use-cases/01-web-app-development.md +374 -0
- package/package.json +86 -0
- package/scripts/check-release.js +128 -0
- package/scripts/real-provider-test.sh +357 -0
- package/scripts/smoke-test.sh +286 -0
- package/tsup.config.ts +16 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Developer Agent Template
|
|
2
|
+
# Pre-configured for software development tasks
|
|
3
|
+
# Team: Engineering
|
|
4
|
+
# v5.0+
|
|
5
|
+
|
|
6
|
+
name: "{{AGENT_NAME}}"
|
|
7
|
+
displayName: "{{DISPLAY_NAME}}"
|
|
8
|
+
team: engineering
|
|
9
|
+
role: "{{ROLE | default: Software Developer}}"
|
|
10
|
+
description: "{{DESCRIPTION | default: Expert in software development, code review, and testing}}"
|
|
11
|
+
|
|
12
|
+
# Development abilities (engineering team shared abilities will be added automatically)
|
|
13
|
+
abilities:
|
|
14
|
+
- code-generation
|
|
15
|
+
- code-review
|
|
16
|
+
- debugging
|
|
17
|
+
- testing
|
|
18
|
+
# Add custom abilities here
|
|
19
|
+
|
|
20
|
+
# Configuration
|
|
21
|
+
temperature: 0.3 # Lower temperature for more deterministic code
|
|
22
|
+
maxTokens: 4000
|
|
23
|
+
|
|
24
|
+
# Orchestration
|
|
25
|
+
orchestration:
|
|
26
|
+
maxDelegationDepth: 2
|
|
27
|
+
canReadWorkspaces:
|
|
28
|
+
- frontend
|
|
29
|
+
- backend
|
|
30
|
+
- database
|
|
31
|
+
- devops
|
|
32
|
+
canWriteToShared: true
|
|
33
|
+
|
|
34
|
+
# System Prompt
|
|
35
|
+
systemPrompt: |
|
|
36
|
+
You are {{DISPLAY_NAME}}, a {{ROLE | default: Software Developer}}.
|
|
37
|
+
|
|
38
|
+
{{DESCRIPTION | default: You are an expert software developer with deep knowledge of programming languages, frameworks, and best practices.}}
|
|
39
|
+
|
|
40
|
+
Your expertise includes:
|
|
41
|
+
- Writing clean, maintainable, and efficient code
|
|
42
|
+
- Code review and suggesting improvements
|
|
43
|
+
- Test-driven development (TDD)
|
|
44
|
+
- Debugging and troubleshooting
|
|
45
|
+
- Following coding standards and best practices
|
|
46
|
+
|
|
47
|
+
## Multi-agent collaboration:
|
|
48
|
+
- Delegate UI/UX tasks to frontend specialists
|
|
49
|
+
- Delegate database design to data engineers
|
|
50
|
+
- Delegate infrastructure to devops engineers
|
|
51
|
+
- Delegate security audits to security specialists
|
|
52
|
+
|
|
53
|
+
## Approach:
|
|
54
|
+
1. Understand requirements thoroughly
|
|
55
|
+
2. Design before implementing
|
|
56
|
+
3. Write tests first (TDD when appropriate)
|
|
57
|
+
4. Implement with clean code principles
|
|
58
|
+
5. Review and refactor
|
|
59
|
+
|
|
60
|
+
Communication style: Technical, precise, and collaborative
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# QA Specialist Agent Template
|
|
2
|
+
# Pre-configured for quality assurance and testing
|
|
3
|
+
# Team: Core
|
|
4
|
+
# v5.0+
|
|
5
|
+
|
|
6
|
+
name: "{{AGENT_NAME}}"
|
|
7
|
+
displayName: "{{DISPLAY_NAME}}"
|
|
8
|
+
team: core
|
|
9
|
+
role: "{{ROLE | default: QA Specialist}}"
|
|
10
|
+
description: "{{DESCRIPTION | default: Expert in quality assurance, testing, and quality control}}"
|
|
11
|
+
|
|
12
|
+
# QA abilities (core team shared abilities will be added automatically)
|
|
13
|
+
abilities:
|
|
14
|
+
- test-planning
|
|
15
|
+
- test-automation
|
|
16
|
+
- quality-assurance
|
|
17
|
+
- bug-reporting
|
|
18
|
+
# Add custom abilities here
|
|
19
|
+
|
|
20
|
+
# Configuration
|
|
21
|
+
temperature: 0.2 # Very low temperature for consistent testing
|
|
22
|
+
maxTokens: 4000
|
|
23
|
+
|
|
24
|
+
# Orchestration
|
|
25
|
+
orchestration:
|
|
26
|
+
maxDelegationDepth: 2
|
|
27
|
+
canReadWorkspaces:
|
|
28
|
+
- frontend
|
|
29
|
+
- backend
|
|
30
|
+
- database
|
|
31
|
+
- devops
|
|
32
|
+
canWriteToShared: true
|
|
33
|
+
|
|
34
|
+
# System Prompt
|
|
35
|
+
systemPrompt: |
|
|
36
|
+
You are {{DISPLAY_NAME}}, a {{ROLE | default: QA Specialist}}.
|
|
37
|
+
|
|
38
|
+
{{DESCRIPTION | default: You are an expert QA specialist with comprehensive knowledge of testing methodologies, quality assurance processes, and test automation.}}
|
|
39
|
+
|
|
40
|
+
Your expertise includes:
|
|
41
|
+
- Test planning and strategy
|
|
42
|
+
- Test case design and execution
|
|
43
|
+
- Automated testing (unit, integration, E2E)
|
|
44
|
+
- Performance and load testing
|
|
45
|
+
- Security testing
|
|
46
|
+
- Regression testing
|
|
47
|
+
- Bug identification and reporting
|
|
48
|
+
- Quality metrics and reporting
|
|
49
|
+
|
|
50
|
+
## Testing principles:
|
|
51
|
+
- Thorough coverage (happy paths and edge cases)
|
|
52
|
+
- Early and continuous testing
|
|
53
|
+
- Risk-based testing prioritization
|
|
54
|
+
- Clear and reproducible bug reports
|
|
55
|
+
- Automation where beneficial
|
|
56
|
+
|
|
57
|
+
## Multi-agent collaboration:
|
|
58
|
+
- Work with developers on test automation
|
|
59
|
+
- Collaborate with product team on acceptance criteria
|
|
60
|
+
- Delegate security testing to security specialists
|
|
61
|
+
- Coordinate with devops on CI/CD testing
|
|
62
|
+
|
|
63
|
+
## Approach:
|
|
64
|
+
1. Understand requirements and acceptance criteria
|
|
65
|
+
2. Design comprehensive test plan
|
|
66
|
+
3. Create detailed test cases
|
|
67
|
+
4. Execute tests systematically
|
|
68
|
+
5. Document findings clearly
|
|
69
|
+
6. Verify fixes and prevent regressions
|
|
70
|
+
|
|
71
|
+
Communication style: Precise, detail-oriented, and quality-focused
|
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
# Use Case: Web Application Development
|
|
2
|
+
|
|
3
|
+
Complete workflow for building a web application with AutomatosX.
|
|
4
|
+
|
|
5
|
+
## Scenario
|
|
6
|
+
|
|
7
|
+
Building a task management web app with user authentication, CRUD operations, and real-time updates.
|
|
8
|
+
|
|
9
|
+
## Prerequisites
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# Initialize project
|
|
13
|
+
mkdir task-manager
|
|
14
|
+
cd task-manager
|
|
15
|
+
npm init -y
|
|
16
|
+
|
|
17
|
+
# Initialize AutomatosX
|
|
18
|
+
automatosx init
|
|
19
|
+
|
|
20
|
+
# Set up API keys
|
|
21
|
+
automatosx config --set providers.claude.apiKey --value "sk-ant-..."
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Step 1: Project Planning
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
automatosx chat assistant
|
|
28
|
+
|
|
29
|
+
> "I want to build a task management web app with:
|
|
30
|
+
- User authentication (JWT)
|
|
31
|
+
- Task CRUD operations
|
|
32
|
+
- Real-time updates (WebSocket)
|
|
33
|
+
- RESTful API (Express.js)
|
|
34
|
+
- React frontend
|
|
35
|
+
|
|
36
|
+
Please help me plan the architecture and tech stack."
|
|
37
|
+
|
|
38
|
+
# Agent will suggest:
|
|
39
|
+
# - Project structure
|
|
40
|
+
# - Technology choices
|
|
41
|
+
# - API design
|
|
42
|
+
# - Database schema
|
|
43
|
+
# - Security considerations
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Step 2: Backend Setup
|
|
47
|
+
|
|
48
|
+
### Generate Express.js Server
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
automatosx run coder "Create an Express.js server with:
|
|
52
|
+
- TypeScript configuration
|
|
53
|
+
- Basic middleware (cors, helmet, morgan)
|
|
54
|
+
- Error handling
|
|
55
|
+
- Environment variables setup"
|
|
56
|
+
|
|
57
|
+
# Creates:
|
|
58
|
+
# - src/server.ts
|
|
59
|
+
# - src/config/env.ts
|
|
60
|
+
# - src/middleware/errorHandler.ts
|
|
61
|
+
# - tsconfig.json
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Database Schema
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
automatosx run coder "Create Prisma schema for:
|
|
68
|
+
- User model (id, email, password, name, createdAt)
|
|
69
|
+
- Task model (id, title, description, status, userId, createdAt, updatedAt)
|
|
70
|
+
- Relationships between User and Tasks"
|
|
71
|
+
|
|
72
|
+
# Creates:
|
|
73
|
+
# - prisma/schema.prisma
|
|
74
|
+
# - Migration files
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Authentication System
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
automatosx run coder "Implement JWT authentication with:
|
|
81
|
+
- User registration endpoint
|
|
82
|
+
- Login endpoint
|
|
83
|
+
- Password hashing with bcrypt
|
|
84
|
+
- JWT token generation
|
|
85
|
+
- Auth middleware for protected routes"
|
|
86
|
+
|
|
87
|
+
# Creates:
|
|
88
|
+
# - src/controllers/auth.controller.ts
|
|
89
|
+
# - src/middleware/auth.middleware.ts
|
|
90
|
+
# - src/utils/jwt.ts
|
|
91
|
+
# - src/routes/auth.routes.ts
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Step 3: API Development
|
|
95
|
+
|
|
96
|
+
### Task CRUD Operations
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
automatosx run coder "Create RESTful API for tasks:
|
|
100
|
+
- GET /api/tasks - List user's tasks
|
|
101
|
+
- GET /api/tasks/:id - Get single task
|
|
102
|
+
- POST /api/tasks - Create task
|
|
103
|
+
- PUT /api/tasks/:id - Update task
|
|
104
|
+
- DELETE /api/tasks/:id - Delete task
|
|
105
|
+
|
|
106
|
+
Include:
|
|
107
|
+
- Request validation
|
|
108
|
+
- Error handling
|
|
109
|
+
- Pagination for list endpoint"
|
|
110
|
+
|
|
111
|
+
# Creates:
|
|
112
|
+
# - src/controllers/tasks.controller.ts
|
|
113
|
+
# - src/routes/tasks.routes.ts
|
|
114
|
+
# - src/validators/task.validator.ts
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Step 4: Code Review
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
# Review authentication logic
|
|
121
|
+
automatosx run reviewer "Review src/controllers/auth.controller.ts for:
|
|
122
|
+
- Security vulnerabilities
|
|
123
|
+
- Error handling
|
|
124
|
+
- Best practices"
|
|
125
|
+
|
|
126
|
+
# Review API endpoints
|
|
127
|
+
automatosx run reviewer "Review src/routes/ directory for:
|
|
128
|
+
- RESTful design
|
|
129
|
+
- Validation
|
|
130
|
+
- Error responses"
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## Step 5: Testing
|
|
134
|
+
|
|
135
|
+
### Unit Tests
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
automatosx run coder "Create unit tests for authentication controller using Jest:
|
|
139
|
+
- Test user registration with valid data
|
|
140
|
+
- Test registration with existing email
|
|
141
|
+
- Test login with valid credentials
|
|
142
|
+
- Test login with invalid credentials
|
|
143
|
+
- Test JWT token generation"
|
|
144
|
+
|
|
145
|
+
# Creates:
|
|
146
|
+
# - src/controllers/__tests__/auth.controller.test.ts
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Integration Tests
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
automatosx run coder "Create integration tests for task API:
|
|
153
|
+
- Test creating task (authenticated)
|
|
154
|
+
- Test listing tasks (authenticated)
|
|
155
|
+
- Test updating task (owner only)
|
|
156
|
+
- Test deleting task (owner only)
|
|
157
|
+
- Test 401 for unauthenticated requests"
|
|
158
|
+
|
|
159
|
+
# Creates:
|
|
160
|
+
# - src/routes/__tests__/tasks.routes.test.ts
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## Step 6: Frontend Development
|
|
164
|
+
|
|
165
|
+
### React Components
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
automatosx run coder "Create React components for task management:
|
|
169
|
+
- TaskList component with pagination
|
|
170
|
+
- TaskItem component with edit/delete actions
|
|
171
|
+
- TaskForm component for create/edit
|
|
172
|
+
- Include TypeScript types
|
|
173
|
+
- Use React hooks (useState, useEffect)"
|
|
174
|
+
|
|
175
|
+
# Creates:
|
|
176
|
+
# - src/components/TaskList.tsx
|
|
177
|
+
# - src/components/TaskItem.tsx
|
|
178
|
+
# - src/components/TaskForm.tsx
|
|
179
|
+
# - src/types/task.ts
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### Authentication UI
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
automatosx run coder "Create authentication components:
|
|
186
|
+
- LoginForm with email/password validation
|
|
187
|
+
- RegisterForm with password confirmation
|
|
188
|
+
- Protected route wrapper
|
|
189
|
+
- Auth context for global state"
|
|
190
|
+
|
|
191
|
+
# Creates:
|
|
192
|
+
# - src/components/auth/LoginForm.tsx
|
|
193
|
+
# - src/components/auth/RegisterForm.tsx
|
|
194
|
+
# - src/contexts/AuthContext.tsx
|
|
195
|
+
# - src/components/ProtectedRoute.tsx
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
## Step 7: WebSocket Integration
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
automatosx run coder "Add WebSocket support for real-time task updates:
|
|
202
|
+
- Socket.io server setup
|
|
203
|
+
- Emit events on task create/update/delete
|
|
204
|
+
- Client-side socket connection
|
|
205
|
+
- Auto-update UI on socket events"
|
|
206
|
+
|
|
207
|
+
# Creates:
|
|
208
|
+
# - src/socket/server.ts
|
|
209
|
+
# - src/socket/client.ts
|
|
210
|
+
# - Event handlers
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
## Step 8: Documentation
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
# API Documentation
|
|
217
|
+
automatosx run writer "Create API documentation for all endpoints:
|
|
218
|
+
- Authentication endpoints
|
|
219
|
+
- Task endpoints
|
|
220
|
+
- Request/response examples
|
|
221
|
+
- Error codes
|
|
222
|
+
- Use OpenAPI/Swagger format"
|
|
223
|
+
|
|
224
|
+
# Creates:
|
|
225
|
+
# - docs/api.md
|
|
226
|
+
# - swagger.yaml
|
|
227
|
+
|
|
228
|
+
# Setup Guide
|
|
229
|
+
automatosx run writer "Create development setup guide including:
|
|
230
|
+
- Prerequisites
|
|
231
|
+
- Installation steps
|
|
232
|
+
- Environment variables
|
|
233
|
+
- Database setup
|
|
234
|
+
- Running the app
|
|
235
|
+
- Running tests"
|
|
236
|
+
|
|
237
|
+
# Creates:
|
|
238
|
+
# - docs/setup.md
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
## Step 9: Debugging
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
# If you encounter errors:
|
|
245
|
+
automatosx run debugger "I'm getting this error when creating a task:
|
|
246
|
+
Error: Cannot read property 'userId' of undefined
|
|
247
|
+
at createTask (src/controllers/tasks.controller.ts:45)"
|
|
248
|
+
|
|
249
|
+
# Agent will:
|
|
250
|
+
# - Analyze the error
|
|
251
|
+
# - Identify the root cause
|
|
252
|
+
# - Suggest fixes
|
|
253
|
+
# - Provide code corrections
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
## Step 10: Deployment Preparation
|
|
257
|
+
|
|
258
|
+
```bash
|
|
259
|
+
# Environment Configuration
|
|
260
|
+
automatosx run coder "Create production-ready configuration:
|
|
261
|
+
- Separate dev/prod configs
|
|
262
|
+
- Docker Compose setup
|
|
263
|
+
- Environment variables validation
|
|
264
|
+
- Health check endpoint
|
|
265
|
+
- Graceful shutdown"
|
|
266
|
+
|
|
267
|
+
# Creates:
|
|
268
|
+
# - docker-compose.yml
|
|
269
|
+
# - Dockerfile
|
|
270
|
+
# - .env.example
|
|
271
|
+
# - src/health.ts
|
|
272
|
+
|
|
273
|
+
# Deployment Guide
|
|
274
|
+
automatosx run writer "Create deployment guide for:
|
|
275
|
+
- Docker deployment
|
|
276
|
+
- Environment setup
|
|
277
|
+
- Database migrations
|
|
278
|
+
- SSL/TLS configuration
|
|
279
|
+
- Monitoring and logging"
|
|
280
|
+
|
|
281
|
+
# Creates:
|
|
282
|
+
# - docs/deployment.md
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
## Complete Project Structure
|
|
286
|
+
|
|
287
|
+
After following this workflow, you'll have:
|
|
288
|
+
|
|
289
|
+
```
|
|
290
|
+
task-manager/
|
|
291
|
+
├── src/
|
|
292
|
+
│ ├── server.ts
|
|
293
|
+
│ ├── config/
|
|
294
|
+
│ ├── controllers/
|
|
295
|
+
│ ├── middleware/
|
|
296
|
+
│ ├── routes/
|
|
297
|
+
│ ├── validators/
|
|
298
|
+
│ ├── socket/
|
|
299
|
+
│ ├── components/
|
|
300
|
+
│ └── types/
|
|
301
|
+
├── prisma/
|
|
302
|
+
│ └── schema.prisma
|
|
303
|
+
├── docs/
|
|
304
|
+
│ ├── api.md
|
|
305
|
+
│ ├── setup.md
|
|
306
|
+
│ └── deployment.md
|
|
307
|
+
├── tests/
|
|
308
|
+
├── docker-compose.yml
|
|
309
|
+
├── Dockerfile
|
|
310
|
+
└── package.json
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
## Tips for Success
|
|
314
|
+
|
|
315
|
+
1. **Start with Planning**: Always use assistant/chat mode to plan before coding
|
|
316
|
+
2. **Incremental Development**: Build one feature at a time, test, then move on
|
|
317
|
+
3. **Regular Reviews**: Review code after each major component
|
|
318
|
+
4. **Documentation First**: Document as you build, not after
|
|
319
|
+
5. **Use Memory**: AutomatosX remembers context across sessions
|
|
320
|
+
6. **Iterate**: Don't expect perfect code first time, refine iteratively
|
|
321
|
+
|
|
322
|
+
## Common Issues
|
|
323
|
+
|
|
324
|
+
### Agent Gives Generic Code
|
|
325
|
+
|
|
326
|
+
**Problem**: Generated code is too generic
|
|
327
|
+
**Solution**: Provide more context and specific requirements
|
|
328
|
+
|
|
329
|
+
```bash
|
|
330
|
+
# Instead of:
|
|
331
|
+
automatosx run coder "Create user model"
|
|
332
|
+
|
|
333
|
+
# Do this:
|
|
334
|
+
automatosx run coder "Create Prisma User model with:
|
|
335
|
+
- UUID primary key
|
|
336
|
+
- Email (unique, validated)
|
|
337
|
+
- Password (hashed with bcrypt, min 8 chars)
|
|
338
|
+
- Name (required)
|
|
339
|
+
- Role (enum: user, admin)
|
|
340
|
+
- CreatedAt, UpdatedAt timestamps
|
|
341
|
+
- Soft delete support"
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
### Code Doesn't Match Project Style
|
|
345
|
+
|
|
346
|
+
**Problem**: Generated code doesn't follow your conventions
|
|
347
|
+
**Solution**: Create a custom agent with style guidelines
|
|
348
|
+
|
|
349
|
+
```yaml
|
|
350
|
+
# .automatosx/agents/project-coder.yaml
|
|
351
|
+
name: project-coder
|
|
352
|
+
systemPrompt: |
|
|
353
|
+
You are a code generator for this specific project.
|
|
354
|
+
|
|
355
|
+
Code Style:
|
|
356
|
+
- Use functional components (React)
|
|
357
|
+
- Async/await (no promises)
|
|
358
|
+
- Named exports (no default)
|
|
359
|
+
- 2 spaces indentation
|
|
360
|
+
- Single quotes
|
|
361
|
+
- Trailing commas
|
|
362
|
+
|
|
363
|
+
Follow these patterns exactly when generating code.
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
## Next Steps
|
|
367
|
+
|
|
368
|
+
- Explore [API Design Use Case](./02-api-design.md)
|
|
369
|
+
- Learn about [Code Migration](./03-code-migration.md)
|
|
370
|
+
- See [Security Audit Workflow](./04-security-audit.md)
|
|
371
|
+
|
|
372
|
+
---
|
|
373
|
+
|
|
374
|
+
**Questions?** Ask in [GitHub Discussions](https://github.com/defai-digital/automatosx/discussions)
|
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@defai.digital/automatosx",
|
|
3
|
+
"version": "5.0.1",
|
|
4
|
+
"description": "AI Agent Orchestration Platform",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"automatosx": "./dist/index.js",
|
|
8
|
+
"ax": "./dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=20.0.0"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "tsup",
|
|
15
|
+
"dev": "tsx src/cli/index.ts",
|
|
16
|
+
"test": "npm run test:unit && npm run test:integration",
|
|
17
|
+
"test:unit": "vitest run tests/unit",
|
|
18
|
+
"test:integration": "vitest run tests/integration",
|
|
19
|
+
"test:all": "vitest run",
|
|
20
|
+
"test:coverage": "vitest run --coverage",
|
|
21
|
+
"test:watch": "vitest watch",
|
|
22
|
+
"typecheck": "tsc --noEmit",
|
|
23
|
+
"prepublishOnly": "npm run typecheck && npm run test:all && npm run build",
|
|
24
|
+
"prepack": "npm run build",
|
|
25
|
+
"postpack": "echo '✅ Package created successfully'",
|
|
26
|
+
"version:patch": "npm version patch -m 'chore: bump version to %s'",
|
|
27
|
+
"version:minor": "npm version minor -m 'chore: bump version to %s'",
|
|
28
|
+
"version:major": "npm version major -m 'chore: bump version to %s'",
|
|
29
|
+
"version:beta": "npm version prerelease --preid=beta -m 'chore: bump version to %s'",
|
|
30
|
+
"release:check": "node scripts/check-release.js",
|
|
31
|
+
"prototype:path": "tsx tmp/phase0-prototypes/03-path-resolution-poc.ts",
|
|
32
|
+
"prototype:sqlite": "tsx tmp/phase0-prototypes/01-sqlite-vec-poc.ts",
|
|
33
|
+
"prototype:ts": "tsx tmp/phase0-prototypes/02-typescript-migration-poc.ts",
|
|
34
|
+
"prototype:provider": "tsx tmp/phase0-prototypes/04-provider-abstraction-poc.ts"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@types/better-sqlite3": "^7.6.13",
|
|
38
|
+
"@types/js-yaml": "^4.0.9",
|
|
39
|
+
"@types/node": "^20.10.0",
|
|
40
|
+
"@types/yargs": "^17.0.33",
|
|
41
|
+
"@vitest/coverage-v8": "^2.1.9",
|
|
42
|
+
"markdownlint-cli": "^0.45.0",
|
|
43
|
+
"tsup": "^8.0.0",
|
|
44
|
+
"tsx": "^4.7.0",
|
|
45
|
+
"typescript": "^5.3.0",
|
|
46
|
+
"vitest": "^2.1.9"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"better-sqlite3": "^12.4.1",
|
|
50
|
+
"boxen": "^8.0.1",
|
|
51
|
+
"chalk": "^5.6.2",
|
|
52
|
+
"cli-table3": "^0.6.5",
|
|
53
|
+
"find-up": "^7.0.0",
|
|
54
|
+
"js-yaml": "^4.1.0",
|
|
55
|
+
"ora": "^9.0.0",
|
|
56
|
+
"sqlite-vec": "^0.1.7-alpha.2",
|
|
57
|
+
"yargs": "^17.7.2"
|
|
58
|
+
},
|
|
59
|
+
"keywords": [
|
|
60
|
+
"ai",
|
|
61
|
+
"agent",
|
|
62
|
+
"orchestration",
|
|
63
|
+
"automation",
|
|
64
|
+
"llm",
|
|
65
|
+
"claude",
|
|
66
|
+
"gemini",
|
|
67
|
+
"openai",
|
|
68
|
+
"vector-search",
|
|
69
|
+
"sqlite",
|
|
70
|
+
"typescript",
|
|
71
|
+
"ai-agents"
|
|
72
|
+
],
|
|
73
|
+
"author": "AutomatosX Team",
|
|
74
|
+
"license": "Apache-2.0",
|
|
75
|
+
"repository": {
|
|
76
|
+
"type": "git",
|
|
77
|
+
"url": "https://github.com/defai-digital/automatosx.git"
|
|
78
|
+
},
|
|
79
|
+
"bugs": {
|
|
80
|
+
"url": "https://github.com/defai-digital/automatosx/issues"
|
|
81
|
+
},
|
|
82
|
+
"homepage": "https://automatosx.com",
|
|
83
|
+
"overrides": {
|
|
84
|
+
"esbuild": "^0.25.0"
|
|
85
|
+
}
|
|
86
|
+
}
|