skill-create
Original:🇺🇸 English
Translated
Instructions for AI agents to create new skills and add them to the skills repository
24installs
Sourcesourman/skills
Added on
NPX Install
npx skill4agent add sourman/skills skill-createTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Purpose
This skill instructs AI agents on how to create new skills and add them to the shared repository at .
skillshttps://github.com/sourman/skillsRepository Location
The skills repository is located at:
- Remote:
https://github.com/sourman/skills - Local working copy: (or
/tmp/skillsin some environments)~/skills
Skill Structure
Each skill is a directory at the repository root containing a file:
SKILL.mdskills/
├── skill-name-1/
│ └── SKILL.md
├── skill-name-2/
│ └── SKILL.md
└── README.mdThe file must have:
SKILL.md- YAML frontmatter with and
namedescription - Markdown content with instructions for the AI agent
Creating a New Skill
Step 1: Navigate to the Repository
bash
cd /tmp/skills
# OR if it doesn't exist:
git clone git@github.com:sourman/skills.git /tmp/skills
cd /tmp/skillsStep 2: Create the Skill Directory
bash
mkdir <skill-name>Use kebab-case for skill names (e.g., , , ).
react-best-practicestypescript-eslintdocker-workflowStep 3: Create the SKILL.md File
Create with the following structure:
<skill-name>/SKILL.mdmarkdown
---
name: skill-name
description: Brief one-line description of what this skill teaches the AI agent
---
# Skill Title
A clear, concise description of what this skill covers.
## What This Skill Covers
- Topic area 1
- Topic area 2
- Topic area 3
## Key Commands
```bash
# Example commands relevant to this skill
command --option valueDetailed Instructions
Provide detailed instructions, best practices, and workflows here.
When to Use This Skill
Use this skill when:
- Condition 1
- Condition 2
**Frontmatter Requirements:**
- `name`: Must match the directory name (kebab-case)
- `description`: One-line summary for the skills directory
## Step 4: Add and Commit to Git
```bash
# Ensure you're on the master branch
git checkout master
# Add the new skill
git add <skill-name>/
# Commit with a descriptive message
git commit -m "Add <skill-name> skill"
# If the master branch doesn't exist, you might be on main:
git checkout mainStep 5: Push to GitHub
bash
# Push the changes
git push origin master
# OR if on main:
git push origin mainExample: Creating a New Skill
Here's a complete example of creating a skill called :
git-workflowbash
# 1. Navigate to repo
cd /tmp/skills
# 2. Create directory
mkdir git-workflow
# 3. Create SKILL.md
cat > git-workflow/SKILL.md << 'EOF'
---
name: git-workflow
description: Git best practices, branching strategies, and commit conventions
---
# Git Workflow
This skill covers Git best practices for collaborative development.
## Branch Naming
Use descriptive branch names:
- `feature/add-user-authentication`
- `fix/login-page-bug`
- `refactor/database-connection`
## Commit Messages
Follow conventional commits:
- `feat: add user authentication`
- `fix: resolve login redirect issue`
- `docs: update API documentation`
EOF
# 4. Commit
git add git-workflow/
git commit -m "Add git-workflow skill"
# 5. Push
git push origin masterUpdating an Existing Skill
To update an existing skill:
bash
cd /tmp/skills
# Edit the skill file
vim <skill-name>/SKILL.md
# Commit and push
git add <skill-name>/SKILL.md
git commit -m "Update <skill-name> skill: describe changes"
git push origin masterVerifying the Skill
After pushing, verify the skill is accessible:
- Check GitHub: https://github.com/sourman/skills/tree/main/<skill-name>
- Test installation in another project:
bash
bun x skills add sourman/skills/<skill-name>
Important Notes
- Always use kebab-case for skill directory names
- Frontmatter must match the directory name
name - Write clear descriptions - this is what agents see when listing skills
- Test your skill by installing it in a different project
- Keep skills focused - each skill should cover a specific domain or technology
Troubleshooting
Git Push Fails
If push fails with "remote does not support password authentication":
bash
# Ensure SSH is set up correctly
ssh -T git@github.comBranch Name Issues
If you're not sure which branch you're on:
bash
git branch
# Use 'main' or 'master' accordinglyPermission Denied
If you can't push:
- Verify you have push access to sourman/skills
- Check that you're authenticated as the correct user:
gh auth status