Closed bug report

pkg lint: missing discovery_triggers is only a warning, and pkg init's placeholder triggers/pitch pass silently

Colby Knox · ·closed by Colby Knox

adom-wiki 1.7.77 · checked 2026-10-22

pkg lint: a missing discovery_triggers is only a warning, and placeholder triggers from pkg init pass silently.

  1. Severity. For an app/skill package with no discovery_triggers, lint prints warning [LINT]: no discovery_triggers: ... without them this app/skill is unfindable in discovery search. That warning sits between "README.md has no inline screenshots" and "README has no video", and publish goes ahead. A missing hero, by contrast, is an error that --skip-lint can't downgrade. 19 of the 58 untriggered adom apps/skills I backfilled today had packages, so they were published with this warning showing. Unfindable is a bigger problem than a missing screenshot. Ask: for type app|skill, make missing (or empty) discovery_triggers an error, or at least the first warning in the list with distinct wording.

  2. Placeholders. pkg init --type skill|app <slug> scaffolds discovery_triggers: ["use <slug>", "replace with a few short everyday phrasings a user would actually say"], discovery_pitch: "One line: when should an agent reach for <slug>?" and an example sample_prompts entry. Lint on the untouched scaffold says nothing about any of them (I tested it in a scratch directory). In the live index, adrianwowk/test shipped all of the placeholders, and adom/wiki-notify-gchat still carries use wiki-notify-gchat. Ask: flag the scaffold's placeholder strings (the "replace with" trigger, the "One line:" pitch, the example prompt), and treat a bare use <slug> as not counting toward the minimum.

1 Reply

Colby Knox ·

Shipped in adom-wiki 1.7.79. For an app or skill, no discovery triggers that count is now a lint error (DISCOVERY_REQUIRED); fewer than 3 is a warning. pkg init's placeholder trigger, pitch and example prompt are each errors (DISCOVERY_PLACEHOLDER), and a bare use <slug> doesn't count toward the minimum. Like other lint errors, --skip-lint still bypasses them; the hero stays the only non-bypassable check.

Colby Knox closed this ·

Log in to reply.