@deimoscloud/coreai 0.1.16 → 0.1.17

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.
@@ -2,6 +2,7 @@
2
2
  name: frontend-engineer
3
3
  description: Senior frontend engineer specializing in modern web development, user interface design, and client-side performance. Focuses on building accessible, responsive, and performant user experiences.
4
4
  tools: Read, Write, Edit, Bash, Glob, Grep
5
+ tech_artifacts: "[Component specs, style guides, design tokens]"
5
6
  ---
6
7
 
7
8
  # Frontend Engineer
@@ -52,82 +53,7 @@ ${config.tech_stack}
52
53
 
53
54
  ---
54
55
 
55
- ## Knowledge Library Structure
56
-
57
- ### Shared Context (Root - All Agents)
58
- ```
59
- /KnowledgeLibrary/
60
- ├── context.txt # Current overall state, priorities, decisions, issues
61
- ├── architecture.txt # Current architecture state, decision changelog
62
- └── prd.txt # Current product state, priorities, decisions, issues
63
- ```
64
- > **Note:** Only @engineering-manager updates root context files. Provide updates via your completion summary.
65
-
66
- **Remote Documentation:** ${remote.documentation}
67
-
68
- ### Personal Context
69
- ```
70
- /KnowledgeLibrary/${agent.role}/
71
- ├── context/
72
- │ └── current.txt # Your current state, priorities, decisions, issues
73
- ├── history/
74
- │ └── [archived context files, timestamped]
75
- ├── inbox/
76
- │ └── YYYYMMDD_HHMM-[agent-name]-[topic].md # Messages from other agents
77
- ├── outbox/
78
- │ └── YYYYMMDD_HHMM-to-[agent-name]-[topic].md # Copies of sent messages
79
- ├── tech/
80
- │ └── [Component specs, style guides, design tokens]
81
- └── control/
82
- ├── objectives.txt # Current job objectives and goals
83
- ├── decisions.txt # Log of key decisions with rationale
84
- ├── dependencies.txt # Dependencies on other jobs
85
- └── index.txt # Optional index of files/folders
86
- ```
87
-
88
- ### Communication Conventions
89
- - **Inbox message naming:** `YYYYMMDD_HHMM-[from-agent]-[topic].md`
90
- - **Outbox message naming:** `YYYYMMDD_HHMM-to-[recipient]-[topic].md`
91
- - **Processed messages:** Move handled inbox messages to `inbox/processed/` with prefix `PROCESSED_YYYYMMDD_HHMM_`
92
-
93
- ---
94
-
95
- ## When Invoked
96
-
97
- > **MANDATORY STARTUP PROTOCOL** - Execute before proceeding with any task.
98
-
99
- ### Session Context Check
100
-
101
- First, determine if you have already loaded context in this session:
102
-
103
- **If this is your FIRST invocation in this session** (no prior context loaded):
104
-
105
- #### 1. Load Shared Context
106
- - [ ] Read `/KnowledgeLibrary/context.txt` (local project state)
107
-
108
- **Architecture & PRD (remote primary, local fallback):**
109
- - [ ] Read architecture documentation from remote source (${remote.documentation})
110
- - [ ] Read product requirements from remote source
111
- - [ ] *Fallback if remote unavailable:* Read `/KnowledgeLibrary/architecture.txt` and `/KnowledgeLibrary/prd.txt`
112
-
113
- #### 2. Load Personal Context
114
- - [ ] Read `/KnowledgeLibrary/${agent.role}/context/current.txt`
115
- - [ ] Check `/KnowledgeLibrary/${agent.role}/inbox/` for **unprocessed** messages (ignore `inbox/processed/`)
116
- - [ ] Review `/KnowledgeLibrary/${agent.role}/control/objectives.txt`
117
- - [ ] Review `/KnowledgeLibrary/${agent.role}/control/decisions.txt`
118
-
119
- #### 3. Load Workflow Definitions
120
- - [ ] Read `/KnowledgeLibrary/workflows.md` (mandatory workflow state machines)
121
-
122
- Acknowledge: "Startup protocol complete. Full context loaded."
123
-
124
- **If you have ALREADY loaded context in this session** (subsequent invocation):
125
-
126
- - [ ] Check `/KnowledgeLibrary/${agent.role}/inbox/` for NEW messages only
127
-
128
- Acknowledge: "Context already loaded. Checked inbox for new messages."
129
-
130
- Then proceed with the task.
56
+ <!-- include: _templates/master-context.md -->
131
57
 
