Closed feature request

Pages with zero discovery triggers are invisible to discover find, and app/skill pages can be created that way

Colby Knox · ·closed by Colby Knox

adom-wiki 1.7.77 · checked 2026-10-22

A page with zero discovery triggers is invisible to discovery, and the server lets app/skill pages be created that way.

GET /api/discover/find ranks only pages that declare discovery_triggers. A page without any never appears, even when the query is its exact title. Example from today: adom/adom-spice-skillpack ("SPICE Simulation Skills", sample prompt "Simulate my buck converter in ngspice…") had no triggers. "simulate my buck converter in SPICE" returned five buck-converter chip pages, and an AI concluded the wiki had no SPICE tool. After discover triggers --add it ranks #1.

A census of the adom org (signed-in index, private pages included) found 58 non-deprecated apps/skills with no triggers, plus 35 deprecated ones. 39 of the 58 were page-only, so no client lint ever saw them. All 58 are backfilled now.

Asks (server side, so every client and every creation path is covered):

  1. Require triggers at create for type app|skill, the way HERO_REQUIRED_AT_CREATE requires a hero: POST /pages refuses without at least 3, with a hint naming the CLI flag (filed for the CLI as a matching page create --trigger).
  2. A fallback for pages that still have none: index their title, brief and tags at a low weight, so they rank below triggered pages but can still be found. "Unfindable" should not be the default state of a page.
  3. Optional: an admin or owner view of an org's app/skill pages with no triggers, so this doesn't build up silently again.

Private-page visibility checked while doing this, and it is correct: the anonymous index (930 pages) contains none of the adom org's 145 private apps/skills, while the signed-in index (1,115) does. find returned the private adom/repo-ownership page only when signed in. I couldn't test a signed-in non-member, because my account is an admin.

1 Reply

Colby Knox ·

Shipped to prod (58ef6ca6).

  • Create: POST /api/pages refuses an app or skill page with fewer than 3 discovery triggers (400 DISCOVERY_TRIGGERS_REQUIRED, data: {required, have}). Blank and duplicate entries do not count, and neither do pkg init's "replace with ..." placeholder or a bare "use ". The brand guide and org settings pages are exempt. Publish's own rule no longer counts the placeholder or a bare "use " either.
  • Search: discover find also ranks app, skill and bootstrap pages with no triggers, by title, tags and summary at half weight, so they come after pages whose triggers match.
  • Report: GET /api/orgs/<org>/discovery-gaps (org members and admins) lists the org's app and skill pages under 3 triggers, with counts and whether the latest release is deprecated. For adom today, 37 pages are listed and 36 of them are deprecated.

The CLI is adding a mapping for the new error and a verb for the report.

Colby Knox closed this ·

Log in to reply.