@atollhq/skill-codex 0.1.7 → 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 CHANGED
@@ -12,11 +12,12 @@ npx @atollhq/skill-codex --key sk_atoll_... --org your-org-id
12
12
 
13
13
  Get an API key from **Settings > Members > Add Agent** (or **Create API Key** for integrations) in the Atoll app.
14
14
 
15
- This does three things:
15
+ This does four things:
16
16
 
17
- 1. Appends (or updates) an `# Atoll Integration` section in `~/.codex/AGENTS.md`
18
- 2. Copies API reference files to `~/.codex/atoll-references/`
19
- 3. Appends `ATOLL_API_KEY` and `ATOLL_ORG_ID` exports to your shell profile (`~/.zshrc` or `~/.bashrc`)
17
+ 1. Installs the `atoll-api` skill to `~/.codex/skills/atoll-api/`
18
+ 2. Appends (or updates) an `# Atoll Integration` section in `~/.codex/AGENTS.md`
19
+ 3. Copies API reference files to `~/.codex/atoll-references/`
20
+ 4. Appends `ATOLL_API_KEY` and `ATOLL_ORG_ID` exports to your shell profile (`~/.zshrc` or `~/.bashrc`)
20
21
 
21
22
  Open a fresh shell (or `source` your profile) and Codex has the Atoll integration.
22
23
 
package/bin/install.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { existsSync, mkdirSync, readFileSync, writeFileSync, copyFileSync } from 'node:fs'
3
+ import { cpSync, existsSync, mkdirSync, readFileSync, writeFileSync, copyFileSync } from 'node:fs'
4
4
  import { join, dirname } from 'node:path'
5
5
  import { homedir } from 'node:os'
6
6
  import { fileURLToPath } from 'node:url'
@@ -27,6 +27,7 @@ Options:
27
27
  --help Show this help message
28
28
 
29
29
  Installs the Atoll integration for Codex CLI:
30
+ - Installs the atoll-api skill to ~/.codex/skills/atoll-api/
30
31
  - Writes AGENTS.md with API reference to ~/.codex/
31
32
  - Sets ATOLL_API_KEY and ATOLL_ORG_ID env vars
32
33
  `)
@@ -47,11 +48,17 @@ if (!args.key.startsWith('sk_atoll_')) {
47
48
  process.exit(1)
48
49
  }
49
50
 
50
- // 1. Write AGENTS.md to ~/.codex/
51
+ // 1. Install the Codex skill to ~/.codex/skills/atoll-api/
51
52
  const codexDir = join(homedir(), '.codex')
52
53
  mkdirSync(codexDir, { recursive: true })
53
54
 
54
55
  const skillDir = join(__dirname, '..', 'skill')
56
+ const skillDest = join(codexDir, 'skills', 'atoll-api')
57
+ mkdirSync(skillDest, { recursive: true })
58
+ cpSync(skillDir, skillDest, { recursive: true })
59
+ console.log(`Installed Atoll skill to ${skillDest}`)
60
+
61
+ // 2. Write AGENTS.md to ~/.codex/
55
62
  const skillMd = readFileSync(join(skillDir, 'SKILL.md'), 'utf-8')
56
63
  // Strip YAML frontmatter for AGENTS.md
57
64
  const body = skillMd.replace(/^---[\s\S]*?---\n*/, '')
@@ -82,7 +89,7 @@ if (existsSync(agentsPath)) {
82
89
  }
83
90
  console.log(`Wrote Atoll instructions to ${agentsPath}`)
84
91
 
85
- // 2. Copy reference files
92
+ // 3. Copy reference files for compatibility with older installs
86
93
  const refsDir = join(codexDir, 'atoll-references')
87
94
  mkdirSync(refsDir, { recursive: true })
88
95
  for (const file of ['api-endpoints.md', 'api-fields.md']) {
@@ -90,7 +97,7 @@ for (const file of ['api-endpoints.md', 'api-fields.md']) {
90
97
  }
91
98
  console.log(`Copied API references to ${refsDir}`)
92
99
 
93
- // 3. Set env vars in shell profile
100
+ // 4. Set env vars in shell profile
94
101
  const shell = process.env.SHELL || '/bin/bash'
95
102
  const profilePath = shell.includes('zsh')
96
103
  ? join(homedir(), '.zshrc')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atollhq/skill-codex",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Install the Atoll project management integration for Codex CLI",
5
5
  "bin": {
6
6
  "skill-codex": "bin/install.mjs"