| name | ai-create-cmd |
| description | Create a new Claude skill for augint-shell repositories. Use when building new automation commands or skills. |
| argument-hint | [skill-name and description] |
Create a new Claude skill for trinity repositories: $ARGUMENTS
Follow these steps to create a well-structured skill:
-
Parse the skill request:
Extract from user input:
- Skill name (kebab-case)
- Skill purpose
- Key functionality needed
- Target repos (default: all trinity)
-
Determine skill scope:
- Trinity skill: For augint-library, augint-api, augint-web
- Meta skill: Only if it makes sense for augint-project management
Ask: "Should this skill also have a meta version for the augint-project repo?"
(Only if the skill relates to project management, vision docs, or cross-repo operations)
-
Create the skill directory and file:
mkdir -p src/ai_shell/templates/claude/skills/{skill-name}
touch src/ai_shell/templates/claude/skills/{skill-name}/SKILL.md
-
Generate SKILL.md with this structure:
---
name: {skill-name}
description: {One-line description of what it does and when to use it. Max 250 chars.}
argument-hint: "[expected arguments]"
---
{Command description in active voice}: $ARGUMENTS
{Brief overview of what this skill does.}
## Usage Examples
- `/{skill-name}` - Default behavior
- `/{skill-name} specific args` - With arguments
## 1. {First Major Step}
- {Specific action}
- {Validation check}
```bash
# Example command
2. {Second Major Step}
- {Specific action}
- {Error handling}
3. {Output/Report}
=== {Skill Name} Results ===
{Structured output format}
Status: {success/warnings/failures}
Error Handling
- {Error condition}: {Recovery action}
-
Choose appropriate frontmatter options:
argument-hint to show expected arguments in the skill menu
- Keep description under 250 characters, front-load key use case
-
Validate the skill:
head -10 src/ai_shell/templates/claude/skills/{skill-name}/SKILL.md
grep -E "^(name|description):" src/ai_shell/templates/claude/skills/{skill-name}/SKILL.md
-
Register in scaffold.py:
Add the skill name to CLAUDE_SKILL_DIRS in src/ai_shell/scaffold.py:
CLAUDE_SKILL_DIRS = [
"{skill-name}",
]
-
Best practices:
- Keep skills focused on one primary task
- Use active voice ("Create PR" not "PR should be created")
- Include usage examples
- Make steps explicit and numbered
- Include error handling section
- Reference related skills (e.g., "Next:
/ai-submit-work")
- Keep SKILL.md under 500 lines
- Be directive, not conversational
-
Copy to trinity repositories:
for repo in augint-library augint-api augint-web; do
python -c "
from ai_shell.scaffold import scaffold_claude
from pathlib import Path
scaffold_claude(Path('../$repo'), overwrite=True)
"
done
-
Verify deployment:
ls -la ../augint-*/.claude/skills/{skill-name}/SKILL.md
Skill Patterns
For Git Workflow Skills:
{Action} for {purpose}: $ARGUMENTS
## 1. Check current state
## 2. Perform action
## 3. Verify success
## 4. Report results with next step
For Analysis Skills:
Analyze {target} for {criteria}: $ARGUMENTS
## 1. Gather data
## 2. Process and categorize
## 3. Generate insights
## 4. Provide recommendations
For Automation Skills:
Automate {task} across {scope}: $ARGUMENTS
## 1. Validate prerequisites
## 2. Execute automation
## 3. Handle errors
## 4. Confirm completion
Why This Matters
Consistent skill creation ensures all repositories have access to the same automation capabilities with predictable behavior and quality.