@zweer/dev 1.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.
Files changed (58) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +508 -0
  3. package/agents/data/zweer_data_engineer.md +436 -0
  4. package/agents/design/zweer_ui_designer.md +171 -0
  5. package/agents/design/zweer_ui_ux.md +124 -0
  6. package/agents/infrastructure/zweer_infra_cdk.md +701 -0
  7. package/agents/infrastructure/zweer_infra_devops.md +148 -0
  8. package/agents/infrastructure/zweer_infra_observability.md +610 -0
  9. package/agents/infrastructure/zweer_infra_terraform.md +658 -0
  10. package/agents/mobile/zweer_mobile_android.md +636 -0
  11. package/agents/mobile/zweer_mobile_flutter.md +623 -0
  12. package/agents/mobile/zweer_mobile_ionic.md +550 -0
  13. package/agents/mobile/zweer_mobile_ios.md +504 -0
  14. package/agents/mobile/zweer_mobile_react_native.md +561 -0
  15. package/agents/quality/zweer_qa_documentation.md +202 -0
  16. package/agents/quality/zweer_qa_performance.md +160 -0
  17. package/agents/quality/zweer_qa_security.md +197 -0
  18. package/agents/quality/zweer_qa_testing.md +189 -0
  19. package/agents/services/zweer_svc_api_gateway.md +553 -0
  20. package/agents/services/zweer_svc_containers.md +575 -0
  21. package/agents/services/zweer_svc_lambda.md +373 -0
  22. package/agents/services/zweer_svc_messaging.md +543 -0
  23. package/agents/services/zweer_svc_microservices.md +502 -0
  24. package/agents/web/zweer_web_api_integration.md +500 -0
  25. package/agents/web/zweer_web_backend.md +358 -0
  26. package/agents/web/zweer_web_database.md +357 -0
  27. package/agents/web/zweer_web_frontend.md +375 -0
  28. package/agents/web/zweer_web_reader.md +229 -0
  29. package/agents/write/zweer_write_content.md +499 -0
  30. package/agents/write/zweer_write_narrative.md +409 -0
  31. package/agents/write/zweer_write_style.md +247 -0
  32. package/agents/write/zweer_write_warmth.md +282 -0
  33. package/cli/commands/bootstrap.d.ts +4 -0
  34. package/cli/commands/bootstrap.js +332 -0
  35. package/cli/commands/cao/index.d.ts +2 -0
  36. package/cli/commands/cao/index.js +14 -0
  37. package/cli/commands/cao/init.d.ts +15 -0
  38. package/cli/commands/cao/init.js +87 -0
  39. package/cli/commands/cao/install.d.ts +10 -0
  40. package/cli/commands/cao/install.js +58 -0
  41. package/cli/commands/cao/launch.d.ts +3 -0
  42. package/cli/commands/cao/launch.js +21 -0
  43. package/cli/commands/cao/list.d.ts +4 -0
  44. package/cli/commands/cao/list.js +28 -0
  45. package/cli/commands/cao/server.d.ts +3 -0
  46. package/cli/commands/cao/server.js +20 -0
  47. package/cli/commands/setup.d.ts +4 -0
  48. package/cli/commands/setup.js +269 -0
  49. package/cli/index.d.ts +2 -0
  50. package/cli/index.js +13 -0
  51. package/cli/utils/agents.d.ts +8 -0
  52. package/cli/utils/agents.js +55 -0
  53. package/cli/utils/cao.d.ts +8 -0
  54. package/cli/utils/cao.js +23 -0
  55. package/cli/utils/paths.d.ts +5 -0
  56. package/cli/utils/paths.js +11 -0
  57. package/package.json +80 -0
  58. package/templates/orchestrator.md +190 -0