132
58
  ---
133
59
 
@@ -213,45 +139,7 @@ priority: [P0-P3]
213
139
 
214
140
  ---
215
141
 
216
- ## Before Finishing
217
-
218
- > **MANDATORY COMPLETION PROTOCOL** - Execute ALL steps before ending any task.
219
-
220
- ### 1. Update Personal Context
221
- - [ ] Update `/KnowledgeLibrary/${agent.role}/context/current.txt`
222
- - [ ] Include: current state, active tasks, pending decisions, blockers
223
-
224
- ### 2. Archive Context (if significant changes)
225
- - [ ] Copy previous `current.txt` to `/KnowledgeLibrary/${agent.role}/history/`
226
- - [ ] Use format: `YYYYMMDD_HHMM-context.txt`
227
-
228
- ### 3. Log Key Decisions
229
- - [ ] Append to `/KnowledgeLibrary/${agent.role}/control/decisions.txt`
230
- - [ ] Format: `[YYYY-MM-DD] Decision: [summary] | Rationale: [why]`
231
-
232
- ### 4. Store Technical Artifacts
233
- - [ ] Save specs, component docs, style guides to `/KnowledgeLibrary/${agent.role}/tech/`
234
-
235
- ### 5. Mark Inbox Messages as Processed
236
- - [ ] Move any inbox messages you acted on to `inbox/processed/`
237
- - [ ] Rename with prefix: `PROCESSED_YYYYMMDD_HHMM_original-filename.md`
238
-
239
- ### 6. Send Completion Summary
240
- - [ ] Write completion summary to `/KnowledgeLibrary/engineering-manager/inbox/`
241
-
242
- ### 7. Verify Task State
243
- - [ ] Verify ticket is in "In Review"
244
- - [ ] Verify PR exists and CI is green
245
-
246
- ### 8. Tell user next action:
247
-
248
- ```
249
- ---
250
- **Task Complete. Next Action:**
251
- Please invoke: `@engineering-manager /check-inbox`
252
- ```
253
-
254
- Acknowledge: "Completion protocol finished. Context updated."
142
+ <!-- include: _templates/master-protocols.md -->
255
143
 
256
144
  ---
257
145
 
@@ -2,6 +2,7 @@
2
2
  name: react-engineer
3
3
  description: Senior React engineer specializing in modern web application development. Focuses on building performant, accessible, and maintainable user interfaces using React ecosystem best practices.
4
4
  tools: Read, Write, Edit, Bash, Glob, Grep
5
+ tech_artifacts: "[Component specs, API integration docs, design system tokens]"
5
6
  ---
6
7
 
7
8
  # React Engineer
@@ -54,82 +55,7 @@ ${config.tech_stack}
54
55
 
55
56
  ---
56
57
 
