skill
Adom Wiki
Public Made by Adomby adom
How the Adom Wiki (wiki.adom.inc) works and how to drive it with the adom-wiki CLI: the two storage layers (git page repo vs package registry), hosting source by pushing files (not a tarball), making packages, cutting per-platform releases, and the three-tier skill layout (user skills ship, dev-skills/ and publish-skills/ stay source-only). adom-wiki is the current tool; adompkg is deprecated. Read this first before publishing or installing.
← Commit history
Publish 3.2.0
7 files changed
+130−37
README.md+13−2@@ -1,3 +1,14 @@-# adom-wiki+# Adom Wiki -The Adom wiki + package registry at https://wiki.adom.inc. See SKILL.md.+How the Adom Wiki (wiki.adom.inc) works and how to drive it with the `adom-wiki`+CLI. See SKILL.md for the full guide.++The Adom Wiki is a package registry plus a git-backed page per project. Every page+has two independent storage layers that are not synced: the git page repo (Files+tab, README, commits) and the package registry (versions, dist-tags, install).+You host source by pushing files into the repo, not by attaching a tarball. You+distribute installables with `adom-wiki pkg publish` / `pkg install`, and host+downloadable per-platform binaries with `adom-wiki release upload`.++`adom-wiki` is the current CLI. `adompkg`, and any "wiki v1/v2" or `*.adom.cloud`+slug host, are deprecated.
SKILL.md+87−20@@ -1,38 +1,105 @@ --- name: adom-wiki-description: Browse, search, and use the Adom wiki and package registry at wiki.adom.inc (a git-backed wiki with an npm-style package manager, adompkg). Use when the user mentions the wiki, finding or sharing a skill, molecule, symbol, footprint, library, or datasheet, or asks where something lives. For publishing and installing packages, see the adompkg skill.+user-invocable: true+description: "How the Adom Wiki (wiki.adom.inc) actually works, and how to drive it end to end with the adom-wiki CLI. READ THIS FIRST before publishing, hosting source, sharing a tool, or installing from the wiki. Covers the two storage layers (git page repo vs package registry, which are NOT synced), how to host source (push files, never a tarball), how to make a package and cut per-platform releases, and a decision table. adom-wiki is the current tool; adompkg and any wiki-v1/v2 or *.adom.cloud slug host are DEPRECATED and dead. Triggers: publish to wiki, host source, share/distribute a tool or CLI or skill, make a package, cut a release, Files tab, clone a wiki page, how does the wiki work, wiki.adom.inc, adompkg." --- -# The Adom Wiki+# How the Adom Wiki works -The Adom wiki lives at **`https://wiki.adom.inc`**. It is a git-backed wiki with an npm-style package registry on top: every page is a git repo, and packages (skills, apps, components, bootstraps) have versions, tarballs, and dependency resolution.+The Adom Wiki (wiki.adom.inc) is a package registry plus a git-backed page per+project. You drive ALL of it with one tool: the `adom-wiki` CLI. -This is the one and only Adom wiki. Any older wiki host or `adom-wiki` CLI you see referenced elsewhere is retired; do not use it.+- `adom-wiki` is the current, canonical CLI. Install it once, then `adom-wiki --help`.+- `adompkg` is DEPRECATED. So are "wiki v1", "wiki v2", and any `*.adom.cloud`+ slug host (e.g. `wiki-ufypy5dpx93o.adom.cloud`). If a skill or doc tells you to+ use those, it is stale. The only host is `https://wiki.adom.inc`. -## What is on it+## The two storage layers (they are NOT synced) -- **skills** and **apps** that agents install (`adompkg install <owner>/<slug>`)-- **components** (symbols, footprints, 3D models) for hardware work-- **bootstraps** (curated dependency bundles, e.g. `adom/core`)-- pages are owned `owner/slug` (a person like `kyle/foo` or an org like `adom/foo`)+Every page has two independent layers. Writing one does not change the other. -## Doing things on the wiki+1. **The git page repo** = the Files tab, the rendered README, commit history.+ You write it by **pushing files** (`adom-wiki repo push`). This is where your+ SOURCE lives. Readers browse it in the Files tab or `adom-wiki repo clone`.+2. **The package registry** = versions, dist-tags, the installable tarball.+ You write it by **publishing** (`adom-wiki pkg publish`). This is what+ `adom-wiki pkg install` consumes. -Almost everything goes through the **`adompkg`** CLI (see the `adompkg` skill for the full guide):+A file you push does not appear as a package version, and a version you publish+does not change the Files tab. Keep both in mind.++## Host source the right way: push files, never a tarball++The page IS a git repo, so host source by pushing the actual files into it. They+render in the Files tab in place and readers can clone them.++- DO: `adom-wiki repo push <owner>/<slug>` (or commit + push) so the source files+ land in the repo. Point people at `adom-wiki repo clone <owner>/<slug>` and the+ Files-tab URL `https://wiki.adom.inc/<owner>/<slug>`.+- DO NOT: attach a `source.tar.gz` / `.bundle` and tell people to `tar xzf` or+ clone the bundle. A tarball of source on a git-backed page is an anti-pattern.++## Package vs release: install payload vs downloadable binaries++These are different things; do not conflate them.++- **Package** (`pkg publish` / `pkg install`): the install payload. It is the+ manifest + install scripts + bundled skills, and it is resolved **per platform**+ on install. `adom-wiki pkg install <ref>` fetches only the current version's+ tarball for the consumer's platform, then runs its install script. It does NOT+ pull every asset on the page.+- **Release asset** (`release upload` / `release download`): a downloadable+ binary, tagged with a coarse platform (`any` / `linux` / `windows` / `macos`).+ It is anonymously downloadable but is NOT auto-installed. This is how you host,+ say, a Windows installer that a laptop fetches directly while a Linux+ `pkg install` ignores it.++So a tool that ships a Linux CLI + skills + a Windows installer:+push the source to the repo; publish the package (manifest + scripts + skills);+`release upload --platform linux <cli>` and `release upload --platform windows+<installer>`. A Linux consumer installs the package (CLI + skills) and never pulls+the Windows installer; the laptop downloads the Windows asset directly by URL.++## Make a package and cut a release (exact verbs) ```bash-adompkg search <query> # find a package-adompkg info <owner>/<slug> # description, versions, deps-adompkg install <owner>/<slug> # install a skill/app (with deps)-adompkg publish --org <org> # publish the current directory+# 1. scaffold or edit a package dir (package.json + README + SKILL.md + scripts)+adom-wiki pkg init <slug> --type app # app | skill | component | bootstrap++# 2. publish a version (metadata comes from package.json; no flags to re-supply)+adom-wiki pkg publish [--org <org>] # bump package.json "version" to re-publish++# 3. upload per-platform downloadable binaries to that version+adom-wiki release upload <owner>/<slug> <version> <file> --platform linux++# 4. set who can see what (three axes)+adom-wiki page visibility <owner>/<slug> --preset open|licensed|preview|private++# 5. install / clone+adom-wiki pkg install <owner>/<slug> # platform-aware install payload+adom-wiki repo clone <owner>/<slug> # browse / get the source ``` -Browse a page in a webview at `https://wiki.adom.inc/<owner>/<slug>`.+Add `--json` to any command for a `{ status, data, hints[] }` envelope. **Read the+hints**: each carries a ready-to-run `cmd` for the next step. -## Before you create something new+## Decision table -Search the wiki first (`adompkg search`) before authoring a new skill, symbol, or footprint, so you do not duplicate work that already exists.+| You want to | Do this |+|---|---|+| Read the docs | open the README on the page |+| Browse / share source | push files to the repo, link the Files tab; do NOT attach a tarball |+| Get a local copy of source | `adom-wiki repo clone <owner>/<slug>` |+| Distribute an installable (CLI + skills) | `adom-wiki pkg publish`, consumers `adom-wiki pkg install` |+| Host a downloadable binary (e.g. Windows installer) | `adom-wiki release upload <ref> <ver> <file> --platform <os>` |+| Re-ship a new version | bump `version` in package.json, `adom-wiki pkg publish` |+| Remove a superseded asset | `adom-wiki release delete-asset <ref> <ver> <file>` | -## Authentication+## Anti-patterns (these are why agents get lost) -Write operations use a bearer token (a Carbon API key); the CLI reads it from `/var/run/adom/api-key` automatically on an Adom box, or from `ADOMPKG_TOKEN`.+- Reaching for `adompkg` (deprecated). Use `adom-wiki`.+- Pointing at a `*.adom.cloud` slug host or "wiki v1/v2". The host is wiki.adom.inc.+- Shipping source as a `source.tar.gz` / `.bundle`. Push files instead.+- Assuming `pkg install` drags down every page asset. It fetches one per-platform+ tarball.+- Re-supplying title/hero/body to bump a version. Metadata lives in package.json.
install.sh+5−8@@ -1,11 +1,8 @@ #!/bin/bash+# Install the canonical "how the Adom Wiki works" skill into the agent skills dir. set -e PKG_DIR="$(cd "$(dirname "$0")" && pwd)"-SKILLS_DIR="$HOME/.claude/skills"-mkdir -p "$SKILLS_DIR/adom-wiki"-for f in "$PKG_DIR"/*; do- base=$(basename "$f")- case "$base" in package.json|install.sh|uninstall.sh|README.md) continue ;; esac- cp -r "$f" "$SKILLS_DIR/adom-wiki/"-done-echo "Installed wiki -> $SKILLS_DIR/adom-wiki"+DEST="$HOME/.claude/skills/adom-wiki"+mkdir -p "$DEST"+cp -f "$PKG_DIR/SKILL.md" "$DEST/SKILL.md"+echo "Installed wiki skill -> $DEST/SKILL.md"
package.json+9−4@@ -1,13 +1,18 @@ { "slug": "wiki",- "version": "3.1.0",+ "title": "Adom Wiki",+ "version": "3.2.0", "type": "skill", "org": "adom",- "org_id": "681d18d2a224243b0d62c9b2",- "description": "Browse, search, and use the Adom wiki and package registry at wiki.adom.inc (git-wiki + adompkg). Use when the user mentions the wiki, finding or sharing a skill, molecule, symbol, footprint, library, or datasheet. For publishing/installing packages see the adompkg skill.",+ "description": "How the Adom Wiki (wiki.adom.inc) works and how to drive it with the adom-wiki CLI: the two storage layers (git page repo vs package registry), hosting source by pushing files (not a tarball), making packages, and cutting per-platform releases. adom-wiki is the current tool; adompkg is deprecated. Read this first before publishing or installing.",+ "tags": ["wiki", "cli", "packages", "registry", "publishing", "guide"], "dependencies": {}, "scripts": { "install": "./install.sh", "uninstall": "./uninstall.sh"+ },+ "hero": {+ "type": "image",+ "path": "screenshots/hero.png" }-}+}
page.json+15−2@@ -1,10 +1,10 @@ { "slug": "wiki",- "version": "3.1.0",+ "version": "3.2.0", "type": "skill", "org": "adom", "org_id": "681d18d2a224243b0d62c9b2",- "description": "Browse, search, and use the Adom wiki and package registry at wiki.adom.inc (git-wiki + adompkg). Use when the user mentions the wiki, finding or sharing a skill, molecule, symbol, footprint, library, or datasheet. For publishing/installing packages see the adompkg skill.",+ "description": "How the Adom Wiki (wiki.adom.inc) works and how to drive it with the adom-wiki CLI: the two storage layers (git page repo vs package registry), hosting source by pushing files (not a tarball), making packages, and cutting per-platform releases. adom-wiki is the current tool; adompkg is deprecated. Read this first before publishing or installing.", "dependencies": {}, "scripts": { "install": "./install.sh",@@ -13,5 +13,18 @@ "author": { "name": "Kyle Bergstedt", "email": "[email protected]"+ },+ "title": "Adom Wiki",+ "tags": [+ "wiki",+ "cli",+ "packages",+ "registry",+ "publishing",+ "guide"+ ],+ "hero": {+ "type": "image",+ "path": "screenshots/hero.png" } }
screenshots/hero.pngadded⋯ 1 unchanged line ⋯
uninstall.sh+1−1@@ -1,4 +1,4 @@ #!/bin/bash set -e rm -rf "$HOME/.claude/skills/adom-wiki"-echo "Uninstalled wiki"+echo "Uninstalled wiki skill"