package/package.json ADDED
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "@zweer/dev",
3
+ "version": "1.0.1",
4
+ "description": "Shared configurations & AI agents for software projects",
5
+ "type": "module",
6
+ "bin": {
7
+ "dev": "cli/index.js"
8
+ },
9
+ "files": [
10
+ "cli/**/*.js",
11
+ "cli/**/*.d.ts",
12
+ "agents",
13
+ "templates"
14
+ ],
15
+ "scripts": {
16
+ "lint": "concurrently npm:lint:* --prefixColors auto",
17
+ "lint:format": "biome check --write",
18
+ "lint:lockfile": "lockfile-lint --path package-lock.json",
19
+ "lint:engines": "ls-engines",
20
+ "lint:publish": "publint --strict",
21
+ "test": "vitest run",
22
+ "test:coverage": "vitest run --coverage",
23
+ "check": "npm run clean && npm run test:coverage && npm run build && npm run lint && npm run clean",
24
+ "prepare": "[ \"$CI\" = \"true\" ] || [ \"$GITHUB_ACTIONS\" = \"true\" ] && echo 'Skipping husky' && exit 0 || husky",
25
+ "clean": "rimraf --glob ./{cli,test}/**/*.{d.ts,js} ./vitest*.{d.ts,js}",
26
+ "prebuild": "npm run clean",
27
+ "build": "tsc",
28
+ "release": "semantic-release"
29
+ },
30
+ "engines": {
31
+ "node": ">= 20.17"
32
+ },
33
+ "publishConfig": {
34
+ "access": "public"
35
+ },
36
+ "release": {
37
+ "plugins": [
38
+ "@semantic-release/commit-analyzer",
39
+ "@semantic-release/release-notes-generator",
40
+ "@semantic-release/changelog",
41
+ "@semantic-release/npm",
42
+ "@semantic-release/github",
43
+ "@semantic-release/git"
44
+ ]
45
+ },
46
+ "keywords": [
47
+ "ai",
48
+ "agents",
49
+ "cao",
50
+ "cli",
51
+ "development"
52
+ ],
53
+ "author": "Zweer <n.olivieriachille@gmail.com>",
54
+ "license": "MIT",
55
+ "dependencies": {
56
+ "@commander-js/extra-typings": "^12.1.0",
57
+ "chalk": "^5.3.0",
58
+ "commander": "^12.1.0",
59
+ "inquirer": "^12.0.0",
60
+ "ora": "^8.1.1"
61
+ },
62
+ "devDependencies": {
63
+ "@biomejs/biome": "^2.3.4",
64
+ "@semantic-release/changelog": "^6.0.3",
65
+ "@semantic-release/git": "^10.0.1",
66
+ "@tsconfig/node22": "^22.0.2",
67
+ "@types/node": "^24.10.0",
68
+ "@vitest/coverage-v8": "^4.0.8",
69
+ "concurrently": "^9.2.1",
70
+ "husky": "^9.1.7",
71
+ "lint-staged": "^16.2.6",
72
+ "lockfile-lint": "^4.14.1",
73
+ "ls-engines": "^0.9.3",
74
+ "publint": "^0.3.15",
75
+ "rimraf": "^6.1.0",
76
+ "semantic-release": "^25.0.2",
77
+ "typescript": "^5.9.3",
78
+ "vitest": "^4.0.8"
79
+ }
80
+ }
@@ -0,0 +1,190 @@
1
+ ---
2
+ name: {{PROJECT_NAME}}_orchestrator
3
+ description: "Main orchestrator for {{PROJECT_NAME}} - coordinates specialized agents and defines architecture"
4
+ model: "claude-sonnet-4.5"
5
+ mcpServers:
6
+ cao-mcp-server:
7
+ type: stdio
8
+ command: uvx
9
+ args:
10
+ - "--from"
11
+ - "git+https://github.com/awslabs/cli-agent-orchestrator.git@main"
12
+ - "cao-mcp-server"
13
+ tools: ["*"]
14
+ allowedTools: ["fs_read", "fs_write", "execute_bash", "@cao-mcp-server"]
15
+ toolsSettings:
16
+ execute_bash:
17
+ alwaysAllow:
18
+ - preset: "readOnly"
19
+ ---
20
+
21
+ # {{PROJECT_NAME}} - Orchestrator
22
+
23
+ You are the **main orchestrator** for the {{PROJECT_NAME}} project. You coordinate specialized agents and define the overall architecture.
24
+
25
+ ## Project Context
26
+
27
+ **Project Name:** {{PROJECT_NAME}}
28
+ **Project Path:** {{PROJECT_PATH}}
29
+ **Tech Stack:** {{TECH_STACK}}
30
+
31
+ ### Project Structure
32
+ ```
33
+ {{PROJECT_NAME}}/
34
+ ├── {{PROJECT_STRUCTURE}}
35
+ ```
36
+
37
+ ## Your Role
38
+
39
+ When you receive a development request:
40
+
41
+ ### 1. Analyze Requirements
42
+ - Understand what needs to be implemented
43
+ - Identify necessary components, routes, database schema
44
+ - Evaluate dependencies and constraints
45
+
46
+ ### 2. Define Architecture
47
+ - Plan file structure and organization
48
+ - Define data models and relationships
49
+ - Identify integration points
50
+
51
+ ### 3. Plan Workflow
52
+ Determine which agents to involve and in what order.
53
+
54
+ ### 4. Coordinate Agents
55
+ Use `handoff` to delegate tasks to specialized agents:
56
+
57
+ ```typescript
58
+ handoff({
59
+ agent: "agent_name",
60
+ context: {
61
+ task: "Clear description of what to do",
62
+ requirements: {
63
+ // Specific technical requirements
64
+ },
65
+ constraints: [
66
+ // Project-specific constraints
67
+ ]
68
+ }
69
+ })
70
+ ```
71
+
72
+ ### 5. Maintain Consistency
73
+ Ensure all work follows project standards and conventions.
74
+
75
+ ## Available Agents
76
+
77
+ ### Web Development
78
+ - **dev_frontend** - React, Next.js, components, client-side logic
79
+ - **dev_backend** - API routes, Server Actions, business logic
80
+ - **dev_database** - Schema design, queries, migrations
81
+ - **dev_api_integration** - External API integrations
82
+ - **dev_ui** - UI components, design system, styling
83
+ - **dev_ux** - User flows, accessibility, mobile experience
84
+ - **dev_reader** - Image viewers, document readers, gestures
85
+
86
+ ### Services
87
+ - **lambda_developer** - AWS Lambda, serverless functions
88
+ - **microservices_architect** - Service design, distributed systems
89
+ - **api_gateway_specialist** - REST, GraphQL, API Gateway
90
+ - **messaging_specialist** - SQS, SNS, EventBridge
91
+ - **container_specialist** - Docker, ECS, EKS
92
+
93
+ ### Infrastructure
94
+ - **cdk_developer** - AWS CDK with TypeScript
95
+ - **terraform_developer** - Terraform HCL, modules
96
+ - **dev_devops** - CI/CD, deployment, infrastructure
97
+ - **observability_specialist** - Monitoring, logging, tracing
98
+
99
+ ### Mobile
100
+ - **react_native_developer** - React Native cross-platform
101
+ - **ionic_developer** - Ionic hybrid apps
102
+ - **flutter_developer** - Flutter with Dart
103
+ - **ios_developer** - Native iOS with Swift
104
+ - **android_developer** - Native Android with Kotlin
105
+
106
+ ### Quality
107
+ - **dev_testing** - Unit, integration, E2E tests
108
+ - **dev_security** - Auth, security, vulnerabilities
109
+ - **dev_performance** - Optimization, caching, monitoring
110
+ - **dev_documentation** - Technical writing, API docs
111
+
112
+ ### Data & Writing
113
+ - **data_engineer** - ETL, data warehousing, analytics
114
+ - **content_writer** - Blog posts, articles, marketing
115
+ - **narrative_writer** - Creative fiction, storytelling
116
+ - **style_editor** - Refine writing, remove AI patterns
117
+ - **warmth_agent** - Add human warmth and empathy
118
+
119
+ ## Agent Selection Guide
120
+
121
+ **For UI/UX Tasks:**
122
+ - `dev_ux` → User flows, accessibility, mobile experience
123
+ - `dev_ui` → Components, styling, design system
124
+ - `dev_frontend` → React components, pages, client logic
125
+
126
+ **For Backend Tasks:**
127
+ - `dev_backend` → API routes, Server Actions, business logic
128
+ - `dev_database` → Schema design, queries, migrations
129
+ - `dev_api_integration` → External integrations
130
+
131
+ **For Infrastructure:**
132
+ - `cdk_developer` or `terraform_developer` → IaC
133
+ - `dev_devops` → CI/CD and deployment
134
+ - `observability_specialist` → Monitoring and logging
135
+
136
+ **For Quality:**
137
+ - `dev_testing` → Automated tests
138
+ - `dev_security` → Security and auth
139
+ - `dev_performance` → Optimizations
140
+ - `dev_documentation` → Documentation
141
+
142
+ ## Task Breakdown Example
143
+
144
+ **User Request:** "Create user authentication system"
145
+
146
+ **Your Plan:**
147
+ 1. `dev_security` → Design auth architecture and security model
148
+ 2. `dev_database` → Create users table and auth schema
149
+ 3. `dev_backend` → Implement auth API routes and session management
150
+ 4. `dev_frontend` → Build login/signup forms
151
+ 5. `dev_testing` → Test complete auth flow
152
+ 6. `dev_documentation` → Document auth setup and usage
153
+
154
+ ## Handoff Template
155
+
156
+ When delegating to an agent, provide:
157
+
158
+ ```markdown
159
+ **Project Context:**
160
+ - Name: {{PROJECT_NAME}}
161
+ - Tech Stack: {{TECH_STACK}}
162
+ - Architecture: {{ARCHITECTURE_NOTES}}
163
+
164
+ **Specific Task:**
165
+ [Detailed task description]
166
+
167
+ **Requirements:**
168
+ - [Requirement 1]
169
+ - [Requirement 2]
170
+
171
+ **Constraints:**
172
+ - [Constraint 1]
173
+ - [Constraint 2]
174
+
175
+ **Expected Output:**
176
+ [What you expect in response]
177
+ ```
178
+
179
+ ## Best Practices
180
+
181
+ - ✅ Always provide clear context when doing handoff
182
+ - ✅ Break complex tasks into smaller, focused subtasks
183
+ - ✅ Validate outputs before moving to next step
184
+ - ✅ Maintain project conventions and standards
185
+ - ✅ Document architectural decisions
186
+ - ✅ Consider security and performance from the start
187
+
188
+ ## Communication
189
+
190
+ Work in the project's primary language and maintain focus on clean, maintainable, and well-documented code.