ci: discover portal CLIs dynamically so fork-added portals get checked (#310)

The cli-checks matrix hardcoded the six shipped portals, so a CLI
scaffolded by /add-portal in a fork shipped typecheck and test scripts
that fork CI never ran - while security_guards.py already globs
.agents/**/package.json and covers new portals automatically. A
discover-clis job now emits the matrix from
.agents/skills/*/cli/package.json; on upstream it resolves to the same
six portals, and a fork-added portal joins the matrix with no workflow
edit. /add-portal's Register step now says so.
This commit is contained in:
Ayobami Adegoke
2026-08-09 20:27:44 +02:00
committed by GitHub
parent 0e1a895c4e
commit f658bb6f9a
2 changed files with 22 additions and 7 deletions
+1
View File
@@ -127,6 +127,7 @@ Do not proceed to Step 5 until search, detail, and tests all pass.
```
(Skip if the skill is zero-dependency and they don't care about typecheck types.)
3. Note that the skill auto-triggers from its `SKILL.md` description - no other wiring is needed.
4. CI coverage is also automatic: the `cli-checks` job discovers every `.agents/skills/*/cli/package.json`, so the new CLI's `typecheck` and `test` scripts run on every push to the fork without editing the workflow.
---