@atollhq/skill-claude 0.4.9 → 0.4.10

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
@@ -12,14 +12,14 @@ npx @atollhq/skill-claude@latest --profile agent-a --key sk_atoll_... --org your
12
12
  ATOLL_API_KEY=sk_atoll_... ATOLL_ORG_ID=your-org-id npx @atollhq/skill-claude@latest
13
13
  ```
14
14
 
15
- Optional defaults: `--project`, `--team`, and `--base-url` are stored with the selected mode. Use `--no-project`, `--no-team`, or `--no-base-url` to clear previously saved defaults. Pass `--profile` to store credentials and defaults only in that named Atoll CLI profile; Claude settings keep only `ATOLL_PROFILE` so direct CLI commands can use the profile safely. Omit `--profile` to use env-var mode, which writes `ATOLL_ENV_MODE=1` with the credential settings.
15
+ Optional defaults: `--project`, `--team`, and `--base-url` are stored with the selected mode. Use `--no-project`, `--no-team`, or `--no-base-url` to clear previously saved defaults. Pass `--profile` to store credentials and defaults only in that named Atoll CLI profile. The installer does not write a global `ATOLL_PROFILE` or `ATOLL_*` credential settings in profile mode, so direct CLI commands should use `atoll --profile agent-a ...`. Omit `--profile` to use env-var mode, which writes `ATOLL_ENV_MODE=1` with the credential settings.
16
16
 
17
17
  Get an agent API key from **Agents** in the Atoll app. Integration keys are still managed from **Settings > Members**.
18
18
 
19
19
  This does three things:
20
20
 
21
21
  1. Copies the skill into `~/.claude/skills/atoll-api/`
22
- 2. Stores only `ATOLL_PROFILE` in `~/.claude/settings.json` when profile mode is used
22
+ 2. Removes stale Atoll credential/profile env from `~/.claude/settings.json` when profile mode is used
23
23
  3. Creates or updates the named Atoll CLI profile when `--profile` is provided
24
24
 
25
25
  Restart Claude Code and the `atoll-api` skill is available.
@@ -47,9 +47,9 @@ For terminal-first work, see [`@atollhq/cli`](https://www.npmjs.com/package/@ato
47
47
  ```bash
48
48
  npm install -g @atollhq/cli
49
49
  atoll auth login --profile agent-a --key sk_atoll_... --org-id org-uuid --project project-id --team team-id
50
- atoll heartbeat
51
- atoll issue list --json
52
- atoll agent-context
50
+ atoll --profile agent-a heartbeat
51
+ atoll --profile agent-a issue list --json
52
+ atoll --profile agent-a agent-context
53
53
  ```
54
54
 
55
55
  For multiple agents or orgs, use CLI auth profiles:
package/bin/install.mjs CHANGED
@@ -115,7 +115,6 @@ function writeAtollProfile() {
115
115
  else delete profile.defaultTeam
116
116
  if (args.baseUrl) profile.baseUrl = args.baseUrl
117
117
  else delete profile.baseUrl
118
- config.activeProfile = args.profile
119
118
 
120
119
  mkdirSync(atollDir, { recursive: true })
121
120
  writeFileSync(configPath, JSON.stringify(config, null, 2) + '\n')
@@ -131,14 +130,14 @@ cpSync(skillSrc, skillDest, { recursive: true })
131
130
  console.log(`Installed skill to ${skillDest}`)
132
131
 
133
132
  // 2. Configure ~/.claude/settings.json. Profile mode stores credentials only
134
- // in the Atoll CLI profile and keeps Claude's host env limited to profile
135
- // selection, removing stale credential/default env from earlier installs.
133
+ // in the Atoll CLI profile and removes stale credential/profile env from
134
+ // earlier installs so a new profile install does not become globally active.
136
135
  const settingsPath = join(homedir(), '.claude', 'settings.json')
137
136
  let settings = readJson(settingsPath)
138
137
 
139
138
  if (!settings.env) settings.env = {}
140
139
  if (args.profile) {
141
- settings.env.ATOLL_PROFILE = args.profile
140
+ delete settings.env.ATOLL_PROFILE
142
141
  delete settings.env.ATOLL_API_KEY
143
142
  delete settings.env.ATOLL_ORG_ID
144
143
  delete settings.env.ATOLL_PROJECT
@@ -163,15 +162,17 @@ writeAtollProfile()
163
162
 
164
163
  const configuredVars = []
165
164
  if (args.profile) {
166
- configuredVars.push('ATOLL_PROFILE')
165
+ console.log(`Removed stale Atoll env from ${settingsPath}`)
167
166
  } else {
168
167
  configuredVars.push('ATOLL_API_KEY', 'ATOLL_ORG_ID', 'ATOLL_ENV_MODE')
169
168
  if (args.project) configuredVars.push('ATOLL_PROJECT')
170
169
  if (args.team) configuredVars.push('ATOLL_TEAM')
171
170
  if (args.baseUrl) configuredVars.push('ATOLL_BASE_URL')
171
+ console.log(`Configured ${configuredVars.join(', ')} in ${settingsPath}`)
172
172
  }
173
- console.log(`Configured ${configuredVars.join(', ')} in ${settingsPath}`)
174
173
  if (args.profile) {
174
+ console.log('No global Claude ATOLL_PROFILE was written.')
175
+ console.log(`Run profile-scoped commands with: atoll --profile ${args.profile} ...`)
175
176
  console.log(`Verify the profile with: atoll --profile ${args.profile} agent-context --json`)
176
177
  }
177
178
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atollhq/skill-claude",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "description": "Install the Atoll project management skill for Claude Code",
5
5
  "bin": {
6
6
  "skill-claude": "bin/install.mjs"
package/skill/SKILL.md CHANGED
@@ -186,7 +186,7 @@ CLI JSON conventions:
186
186
 
187
187
  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.
188
188
 
189
- 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.
189
+ 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 create or review the draft in Settings > Integrations > KPI syncs, edit supported request/extraction fields and secrets through structured UI, dry-run, publish, disable, or run-now with snapshot writing.
190
190
 
191
191
  ```bash
192
192
  atoll kpi sync validate <kpi-id> \
@@ -203,6 +203,7 @@ Roles: `owner`, `admin`, `member`, `guest`.
203
203
  | POST | `/api/orgs/{id}/kpis/{kpiId}/snapshots` | Record a snapshot |
204
204
  | GET | `/api/orgs/{id}/kpi-http-sync-policy` | List exact-host KPI HTTP sync allowlist policy |
205
205
  | POST | `/api/orgs/{id}/kpi-http-sync-policy` | Add an allowed exact host (human admin only) |
206
+ | GET | `/api/orgs/{id}/kpi-http-syncs` | List org-wide KPI HTTP sync review rows for Settings; admins get config/secret metadata, members get redacted status rows |
206
207
  | GET | `/api/orgs/{id}/kpis/{kpiId}/http-syncs` | List KPI HTTP syncs |
207
208
  | POST | `/api/orgs/{id}/kpis/{kpiId}/http-syncs` | Create a draft KPI HTTP sync |
208
209
  | PUT | `/api/orgs/{id}/kpis/{kpiId}/http-syncs` | Validate a proposed KPI HTTP sync config without storing or running it |