Custom Skills
RuleKitX is built on a dynamic markdown discovery system. While the package comes with 9 carefully crafted domain skills, you are free to add your own.
Custom skills are useful when you need to enforce team-specific logic, such as a strict internal API policy, custom design system naming, or unique database transaction requirements.
#1. Creating a Skill File
All RuleKitX skills are plain Markdown files with YAML frontmatter.
To create a new skill:
- Navigate to your RuleKitX config directory (e.g.,
~/.rulekitx/for global or./.rulekitx/for local). - Inside the
skills/directory, place your markdown file inside any category subfolder (e.g.,skills/custom/my-rules.md). The name of the file becomes the command name.
File Format
Your file must contain valid YAML frontmatter with name and description keys. The description is used for IDE autocomplete hints and Cursor Agent-Requested descriptions.
1---2name: my-skill3description: Custom team rules for database migrations.4---56# /rulekitx-my-skill78When modifying the database schema:91. Never use cascading deletes.102. Always write a rollback script in the `migrations/down/` folder.113. Assert that no tables are locked during the transaction.#2. Syncing Your Skill
Once you save the file, you must tell RuleKitX to synchronize the new skill with your IDEs and agents.
Run the sync command:
1rulekitx install-ideYou can verify the skill is recognized by running:
1rulekitx listYour command will appear as /rulekitx-my-skill under the CUSTOM category.
#3. How It Loads
RuleKitX delivers your custom skill using the same dynamic system as bundled skills:
- Cursor: Generated as an Agent-Requested
.mdcfile in.cursor/rules/rulekitx-my-skill.mdc. Cursor will automatically read the description and only pull the full rules in when it believes they are relevant to your prompt. - OpenCode & Claude Code: Placed in their native skill folders as
SKILL.mdfiles. They will appear in thenpx skillsmenu automatically. - VS Code & JetBrains: Added as a live-template/snippet. Typing
/rulekitx-my-skillwill expand it into the editor.
#⚠️ Important Caveat: Pruning
The rulekitx init command is designed to scaffold the default bundled skills. To keep the installation clean, running rulekitx init will prune (delete) any markdown files in the skills/ directory that are not part of the official RuleKitX release.
If you create custom skills:
- Do not run
rulekitx initagain unless you intend to reset your setup. - If you do run
rulekitx init, back up your custom skills first. - Use
rulekitx install-ideinstead ofinitto update or sync your custom files.