agent-context-store 0.2.8 → 0.2.9

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
@@ -85,60 +85,100 @@ A summary is shown before anything is written, and you can abort with `n`.
85
85
 
86
86
  ## Step 3: Run Your First Workflow
87
87
 
88
- Once the store is initialized, use `acs` to create artifacts, validate work, hand off between roles, and package context for the next agent. The examples below use task `DEMO-0001` — replace it with your own task ID.
88
+ After setup, each team member opens their AI agent (Cursor or Claude Code) and invokes the matching role skill by name. The skill tells the agent exactly which `acs` commands to run the human never types `acs` directly.
89
89
 
90
- ### Use Case 1 — BA captures requirements and hands off to SA
90
+ > **Skill invocation syntax**
91
+ > - Cursor / Claude Code: `@acs-ba`, `@acs-sa`, `@acs-dev`, `@acs-qa`
91
92
 
92
- The BA agent writes a requirements document, confirms all artifacts are valid, and creates a locked handoff record for the SA agent to pick up.
93
+ The examples below follow a single feature task `DEMO-0001: Login with OTP` through the full BA SA Dev QA lifecycle.
93
94
 
95
+ ---
96
+
97
+ ### Use Case 1 — BA captures requirements
98
+
99
+ **Human → Cursor / Claude Code:**
100
+ ```
101
+ /acs-ba We need to add OTP-based login. Task ID is DEMO-0001. Title: "Login with OTP".
102
+ ```
103
+
104
+ The `acs-ba` skill activates and the agent internally runs:
94
105
  ```bash
95
- acs roles # see available roles
96
- acs role explain ba --task DEMO-0001 # show what BA should produce
97
- acs ba new srs --task DEMO-0001 --title "Login with OTP" # create the SRS artifact
98
- acs validate --role ba --task DEMO-0001 # confirm artifacts are complete
99
- acs handoff create --from ba --to sa --task DEMO-0001 # lock the BA→SA contract
100
- acs handoff check HOFF-DEMO-0001-BA-SA # verify the handoff record
101
- acs package --task DEMO-0001 --role sa # bundle context for the SA agent
106
+ acs status && acs doctor
107
+ acs ba new srs --task DEMO-0001 --title "Login with OTP"
108
+ acs ba new user-story --task DEMO-0001 --title "Login with OTP User Story"
109
+ acs ba new acceptance-criteria --task DEMO-0001 --title "Login with OTP Acceptance Criteria"
110
+ acs validate --role ba --task DEMO-0001
111
+ acs handoff create --from ba --to sa --task DEMO-0001
112
+ acs package --task DEMO-0001 --role sa
113
+ acs index
102
114
  ```
103
115
 
104
- ### Use Case 2 SA produces design artifacts and hands off to Dev
116
+ The agent ends its response with a structured `[HANDOFF: BA → SA | DEMO-0001]` prompt for the SA agent to pick up.
105
117
 
106
- The SA agent reads the BA package, produces the system design and API spec, then hands off a verified package to the Dev agent.
118
+ ---
107
119
 
120
+ ### Use Case 2 — SA produces system design
121
+
122
+ **Human → Cursor / Claude Code:**
123
+ ```
124
+ /acs-sa Pick up DEMO-0001 from BA. Design the OTP login system.
125
+ ```
126
+
127
+ The `acs-sa` skill activates and the agent internally runs:
108
128
  ```bash
109
- acs next --role sa --task DEMO-0001 # see what SA needs to produce
129
+ acs next --role sa --task DEMO-0001
110
130
  acs sa new sdd --task DEMO-0001 --title "Login with OTP System Design"
111
131
  acs sa new adr --task DEMO-0001 --title "Use Redis for OTP State"
112
132
  acs sa new api-design --task DEMO-0001 --title "OTP Login API"
113
- acs validate --role sa --task DEMO-0001 # confirm design artifacts pass validation
133
+ acs validate --role sa --task DEMO-0001
114
134
  acs handoff create --from sa --to dev --task DEMO-0001
115
- acs package --task DEMO-0001 --role dev # bundle context for the Dev agent
135
+ acs package --task DEMO-0001 --role dev
136
+ acs index
116
137
  ```
117
138
 
118
- ### Use Case 3 Dev implements and hands off to QA
139
+ The agent ends its response with a `[HANDOFF: SA DEV | DEMO-0001]` prompt.
119
140
 
120
- The Dev agent reads the SA package, records implementation notes, and hands off to QA with a ready-to-test package.
141
+ ---
121
142
 