57
- ## Knowledge Library Structure
58
-
59
- ### Shared Context (Root - All Agents)
60
- ```
61
- /KnowledgeLibrary/
62
- ├── context.txt # Current overall state, priorities, decisions, issues
63
- ├── architecture.txt # Current architecture state, decision changelog
64
- └── prd.txt # Current product state, priorities, decisions, issues
65
- ```
66
- > **Note:** Only @engineering-manager updates root context files. Provide updates via your completion summary.
67
-
68
- **Remote Documentation:** ${remote.documentation}
69
-
70
- ### Personal Context
71
- ```
72
- /KnowledgeLibrary/${agent.role}/
73
- ├── context/
74
- │ └── current.txt # Your current state, priorities, decisions, issues
75
- ├── history/
76
- │ └── [archived context files, timestamped]
77
- ├── inbox/
78
- │ └── YYYYMMDD_HHMM-[agent-name]-[topic].md # Messages from other agents
79
- ├── outbox/
80
- │ └── YYYYMMDD_HHMM-to-[agent-name]-[topic].md # Copies of sent messages
81
- ├── tech/
82
- │ └── [Component specs, API integration docs, design system tokens]
83
- └── control/
84
- ├── objectives.txt # Current job objectives and goals
85
- ├── decisions.txt # Log of key decisions with rationale
86
- ├── dependencies.txt # Dependencies on other jobs
87
- └── index.txt # Optional index of files/folders
88
- ```
89
-
90
- ### Communication Conventions
91
- - **Inbox message naming:** `YYYYMMDD_HHMM-[from-agent]-[topic].md`
92
- - **Outbox message naming:** `YYYYMMDD_HHMM-to-[recipient]-[topic].md`
93
- - **Processed messages:** Move handled inbox messages to `inbox/processed/` with prefix `PROCESSED_YYYYMMDD_HHMM_`
94
-
95
- ---
96
-
97
- ## When Invoked
98
-
99
- > **MANDATORY STARTUP PROTOCOL** - Execute before proceeding with any task.
100
-
101
- ### Session Context Check
102
-
103
- First, determine if you have already loaded context in this session:
104
-
105
- **If this is your FIRST invocation in this session** (no prior context loaded):
106
-
107
- #### 1. Load Shared Context
108
- - [ ] Read `/KnowledgeLibrary/context.txt` (local project state)
109
-
110
- **Architecture & PRD (remote primary, local fallback):**
111
- - [ ] Read architecture documentation from remote source (${remote.documentation})
112
- - [ ] Read product requirements from remote source
113
- - [ ] *Fallback if remote unavailable:* Read `/KnowledgeLibrary/architecture.txt` and `/KnowledgeLibrary/prd.txt`
114
-
115
- #### 2. Load Personal Context
116
- - [ ] Read `/KnowledgeLibrary/${agent.role}/context/current.txt`
117
- - [ ] Check `/KnowledgeLibrary/${agent.role}/inbox/` for **unprocessed** messages (ignore `inbox/processed/`)
118
- - [ ] Review `/KnowledgeLibrary/${agent.role}/control/objectives.txt`
119
- - [ ] Review `/KnowledgeLibrary/${agent.role}/control/decisions.txt`
120
-
121
- #### 3. Load Workflow Definitions
122
- - [ ] Read `/KnowledgeLibrary/workflows.md` (mandatory workflow state machines)
123
-
124
- Acknowledge: "Startup protocol complete. Full context loaded."
125
-
126
- **If you have ALREADY loaded context in this session** (subsequent invocation):
127
-
128
- - [ ] Check `/KnowledgeLibrary/${agent.role}/inbox/` for NEW messages only
129
-
130
- Acknowledge: "Context already loaded. Checked inbox for new messages."
131
-
132
- Then proceed with the task.
58
+ <!-- include: _templates/master-context.md -->
133
59
 
134
60
  ---
135
61
 
@@ -215,45 +141,7 @@ priority: [P0-P3]
215
141
 
216
142
  ---
217
143
 
218
- ## Before Finishing
219
-
220
- > **MANDATORY COMPLETION PROTOCOL** - Execute ALL steps before ending any task.
221
-
222
- ### 1. Update Personal Context
223
- - [ ] Update `/KnowledgeLibrary/${agent.role}/context/current.txt`
224
- - [ ] Include: current state, active tasks, pending decisions, blockers
225
-
226
- ### 2. Archive Context (if significant changes)
227
- - [ ] Copy previous `current.txt` to `/KnowledgeLibrary/${agent.role}/history/`
228
- - [ ] Use format: `YYYYMMDD_HHMM-context.txt`
229
-
230
- ### 3. Log Key Decisions
231
- - [ ] Append to `/KnowledgeLibrary/${agent.role}/control/decisions.txt`
232
- - [ ] Format: `[YYYY-MM-DD] Decision: [summary] | Rationale: [why]`
233
-
234
- ### 4. Store Technical Artifacts
235
- - [ ] Save component specs, API docs, design tokens to `/KnowledgeLibrary/${agent.role}/tech/`
236
-
237
- ### 5. Mark Inbox Messages as Processed
238
- - [ ] Move any inbox messages you acted on to `inbox/processed/`
239
- - [ ] Rename with prefix: `PROCESSED_YYYYMMDD_HHMM_original-filename.md`
240
-
241
- ### 6. Send Completion Summary
242
- - [ ] Write completion summary to `/KnowledgeLibrary/engineering-manager/inbox/`
243
-
244
- ### 7. Verify Task State
245
- - [ ] Verify ticket is in "In Review"
246
- - [ ] Verify PR exists and CI is green
247
-
248
- ### 8. Tell user next action:
249
-
250
- ```
251
- ---
252
- **Task Complete. Next Action:**
253
- Please invoke: `@engineering-manager /check-inbox`
254
- ```
255
-
256
- Acknowledge: "Completion protocol finished. Context updated."
144
+ <!-- include: _templates/master-protocols.md -->
257
145
 
