@atollhq/skill-claude 0.1.6 → 0.1.8
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 +4 -2
- package/bin/install.mjs +9 -6
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -7,7 +7,9 @@ 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-
|
|
10
|
+
npx @atollhq/skill-claude --key sk_atoll_... --org your-org-id
|
|
11
|
+
# or
|
|
12
|
+
ATOLL_API_KEY=sk_atoll_... ATOLL_ORG_ID=your-org-id npx @atollhq/skill-claude
|
|
11
13
|
```
|
|
12
14
|
|
|
13
15
|
Get an API key from **Settings > Members > Add Agent** (or **Create API Key** for integrations) in the Atoll app.
|
|
@@ -15,7 +17,7 @@ Get an API key from **Settings > Members > Add Agent** (or **Create API Key** fo
|
|
|
15
17
|
This does two things:
|
|
16
18
|
|
|
17
19
|
1. Copies the skill into `~/.claude/skills/atoll-api/`
|
|
18
|
-
2. Writes `ATOLL_API_KEY` and `
|
|
20
|
+
2. Writes `ATOLL_API_KEY` and `ATOLL_ORG_ID` into `~/.claude/settings.json` under `env`
|
|
19
21
|
|
|
20
22
|
Restart Claude Code and the `atoll-api` skill is available.
|
|
21
23
|
|
package/bin/install.mjs
CHANGED
|
@@ -23,11 +23,12 @@ function parseArgs(argv) {
|
|
|
23
23
|
|
|
24
24
|
function printUsage() {
|
|
25
25
|
console.log(`
|
|
26
|
-
Usage: npx @atollhq/skill-claude --key <api-key> --org <org-
|
|
26
|
+
Usage: npx @atollhq/skill-claude --key <api-key> --org <org-id>
|
|
27
|
+
or: ATOLL_API_KEY=<api-key> ATOLL_ORG_ID=<org-id> npx @atollhq/skill-claude
|
|
27
28
|
|
|
28
29
|
Options:
|
|
29
|
-
--key Atoll API key (sk_atoll_...)
|
|
30
|
-
--org Organization
|
|
30
|
+
--key Atoll API key (sk_atoll_...). Defaults to ATOLL_API_KEY.
|
|
31
|
+
--org Organization ID. Defaults to ATOLL_ORG_ID.
|
|
31
32
|
--help Show this help message
|
|
32
33
|
|
|
33
34
|
This installs the Atoll skill for Claude Code, giving your agent
|
|
@@ -36,6 +37,8 @@ the ability to manage tasks, goals, KPIs, and initiatives.
|
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
const args = parseArgs(process.argv)
|
|
40
|
+
args.key ??= process.env.ATOLL_API_KEY
|
|
41
|
+
args.org ??= process.env.ATOLL_ORG_ID
|
|
39
42
|
|
|
40
43
|
if (args.help) {
|
|
41
44
|
printUsage()
|
|
@@ -43,7 +46,7 @@ if (args.help) {
|
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
if (!args.key || !args.org) {
|
|
46
|
-
console.error('Error: --key and --org
|
|
49
|
+
console.error('Error: provide --key and --org, or set ATOLL_API_KEY and ATOLL_ORG_ID\n')
|
|
47
50
|
printUsage()
|
|
48
51
|
process.exit(1)
|
|
49
52
|
}
|
|
@@ -75,10 +78,10 @@ if (existsSync(settingsPath)) {
|
|
|
75
78
|
|
|
76
79
|
if (!settings.env) settings.env = {}
|
|
77
80
|
settings.env.ATOLL_API_KEY = args.key
|
|
78
|
-
settings.env.
|
|
81
|
+
settings.env.ATOLL_ORG_ID = args.org
|
|
79
82
|
|
|
80
83
|
writeFileSync(settingsPath, JSON.stringify(settings, null, 2) + '\n')
|
|
81
|
-
console.log(`Configured ATOLL_API_KEY and
|
|
84
|
+
console.log(`Configured ATOLL_API_KEY and ATOLL_ORG_ID in ${settingsPath}`)
|
|
82
85
|
|
|
83
86
|
console.log(`\nDone! Start Claude Code and the atoll-api skill will be available.`)
|
|
84
87
|
console.log(`Try: "List my Atoll tasks" or "Check my heartbeat"`)
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atollhq/skill-claude",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Install the Atoll project management skill for Claude Code",
|
|
5
5
|
"bin": {
|
|
6
|
-
"skill-claude": "
|
|
6
|
+
"skill-claude": "bin/install.mjs"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
9
|
"bin/",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
|
-
"url": "https://github.com/atollhq/atoll",
|
|
22
|
+
"url": "git+https://github.com/atollhq/atoll.git",
|
|
23
23
|
"directory": "packages/skill-claude"
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|