143
+ ### Use Case 3 — Dev implements the feature
144
+
145
+ **Human → Cursor / Claude Code:**
146
+ ```
147
+ /acs-dev Implement DEMO-0001 based on the SA design. Task ID is DEMO-0001.
148
+ ```
149
+
150
+ The `acs-dev` skill activates and the agent internally runs:
122
151
  ```bash
123
- acs next --role dev --task DEMO-0001 # confirm inputs are available
124
- acs dev new implementation-note --task DEMO-0001 # record implementation decisions
152
+ acs next --role dev --task DEMO-0001
153
+ acs dev new implementation-note --task DEMO-0001
125
154
  acs validate --role dev --task DEMO-0001
126
155
  acs handoff create --from dev --to qa --task DEMO-0001
127
- acs package --task DEMO-0001 --role qa # bundle context for the QA agent
156
+ acs package --task DEMO-0001 --role qa
157
+ acs index
128
158
  ```
129
159
 
130
- ### Use Case 4 QA writes a test plan and closes the loop
160
+ The agent ends its response with a `[HANDOFF: DEV QA | DEMO-0001]` prompt.
161
+
162
+ ---
131
163
 
132
- The QA agent reads the Dev package and writes a structured test plan to complete the task lifecycle.
164
+ ### Use Case 4 QA validates and closes the task
133
165
 
166
+ **Human → Cursor / Claude Code:**
167
+ ```
168
+ /acs-qa Write the test plan for DEMO-0001.
169
+ ```
170
+
171
+ The `acs-qa` skill activates and the agent internally runs:
134
172
  ```bash
135
- acs next --role qa --task DEMO-0001 # confirm handoff from Dev is present
173
+ acs next --role qa --task DEMO-0001
136
174
  acs qa new test-plan --task DEMO-0001 --title "OTP Login Test Plan"
137
175
  acs validate --role qa --task DEMO-0001
138
- acs handoff list --task DEMO-0001 # review all handoffs for the task
139
- acs index # rebuild index.json
176
+ acs handoff list --task DEMO-0001
177
+ acs index
140
178
  ```
141
179
 
180
+ All four role artifacts and handoff records are now persisted in the store.
181
+
142
182
  ## How Agents Should Use It
143
183
 
144
184
  Give each agent access to the same project (in-repo mode) or context store repository (dedicated mode) and instruct it to use `acs` for durable handoffs.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: acs-ba
3
- description: ACS Business Analyst role — capture requirements as SRS artifacts and hand off to the SA agent. Use when acting as BA, writing requirements, or starting a new task from scratch.
3
+ description: ACS Business Analyst role — capture requirements as SRS, user story, and acceptance criteria artifacts, then hand off to the SA agent. Use when acting as BA, writing requirements, or starting a new task from scratch.
4
4
  ---
5
5
 
6
6
  # ACS — Business Analyst (BA) Role
@@ -14,13 +14,15 @@ acs doctor
14
14
 
15
15
  Fix any errors before continuing.
16
16
 
17
- ## 2. Create the SRS Artifact
17
+ ## 2. Create BA Artifacts
18
18
 
19
19
  ```bash
20
20
  acs ba new srs --task TASK-123 --title "Feature requirements"
21
+ acs ba new user-story --task TASK-123 --title "Feature user story"
22
+ acs ba new acceptance-criteria --task TASK-123 --title "Feature acceptance criteria"
21
23
  ```
22
24
 
23
- **Fill every section immediately** — replace all placeholders with real content from the conversation and source files. List consulted files under `source_refs`. Complete the Validation Checklist at the end of the file.
25
+ **Fill every section immediately** — replace all placeholders with real content from the conversation and source files. List consulted files under `source_refs`. Complete the Validation Checklist at the end of each file.
24
26
 
25
27
  ## 3. Validate
26
28
 
@@ -49,6 +51,8 @@ The BA role has completed requirements for TASK-123.
49
51
 
50
52
  Artifacts ready for you:
51
53
  - <path to SRS artifact>
54
+ - <path to user story artifact>
55
+ - <path to acceptance criteria artifact>
52
56
 
53
57
  Context package: <path printed by acs package>
54
58
 
@@ -60,5 +64,5 @@ Your next steps (SA role):
60
64
  5. When done, hand off to DEV: acs handoff create --from sa --to dev --task TASK-123
61
65
 
62
66
  Open questions from BA (resolve before or during design):
63
- - <list any open questions from the SRS>
67
+ - <list any open questions from the BA artifacts>
64
68
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-context-store",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "acs CLI for Agent Context Store Toolkit.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@inquirer/prompts": "^8.4.2",
26
- "agent-context-store-core": "0.2.8"
26
+ "agent-context-store-core": "0.2.9"
27
27
  },
28
28
  "scripts": {
29
29
  "build": "tsc -p tsconfig.json"