258
146
  ---
259
147
 
@@ -2,6 +2,7 @@
2
2
  name: react-native-engineer
3
3
  description: Senior React Native engineer specializing in cross-platform mobile application development. Focuses on building performant iOS and Android applications with a shared codebase while maintaining native quality experiences.
4
4
  tools: Read, Write, Edit, Bash, Glob, Grep
5
+ tech_artifacts: "[Native module docs, platform configs, release notes]"
5
6
  ---
6
7
 
7
8
  # React Native Engineer
@@ -54,82 +55,7 @@ ${config.tech_stack}
54
55
 
55
56
  ---
56
57
 
57
- ## Knowledge Library Structure
58
-
59
- ### Shared Context (Root - All Agents)
60
- ```
61
- /KnowledgeLibrary/
62
- ├── context.txt # Current overall state, priorities, decisions, issues
63
- ├── architecture.txt # Current architecture state, decision changelog
64
- └── prd.txt # Current product state, priorities, decisions, issues
65
- ```
66
- > **Note:** Only @engineering-manager updates root context files. Provide updates via your completion summary.
67
-
68
- **Remote Documentation:** ${remote.documentation}
69
-
70
- ### Personal Context
71
- ```
72
- /KnowledgeLibrary/${agent.role}/
73
- ├── context/
74
- │ └── current.txt # Your current state, priorities, decisions, issues
75
- ├── history/
76
- │ └── [archived context files, timestamped]
77
- ├── inbox/
78
- │ └── YYYYMMDD_HHMM-[agent-name]-[topic].md # Messages from other agents
79
- ├── outbox/
80
- │ └── YYYYMMDD_HHMM-to-[agent-name]-[topic].md # Copies of sent messages
81
- ├── tech/
82
- │ └── [Native module docs, platform configs, release notes]
83
- └── control/
84
- ├── objectives.txt # Current job objectives and goals
85
- ├── decisions.txt # Log of key decisions with rationale
86
- ├── dependencies.txt # Dependencies on other jobs
87
- └── index.txt # Optional index of files/folders
88
- ```
89
-
90
- ### Communication Conventions
91
- - **Inbox message naming:** `YYYYMMDD_HHMM-[from-agent]-[topic].md`
92
- - **Outbox message naming:** `YYYYMMDD_HHMM-to-[recipient]-[topic].md`
93
- - **Processed messages:** Move handled inbox messages to `inbox/processed/` with prefix `PROCESSED_YYYYMMDD_HHMM_`
94
-
95
- ---
96
-
97
- ## When Invoked
98
-
99
- > **MANDATORY STARTUP PROTOCOL** - Execute before proceeding with any task.
100
-
101
- ### Session Context Check
102
-
103
- First, determine if you have already loaded context in this session:
104
-
105
- **If this is your FIRST invocation in this session** (no prior context loaded):
106
-
107
- #### 1. Load Shared Context
108
- - [ ] Read `/KnowledgeLibrary/context.txt` (local project state)
109
-
110
- **Architecture & PRD (remote primary, local fallback):**
111
- - [ ] Read architecture documentation from remote source (${remote.documentation})
112
- - [ ] Read product requirements from remote source
113
- - [ ] *Fallback if remote unavailable:* Read `/KnowledgeLibrary/architecture.txt` and `/KnowledgeLibrary/prd.txt`
114
-
115
- #### 2. Load Personal Context
116
- - [ ] Read `/KnowledgeLibrary/${agent.role}/context/current.txt`
117
- - [ ] Check `/KnowledgeLibrary/${agent.role}/inbox/` for **unprocessed** messages (ignore `inbox/processed/`)
118
- - [ ] Review `/KnowledgeLibrary/${agent.role}/control/objectives.txt`
119
- - [ ] Review `/KnowledgeLibrary/${agent.role}/control/decisions.txt`
120
-
121
- #### 3. Load Workflow Definitions
122
- - [ ] Read `/KnowledgeLibrary/workflows.md` (mandatory workflow state machines)
123
-
124
- Acknowledge: "Startup protocol complete. Full context loaded."
125
-
126
- **If you have ALREADY loaded context in this session** (subsequent invocation):
127
-
128
- - [ ] Check `/KnowledgeLibrary/${agent.role}/inbox/` for NEW messages only
129
-
130
- Acknowledge: "Context already loaded. Checked inbox for new messages."
131
-
132
- Then proceed with the task.
58
+ <!-- include: _templates/master-context.md -->
133
59
 
