rec — Manage recommended skills
Manage recommended skills sources with list, add, and remove operations.
xskill rec <COMMAND>
rec list
List all recommended sources:
xskill rec list
Output format:
SOURCE NAME URL SKILLS
true antfu https://github.com/antfu/skills vue, react
false foo invalid bar
SOURCEcolumn:trueif the name matches a configured source with consistent URL,falseotherwise.URLshowsinvalid(red) when the name exists in sources but URL doesn’t match, or when no URL can be resolved.
rec add
Add skills to a recommended source. If the entry already exists, new skills are appended (duplicates ignored).
xskill rec add [-n <name>] [-u <url>] -s <skills>
Options:
-n, --name— Source name (must exist in sources if--urlnot provided)-u, --url— Source URL (when name exists in sources and url matches, only name is saved)-s, --skills— Comma-separated list of skill names (required)
Parameter combination logic:
- Only
-nand-s: Validate-nexists in sources, save name + skills -n,-u, and-s:- If
-nexists in sources AND url matches-u: save only name + skills (no url needed) - If
-nexists in sources BUT url doesn’t match: error - If
-ndoesn’t exist in sources: save url + skills (name becomes url)
- If
- Only
-uand-s: Save url + skills
Append behavior: If entry “antfu” already has skills vue, running rec add -n antfu -s react,angular results in vue,react,angular.
rec remove
Remove a recommended source or specific skills:
xskill rec remove [-n <name>] [-u <url>] [-s <skills>]
Options:
-n, --name— Source name (used to identify entry, or with-u/-sfor specific removal)-u, --url— Source URL (when both-nand-uprovided,-utakes priority)-s, --skills— Comma-separated list of skill names to remove (removes specific skills instead of entire entry)
Priority logic:
- When both
-nand-uprovided: prioritize-u(fallback to-nif url not found) - When only
-n: delete entire entry with that name - When
-nand-s: delete specific skills from entry with that name - When
-uand-s: delete specific skills from entry with that url