atomhouse-skill 0.2.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 +12 -12
- package/package.json +3 -2
- package/skill/INSTALL.md +46 -0
- package/skill/SKILL.md +827 -0
- package/skill/reference/access.md +390 -0
- package/skill/reference/data.md +166 -0
- package/skill/reference/functions.md +250 -0
- package/skill/reference/publishing.md +107 -0
- package/src/cli.js +18 -7
package/README.md
CHANGED
|
@@ -6,31 +6,31 @@ Install the **AtomHouse China** skill for Claude Code and other agent runtimes:
|
|
|
6
6
|
npx atomhouse-skill add
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
The skill is bundled in this npm package:
|
|
10
10
|
|
|
11
11
|
```text
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
atomhouse/SKILL.md
|
|
13
|
+
atomhouse/reference/*
|
|
14
|
+
atomhouse/INSTALL.md
|
|
14
15
|
→ ~/.claude/skills/atomhouse/
|
|
15
16
|
```
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
No network request is made and no token is stored. For the international hosted
|
|
19
|
+
service, use the dedicated package:
|
|
18
20
|
|
|
19
21
|
```bash
|
|
20
|
-
npx atomhouse-skill add
|
|
22
|
+
npx atomhouse-cloud-skill add
|
|
21
23
|
```
|
|
22
24
|
|
|
23
|
-
For
|
|
25
|
+
For a self-hosted instance, ask this package to download the deployment-specific
|
|
26
|
+
skill instead:
|
|
24
27
|
|
|
25
28
|
```bash
|
|
26
|
-
npx atomhouse-
|
|
29
|
+
npx atomhouse-skill add --base-url https://atomhouse.example.com
|
|
27
30
|
```
|
|
28
31
|
|
|
29
|
-
|
|
32
|
+
Project-local installation:
|
|
30
33
|
|
|
31
34
|
```bash
|
|
32
|
-
npx atomhouse-skill add --
|
|
35
|
+
npx atomhouse-skill add --project
|
|
33
36
|
```
|
|
34
|
-
|
|
35
|
-
The package contains no token. The installed skill explains how to obtain one
|
|
36
|
-
and prefers a secret store over a home-directory file.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atomhouse-skill",
|
|
3
|
-
"version": "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
|
],
|
package/skill/INSTALL.md
ADDED
|
@@ -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.
|