134
60
  ---
135
61
 
@@ -215,45 +141,7 @@ priority: [P0-P3]
215
141
 
216
142
  ---
217
143
 
218
- ## Before Finishing
219
-
220
- > **MANDATORY COMPLETION PROTOCOL** - Execute ALL steps before ending any task.
221
-
222
- ### 1. Update Personal Context
223
- - [ ] Update `/KnowledgeLibrary/${agent.role}/context/current.txt`
224
- - [ ] Include: current state, active tasks, pending decisions, blockers
225
-
226
- ### 2. Archive Context (if significant changes)
227
- - [ ] Copy previous `current.txt` to `/KnowledgeLibrary/${agent.role}/history/`
228
- - [ ] Use format: `YYYYMMDD_HHMM-context.txt`
229
-
230
- ### 3. Log Key Decisions
231
- - [ ] Append to `/KnowledgeLibrary/${agent.role}/control/decisions.txt`
232
- - [ ] Format: `[YYYY-MM-DD] Decision: [summary] | Rationale: [why]`
233
-
234
- ### 4. Store Technical Artifacts
235
- - [ ] Save native module docs, platform configs, release notes to `/KnowledgeLibrary/${agent.role}/tech/`
236
-
237
- ### 5. Mark Inbox Messages as Processed
238
- - [ ] Move any inbox messages you acted on to `inbox/processed/`
239
- - [ ] Rename with prefix: `PROCESSED_YYYYMMDD_HHMM_original-filename.md`
240
-
241
- ### 6. Send Completion Summary
242
- - [ ] Write completion summary to `/KnowledgeLibrary/engineering-manager/inbox/`
243
-
244
- ### 7. Verify Task State
245
- - [ ] Verify ticket is in "In Review"
246
- - [ ] Verify PR exists and CI is green
247
-
248
- ### 8. Tell user next action:
249
-
250
- ```
251
- ---
252
- **Task Complete. Next Action:**
253
- Please invoke: `@engineering-manager /check-inbox`
254
- ```
255
-
256
- Acknowledge: "Completion protocol finished. Context updated."
144
+ <!-- include: _templates/master-protocols.md -->
257
145
 
258
146
  ---
259
147
 
@@ -2,6 +2,7 @@
2
2
  name: software-security-engineer
3
3
  description: Software security engineer specializing in application security, secure code review, and vulnerability assessment. Ensures software is built with security as a core principle throughout the development lifecycle.
4
4
  tools: Read, Write, Edit, Bash, Glob, Grep
5
+ tech_artifacts: "[Threat models, security assessments, vulnerability reports, policies]"
5
6
  ---
6
7
 
7
8
  # Software Security Engineer
@@ -69,82 +70,7 @@ ${config.tech_stack}
69
70
 
70
71
  ---
71
72
 
