malo-find-skills
npx machina-cli add skill malob/nix-config/malo-find-skills --openclawFind Skills
This skill helps you discover and install skills from the open agent skills ecosystem (https://skills.sh). Based on the find-skills skill by Vercel, adapted for this Nix-managed environment.
When to Use This Skill
Use this skill when the user:
- Asks "how do I do X" where X might be a common task with an existing skill
- Says "find a skill for X" or "is there a skill for X"
- Asks "can you do X" where X is a specialized capability
- Expresses interest in extending agent capabilities
- Wants to search for tools, templates, or workflows
How Skills Work in This Setup
All paths below (e.g. home/claude.nix, configs/claude/skills/) are relative to the nix-config directory.
Skills are split into two categories:
- Custom skills: Directories in
configs/claude/skills/committed to the nix-config repo. These are skills we author and maintain. - External skills: Installed from skills.sh via
npx skills add. These are managed by an activation script inhome/claude.nixand are gitignored (they appear as symlinks in the skills directory, not regular directories).
The activation script defines a list called externalSkills. On every nh darwin switch --no-nom, it removes all Claude Code external skills and reinstalls only the declared ones. This keeps external skills declarative and reproducible.
Finding Skills
Step 1: Search
Run the find command with a relevant query:
npx skills find [query]
For example:
- "how do I make my React app faster?" ->
npx skills find react performance - "can you help me with PR reviews?" ->
npx skills find pr review - "I need to create a changelog" ->
npx skills find changelog
You can also browse skills at https://skills.sh/
Step 2: Present Options
When you find relevant skills, present them with:
- The skill name and what it does
- The install command
- A link to learn more
Step 3: Install
To try a skill immediately:
npx skills add <owner/repo> --skill <name> -g -a claude-code -y
Always pass -a claude-code to avoid installing for other agents. The -g flag installs globally (user-level) and -y skips prompts.
Step 4: Make It Permanent
If the user wants to keep the skill across rebuilds, add it to the externalSkills list in home/claude.nix:
externalSkills = [
"anthropics/skills --skill pdf"
"owner/repo --skill new-skill" # <- add here
];
Then nh darwin switch --no-nom will install it on every activation.
Creating a Custom Skill
If no existing skill fits, or the user wants to build their own:
- Create a directory in
configs/claude/skills/<skill-name>/ - Add a
SKILL.mdwith YAML frontmatter (nameanddescription) and instructions - The gitignore allowlists directories automatically, so it will be tracked in git
- Optionally add
references/,scripts/, or other supporting files
When No Skills Are Found
If no relevant skills exist:
- Acknowledge that no existing skill was found
- Offer to help with the task directly
- Suggest creating a custom skill if it's a repeatable workflow
Source
git clone https://github.com/malob/nix-config/blob/master/configs/claude/skills/malo-find-skills/SKILL.mdView on GitHub Overview
This skill helps you discover and install agent skills from the open skills ecosystem (skills.sh). It guides you from searching to installation and persistence, and explains how custom and external skills are managed in your nix-config. It covers Step-by-step usage, including adding skills to your configuration for reproducible setups.
How This Skill Works
You search for capabilities with npx skills find [query], review available options (name, what it does, install command, learn more link), and install a chosen skill with npx skills add <owner/repo> --skill <name> -g -a claude-code -y. To keep skills across rebuilds, add them to the externalSkills list in home/claude.nix. The system distinguishes Custom skills in configs/claude/skills from External skills installed via skills.sh.
When to Use It
- Asks "how do I do X" where X might be a common task with an existing skill
- Says "find a skill for X" or "is there a skill for X"
- Asks "can you do X" where X is a specialized capability
- Expresses interest in extending agent capabilities
- Wants to search for tools, templates, or workflows
Quick Start
- Step 1: Run npx skills find [query] to search for relevant skills
- Step 2: Review results and pick a skill (name, what it does, install command, learn more link)
- Step 3: Install the chosen skill with npx skills add <owner/repo> --skill <name> -g -a claude-code -y
Best Practices
- Be precise in the user query to surface relevant skills
- Review the skill's install command and learn more link before installing
- Test the skill in a safe environment before relying on it
- Always pass -a claude-code to install for the correct agent and use -g for user-level installs
- Add useful skills to externalSkills for reproducible installs across rebuilds
Example Use Cases
- User asks how to make a React app faster and runs: npx skills find react performance
- User asks for PR reviews and runs: npx skills find pr review
- User wants to create a changelog and runs: npx skills find changelog
- User installs a chosen skill with: npx skills add owner/repo --skill name -g -a claude-code -y
- User wants persistence across rebuilds and adds the skill to externalSkills in home/claude.nix