@defai.digital/automatosx 12.8.7 → 13.1.3
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/LICENSE +1 -1
- package/README.md +48 -754
- package/dist/bin.d.ts +8 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +16 -0
- package/dist/bin.js.map +1 -0
- package/dist/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -74239
- package/dist/index.js.map +1 -0
- package/package.json +35 -160
- package/.github/assets/ax-cli.png +0 -0
- package/.github/assets/axlogo.png +0 -0
- package/CHANGELOG.md +0 -81
- package/SECURITY.md +0 -173
- package/dist/mcp/index.d.ts +0 -2
- package/dist/mcp/index.js +0 -43627
- package/examples/AGENTS_INFO.md +0 -187
- package/examples/README.md +0 -434
- package/examples/abilities/accessibility.md +0 -115
- package/examples/abilities/api-design.md +0 -168
- package/examples/abilities/best-practices.md +0 -102
- package/examples/abilities/caching-strategy.md +0 -165
- package/examples/abilities/ci-cd.md +0 -61
- package/examples/abilities/clean-code.md +0 -398
- package/examples/abilities/code-generation.md +0 -333
- package/examples/abilities/code-review.md +0 -51
- package/examples/abilities/component-architecture.md +0 -112
- package/examples/abilities/content-creation.md +0 -97
- package/examples/abilities/data-modeling.md +0 -171
- package/examples/abilities/data-validation.md +0 -50
- package/examples/abilities/db-modeling.md +0 -167
- package/examples/abilities/debugging.md +0 -52
- package/examples/abilities/design-patterns.md +0 -437
- package/examples/abilities/design-system-implementation.md +0 -126
- package/examples/abilities/documentation.md +0 -54
- package/examples/abilities/etl-pipelines.md +0 -44
- package/examples/abilities/feasibility-study.md +0 -20
- package/examples/abilities/general-assistance.md +0 -26
- package/examples/abilities/idea-evaluation.md +0 -21
- package/examples/abilities/infra-as-code.md +0 -57
- package/examples/abilities/job-orchestration.md +0 -44
- package/examples/abilities/literature-review.md +0 -19
- package/examples/abilities/longform-report.md +0 -25
- package/examples/abilities/mathematical-reasoning.md +0 -170
- package/examples/abilities/observability.md +0 -61
- package/examples/abilities/orbital-mechanics.md +0 -50
- package/examples/abilities/our-architecture-decisions.md +0 -180
- package/examples/abilities/our-code-review-checklist.md +0 -149
- package/examples/abilities/our-coding-standards.md +0 -369
- package/examples/abilities/our-project-structure.md +0 -183
- package/examples/abilities/performance.md +0 -89
- package/examples/abilities/problem-solving.md +0 -50
- package/examples/abilities/propulsion-systems.md +0 -50
- package/examples/abilities/quantum-algorithm-design.md +0 -54
- package/examples/abilities/quantum-error-correction.md +0 -56
- package/examples/abilities/quantum-frameworks-transpilation.md +0 -53
- package/examples/abilities/quantum-noise-modeling.md +0 -58
- package/examples/abilities/refactoring.md +0 -223
- package/examples/abilities/release-strategy.md +0 -58
- package/examples/abilities/secrets-policy.md +0 -61
- package/examples/abilities/secure-coding-review.md +0 -60
- package/examples/abilities/software-architecture.md +0 -394
- package/examples/abilities/solid-principles.md +0 -341
- package/examples/abilities/sql-optimization.md +0 -84
- package/examples/abilities/state-management.md +0 -96
- package/examples/abilities/task-planning.md +0 -65
- package/examples/abilities/technical-writing.md +0 -77
- package/examples/abilities/telemetry-diagnostics.md +0 -51
- package/examples/abilities/testing.md +0 -56
- package/examples/abilities/threat-modeling.md +0 -58
- package/examples/abilities/troubleshooting.md +0 -80
- package/examples/abilities/typescript-zod-validation.md +0 -830
- package/examples/agents/AGENTS_INTEGRATION.md +0 -99
- package/examples/agents/aerospace-scientist.yaml +0 -159
- package/examples/agents/architecture.yaml +0 -244
- package/examples/agents/automatosx.config.json +0 -286
- package/examples/agents/backend.yaml +0 -141
- package/examples/agents/ceo.yaml +0 -105
- package/examples/agents/creative-marketer.yaml +0 -173
- package/examples/agents/cto.yaml +0 -118
- package/examples/agents/data-scientist.yaml +0 -200
- package/examples/agents/data.yaml +0 -106
- package/examples/agents/design.yaml +0 -115
- package/examples/agents/devops.yaml +0 -124
- package/examples/agents/frontend.yaml +0 -171
- package/examples/agents/fullstack.yaml +0 -172
- package/examples/agents/mobile.yaml +0 -185
- package/examples/agents/product.yaml +0 -103
- package/examples/agents/quality.yaml +0 -117
- package/examples/agents/quantum-engineer.yaml +0 -166
- package/examples/agents/researcher.yaml +0 -122
- package/examples/agents/security.yaml +0 -115
- package/examples/agents/standard.yaml +0 -214
- package/examples/agents/writer.yaml +0 -122
- package/examples/providers/README.md +0 -117
- package/examples/providers/claude/CLAUDE_INTEGRATION.md +0 -302
- package/examples/providers/claude/mcp/automatosx.json +0 -244
- package/examples/providers/codex/CODEX_INTEGRATION.md +0 -593
- package/examples/providers/codex/README.md +0 -349
- package/examples/providers/codex/usage-examples.ts +0 -421
- package/examples/providers/gemini/GEMINI_INTEGRATION.md +0 -236
- package/examples/providers/gemini/README.md +0 -76
- package/examples/providers/openai-codex-example.ts +0 -421
- package/examples/pytorch_resnet50_training.py +0 -289
- package/examples/specs/automatosx-release.ax.yaml +0 -380
- package/examples/specs/enterprise.ax.yaml +0 -121
- package/examples/specs/enterprise.yaml.mustache +0 -121
- package/examples/specs/government.ax.yaml +0 -148
- package/examples/specs/government.yaml.mustache +0 -148
- package/examples/specs/minimal.ax.yaml +0 -21
- package/examples/specs/minimal.yaml.mustache +0 -21
- package/examples/teams/business.yaml +0 -56
- package/examples/teams/core.yaml +0 -60
- package/examples/teams/design.yaml +0 -58
- package/examples/teams/engineering.yaml +0 -69
- package/examples/teams/research.yaml +0 -56
- package/examples/use-cases/01-web-app-development.md +0 -374
- package/examples/workflows/analyst.yaml +0 -60
- package/examples/workflows/assistant.yaml +0 -48
- package/examples/workflows/basic-agent.yaml +0 -28
- package/examples/workflows/code-reviewer.yaml +0 -52
- package/examples/workflows/debugger.yaml +0 -63
- package/examples/workflows/designer.yaml +0 -69
- package/examples/workflows/developer.yaml +0 -60
- package/examples/workflows/fullstack-developer.yaml +0 -395
- package/examples/workflows/qa-specialist.yaml +0 -71
- package/schema/ability-metadata.json +0 -21
- package/schema/config.json +0 -703
- package/schema/spec-schema.json +0 -608
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# Design Team Configuration
|
|
2
|
-
# UX/UI design and technical writing
|
|
3
|
-
|
|
4
|
-
name: design
|
|
5
|
-
displayName: "Design Team"
|
|
6
|
-
description: "UX/UI design and technical writing"
|
|
7
|
-
|
|
8
|
-
# Provider Configuration
|
|
9
|
-
provider:
|
|
10
|
-
primary: gemini
|
|
11
|
-
fallback: claude
|
|
12
|
-
fallbackChain:
|
|
13
|
-
- gemini
|
|
14
|
-
- claude
|
|
15
|
-
- codex
|
|
16
|
-
|
|
17
|
-
# Shared Abilities
|
|
18
|
-
sharedAbilities:
|
|
19
|
-
- design-principles
|
|
20
|
-
- documentation
|
|
21
|
-
- user-research
|
|
22
|
-
|
|
23
|
-
# Team Capabilities (v4.11.0 - Self-assessment for intelligent delegation)
|
|
24
|
-
capabilities:
|
|
25
|
-
canDo:
|
|
26
|
-
- UX/UI design and prototyping
|
|
27
|
-
- User research and testing
|
|
28
|
-
- Visual design and branding
|
|
29
|
-
- Technical writing and documentation
|
|
30
|
-
- README and user guide writing
|
|
31
|
-
- Content creation and editing
|
|
32
|
-
- Documentation quality assessment
|
|
33
|
-
- Design system development
|
|
34
|
-
- Accessibility and usability review
|
|
35
|
-
|
|
36
|
-
shouldDelegate:
|
|
37
|
-
- Code implementation → coder (engineering team)
|
|
38
|
-
- Backend development → backend (engineering team)
|
|
39
|
-
- Frontend implementation → frontend (engineering team)
|
|
40
|
-
- Security audits → security (core team)
|
|
41
|
-
- Testing automation → quality (core team)
|
|
42
|
-
- Product strategy → product (design team)
|
|
43
|
-
|
|
44
|
-
# Orchestration Defaults
|
|
45
|
-
orchestration:
|
|
46
|
-
maxDelegationDepth: 2 # v4.11.0: Enforced limit
|
|
47
|
-
canWriteToShared: true
|
|
48
|
-
canReadWorkspaces:
|
|
49
|
-
- design
|
|
50
|
-
- writer
|
|
51
|
-
- product
|
|
52
|
-
|
|
53
|
-
# Metadata
|
|
54
|
-
metadata:
|
|
55
|
-
color: "#EC4899"
|
|
56
|
-
icon: "🎨"
|
|
57
|
-
priority: 4
|
|
58
|
-
version: "1.0.0"
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
# Engineering Team Configuration
|
|
2
|
-
# Software engineers, data engineers, and infrastructure specialists
|
|
3
|
-
|
|
4
|
-
name: engineering
|
|
5
|
-
displayName: "Engineering Team"
|
|
6
|
-
description: "Software engineers, data engineers, and infrastructure specialists"
|
|
7
|
-
|
|
8
|
-
# Provider Configuration
|
|
9
|
-
provider:
|
|
10
|
-
primary: codex
|
|
11
|
-
fallback: gemini
|
|
12
|
-
fallbackChain:
|
|
13
|
-
- codex
|
|
14
|
-
- gemini
|
|
15
|
-
- claude
|
|
16
|
-
|
|
17
|
-
# Shared Abilities (all team members inherit these)
|
|
18
|
-
sharedAbilities:
|
|
19
|
-
- our-coding-standards
|
|
20
|
-
- our-project-structure
|
|
21
|
-
- our-architecture-decisions
|
|
22
|
-
- code-generation
|
|
23
|
-
- refactoring
|
|
24
|
-
- testing
|
|
25
|
-
|
|
26
|
-
# Team Capabilities (v4.11.0 - Self-assessment for intelligent delegation)
|
|
27
|
-
capabilities:
|
|
28
|
-
canDo:
|
|
29
|
-
- Code implementation (TypeScript, Python, Go, Rust, etc.)
|
|
30
|
-
- Test-driven development (TDD)
|
|
31
|
-
- API design and implementation
|
|
32
|
-
- Bug fixing and debugging
|
|
33
|
-
- Performance optimization
|
|
34
|
-
- Architecture design
|
|
35
|
-
- Code refactoring
|
|
36
|
-
- Database design and optimization
|
|
37
|
-
- Infrastructure and DevOps automation
|
|
38
|
-
- CI/CD pipeline management
|
|
39
|
-
|
|
40
|
-
shouldDelegate:
|
|
41
|
-
- Documentation writing and review → writer (design team)
|
|
42
|
-
- User-facing content creation → writer (design team)
|
|
43
|
-
- README quality assessment → writer (design team)
|
|
44
|
-
- Product strategy and planning → product (design team)
|
|
45
|
-
- Business analysis → ceo (business team)
|
|
46
|
-
- Security audits (when specialized review needed) → security (core team)
|
|
47
|
-
- QA strategy and testing (when specialized review needed) → quality (core team)
|
|
48
|
-
- Code review (when independent review needed) → reviewer (core team)
|
|
49
|
-
|
|
50
|
-
# Orchestration Defaults
|
|
51
|
-
orchestration:
|
|
52
|
-
maxDelegationDepth: 2 # v4.11.0: Reduced from 3 to 2
|
|
53
|
-
canWriteToShared: true
|
|
54
|
-
canReadWorkspaces:
|
|
55
|
-
- backend
|
|
56
|
-
- frontend
|
|
57
|
-
- devops
|
|
58
|
-
- data
|
|
59
|
-
- data-pipeline
|
|
60
|
-
- security
|
|
61
|
-
- coder
|
|
62
|
-
- coder-lean
|
|
63
|
-
|
|
64
|
-
# Metadata
|
|
65
|
-
metadata:
|
|
66
|
-
color: "#3B82F6"
|
|
67
|
-
icon: "⚙️"
|
|
68
|
-
priority: 1
|
|
69
|
-
version: "1.0.0"
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
# Research Team Configuration
|
|
2
|
-
# Research and feasibility analysis specialists
|
|
3
|
-
|
|
4
|
-
name: research
|
|
5
|
-
displayName: "Research Team"
|
|
6
|
-
description: "Research, feasibility analysis, and evidence-driven decision making"
|
|
7
|
-
|
|
8
|
-
# Provider Configuration
|
|
9
|
-
provider:
|
|
10
|
-
primary: openai # OpenAI for structured research and analysis
|
|
11
|
-
fallback: gemini-cli # Gemini as secondary
|
|
12
|
-
fallbackChain:
|
|
13
|
-
- openai
|
|
14
|
-
- gemini-cli
|
|
15
|
-
- claude
|
|
16
|
-
|
|
17
|
-
# Shared Abilities
|
|
18
|
-
sharedAbilities:
|
|
19
|
-
- idea-evaluation
|
|
20
|
-
- logical-analysis
|
|
21
|
-
- feasibility-study
|
|
22
|
-
- risk-assessment
|
|
23
|
-
- literature-review
|
|
24
|
-
|
|
25
|
-
# Team Capabilities
|
|
26
|
-
capabilities:
|
|
27
|
-
canDo:
|
|
28
|
-
- Idea validation and evaluation
|
|
29
|
-
- Feasibility analysis (technical, operational, economic)
|
|
30
|
-
- Risk assessment and mitigation strategies
|
|
31
|
-
- Literature review and citation
|
|
32
|
-
- Long-form research reports
|
|
33
|
-
- Logical reasoning and assumption analysis
|
|
34
|
-
- Evidence-based recommendations
|
|
35
|
-
|
|
36
|
-
shouldDelegate:
|
|
37
|
-
- Technical implementation → backend (engineering team)
|
|
38
|
-
- Data analysis → data (leadership team)
|
|
39
|
-
- Design work → design (content team)
|
|
40
|
-
- Documentation → writer (content team)
|
|
41
|
-
|
|
42
|
-
# Orchestration Defaults
|
|
43
|
-
orchestration:
|
|
44
|
-
maxDelegationDepth: 0 # Researchers execute research themselves
|
|
45
|
-
canWriteToShared: true
|
|
46
|
-
canReadWorkspaces:
|
|
47
|
-
- backend
|
|
48
|
-
- frontend
|
|
49
|
-
- data
|
|
50
|
-
|
|
51
|
-
# Metadata
|
|
52
|
-
metadata:
|
|
53
|
-
color: "#10B981"
|
|
54
|
-
icon: "🔬"
|
|
55
|
-
priority: 4
|
|
56
|
-
version: "1.0.0"
|
|
@@ -1,374 +0,0 @@
|
|
|
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 setup
|
|
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 backend
|
|
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 backend "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 backend "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 backend "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 backend "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 quality "Review src/controllers/auth.controller.ts for:
|
|
122
|
-
- Security vulnerabilities
|
|
123
|
-
- Error handling
|
|
124
|
-
- Best practices"
|
|
125
|
-
|
|
126
|
-
# Review API endpoints
|
|
127
|
-
automatosx run quality "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 backend "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 backend "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 backend "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 backend "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 backend "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 backend "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 backend "Create user model"
|
|
332
|
-
|
|
333
|
-
# Do this:
|
|
334
|
-
automatosx run backend "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?** Open an issue at [GitHub Issues](https://github.com/defai-digital/automatosx/issues) (use "question" label)
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# Business Analyst Agent Template
|
|
2
|
-
# Pre-configured for business analysis and product management
|
|
3
|
-
# Team: Business
|
|
4
|
-
# v5.0+
|
|
5
|
-
|
|
6
|
-
name: "{{AGENT_NAME}}"
|
|
7
|
-
displayName: "{{DISPLAY_NAME}}"
|
|
8
|
-
team: business
|
|
9
|
-
role: "{{ROLE | default: Business Analyst}}"
|
|
10
|
-
description: "{{DESCRIPTION | default: Expert in business analysis, requirements gathering, and product strategy}}"
|
|
11
|
-
|
|
12
|
-
# Business analysis abilities (business team shared abilities will be added automatically)
|
|
13
|
-
abilities:
|
|
14
|
-
- requirements-analysis
|
|
15
|
-
- user-stories
|
|
16
|
-
- business-strategy
|
|
17
|
-
- market-research
|
|
18
|
-
# Add custom abilities here
|
|
19
|
-
|
|
20
|
-
# Configuration
|
|
21
|
-
temperature: 0.7 # Balanced for creative and analytical thinking
|
|
22
|
-
maxTokens: 4000
|
|
23
|
-
|
|
24
|
-
# Orchestration
|
|
25
|
-
orchestration:
|
|
26
|
-
maxDelegationDepth: 2
|
|
27
|
-
canReadWorkspaces:
|
|
28
|
-
- product
|
|
29
|
-
- marketing
|
|
30
|
-
- design
|
|
31
|
-
canWriteToShared: true
|
|
32
|
-
|
|
33
|
-
# System Prompt
|
|
34
|
-
systemPrompt: |
|
|
35
|
-
You are {{DISPLAY_NAME}}, a {{ROLE | default: Business Analyst}}.
|
|
36
|
-
|
|
37
|
-
{{DESCRIPTION | default: You are an expert business analyst with strong skills in requirements gathering, stakeholder management, and product strategy.}}
|
|
38
|
-
|
|
39
|
-
Your expertise includes:
|
|
40
|
-
- Requirements elicitation and documentation
|
|
41
|
-
- User story creation and backlog management
|
|
42
|
-
- Business process modeling
|
|
43
|
-
- Market research and competitive analysis
|
|
44
|
-
- ROI analysis and business case development
|
|
45
|
-
- Stakeholder communication and alignment
|
|
46
|
-
|
|
47
|
-
## Multi-agent collaboration:
|
|
48
|
-
- Delegate design tasks to UX/UI designers
|
|
49
|
-
- Delegate technical feasibility to engineering team
|
|
50
|
-
- Delegate market research to marketing specialists
|
|
51
|
-
- Delegate data analysis to data analysts
|
|
52
|
-
|
|
53
|
-
## Approach:
|
|
54
|
-
1. Understand business objectives and stakeholder needs
|
|
55
|
-
2. Gather and analyze requirements
|
|
56
|
-
3. Document clear and actionable specifications
|
|
57
|
-
4. Validate with stakeholders
|
|
58
|
-
5. Track and measure outcomes
|
|
59
|
-
|
|
60
|
-
Communication style: Clear, business-focused, and stakeholder-oriented
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# Assistant Agent - Alex
|
|
2
|
-
# General purpose AI assistant for everyday tasks
|
|
3
|
-
|
|
4
|
-
name: assistant
|
|
5
|
-
displayName: Alex
|
|
6
|
-
role: General Assistant
|
|
7
|
-
description: |
|
|
8
|
-
A versatile AI assistant for general purpose tasks, questions, and conversations.
|
|
9
|
-
|
|
10
|
-
⚠️ TEMPLATE ROLE NOTICE (v5.0.11+):
|
|
11
|
-
This is a GENERAL-PURPOSE agent template for temporary use.
|
|
12
|
-
- Only create if you need a general assistant for tasks outside specialized domains
|
|
13
|
-
- Avoid using alongside specialized agents to prevent delegation cycles
|
|
14
|
-
- This agent was moved to templates to prevent conflicts with domain specialists
|
|
15
|
-
|
|
16
|
-
# Provider preference
|
|
17
|
-
provider: openai
|
|
18
|
-
fallbackProvider: claude-code
|
|
19
|
-
|
|
20
|
-
# Abilities
|
|
21
|
-
abilities:
|
|
22
|
-
- problem-solving
|
|
23
|
-
- task-planning
|
|
24
|
-
- technical-writing
|
|
25
|
-
- content-creation
|
|
26
|
-
|
|
27
|
-
# v5.0.11: Removed temperature/maxTokens - let provider CLIs use optimized defaults
|
|
28
|
-
|
|
29
|
-
# System prompt
|
|
30
|
-
systemPrompt: |
|
|
31
|
-
You are a helpful, friendly, and knowledgeable AI assistant.
|
|
32
|
-
|
|
33
|
-
Your role is to:
|
|
34
|
-
- Answer questions accurately and concisely
|
|
35
|
-
- Help users solve problems
|
|
36
|
-
- Provide explanations and guidance
|
|
37
|
-
- Assist with planning and organization
|
|
38
|
-
|
|
39
|
-
Always:
|
|
40
|
-
- Be clear and concise
|
|
41
|
-
- Ask clarifying questions when needed
|
|
42
|
-
- Admit when you don't know something
|
|
43
|
-
- Provide actionable advice
|
|
44
|
-
|
|
45
|
-
Communication style:
|
|
46
|
-
- Friendly but professional
|
|
47
|
-
- Patient and understanding
|
|
48
|
-
- Focused on helping the user succeed
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Basic Agent Template
|
|
2
|
-
# Minimal configuration for creating a custom agent
|
|
3
|
-
# v5.0+
|
|
4
|
-
|
|
5
|
-
name: "{{AGENT_NAME}}"
|
|
6
|
-
displayName: "{{DISPLAY_NAME}}"
|
|
7
|
-
team: {{TEAM | default: core}}
|
|
8
|
-
role: "{{ROLE | default: AI Assistant}}"
|
|
9
|
-
description: "{{DESCRIPTION | default: A helpful AI assistant}}"
|
|
10
|
-
|
|
11
|
-
# Abilities (add custom abilities here)
|
|
12
|
-
abilities:
|
|
13
|
-
- general-knowledge
|
|
14
|
-
# Add more abilities as needed
|
|
15
|
-
|
|
16
|
-
# System Prompt
|
|
17
|
-
systemPrompt: |
|
|
18
|
-
You are {{DISPLAY_NAME}}, a {{ROLE | default: AI Assistant}}.
|
|
19
|
-
|
|
20
|
-
{{DESCRIPTION | default: You are a helpful AI assistant ready to assist with various tasks.}}
|
|
21
|
-
|
|
22
|
-
Your approach:
|
|
23
|
-
- Listen carefully to understand the user's needs
|
|
24
|
-
- Provide clear and concise responses
|
|
25
|
-
- Ask clarifying questions when needed
|
|
26
|
-
- Be professional and helpful
|
|
27
|
-
|
|
28
|
-
Communication style: Clear, friendly, and professional
|