@deimoscloud/coreai 0.1.19 → 0.1.20

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 CHANGED
@@ -4,8 +4,8 @@ A configurable, team-ready AI agent orchestration platform for Claude Code.
4
4
 
5
5
  ## Features
6
6
 
7
- - **YAML-based agent definitions** - Define agents in structured YAML, compile to Claude-compatible markdown
8
- - **Variable resolution** - Use `${config.*}`, `${agent.*}`, and `${remote.*}` variables in definitions
7
+ - **Markdown-based agent definitions** - Define agents in rich Markdown templates with YAML frontmatter
8
+ - **Variable resolution** - Use `${config.*}`, `${agent.*}`, and `${remote.*}` variables in templates
9
9
  - **Core + custom agents** - Built-in agent library with support for project-specific customizations
10
10
  - **Team filtering** - Configure which agents are available per project
11
11
  - **Override system** - Customize core agents without modifying the source
@@ -197,32 +197,38 @@ Create a `coreai.config.yaml` in your project root:
197
197
  ```yaml
198
198
  project:
199
199
  name: "My Project"
200
- description: "Project description"
200
+ description: "Brief description of your project"
201
201
 
202
+ # Default: [engineering-manager]
203
+ # Add agents with: coreai agents add <name>
202
204
  team:
203
205
  agents:
206
+ - engineering-manager
204
207
  - backend-engineer
205
208
  - frontend-engineer
206
- - devops-engineer
207
209
 
208
210
  integrations:
209
- github:
210
- repo: "owner/repo"
211
- jira:
212
- project: "PROJ"
211
+ git:
212
+ provider: github
213
+ config:
214
+ owner: "your-org"
215
+ repo: "your-repo"
216
+ default_branch: main
217
+ issue_tracker:
218
+ provider: jira
219
+ config:
220
+ project_key: "PROJ"
221
+ base_url: "https://your-org.atlassian.net"
213
222
 
214
223
  quality_gates:
215
- lint: "npm run lint"
216
- test: "npm test"
217
- build: "npm run build"
218
-
219
- tech_stack:
220
- languages:
221
- - TypeScript
222
- - Node.js
223
- frameworks:
224
- - Express
225
- - React
224
+ lint:
225
+ command: npm run lint
226
+ required: true
227
+ test:
228
+ command: npm test
229
+ required: true
230
+ build:
231
+ command: npm run build
226
232
  ```
227
233
 
228
234
  ## Built-in Agents
@@ -249,71 +255,70 @@ CoreAI includes these core agents:
249
255
 
250
256
  ## Custom Agents
251
257
 
252
- Create custom agents in `coreai/agents/` directory:
258
+ Create custom agents as Markdown files in `coreai/agents/` directory:
253
259
 
254
- ```yaml
255
- # coreai/agents/mobile-engineer.yaml
256
- role: mobile-engineer
257
- type: ic-engineer
258
- display_name: "Mobile Engineer"
259
- description: "React Native mobile development specialist"
260
-
261
- responsibilities:
262
- - Implement mobile features
263
- - Ensure cross-platform compatibility
264
- - Optimize mobile performance
265
-
266
- expertise:
267
- primary:
268
- - React Native
269
- - iOS development
270
- - Android development
271
-
272
- behaviors:
273
- workflow: implementation
274
- quality_gates:
275
- - lint
276
- - test
277
- - build
260
+ ```markdown
261
+ ---
262
+ name: mobile-engineer
263
+ description: React Native mobile development specialist
264
+ tools: Read, Write, Edit, Bash, Glob, Grep
265
+ ---
266
+
267
+ # Mobile Engineer
268
+
269
+ ## Role
270
+
271
+ React Native mobile development specialist focused on cross-platform mobile apps.
272
+
273
+ ---
274
+
275
+ ## Your Responsibilities
276
+
277
+ - Implement mobile features using React Native
278
+ - Ensure cross-platform compatibility (iOS and Android)
279
+ - Optimize mobile performance and user experience
278
280
  ```
279
281
 
280
282
  ### Overriding Core Agents
281
283
 
282
284
  To customize a core agent, create a file with the same name in `coreai/agents/`:
283
285
 
284
- ```yaml
285
- # coreai/agents/backend-engineer.yaml
286
- # This overrides the core backend-engineer agent
286
+ ```markdown
287
+ ---
288
+ name: backend-engineer
289
+ description: Custom backend engineer for our Python stack
290
+ tools: Read, Write, Edit, Bash, Glob, Grep
291
+ ---
287
292
 
288
- role: backend-engineer
289
- type: ic-engineer
290
- display_name: "Backend Engineer"
291
- description: "Custom backend engineer for our Python stack"
293
+ # Backend Engineer
292
294
 
293
- # ... rest of definition
295
+ ## Role
296
+
297
+ Custom backend engineer specializing in our Python/FastAPI stack.
298
+
299
+ <!-- Your custom agent content here -->
294
300
  ```
