@atollhq/skill-claude 0.1.9 → 0.1.11

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
@@ -7,17 +7,19 @@ Gives your Claude Code agent the ability to manage tasks, goals, KPIs, initiativ
7
7
  ## Install
8
8
 
9
9
  ```bash
10
- npx @atollhq/skill-claude --key sk_atoll_... --org your-org-id
10
+ npx @atollhq/skill-claude --key sk_atoll_... --org your-org-id --project project-id --team team-id
11
11
  # or
12
12
  ATOLL_API_KEY=sk_atoll_... ATOLL_ORG_ID=your-org-id npx @atollhq/skill-claude
13
13
  ```
14
14
 
15
+ Optional defaults: `--project`, `--team`, and `--base-url` write `ATOLL_PROJECT`, `ATOLL_TEAM`, and `ATOLL_BASE_URL` for the agent.
16
+
15
17
  Get an API key from **Settings > Members > Add Agent** (or **Create API Key** for integrations) in the Atoll app.
16
18
 
17
19
  This does two things:
18
20
 
19
21
  1. Copies the skill into `~/.claude/skills/atoll-api/`
20
- 2. Writes `ATOLL_API_KEY` and `ATOLL_ORG_ID` into `~/.claude/settings.json` under `env`
22
+ 2. Writes Atoll env vars into `~/.claude/settings.json` under `env`
21
23
 
22
24
  Restart Claude Code and the `atoll-api` skill is available.
23
25
 