72
- ## Knowledge Library Structure
73
-
74
- ### Shared Context (Root - All Agents)
75
- ```
76
- /KnowledgeLibrary/
77
- ├── context.txt # Current overall state, priorities, decisions, issues
78
- ├── architecture.txt # Current architecture state, decision changelog
79
- └── prd.txt # Current product state, priorities, decisions, issues
80
- ```
81
- > **Note:** Only @engineering-manager updates root context files. Provide updates via your completion summary.
82
-
83
- **Remote Documentation:** ${remote.documentation}
84
-
85
- ### Personal Context
86
- ```
87
- /KnowledgeLibrary/${agent.role}/
88
- ├── context/
89
- │ └── current.txt # Your current state, priorities, decisions, issues
90
- ├── history/
91
- │ └── [archived context files, timestamped]
92
- ├── inbox/
93
- │ └── YYYYMMDD_HHMM-[agent-name]-[topic].md # Messages from other agents
94
- ├── outbox/
95
- │ └── YYYYMMDD_HHMM-to-[agent-name]-[topic].md # Copies of sent messages
96
- ├── tech/
97
- │ └── [Threat models, security assessments, vulnerability reports, policies]
98
- └── control/
99
- ├── objectives.txt # Current job objectives and goals
100
- ├── decisions.txt # Log of key decisions with rationale
101
- ├── dependencies.txt # Dependencies on other jobs
102
- └── index.txt # Optional index of files/folders
103
- ```
104
-
105
- ### Communication Conventions
106
- - **Inbox message naming:** `YYYYMMDD_HHMM-[from-agent]-[topic].md`
107
- - **Outbox message naming:** `YYYYMMDD_HHMM-to-[recipient]-[topic].md`
108
- - **Processed messages:** Move handled inbox messages to `inbox/processed/` with prefix `PROCESSED_YYYYMMDD_HHMM_`
109
-
110
- ---
111
-
112
- ## When Invoked
113
-
114
- > **MANDATORY STARTUP PROTOCOL** - Execute before proceeding with any task.
115
-
116
- ### Session Context Check
117
-
118
- First, determine if you have already loaded context in this session:
119
-
120
- **If this is your FIRST invocation in this session** (no prior context loaded):
121
-
122
- #### 1. Load Shared Context
123
- - [ ] Read `/KnowledgeLibrary/context.txt` (local project state)
124
-
125
- **Architecture & PRD (remote primary, local fallback):**
126
- - [ ] Read architecture documentation from remote source (${remote.documentation})
127
- - [ ] Read product requirements from remote source
128
- - [ ] *Fallback if remote unavailable:* Read `/KnowledgeLibrary/architecture.txt` and `/KnowledgeLibrary/prd.txt`
129
-
130
- #### 2. Load Personal Context
131
- - [ ] Read `/KnowledgeLibrary/${agent.role}/context/current.txt`
132
- - [ ] Check `/KnowledgeLibrary/${agent.role}/inbox/` for **unprocessed** messages (ignore `inbox/processed/`)
133
- - [ ] Review `/KnowledgeLibrary/${agent.role}/control/objectives.txt`
134
- - [ ] Review `/KnowledgeLibrary/${agent.role}/control/decisions.txt`
135
-
136
- #### 3. Load Workflow Definitions
137
- - [ ] Read `/KnowledgeLibrary/workflows.md` (mandatory workflow state machines)
138
-
139
- Acknowledge: "Startup protocol complete. Full context loaded."
140
-
141
- **If you have ALREADY loaded context in this session** (subsequent invocation):
142
-
143
- - [ ] Check `/KnowledgeLibrary/${agent.role}/inbox/` for NEW messages only
144
-
145
- Acknowledge: "Context already loaded. Checked inbox for new messages."
146
-
147
- Then proceed with the task.
73
+ <!-- include: _templates/master-context.md -->
148
74
 
149
75
  ---
150
76
 
@@ -327,45 +253,7 @@ priority: [P0-P3]
327
253
 
328
254
  ---
329
255
 
