Getting Started
skillit is a CLI to generate an opinionated skill from Starlight documentation.
How it works
Section titled “How it works”When you run skillit to create a skill, it does the following:
- Creates a directory for your skills and, inside it, a subdirectory for the new skill.
- Copies all
.mdand.mdxfiles from your Starlight site into a rules directory insideskills/your-skill, converting.mdxfiles to.mdand removing or replacing Starlight components in the process. - Creates a
SKILL.mdfile with the skill metadata and a list of all copied files.
When you run it to update an existing skill, it re-copies the files and refreshes the list of copied files in SKILL.md.
At the end of the process, you should have something like this:
Directoryskills
Directoryyour-skill
- SKILL.md
Directoryrules
- getting-started.md
- how-to-guide.md
The SKILL.md file, on the other hand, should contain something like this:
---name: your-skilldescription: This is the skill description.---
## How to use
Read individual rule files for detailed explanations and code examples.
- [Getting Started](rules/getting-started.md)- [How to guide](rules/how-to-guide.md)Prerequisites
Section titled “Prerequisites”You will need to have a Starlight website set up. If you don’t have one yet, you can follow the “Getting Started” guide in the Starlight docs to create one.
skillit is also designed to be used in monorepos, for example, where you have a package alongside its documentation and want to add a skill right there. That said, this is not a requirement.
Create or update the skill
Section titled “Create or update the skill”-
Run the following command:
Terminal window npx skillit@latestTerminal window yarn dlx skillit@latestTerminal window pnpm dlx skillit@latest -
Then just follow the prompts.