atomhouse-skill 0.1.0 → 0.3.0

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
@@ -1,22 +1,36 @@
1
1
  # atomhouse-skill
2
2
 
3
- Install the AtomHouse skill for Claude Code and other agent runtimes:
3
+ Install the **AtomHouse China** skill for Claude Code and other agent runtimes:
4
4
 
5
5
  ```bash
6
6
  npx atomhouse-skill add
7
7
  ```
8
8
 
9
- The command asks whether you use AtomHouse Cloud (global), AtomHouse Cloud
10
- (China), or a self-hosted instance, then downloads
11
- `<instance>/api/v1/skill.zip` and installs it into `~/.claude/skills/<name>`.
9
+ The skill is bundled in this npm package:
12
10
 
13
- For scripts, choose the instance explicitly:
11
+ ```text
12
+ atomhouse/SKILL.md
13
+ atomhouse/reference/*
14
+ atomhouse/INSTALL.md
15
+ → ~/.claude/skills/atomhouse/
16
+ ```
17
+
18
+ No network request is made and no token is stored. For the international hosted
19
+ service, use the dedicated package:
14
20
 
15
21
  ```bash
16
- npx atomhouse-skill add --profile global --yes
17
- npx atomhouse-skill add --base-url https://atomhouse.example.com --yes
18
- npx atomhouse-skill add --project --base-url https://atomhouse.example.com
22
+ npx atomhouse-cloud-skill add
19
23
  ```
20
24
 
21
- The archive contains no token. The installed skill explains how to obtain one
22
- and to prefer a secret store over a home-directory file.
25
+ For a self-hosted instance, ask this package to download the deployment-specific
26
+ skill instead:
27
+
28
+ ```bash
29
+ npx atomhouse-skill add --base-url https://atomhouse.example.com
30
+ ```
31
+
32
+ Project-local installation:
33
+
34
+ ```bash
35
+ npx atomhouse-skill add --project
36
+ ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "atomhouse-skill",
3
- "version": "0.1.0",
4
- "description": "Install the AtomHouse skill for Claude Code and other agent runtimes",
3
+ "version": "0.3.0",
4
+ "description": "Install the bundled AtomHouse China skill for Claude Code and other agent runtimes",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "atomhouse-skill": "bin/atomhouse-skill.js"
@@ -9,6 +9,7 @@
9
9
  "files": [
10
10
  "bin",
11
11
  "src",
12
+ "skill",
12
13
  "README.md",
13
14
  "LICENSE"
14
15
  ],
@@ -0,0 +1,46 @@
1
+ # Install
2
+
3
+ Unzip into your skills directory as `atomhouse`, then `bootstrap` against the MCP endpoint `SKILL.md`
4
+ names. It can be done in one pass, with one exception worth stopping for: whose token is already on
5
+ the machine. Everything else waits on nothing.
6
+
7
+ **Find a token you already have, then check whose it is.** Look in `$ATOMHOUSE_TOKEN`, then
8
+ the OS keychain / agent credential store, then the fallback
9
+ `~/.atomhouse/credentials/`. A `200` from `GET /auth/me` proves a token is *live*, not that it
10
+ is theirs — read `user.email` and say the address out loud before calling the install done. If it
11
+ is not an account they recognise, stop: do not call `bootstrap`, do not read anything, run the
12
+ device flow instead. A live probe for somebody else is worse than a `401`, because nothing
13
+ downstream fails.
14
+
15
+ **One entry per account, and nothing else.** A name like `<account>.token` keeps two *accounts*
16
+ apart; a `.bak` beside it makes the choice ambiguous, and whatever scans the store picks silently.
17
+ More than one entry and no stated account: ask.
18
+
19
+ During the device flow, put `verification_uri_complete` on its own line as a bare link, never inside a sentence and never as `open_command`.
20
+
21
+ ## Getting the archive
22
+
23
+ ```bash
24
+ rm -f /tmp/atomhouse-skill.zip
25
+ curl -fsSL -o /tmp/atomhouse-skill.zip "https://atomhouse.cn/api/v1/skill.zip" \
26
+ && unzip -t /tmp/atomhouse-skill.zip >/dev/null && echo ok
27
+ ```
28
+
29
+ `rm -f` first: `curl -o` leaves the old file on failure, so `unzip -l` shows a stale archive as if it worked.
30
+
31
+ ```
32
+ URL: https://atomhouse.cn/api/v1/mcp
33
+ Header: Authorization: Bearer <token>
34
+ ```
35
+
36
+ Prefer the person's secret store. If there is none, and they agree, use
37
+ `~/.atomhouse/credentials/atomhouse.token` with `chmod 600` — never in the conversation, a
38
+ page, the skill directory, or beside this file. Replacing a token does not end the old one; see
39
+ *Ending a token* in `SKILL.md`.
40
+
41
+ When `bootstrap` answers, the install is done. Reply briefly: connected, and two things worth naming:
42
+
43
+ - **Build an app** — `create_app` makes the backend, `publish_site` the page. Ask what it should do.
44
+ - **Work with data that is already here** — `describe_table`, then `query`; nothing to build.
45
+
46
+ A good answer is the two possibilities, in the person's own terms. `SKILL.md` has the detail.