Loading...
Loading...
Instructions for AI agents to create new skills and add them to the skills repository
npx skill4agent add sourman/skills skill-createskillshttps://github.com/sourman/skillshttps://github.com/sourman/skills/tmp/skills~/skillsSKILL.mdskills/
├── skill-name-1/
│ └── SKILL.md
├── skill-name-2/
│ └── SKILL.md
└── README.mdSKILL.mdnamedescriptioncd /tmp/skills
# OR if it doesn't exist:
git clone git@github.com:sourman/skills.git /tmp/skills
cd /tmp/skillsmkdir <skill-name>react-best-practicestypescript-eslintdocker-workflow<skill-name>/SKILL.md---
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 value
**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 main# Push the changes
git push origin master
# OR if on main:
git push origin maingit-workflow# 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 mastercd /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 masterbun x skills add sourman/skills/<skill-name>name# Ensure SSH is set up correctly
ssh -T git@github.comgit branch
# Use 'main' or 'master' accordinglygh auth status