Skip to content

feat(skill): 10x skill <name> shows a skill's overview - #88

Merged
psmyrdek merged 2 commits into
masterfrom
feat/skill-command
Nov 7, 2026
Merged

psmyrdek merged 2 commits into
masterfrom
feat/skill-command

Conversation

@psmyrdek

@psmyrdek psmyrdek commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

What

New read-only command 10x skill <name>: a short developer-glossary entry for one 10x workflow skill. It shows the stage, problem, solution, when to use it, the artifacts it produces and up to 3 related skills. The format follows the 10x-hub skill glossary, cut down for a terminal.

10x skill 10x-plan
10x skill /10x-plan --lang pl
10x skill plan --course 10xdevs-4
10x skill 10x-plan | jq .overview
  • Names: accepts 10x-plan, /10x-plan, $10x-plan, any case, and bare plan. A typo gets close-name suggestions, computed locally from the course-scoped list.
  • Scope: --course resolves the same way as changelog (resolveCourseScope() is now exported). --lang en|pl.
  • JSON when piped: { course, overview }. Exit codes: 2 bad name, language or unknown course; 3 not logged in; 4 no access; 5 unknown skill (skill_overview_not_found); 1 when the API doesn't have the route yet (skill_overviews_unsupported).
  • Safety: all text comes from the server, so it's sanitized before printing and wrapped before styling.
  • src/generated/api-types.ts was regenerated from the toolkit branch (additions only).
  • Docs: README, CHANGELOG, CLAUDE.md and the 10x-cli-guide skill. The verify skill gets a fake-api route and a skill feature.

Depends on

przeprogramowani/10x-toolkit#127 (the /api/skill-overviews route and the publisher). Merge and deploy that first. Until the route is live, this command exits 1 with skill_overviews_unsupported.

Testing

  • tests/skill-command.test.ts: 20 tests.
  • Full suite: 1056/1056 pass. tests/quality-loop.test.ts needs Node 22, as pinned in .quality/config.json.
  • tsc and oxlint --deny-warnings clean.
  • End to end against the local toolkit worker with data from the real publisher (model output stubbed): EN and PL rendering, typo suggestions, 401/403/404 mapped to the exit codes above.

🤖 Generated with Claude Code

psmyrdek and others added 2 commits November 7, 2026 13:36
A short terminal glossary entry for one 10x workflow skill: stage,
problem, solution, when to use, artifacts and up to 3 related skills,
in English or Polish. Data comes from the toolkit's
GET /api/skill-overviews (generated from each SKILL.md on master).

- Accepts `10x-plan`, `/10x-plan`, `$10x-plan`, any case, and bare
  `plan`; suggests close names on a typo.
- --course (defaults like `changelog`, via resolveCourseScope) and --lang.
- JSON when piped: { course, overview }. Exit codes: 2 bad name/lang or
  unknown course, 3 not logged in, 4 no access, 5 unknown skill, 1 when
  the API predates the route.
- Remote text is sanitized before printing and wrapped before styling.
- api-types regenerated (additions only); verify skill gets a fake-api
  route and a skill feature.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@psmyrdek
psmyrdek merged commit cc0e820 into master Nov 7, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants