agentleFS
HypercubedHypercubed/Agent-Knowledge-Starter-Kit/.agents/skills/aksk-bootstrap/SKILL.md

aksk-bootstrap

Skill7 starsChanged 2 months agoMITView on GitHub

Per-user global bootstrap for AKSK — Node check, npm i -g for openspec/openwiki, global skill spread, and host OpenWiki integrations. Per-repo setup lives in aksk-init. Falls back to printed INSTRUCT commands when local execution is not possible. Also owns the AKSK curation contract attachment and peer-tool verification preconditions.

  • Installs packages

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When any step cannot run locally (no npm, no write, sandboxed worker), the script prints the exact remaining commands and exits clean.

    line 29
  2. Distinctive:

    No partial state from the failed step is left behind.

    line 37
  3. Very specific:

    Only known peer tools are accepted (openspec, openwiki).

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

AKSK Bootstrap

Goal

Per-user global setup (skill plus deterministic JS script). Prepares the machine for per-repo init. Reuses the finalized kit templates and adopt-openspec-openwiki curation-contract semantics; never replaces OpenWiki-owned content.

The skill is the orchestrator; the JS script is the deterministic executor. Other skills (learning-distill, docs-lint, task-closeout) reuse its preconditions.

Bootstrap (orchestrator)

EXECUTE lane — run locally

node ~/.agents/skills/aksk-bootstrap/scripts/bootstrap-global.mjs  # global lane (interactive) [repo-root] [--force]

Global lane (non-interactive; skill is interactive) (idempotent by detection):

  1. Verify CLIs — Node >= 22, openspec/openwiki on PATH (npm i -g @fission-ai/openspec@^1.11.0 openwiki@^0.4.3 if missing, caret from references/versions.json via versionsFromPackageJson()); skip any tool already present at a compatible version; verify openwiki resolves before MCP registration.
  2. Verify skills — ensure ~/.agents/skills/<name>/SKILL.md plus current host's dir; if missing npx skills add <source> -g -a <agent> — <source> is the positional <package> arg (e.g. Hypercubed/Agent-Knowledge-Starter-Kit or Hypercubed/Agent-Knowledge-Starter-Kit#develop) and <agent> is the detected host (opencode, codex, claude, or *; use npx skills add <source> -g --all as shorthand for universal ~/.agents/skills) — positional first because -a consumes the next token, so npx skills add -g -a <source> incorrectly treats <source> as the -a value and yields Missing required argument: source (versions from references/versions.json, @latest only when unpinned; npx required, no clone fallback); e.g. npx skills add Hypercubed/Agent-Knowledge-Starter-Kit#develop -g -a opencode or npx skills add Hypercubed/Agent-Knowledge-Starter-Kit -g --all — for the kit and for langchain-ai/openwiki --full-depth when that lifecycle skill is needed, otherwise openwiki integrations install <self-reported> when that host is in codex|claude|opencode (skill+MCP+receipt atomically) else fallback npx add-mcp "openwiki mcp --host <self-reported>" -g -a <self-reported> --name openwiki (command form; equivalent --args form npx add-mcp openwiki -g -a <self-reported> --args mcp --args --host --args <self-reported> --name openwiki) — bare npx add-mcp openwiki omits mcp --host and yields ["npx","-y","openwiki"] → MCP -32000 Connection closed; openwiki mcp --host <self-reported> is the non-add-mcp alternative. OpenSpec skills spread is the second verb: bootstrap-global.mjs probes ~/.agents/skills/openspec-*/SKILL.md (+ host mirrors) and npx skills list -g, then installs the 12 consumer workflow skills (repeated -s; bare --all would also pull the openspec repo's own maintainer skills release-openspec and *-openspec-docs) with npx skills add fission-ai/openspec -g -a '*' -y by default (note: -a '*', NOT --all — --all expands to --skill '*' and silently overrides the -s filter, verified live), or -a <agent> when --agent <agent> is passed — pass the same host used for the kit skills so both land together (source pinned as fission-ai/openspec-skills in references/versions.json, bare id when unpinned; skips when present). Per-repo steps now live in aksk-init. Never half-install: failed step prints exact remaining commands and exits clean without partial state from that step.

INSTRUCT lane — no local execution bridge

When any step cannot run locally (no npm, no write, sandboxed worker), the script prints the exact remaining commands and exits clean. The skill then surfaces those commands verbatim as the answer.

INSTRUCT lane — run these commands manually (versions from `references/versions.json`, caret-pinned):
  npm i -g @fission-ai/openspec@^1.11.0 openwiki@^0.4.3
  openwiki integrations install codex

No partial state from the failed step is left behind; completed steps remain.

Idempotency

Re-running on a fully bootstrapped fixture changes nothing; re-running on a partially bootstrapped fixture completes only missing steps (detection-driven).

Peer-tool verification

Standalone:

node ~/.agents/skills/aksk-bootstrap/scripts/check_peer_tools.mjs openspec openwiki

From Python (sibling skills may import; import from this scripts directory):

import { requireBinaries } from "./check_peer_tools.mjs";
requireBinaries(["openspec", "openwiki"]); // exits 2 with install commands if absent

Only known peer tools are accepted (openspec, openwiki); any other name exits 2 with an error naming the unknown tool rather than attempting a PATH lookup.

Behavior contract:

  • Checks PATH resolution only; never attempts installation.
  • On missing tools, prints one error per tool plus the exact install commands (npm i -g @fission-ai/openspec@^1.11.0, npm i -g openwiki@^0.4.3 with caret from references/versions.json, falling back to @latest if unpinned) and exits 2.

Related

  • Curation semantics consumed at distill time are specified by the distill-routing capability; contract attachment semantics by the wiki-contract capability.
  • Design and lane ladder for openwiki integrations install are tracked in openspec/changes/aksk-bootstrap-system/.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.