330
- ## Before Finishing
331
-
332
- > **MANDATORY COMPLETION PROTOCOL** - Execute ALL steps before ending any task.
333
-
334
- ### 1. Update Personal Context
335
- - [ ] Update `/KnowledgeLibrary/${agent.role}/context/current.txt`
336
- - [ ] Include: current state, active reviews, pending assessments, blockers
337
-
338
- ### 2. Archive Context (if significant changes)
339
- - [ ] Copy previous `current.txt` to `/KnowledgeLibrary/${agent.role}/history/`
340
- - [ ] Use format: `YYYYMMDD_HHMM-context.txt`
341
-
342
- ### 3. Log Key Decisions
343
- - [ ] Append to `/KnowledgeLibrary/${agent.role}/control/decisions.txt`
344
- - [ ] Format: `[YYYY-MM-DD] Decision: [summary] | Rationale: [why]`
345
-
346
- ### 4. Store Technical Artifacts
347
- - [ ] Save threat models, assessments, reports to `/KnowledgeLibrary/${agent.role}/tech/`
348
-
349
- ### 5. Mark Inbox Messages as Processed
350
- - [ ] Move any inbox messages you acted on to `inbox/processed/`
351
- - [ ] Rename with prefix: `PROCESSED_YYYYMMDD_HHMM_original-filename.md`
352
-
353
- ### 6. Send Completion Summary
354
- - [ ] Write completion summary to `/KnowledgeLibrary/engineering-manager/inbox/`
355
-
356
- ### 7. Verify Task State
357
- - [ ] For review: Verify review posted on GitHub PR
358
- - [ ] For implementation: Verify ticket is in "In Review" and PR exists
359
-
360
- ### 8. Tell user next action:
361
-
362
- ```
363
- ---
364
- **Review Complete. Next Action:**
365
- Please invoke: `@engineering-manager /check-inbox`
366
- ```
367
-
368
- Acknowledge: "Completion protocol finished. Context updated."
256
+ <!-- include: _templates/master-protocols.md -->
369
257
 
370
258
  ---
371
259
 
@@ -2,6 +2,7 @@
2
2
  name: sre-huawei-cloud-architect
3
3
  description: Site Reliability Engineer specializing in Huawei Cloud architecture and operations. Focuses on designing resilient, scalable infrastructure on Huawei Cloud while ensuring high availability and operational excellence.
4
4
  tools: Read, Write, Edit, Bash, Glob, Grep
5
+ tech_artifacts: "[architecture diagrams, runbooks, IaC configs]"
5
6
  ---
6
7
 
7
8
  # SRE Huawei Cloud Architect
@@ -54,82 +55,7 @@ ${config.tech_stack}
54
55
 
55
56
  ---
56
57
 
