@atollhq/skill-claude 0.4.4 → 0.4.5
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/package.json
CHANGED
package/skill/SKILL.md
CHANGED
|
@@ -156,6 +156,7 @@ atoll milestone upsert --project <project-id> --name "v1.0" --date 2026-06-01
|
|
|
156
156
|
# Goals, KPIs, and initiatives
|
|
157
157
|
atoll goal create --title "Reach 100 paying customers by Q2" --target-date 2026-06-30
|
|
158
158
|
atoll kpi create --name paying_customers --goal "Reach 100 paying customers by Q2" --unit count --target 100 --current 34
|
|
159
|
+
atoll kpi create --name mvp_tasks_done --goal "Launch MVP" --internal-task-completion
|
|
159
160
|
atoll initiative create --title "Content pipeline" --goal "Reach 100 paying customers by Q2" --status active
|
|
160
161
|
atoll initiative kpi link "Content pipeline" paying_customers --impact "+30 customers/mo"
|
|
161
162
|
atoll kpi snapshot add paying_customers --value 42 --initiative "Content pipeline" --note "End-of-week Stripe check"
|
|
@@ -172,9 +173,32 @@ CLI JSON conventions:
|
|
|
172
173
|
- Use `--json` for machine-readable output.
|
|
173
174
|
- List commands return `{ resource, items, total, limit, offset, nextOffset, truncated, hint }`.
|
|
174
175
|
- Diagnostics and errors go to stderr.
|
|
175
|
-
-
|
|
176
|
+
- Interactive CLI update notices also go to stderr and are suppressed for JSON/non-TTY/CI/completion flows.
|
|
177
|
+
- `atoll agent-context` returns a versioned command/flag manifest, available profile context, and structured `cli.update_available` metadata.
|
|
178
|
+
- `atoll heartbeat --json` includes the same structured `cli` update metadata for agents.
|
|
176
179
|
- `atoll plan validate/apply` consumes `schemaVersion: "atoll.plan.v1"` files with `milestones`, `issues`, `dependencies`, `initiativeLinks`, and `milestoneLinks`; local `key` values can be referenced by `milestoneKey`, `issueKey`, `dependsOn`, `blockedBy`, or `blocks`.
|
|
177
180
|
|
|
181
|
+
## KPI HTTP Sync Drafts
|
|
182
|
+
|
|
183
|
+
When a human asks you to help automate a KPI from a third-party API, use this Atoll skill. If the current agent environment does not have the `atoll-api` skill installed, tell the user to install it before continuing or use the Atoll CLI/MCP tools directly if they are available.
|
|
184
|
+
|
|
185
|
+
Agents may create draft syncs and validate proposed configs only after a human admin has allowlisted the exact destination host in Atoll. Human admins must review the draft in Atoll, enter secrets, dry-run, publish, disable, or run-now with snapshot writing.
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
atoll kpi sync validate <kpi-id> \
|
|
189
|
+
--name "PostHog visitors" \
|
|
190
|
+
--schedule daily \
|
|
191
|
+
--url https://us.posthog.com/api/projects/123/query/ \
|
|
192
|
+
--pointer /results/0/value \
|
|
193
|
+
--auth-secret-ref posthog_api_key
|
|
194
|
+
|
|
195
|
+
atoll kpi sync draft <kpi-id> --file sync-draft.json
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
Draft configs must be `GET` only, `https` only, JSON only, no redirects, no request bodies, no inline query strings, no secret values, and an already-allowlisted exact destination host. Use secret reference names only for `Authorization: Bearer <secretRef>` or `X-API-Key: <secretRef>`.
|
|
199
|
+
|
|
200
|
+
Never include API keys, bearer tokens, cookies, raw third-party response bodies, or secret values in prompts, draft files, comments, or issue descriptions. If a human pasted a secret into chat, stop and ask them to rotate it and enter the replacement directly in Atoll.
|
|
201
|
+
|
|
178
202
|
## Remote MCP Server
|
|
179
203
|
|
|
180
204
|
Use `@atollhq/mcp-server` when an agent or ChatGPT-style client needs Atoll access but cannot run a local CLI command or read local auth profiles.
|
|
@@ -322,7 +346,7 @@ atoll issue update ATOLL-42 --status done # complete
|
|
|
322
346
|
### Set up the strategy chain
|
|
323
347
|
|
|
324
348
|
1. `POST /api/orgs/{id}/goals` -- create goal with `target_date`
|
|
325
|
-
2. `POST /api/orgs/{id}/kpis` -- attach KPI with `goal_id`, `target_value`, `target_direction`
|
|
349
|
+
2. `POST /api/orgs/{id}/kpis` -- attach KPI with `goal_id`, `target_value`, `target_direction`; for launch-style goals you can use `source_type: "formula"` with `source_config.formula: "goal_linked_issue_completion"` to calculate done directly linked and milestone-linked tasks over total linked tasks
|
|
326
350
|
3. `POST /api/orgs/{id}/kpis/{kpiId}/snapshots` -- record measurement (auto-updates `current_value`)
|
|
327
351
|
4. `POST /api/orgs/{id}/initiatives` -- create initiative linked to goal
|
|
328
352
|
5. `POST /api/orgs/{id}/initiatives/{id}/kpi-impacts` -- declare expected KPI impact
|
|
@@ -201,6 +201,21 @@ Roles: `owner`, `admin`, `member`, `guest`.
|
|
|
201
201
|
| DELETE | `/api/orgs/{id}/kpis/{kpiId}` | Delete KPI (admin/owner only) |
|
|
202
202
|
| GET | `/api/orgs/{id}/kpis/{kpiId}/snapshots` | List snapshots (optional `?limit=50`) |
|
|
203
203
|
| POST | `/api/orgs/{id}/kpis/{kpiId}/snapshots` | Record a snapshot |
|
|
204
|
+
| GET | `/api/orgs/{id}/kpi-http-sync-policy` | List exact-host KPI HTTP sync allowlist policy |
|
|
205
|
+
| POST | `/api/orgs/{id}/kpi-http-sync-policy` | Add an allowed exact host (human admin only) |
|
|
206
|
+
| GET | `/api/orgs/{id}/kpis/{kpiId}/http-syncs` | List KPI HTTP syncs |
|
|
207
|
+
| POST | `/api/orgs/{id}/kpis/{kpiId}/http-syncs` | Create a draft KPI HTTP sync |
|
|
208
|
+
| PUT | `/api/orgs/{id}/kpis/{kpiId}/http-syncs` | Validate a proposed KPI HTTP sync config without storing or running it |
|
|
209
|
+
| GET | `/api/orgs/{id}/kpis/{kpiId}/http-syncs/{syncId}` | Get a KPI HTTP sync |
|
|
210
|
+
| PATCH | `/api/orgs/{id}/kpis/{kpiId}/http-syncs/{syncId}` | Update a KPI HTTP sync draft (human admin only) |
|
|
211
|
+
| POST | `/api/orgs/{id}/kpis/{kpiId}/http-syncs/{syncId}/validate` | Validate a stored sync (human admin only) |
|
|
212
|
+
| GET | `/api/orgs/{id}/kpis/{kpiId}/http-syncs/{syncId}/secrets` | List sanitized secret metadata (human admin only) |
|
|
213
|
+
| PUT | `/api/orgs/{id}/kpis/{kpiId}/http-syncs/{syncId}/secrets` | Add or replace a sync secret value (human admin only) |
|
|
214
|
+
| POST | `/api/orgs/{id}/kpis/{kpiId}/http-syncs/{syncId}/dry-run` | Execute a sanitized dry run without writing a snapshot (human admin only) |
|
|
215
|
+
| POST | `/api/orgs/{id}/kpis/{kpiId}/http-syncs/{syncId}/publish` | Publish a validated, dry-run sync (human admin only) |
|
|
216
|
+
| POST | `/api/orgs/{id}/kpis/{kpiId}/http-syncs/{syncId}/disable` | Disable a sync (human admin only) |
|
|
217
|
+
| POST | `/api/orgs/{id}/kpis/{kpiId}/http-syncs/{syncId}/run-now` | Preview by default; write a snapshot only with explicit admin confirmation |
|
|
218
|
+
| GET | `/api/orgs/{id}/kpis/{kpiId}/http-syncs/{syncId}/runs` | List sanitized sync run history (human admin only) |
|
|
204
219
|
|
|
205
220
|
## Initiatives
|
|
206
221
|
|
|
@@ -100,6 +100,22 @@ Creation endpoints may return `402` when an org reaches its billing plan limit:
|
|
|
100
100
|
}
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
+
Calculated task-completion KPIs use `source_type: "formula"` and are calculated from linked work instead of snapshots:
|
|
104
|
+
|
|
105
|
+
```json
|
|
106
|
+
{
|
|
107
|
+
"name": "mvp_tasks_done",
|
|
108
|
+
"goal_id": "goal-uuid",
|
|
109
|
+
"source_type": "formula",
|
|
110
|
+
"source_config": {
|
|
111
|
+
"formula": "goal_linked_issue_completion",
|
|
112
|
+
"done_statuses": ["done"]
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
For `goal_linked_issue_completion`, `current_value` is the count of non-archived directly linked issues and milestone-linked issues in `done` status and `target_value` is the total non-archived directly linked issue and milestone-linked issue count under initiatives for the goal.
|
|
118
|
+
|
|
103
119
|
## KPI Snapshots
|
|
104
120
|
|
|
105
121
|
```json
|
|
@@ -114,6 +130,40 @@ Creation endpoints may return `402` when an org reaches its billing plan limit:
|
|
|
114
130
|
|
|
115
131
|
Recording a snapshot auto-updates the KPI's `current_value`.
|
|
116
132
|
|
|
133
|
+
Calculated KPIs do not accept manual snapshots.
|
|
134
|
+
|
|
135
|
+
`api_poll` snapshots are written by published KPI HTTP Syncs and include provenance: `source_sync_id`, `source_sync_run_id`, `source_config_hash`, `source_recorded_for`, `observed_at`, and optional `provider_recorded_at`.
|
|
136
|
+
|
|
137
|
+
## KPI HTTP Syncs
|
|
138
|
+
|
|
139
|
+
```json
|
|
140
|
+
{
|
|
141
|
+
"name": "PostHog visitors",
|
|
142
|
+
"schedule": "daily",
|
|
143
|
+
"request_config": {
|
|
144
|
+
"method": "GET",
|
|
145
|
+
"url": "https://us.posthog.com/api/projects/123/query/",
|
|
146
|
+
"headers": {
|
|
147
|
+
"Authorization": {
|
|
148
|
+
"secretRef": "posthog_api_key",
|
|
149
|
+
"format": "Bearer {value}"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"extraction_config": {
|
|
154
|
+
"contentType": "json",
|
|
155
|
+
"pointer": "/results/0/value",
|
|
156
|
+
"numeric": {
|
|
157
|
+
"mode": "number",
|
|
158
|
+
"percentageScale": null
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"freshness_config": {}
|
|
162
|
+
}
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
V1 syncs are `GET` only, `https` only, JSON only, exact-host allowlisted, no redirects, no request bodies, no inline query strings, and no secret values. Machine actors can create drafts and validate configs only after the host is allowlisted. Human admins manage allowlists, secrets, dry-runs, publishing, disabling, and snapshot-writing run-now actions in Atoll.
|
|
166
|
+
|
|
117
167
|
## Initiative Fields
|
|
118
168
|
|
|
119
169
|
```json
|
|
@@ -295,6 +345,9 @@ Each finding carries whichever entity ids apply: `goal_id`, `kpi_id`, `initiativ
|
|
|
295
345
|
| KPI | `target_direction` | `increase`, `decrease`, `maintain` |
|
|
296
346
|
| KPI | `source_type` | `manual`, `webhook`, `api_poll`, `formula` |
|
|
297
347
|
| KPI snapshot | `source` | `manual`, `webhook`, `api_poll`, `formula`, `agent` |
|
|
348
|
+
| KPI HTTP sync | `status` | `draft`, `published`, `disabled` |
|
|
349
|
+
| KPI HTTP sync secret | `placement` | `authorization_bearer`, `x_api_key` |
|
|
350
|
+
| KPI HTTP sync run | `status` | `queued`, `running`, `success`, `error` |
|
|
298
351
|
| Initiative | `status` | `proposed`, `active`, `completed`, `paused`, `cancelled` |
|
|
299
352
|
| Status update | `status` | `on_track`, `at_risk`, `off_track` |
|
|
300
353
|
| Member | `role` | `owner`, `admin`, `member`, `guest` |
|