295
301
 
296
302
  ## Variable Resolution
297
303
 
298
- Agent definitions support three variable namespaces:
304
+ Agent templates support three variable namespaces:
299
305
 
300
306
  ### `${config.*}` - Project Configuration
301
307
 
302
- ```yaml
303
- description: "Backend engineer for ${config.project.name}"
308
+ ```markdown
309
+ Working on project: ${config.project.name}
304
310
  ```
305
311
 
306
312
  ### `${agent.*}` - Agent Self-Reference
307
313
 
308
- ```yaml
309
- description: "I am ${agent.display_name}, responsible for ${agent.role}"
314
+ ```markdown
315
+ You are the ${agent.name}, responsible for ${agent.role}
310
316
  ```
311
317
 
312
318
  ### `${remote.*}` - Remote Content
313
319
 
314
- ```yaml
315
- context:
316
- - "${remote.confluence.architecture-docs}"
320
+ ```markdown
321
+ Reference the architecture documentation: ${remote.documentation}
317
322
  ```
318
323
 
319
324
  ## Skills (Claude Slash Commands)
@@ -468,7 +473,7 @@ your-project/
468
473
  ├── coreai.config.yaml # Project configuration
469
474
  ├── coreai/
470
475
  │ ├── agents/ # Custom agent definitions
471
- │ │ └── my-agent.yaml
476
+ │ │ └── my-agent.md
472
477
  │ └── skills/ # Custom skill templates
473
478
  │ └── my-skill.md
474
479
  ├── .claude/
@@ -537,9 +542,9 @@ See [IMPLEMENTATION_PLAN.md](IMPLEMENTATION_PLAN.md) for detailed implementation
537
542
  ### Phase 1 (Complete)
538
543
 
539
544
  - Project foundation (TypeScript, CLI, configuration)
540
- - Agent YAML schema and validation
545
+ - Agent schema and validation
541
546
  - Variable resolution system
542
- - Agent compiler (YAML to Markdown)
547
+ - Agent compiler (Markdown templates to Claude-compatible output)
543
548
  - Agent CLI commands (build, list, show)
544
549
  - Integration adapter framework
545
550
  - MCP integration layer with server discovery
package/dist/index.d.ts CHANGED
@@ -2322,7 +2322,7 @@ declare class StepTracker {
2322
2322
  /**
2323
2323
  * Skill category
2324
2324
  */
2325
- type SkillCategory = 'core' | 'custom';
2325
+ type SkillCategory = 'core' | 'git' | 'jira' | 'docs' | 'custom';
2326
2326
  /**
2327
2327
  * Integration dependency for a skill
2328
2328
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deimoscloud/coreai",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "A configurable, team-ready AI agent orchestration platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -0,0 +1,65 @@
1
+ ---
2
+ description: Review current sprint progress and status (EM only)
3
+ argument-hint: [optional: sprint number or "current"]
4
+ ---
5
+
6
+ # Sprint Status Review
7
+
8
+ You are the Engineering Manager. Review the current sprint status and provide a summary.
9
+
10
+ ## Steps
11
+
12
+ 1. **Check Jira for current sprint:**
13
+ ```
14
+ Search: project = {{JIRA_PROJECT}} AND sprint in openSprints()
15
+ ```
16
+
17
+ 2. **Gather ticket status:**
18
+ - Count tickets by status (Backlog, In Progress, In Review, Done)
19
+ - Identify any blocked tickets
20
+ - Check for overdue items
21
+
22
+ 3. **Check agent inboxes for pending work:**
23
+ - `/KnowledgeLibrary/*/inbox/` - any unprocessed tasks?
24
+ - Are there completion summaries in your inbox you haven't processed?
25
+
26
+ 4. **Review open PRs:**
27
+ ```
28
+ gh pr list --state open
29
+ ```
30
+
31
+ 5. **Provide summary report:**
32
+
33
+ ```markdown
34
+ ## Sprint Status Report
35
+ **Date:** [today]
36
+ **Sprint:** [sprint name/number]
37
+
38
+ ### Ticket Summary
39
+ | Status | Count | Tickets |
40
+ |--------|-------|---------|
41
+ | Done | X | {{JIRA_PROJECT}}-XX, {{JIRA_PROJECT}}-YY |
42
+ | In Review | X | {{JIRA_PROJECT}}-XX |
43
+ | In Progress | X | {{JIRA_PROJECT}}-XX |
44
+ | Blocked | X | {{JIRA_PROJECT}}-XX (reason) |
45
+ | Backlog | X | {{JIRA_PROJECT}}-XX |
46
+
47
+ ### Open PRs
48
+ - PR #XX - [title] - [status: awaiting review/changes requested/approved]
49
+
50
+ ### Pending Agent Work
51
+ - [agent]: [pending task or "inbox clear"]
52
+
53
+ ### Blockers & Risks
54
+ - [Any blockers or risks to sprint completion]
55
+
56
+ ### Recommended Actions
57
+ 1. [Action item]
58
+ 2. [Action item]
59
+ ```
60
+
61
+ ## Additional Context
62
+
63
+ $ARGUMENTS
64
+
65
+ Now review the sprint status.
@@ -0,0 +1,201 @@
1
+ ---
2
+ description: Use when updating documentation, adding to Confluence, documenting changes, updating local docs, or keeping documentation in sync. Handles both Confluence pages and local /docs files.
3
+ argument-hint: <what to document> [where]
4
+ requires: [documentation]
5
+ ---
6
+
7
+ # Documentation Update
8
+
9
+ You are documenting: **$ARGUMENTS**
10
+
11
+ ## Documentation Locations
12
+
13
+ | Location | Content Type | When to Update |
14
+ |----------|--------------|----------------|
15
+ | **Confluence** | Architecture, PRD, standards, guides | Major decisions, feature specs, process changes |
16
+ | **Local /docs** | Technical workflows, setup guides | Development process, CI/CD, environment setup |
17
+ | **Code comments** | Implementation details | Complex logic, non-obvious code |
18
+ | **README files** | Module overviews | New modules, significant changes |
19
+
20
+ ## Confluence Pages (Primary)
21
+
22
+ ### Update via Atlassian MCP
23
+
24
+ #### Read Current Page
25
+
26
+ ```
27
+ mcp__atlassian__getConfluencePage
28
+ Page ID: <page-id>
29
+ ```
30
+
31
+ #### Update Page
32
+
33
+ ```
34
+ mcp__atlassian__updateConfluencePage
35
+ Page ID: <page-id>
36
+ Title: <page title>
37
+ Content: <updated content in Confluence storage format>
38
+ ```
39
+
40
+ #### Create New Page
41
+
42
+ ```
43
+ mcp__atlassian__createConfluencePage
44
+ Space Key: {{CONFLUENCE_SPACE}}
45
+ Title: <page title>
46
+ Content: <content in Confluence storage format>
47
+ Parent Page ID: <parent-id> (optional)
48
+ ```
49
+
50
+ ### Confluence Content Format
51
+
52
+ Confluence uses storage format (HTML-like). Common patterns:
53
+
54
+ ```html
55
+ <h2>Section Title</h2>
56
+ <p>Paragraph text.</p>
57
+
58
+ <ul>
59
+ <li>Bullet point 1</li>
60
+ <li>Bullet point 2</li>
61
+ </ul>
62
+
63
+ <ac:structured-macro ac:name="code">
64
+ <ac:parameter ac:name="language">kotlin</ac:parameter>
65
+ <ac:plain-text-body><![CDATA[
66
+ // code here
67
+ ]]></ac:plain-text-body>
68
+ </ac:structured-macro>
69
+
70
+ <ac:structured-macro ac:name="info">
71
+ <ac:rich-text-body>
72
+ <p>Info box content</p>
73
+ </ac:rich-text-body>
74
+ </ac:structured-macro>
75
+ ```
76
+
77
+ ## Local Documentation (/docs)
78
+
79
+ ### Update Local Docs
80
+
81
+ Use the Edit tool to update existing documentation:
82
+
83
+ ```
84
+ Edit file: {{PROJECT_ROOT}}/docs/[filename].md
85
+ ```
86
+
87
+ ### Documentation Template
88
+
89
+ ```markdown
90
+ # [Title]
91
+
92
+ **Last Updated:** [YYYY-MM-DD]
93
+ **Author:** [agent-name]
94
+
95
+ ## Overview
96
+
97
+ [Brief description of what this document covers]
98
+
99
+ ## [Main Section]
100
+
101
+ [Content]
102
+
103
+ ### [Subsection]
104
+
105
+ [Content]
106
+
107
+ ## Related Documentation
108
+
109
+ - [Link to related doc 1]
110
+ - [Link to related doc 2]
111
+
112
+ ---
113
+
114
+ **Questions?** File a Jira ticket with component "Documentation".
115
+ ```
116
+
117
+ ## Keep Documentation in Sync
118
+
119
+ When updating documentation, ensure both locations are updated:
120
+
121
+ ### Architecture Changes
122
+
123
+ 1. Update Confluence Architecture page (primary)
124
+ 2. Update `/KnowledgeLibrary/architecture.txt` (local cache)
125
+
126
+ ### Process Changes
127
+
128
+ 1. Update Confluence Development page (primary)
129
+ 2. Update `/docs/DEVELOPMENT_WORKFLOW.md` (local reference)
130
+
131
+ ### PRD Changes
132
+
133
+ 1. Update Confluence Product page (primary)
134
+ 2. Update `/KnowledgeLibrary/prd.txt` (local cache)
135
+
136
+ ## What to Document
137
+
138
+ ### Always Document
139
+
140
+ - Architecture decisions and rationale
141
+ - New modules or significant refactors
142
+ - API changes or new endpoints
143
+ - Configuration changes
144
+ - Process changes
145
+ - Breaking changes
146
+
147
+ ### Document When Significant
148
+
149
+ - Bug fixes with non-obvious solutions
150
+ - Performance optimizations
151
+ - Security considerations
152
+ - Integration details
153
+
154
+ ### Skip Documentation For
155
+
156
+ - Minor bug fixes
157
+ - Code formatting changes
158
+ - Dependency version bumps (unless breaking)
159
+ - Internal refactors with no API changes
160
+
161
+ ## Documentation Checklist
162
+
163
+ Before completing documentation update:
164
+
165
+ - [ ] Content is accurate and up-to-date
166
+ - [ ] Examples are working and tested
167
+ - [ ] Links are valid
168
+ - [ ] Code snippets are correct
169
+ - [ ] Related docs are cross-referenced
170
+ - [ ] Both Confluence and local docs updated (if applicable)
171
+
172
+ ## Error Handling
173
+
174
+ **If Confluence MCP is unavailable:**
175
+ 1. Update local documentation first
176
+ 2. Note in completion report: "Confluence update pending - please sync manually"
177
+ 3. Create a task to sync Confluence later
178
+
179
+ **If page doesn't exist:**
180
+ 1. Create new page with `mcp__atlassian__createConfluencePage`
181
+ 2. Or create local doc and note Confluence page needs creation
182
+
183
+ ## Completion
184
+
185
+ After documentation update, report:
186
+ ```
187
+ Documentation Updated
188
+
189
+ Updated:
190
+ - [Confluence page name] (URL)
191
+ - [Local file path]
192
+
193
+ Changes:
194
+ - [Summary of what was documented]
195
+
196
+ Sync Status:
197
+ - Confluence: [Updated/Pending]
198
+ - Local docs: [Updated/N/A]
199
+ ```
200
+
201
+ Now proceed with the documentation update.
@@ -0,0 +1,145 @@
1
+ ---
2
+ description: Use when committing code changes, pushing to remote, or saving work. This is a GATED commit that enforces quality checks - all configured checks must pass before the commit proceeds.
3
+ argument-hint: [commit message or ticket reference]
4
+ requires: [git]
5
+ ---
6
+
7
+ # Gated Git Commit
8
+
9
+ You are committing changes for: **$ARGUMENTS**
10
+
11
+ ## CRITICAL: Quality Gate
12
+
13
+ **NO COMMIT will proceed until ALL checks pass.** This is non-negotiable.
14
+
15
+ ## Pre-Commit Checks (MANDATORY)
16
+
17
+ Run these checks IN ORDER. If ANY fail, STOP and fix before proceeding.
18
+
19
+ ### 1. Code Formatting
20
+
21
+ ```bash
22
+ {{LINT_CMD}}
23
+ ```
24
+
25
+ **If fails:**
26
+ - Run the format/fix command if available
27
+ - Review changes
28
+ - Re-run the check
29
+
30
+ ### 2. Static Analysis
31
+
32
+ ```bash
33
+ {{STATIC_ANALYSIS_CMD}}
34
+ ```
35
+
36
+ **If fails:**
37
+ - Review the report
38
+ - Fix code smells and issues
39
+ - Re-run the check
40
+
41
+ ### 3. Unit Tests
42
+
43
+ ```bash
44
+ {{TEST_CMD}}
45
+ ```
46
+
47
+ **If fails:**
48
+ - Review test failures
49
+ - Fix failing tests or update tests for new behavior
50
+ - Re-run tests
51
+
52
+ ### 4. Build Verification
53
+
54
+ ```bash
55
+ {{BUILD_CMD}}
56
+ ```
57
+
58
+ **If fails:**
59
+ - Fix compilation errors
60
+ - Re-run build
61
+
62
+ ## All Checks Passed?
63
+
64
+ Only proceed to commit if you see **BUILD SUCCESSFUL** (or equivalent) for ALL checks above.
65
+
66
+ ## Commit Process
67
+
68
+ ### 1. Stage Changes
69
+
70
+ ```bash
71
+ git add -A
72
+ ```
73
+
74
+ Or stage specific files:
75
+ ```bash
76
+ git add [specific files]
77
+ ```
78
+
79
+ ### 2. Commit with Proper Format
80
+
81
+ **Commit message format:**
82
+ ```
83
+ <type>(<scope>): <description> [{{JIRA_PROJECT}}-XX]
84
+
85
+ [optional body with details]
86
+ ```
87
+
88
+ **Types:** `feat`, `fix`, `refactor`, `test`, `docs`, `chore`, `style`, `perf`
89
+
90
+ **Examples:**
91
+ ```bash
92
+ git commit -m "feat(core): add new feature [{{JIRA_PROJECT}}-123]"
93
+ git commit -m "fix(sync): resolve connection timeout [{{JIRA_PROJECT}}-456]"
94
+ git commit -m "test(core): add unit tests for filtering [{{JIRA_PROJECT}}-789]"
95
+ ```
96
+
97
+ ### 3. Push to Remote
98
+
99
+ ```bash
100
+ git push -u origin $(git branch --show-current)
101
+ ```
102
+
103
+ ## Commit Checklist
104
+
105
+ Before committing, verify:
106
+ - [ ] All quality checks passed
107
+ - [ ] Commit message includes ticket number [{{JIRA_PROJECT}}-XX]
108
+ - [ ] Commit message follows type(scope): description format
109
+ - [ ] No debug code or commented-out blocks
110
+ - [ ] No secrets or API keys in code
111
+ - [ ] Changes are related to the ticket being worked on
112
+
113
+ ## Error Recovery
114
+
115
+ **If checks fail repeatedly:**
116
+ 1. Report which specific check is failing
117
+ 2. Show the error output
118
+ 3. Ask for guidance if the fix is unclear
119
+
120
+ **If push fails:**
121
+ ```bash
122
+ # If remote has new commits, rebase first
123
+ git fetch origin
124
+ git rebase origin/main
125
+ # Then push again
126
+ git push -u origin $(git branch --show-current)
127
+ ```
128
+
129
+ ## Completion
130
+
131
+ After successful commit and push, report:
132
+ ```
133
+ Commit successful
134
+
135
+ Branch: feature/{{JIRA_PROJECT}}-XX-description
136
+ Commit: [short SHA] <commit message>
137
+ Pushed to: origin/feature/{{JIRA_PROJECT}}-XX-description
138
+
139
+ Quality checks passed:
140
+ - [List of checks that passed]
141
+
142
+ Ready for PR creation when implementation is complete.
143
+ ```
144
+
145
+ Now proceed with the gated commit process.