@@ -41,8 +43,7 @@ For terminal-first work, see [`@atollhq/cli`](https://www.npmjs.com/package/@ato
41
43
 
42
44
  ```bash
43
45
  npm install -g @atollhq/cli
44
- atoll auth login --key sk_atoll_...
45
- atoll config set-org your-org-slug
46
+ atoll auth login --profile agent-a --key sk_atoll_... --org your-org-slug --project project-id --team team-id
46
47
  atoll heartbeat
47
48
  atoll issue list --json
48
49
  atoll agent-context
@@ -52,7 +53,7 @@ For multiple agents or orgs, use CLI auth profiles:
52
53
 
53
54
  ```bash
54
55
  atoll auth login --profile agent-a --key sk_atoll_... --org acme
55
- atoll auth login --profile agent-b --key sk_atoll_... --org client
56
+ atoll auth login --profile agent-b --key sk_atoll_... --org client --project project-id --team team-id
56
57
  atoll --profile agent-b issue list
57
58
  ```
58
59
 
package/bin/install.mjs CHANGED
@@ -14,6 +14,12 @@ function parseArgs(argv) {
14
14
  args.key = argv[++i]
15
15
  } else if (argv[i] === '--org' && argv[i + 1]) {
16
16
  args.org = argv[++i]
17
+ } else if (argv[i] === '--project' && argv[i + 1]) {
18
+ args.project = argv[++i]
19
+ } else if (argv[i] === '--team' && argv[i + 1]) {
20
+ args.team = argv[++i]
21
+ } else if (argv[i] === '--base-url' && argv[i + 1]) {
22
+ args.baseUrl = argv[++i]
17
23
  } else if (argv[i] === '--help' || argv[i] === '-h') {
18
24
  args.help = true
19
25
  }
@@ -23,13 +29,16 @@ function parseArgs(argv) {
23
29
 
24
30
  function printUsage() {
25
31
  console.log(`
26
- Usage: npx @atollhq/skill-claude --key <api-key> --org <org-id>
32
+ Usage: npx @atollhq/skill-claude --key <api-key> --org <org-id> [--project <id>] [--team <id-or-slug>] [--base-url <url>]
27
33
  or: ATOLL_API_KEY=<api-key> ATOLL_ORG_ID=<org-id> npx @atollhq/skill-claude
28
34
 
29
35
  Options:
30
- --key Atoll API key (sk_atoll_...). Defaults to ATOLL_API_KEY.
31
- --org Organization ID. Defaults to ATOLL_ORG_ID.
32
- --help Show this help message
36
+ --key Atoll API key (sk_atoll_...). Defaults to ATOLL_API_KEY.
37
+ --org Organization ID. Defaults to ATOLL_ORG_ID.
38
+ --project Default project ID. Defaults to ATOLL_PROJECT.
39
+ --team Default team ID or slug. Defaults to ATOLL_TEAM.
40
+ --base-url Atoll base URL. Defaults to ATOLL_BASE_URL.
41
+ --help Show this help message
33
42
 
34
43
  This installs the Atoll skill for Claude Code, giving your agent
35
44
  the ability to manage tasks, goals, KPIs, and initiatives.
@@ -39,6 +48,9 @@ the ability to manage tasks, goals, KPIs, and initiatives.
39
48
  const args = parseArgs(process.argv)
40
49
  args.key ??= process.env.ATOLL_API_KEY
41
50
  args.org ??= process.env.ATOLL_ORG_ID
51
+ args.project ??= process.env.ATOLL_PROJECT
52
+ args.team ??= process.env.ATOLL_TEAM
53
+ args.baseUrl ??= process.env.ATOLL_BASE_URL
42
54
 
43
55
  if (args.help) {
44
56
  printUsage()
@@ -79,9 +91,16 @@ if (existsSync(settingsPath)) {
79
91
  if (!settings.env) settings.env = {}
80
92
  settings.env.ATOLL_API_KEY = args.key
81
93
  settings.env.ATOLL_ORG_ID = args.org
94
+ if (args.project) settings.env.ATOLL_PROJECT = args.project
95
+ if (args.team) settings.env.ATOLL_TEAM = args.team
96
+ if (args.baseUrl) settings.env.ATOLL_BASE_URL = args.baseUrl
82
97
 
83
98
  writeFileSync(settingsPath, JSON.stringify(settings, null, 2) + '\n')
84
- console.log(`Configured ATOLL_API_KEY and ATOLL_ORG_ID in ${settingsPath}`)
99
+ const configuredVars = ['ATOLL_API_KEY', 'ATOLL_ORG_ID']
100
+ if (args.project) configuredVars.push('ATOLL_PROJECT')
101
+ if (args.team) configuredVars.push('ATOLL_TEAM')
102
+ if (args.baseUrl) configuredVars.push('ATOLL_BASE_URL')
103
+ console.log(`Configured ${configuredVars.join(', ')} in ${settingsPath}`)
85
104
 
86
105
  console.log(`\nDone! Start Claude Code and the atoll-api skill will be available.`)
87
106
  console.log(`Try: "List my Atoll tasks" or "Check my heartbeat"`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atollhq/skill-claude",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
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
@@ -64,7 +64,7 @@ For machines or agents that need multiple credentials, use auth profiles:
64
64
 
65
65
  ```bash
66
66
  atoll auth login --profile agent-a --key sk_atoll_... --org acme
67
- atoll auth login --profile agent-b --key sk_atoll_... --org client
67
+ atoll auth login --profile agent-b --key sk_atoll_... --org client --project project-id --team team-id
68
68
  atoll auth profiles
69
69
  atoll auth use agent-a
70
70
 
@@ -72,6 +72,8 @@ atoll auth use agent-a
72
72
  atoll --profile agent-b issue list
73
73
  ```
74
74
 
75
+ Profiles can store default project, team, and base URL values. `atoll issue list` and `atoll issue create` apply the selected default team unless a command-level `--team` override is passed.
76
+
75
77
  Common commands:
76
78
 
77
79
  ```bash
@@ -398,7 +398,9 @@ URL must be HTTPS. Returns webhook record plus `secret` for HMAC verification.
398
398
  | POST | `/api/orgs/{id}/agents/{agentId}/keys` | Generate new key |
399
399
  | DELETE | `/api/orgs/{id}/agents/{agentId}/keys/{keyId}` | Revoke key |
400
400
  | POST | `/api/orgs/{id}/agents/{agentId}/rotate` | Rotate all keys |
401
- | POST | `/api/orgs/{id}/agents/{agentId}/install-snippets` | Get install snippets (`{ key }`) |
401
+ | POST | `/api/orgs/{id}/agents/{agentId}/install-snippets` | Get install snippets (`{ key, profileName?, projectId?, teamId?, baseUrl? }`) |
402
+
403
+ Install snippets returns config for `claude-code`, `codex`, `gemini`, `openclaw` (agent prompt), `openclaw-manual`, `hermes` (agent prompt), and `hermes-manual`. The server resolves the org slug and validates optional project/team IDs before generating snippets.
402
404
 
403
405
  ## Integrations
404
406