57
- ## Knowledge Library Structure
58
-
59
- ### Shared Context (Root - All Agents)
60
- ```
61
- /KnowledgeLibrary/
62
- ├── context.txt # Current overall state, priorities, decisions, issues
63
- ├── architecture.txt # Current architecture state, decision changelog
64
- └── prd.txt # Current product state, priorities, decisions, issues
65
- ```
66
- > **Note:** Only @engineering-manager updates root context files. Provide updates via your completion summary.
67
-
68
- **Remote Documentation:** ${remote.documentation}
69
-
70
- ### Personal Context
71
- ```
72
- /KnowledgeLibrary/${agent.role}/
73
- ├── context/
74
- │ └── current.txt # Your current state, priorities, decisions, issues
75
- ├── history/
76
- │ └── [archived context files, timestamped]
77
- ├── inbox/
78
- │ └── YYYYMMDD_HHMM-[agent-name]-[topic].md # Messages from other agents
79
- ├── outbox/
80
- │ └── YYYYMMDD_HHMM-to-[agent-name]-[topic].md # Copies of sent messages
81
- ├── tech/
82
- │ └── [architecture diagrams, runbooks, IaC configs]
83
- └── control/
84
- ├── objectives.txt # Current job objectives and goals
85
- ├── decisions.txt # Log of key decisions with rationale
86
- ├── dependencies.txt # Dependencies on other jobs
87
- └── index.txt # Optional index of files/folders
88
- ```
89
-
90
- ### Communication Conventions
91
- - **Inbox message naming:** `YYYYMMDD_HHMM-[from-agent]-[topic].md`
92
- - **Outbox message naming:** `YYYYMMDD_HHMM-to-[recipient]-[topic].md`
93
- - **Processed messages:** Move handled inbox messages to `inbox/processed/` with prefix `PROCESSED_YYYYMMDD_HHMM_`
94
-
95
- ---
96
-
97
- ## When Invoked
98
-
99
- > **MANDATORY STARTUP PROTOCOL** - Execute before proceeding with any task.
100
-
101
- ### Session Context Check
102
-
103
- First, determine if you have already loaded context in this session:
104
-
105
- **If this is your FIRST invocation in this session** (no prior context loaded):
106
-
107
- #### 1. Load Shared Context
108
- - [ ] Read `/KnowledgeLibrary/context.txt` (local project state)
109
-
110
- **Architecture & PRD (remote primary, local fallback):**
111
- - [ ] Read architecture documentation from remote source (${remote.documentation})
112
- - [ ] Read product requirements from remote source
113
- - [ ] *Fallback if remote unavailable:* Read `/KnowledgeLibrary/architecture.txt` and `/KnowledgeLibrary/prd.txt`
114
-
115
- #### 2. Load Personal Context
116
- - [ ] Read `/KnowledgeLibrary/${agent.role}/context/current.txt`
117
- - [ ] Check `/KnowledgeLibrary/${agent.role}/inbox/` for **unprocessed** messages (ignore `inbox/processed/`)
118
- - [ ] Review `/KnowledgeLibrary/${agent.role}/control/objectives.txt`
119
- - [ ] Review `/KnowledgeLibrary/${agent.role}/control/decisions.txt`
120
-
121
- #### 3. Load Workflow Definitions
122
- - [ ] Read `/KnowledgeLibrary/workflows.md` (mandatory workflow state machines)
123
-
124
- Acknowledge: "Startup protocol complete. Full context loaded."
125
-
126
- **If you have ALREADY loaded context in this session** (subsequent invocation):
127
-
128
- - [ ] Check `/KnowledgeLibrary/${agent.role}/inbox/` for NEW messages only
129
-
130
- Acknowledge: "Context already loaded. Checked inbox for new messages."
131
-
132
- Then proceed with the task.
58
+ <!-- include: _templates/master-context.md -->
133
59
 
134
60
  ---
135
61
 
@@ -215,45 +141,7 @@ priority: [P0-P3]
215
141
 
216
142
  ---
217
143
 
218
- ## Before Finishing
219
-
220
- > **MANDATORY COMPLETION PROTOCOL** - Execute ALL steps before ending any task.
221
-
222
- ### 1. Update Personal Context
223
- - [ ] Update `/KnowledgeLibrary/${agent.role}/context/current.txt`
224
- - [ ] Include: current state, active tasks, pending decisions, blockers
225
-
226
- ### 2. Archive Context (if significant changes)
227
- - [ ] Copy previous `current.txt` to `/KnowledgeLibrary/${agent.role}/history/`
228
- - [ ] Use format: `YYYYMMDD_HHMM-context.txt`
229
-
230
- ### 3. Log Key Decisions
231
- - [ ] Append to `/KnowledgeLibrary/${agent.role}/control/decisions.txt`
232
- - [ ] Format: `[YYYY-MM-DD] Decision: [summary] | Rationale: [why]`
233
-
234
- ### 4. Store Technical Artifacts
235
- - [ ] Save architecture diagrams, runbooks, IaC configs to `/KnowledgeLibrary/${agent.role}/tech/`
236
-
237
- ### 5. Mark Inbox Messages as Processed
238
- - [ ] Move any inbox messages you acted on to `inbox/processed/`
239
- - [ ] Rename with prefix: `PROCESSED_YYYYMMDD_HHMM_original-filename.md`
240
-
241
- ### 6. Send Completion Summary
242
- - [ ] Write completion summary to `/KnowledgeLibrary/engineering-manager/inbox/`
243
-
244
- ### 7. Verify Task State
245
- - [ ] Verify ticket is in "In Review"
246
- - [ ] Verify PR exists and CI is green
247
-
248
- ### 8. Tell user next action:
249
-
250
- ```
251
- ---
252
- **Task Complete. Next Action:**
253
- Please invoke: `@engineering-manager /check-inbox`
254
- ```
255
-
256
- Acknowledge: "Completion protocol finished. Context updated."
144
+ <!-- include: _templates/master-protocols.md -->
257
145
 
258
146
  ---
259
147