Repository navigation
fix(skills): register cli-skill-collector in the Agent Skills catalog (#7020) - #7261
diegosouzapw wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Code Review
This pull request registers the previously orphaned cli-skill-collector ID in the Agent Skills catalog, increasing the CLI skill count from 20 to 21 and updating related documentation, schemas, and tests. The reviewer feedback correctly identifies several mathematical and consistency issues regarding the total skill counts in comments, descriptions, and schemas (such as updating the API skill count to 23 and the total counts to 44 or 45 where appropriate).
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| name: "List Capabilities", | ||
| description: | ||
| "Returns the full catalog of 42 OmniRoute agent skills (22 API + 20 CLI) " + | ||
| "Returns the full catalog of 43 OmniRoute agent skills (23 API + 21 CLI) " + |
There was a problem hiding this comment.
The description states there are 43 OmniRoute agent skills (23 API + 21 CLI). However, 23 + 21 equals 44. Please update the total count to 44 to ensure mathematical correctness and consistency with the catalog.
| "Returns the full catalog of 43 OmniRoute agent skills (23 API + 21 CLI) " + | |
| "Returns the full catalog of 44 OmniRoute agent skills (23 API + 21 CLI) " + |
| @@ -1,5 +1,5 @@ | |||
| /** | |||
| * catalog.ts — single source of truth for the 43-entry Agent Skills catalog. | |||
| * catalog.ts — single source of truth for the 44-entry Agent Skills catalog. | |||
There was a problem hiding this comment.
The comment mentions a '44-entry Agent Skills catalog', but the catalog actually contains 45 entries (23 API + 21 CLI + 1 config). Please update this to '45-entry' to keep the documentation accurate.
| * catalog.ts — single source of truth for the 44-entry Agent Skills catalog. | |
| * catalog.ts — single source of truth for the 45-entry Agent Skills catalog. |
|
|
||
| /** | ||
| * Returns the full catalog (43 entries). Cached in module scope after first call. | ||
| * Returns the full catalog (44 entries). Cached in module scope after first call. |
There was a problem hiding this comment.
The comment states that getCatalog() returns 44 entries, but it actually returns 45 entries (including the config skill). Please update this to '45 entries' to match the actual implementation and unit tests.
| * Returns the full catalog (44 entries). Cached in module scope after first call. | |
| * Returns the full catalog (45 entries). Cached in module scope after first call. |
| name: "omniroute_agent_skills_coverage", | ||
| description: | ||
| "Returns the current SKILL.md coverage stats: how many of the 22 API skills and 20 CLI skills have generated SKILL.md files on the filesystem vs the catalog total.", | ||
| "Returns the current SKILL.md coverage stats: how many of the 22 API skills and 21 CLI skills have generated SKILL.md files on the filesystem vs the catalog total.", |
There was a problem hiding this comment.
The description mentions '22 API skills', but the catalog actually contains 23 API skills. Please update this to '23 API skills' to maintain consistency with the actual catalog size.
| "Returns the current SKILL.md coverage stats: how many of the 22 API skills and 21 CLI skills have generated SKILL.md files on the filesystem vs the catalog total.", | |
| "Returns the current SKILL.md coverage stats: how many of the 23 API skills and 21 CLI skills have generated SKILL.md files on the filesystem vs the catalog total.", |
| name: "omniroute_agent_skills_coverage", | ||
| description: | ||
| "Returns the current SKILL.md coverage stats: how many of the 22 API skills and 20 CLI skills have generated SKILL.md files on the filesystem vs the catalog total.", | ||
| "Returns the current SKILL.md coverage stats: how many of the 22 API skills and 21 CLI skills have generated SKILL.md files on the filesystem vs the catalog total.", |
There was a problem hiding this comment.
The description mentions '22 API skills', but the catalog actually contains 23 API skills. Please update this to '23 API skills' to maintain consistency with the actual catalog size.
| "Returns the current SKILL.md coverage stats: how many of the 22 API skills and 21 CLI skills have generated SKILL.md files on the filesystem vs the catalog total.", | |
| "Returns the current SKILL.md coverage stats: how many of the 23 API skills and 21 CLI skills have generated SKILL.md files on the filesystem vs the catalog total.", |
| coverage: z.object({ | ||
| api: z.object({ have: z.number(), total: z.literal(22) }), | ||
| cli: z.object({ have: z.number(), total: z.literal(20) }), | ||
| cli: z.object({ have: z.number(), total: z.literal(21) }), |
| export const agentSkillsCoverageOutput = z.object({ | ||
| api: z.object({ have: z.number(), total: z.literal(22) }), | ||
| cli: z.object({ have: z.number(), total: z.literal(20) }), | ||
| cli: z.object({ have: z.number(), total: z.literal(21) }), |
…ector The generator test asserts the catalog size independently of the files already fixed; registering cli-skill-collector takes it 44 -> 45. Swept every test referencing CLI_SKILL_IDS/API_SKILL_IDS/getCatalog/ SkillCoverage: 208/208 green across all 20 files.
|
Revisado e validado. Diff real bate com o corpo do PR — 19 arquivos, todos contagens derivadas do mesmo catálogo. Rodei a bateria completa referenciada (124 testes) e todos passam; revertendo agentSkills.ts/catalog.ts reproduz exatamente o erro relatado ('Unexpected directories in skills/: cli-skill-collector'). Pronto para merge. |
|
Fechando como subsumido por #7310, que já mergeou em |
skills/cli-skill-collector/ships on this branch but its id was never registered inCLI_SKILL_IDS, so theagent-skills-contentintegration test fails today withUnexpected directories in skills/: cli-skill-collector.What changed
cli-skill-collectorinsrc/shared/constants/agentSkills.ts(CLI_SKILL_IDS) +src/lib/agentSkills/catalog.ts.z.literal(20)insrc/lib/agentSkills/schemas.tsand twice inopen-sse/mcp-server/schemas/tools.ts, plus theSkillCoverage.cli.totaltype literal, the A2A agent card, and an e2e fixture. Catalog now reports 21 CLI / 44 API+CLI / 45 total.skills/cli-skill-collector/SKILL.mdwrapped in<!-- skill:custom-start/end -->markers so it is regen-idempotent (matches the cli-serve/omni-auth precedent); verified byte-for-byte against b9d18dd that no workflow content was lost.Validation (Hard Rule #18)
The regression guard is the existing suite — confirmed failing before / passing after:
tests/integration/agent-skills-content.test.ts→Unexpected directories in skills/: cli-skill-collectorCLI_SKILL_IDS/cli.total/SkillCoverage(agent-skills-content,agent-skills-discovery,agentSkills-catalog,agentSkills-schemas,listCapabilities-a2a,agentSkillTools-mcp,agentSkills-routes).Gates green: scoped eslint,
typecheck:core,check:agent-skills-sync(dry-run, idempotent — this is the CI gate for this change).Note: a pre-existing, unrelated docs drift (API skill count listed as 22 vs the real 23) was left untouched — out of scope here.
Closes #7020