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.
Home page Skills stat should count skills bundled inside apps
The home page's Skills stat counts skill-type pages only. Apps routinely bundle many skills (the three-tier layout: root SKILL.md, skills/<name>/SKILL.md, plus dev-skills/ and publish-skills/), so the number understates what the registry actually hosts. The stat should count skills wherever they live.
What already exists, which makes this small
pages.skill_count already stores the number of SKILL.md files in each page repo, for every page type. It is recomputed inside indexRepo, which runs on every publish, commit, and delete, so the per-page number is already event-driven and needs no new hooks.
Plan
- Home stat becomes a sum. Skills =
SUM(skill_count)across all accessible pages, with a floor of 1 for skill-type pages (a skill page is a skill even if an old index left its count at 0). SameaccessiblePagesWherescoping as the other numbers: anon sees public totals, logged-in users additionally see their private and org pages' skills. - One-time correctness sweep.
skill_countisNOT NULL DEFAULT 0, so pages last indexed before the column existed sit at 0 indistinguishably from genuinely having no skills. A deferred boot sweep (same pattern as the render-column backfill: yielding, unref'd, logged) recomputes the count for every page so the number is right immediately, not only after each page's next publish. - Counting rule: every
SKILL.mdin the repo counts, including the dev and publish tiers, matching what the page's own Skills tab shows, so the two surfaces agree.
Decisions worth recording
- Skills bundled in PRIVATE apps count only for viewers who can access those apps, exactly like the page counts today.
- No new schema and no new write-path hooks: the publish/commit/delete freshness requirement is satisfied by
indexRepoalready owning the column.