Loading...
Loading...
Creates new skills, either generic for the global catalog or specific to the current project. Trigger: /skill-create <name>, create skill, new skill, generate skill, add skill to project.
npx skill4agent add fearovex/claude-config skill-creatorCreates new skills, either generic for the global catalog or specific to the current project.
/skill-create <name>~/.claude/skills/<name>/SKILL.md.claude/skills/<name>/SKILL.md/skill-add <name>is_claude_config = (
file_exists("install.sh")
AND (
project root contains install.sh AND skills/_shared/
OR basename(cwd) == "agent-config"
)
)
has_project_context = (
dir_exists(".claude")
)
if has_project_context AND NOT is_claude_config:
default_placement = "project-local" → option 1
else:
default_placement = "global" → option 2[DEFAULT]default_placement = "project-local"Is this skill for this specific project or for all your projects?
1. This project only → .claude/skills/ [DEFAULT]
2. Global catalog → ~/.claude/skills/
What does this skill do? (one-sentence description)
When should it activate? (what situations trigger its use?)
Are there specific code patterns, commands, or processes it should know about?default_placement = "global"Is this skill for this specific project or for all your projects?
1. This project only → .claude/skills/
2. Global catalog → ~/.claude/skills/ [DEFAULT]
What does this skill do? (one-sentence description)
When should it activate? (what situations trigger its use?)
Are there specific code patterns, commands, or processes it should know about?has_project_contextis_claude_configIs this skill for this specific project or for all your projects?
1. This project only → .claude/skills/
2. Global catalog → ~/.claude/skills/
What does this skill do? (one-sentence description)
When should it activate? (what situations trigger its use?)
Are there specific code patterns, commands, or processes it should know about?*-antipatterns*-anti-patternsanti-pattern-19-5-4referencesdd-*project-*memory-*deploy-*run-*proceduralFormat type for this skill:
Inferred: [procedural | reference | anti-pattern | none — please select]
Available formats (full contract: docs/format-types.md):
1. procedural — orchestrates a sequence of steps (SDD phases, meta-tools, workflows)
2. reference — provides patterns and examples for a technology or library
3. anti-pattern — catalogs things to avoid (use for anti-pattern-focused skills)
Confirm [1/2/3] or press Enter to accept inferred:docs/format-types.md⚠️ WARNING: docs/format-types.md not found — skill-format-types change may not be applied.
Defaulting to procedural format.procedural$SELECTED_FORMAT$SELECTED_FORMATformat: $SELECTED_FORMATdocs/format-types.md$SELECTED_FORMATprocedural---
name: [skill-name]
description: >
[one-line description]
format: procedural
---
# [skill-name]
> [One-line description. What it does and what it is for.]
**Triggers**: [word1, word2, situation1, situation2]
---
## Process
### Step 1 — [step name]
[Explain what this step does.]
### Step 2 — [step name]
[Explain what this step does.]
---
## Rules
- [constraint or invariant for this skill]
- [another constraint]$SELECTED_FORMATreference---
name: [skill-name]
description: >
[technology] patterns for [use case].
format: reference
---
# [skill-name]
> [technology] patterns for [use case].
**Triggers**: [technology name], [use-case keyword]
---
## Patterns
### [Pattern 1]: [Descriptive name]
[Explanation of the pattern]
```[language]
[real example code][example code]| Task | Pattern / Command |
|---|---|
| [common task] | [solution] |
**If `$SELECTED_FORMAT` is `anti-pattern`:**
```markdown
---
name: [skill-name]
description: >
[technology] anti-patterns: [brief description].
format: anti-pattern
---
# [skill-name]
> [technology] anti-patterns: [brief description].
**Triggers**: [technology name] antipatterns, code review, refactoring
---
## Anti-patterns
### ❌ [Anti-pattern 1]: [Descriptive name]
**Why it is problematic**: [explanation]
```[language]
// ❌ Bad
[bad code]// ✅ Good
[corrected code]
### Step 4 — Preview and confirm
Show the content to be created and confirm with the user before writing.
### Step 5 — Create and register
1. Create the file at the corresponding path
2. If it is a project skill, suggest adding it to the project `CLAUDE.md` in the skills section
3. If it is a generic skill, add it to the registry in `~/.claude/CLAUDE.md`
---
## Global Catalog Skills
Current catalog available in `~/.claude/skills/`:
### SDD Phase Skills
| Skill | Purpose |
|-------|---------|
| `sdd-explore` | SDD exploration phase |
| `sdd-propose` | SDD proposal phase |
| `sdd-spec` | SDD specifications phase |
| `sdd-design` | SDD technical design phase |
| `sdd-tasks` | SDD task plan phase |
| `sdd-apply` | SDD implementation phase |
| `sdd-verify` | SDD verification phase |
| `sdd-archive` | SDD archive phase |
| `sdd-init` | SDD initialization in a project |
| `sdd-status` | SDD active changes status |
### Infrastructure / Meta-tools
| Skill | Purpose |
|-------|---------|
| `project-setup` | Deploy SDD + memory structure in a new project |
| `project-audit` | Configuration audit |
| `project-fix` | Apply audit corrections |
| `project-onboard` | Diagnose and recommend onboarding sequence |
| `memory-manage` | Manage ai-context/ (init/update/maintain) |
| `codebase-teach` | Analyze bounded contexts and write ai-context/features/ docs |
| `feature-domain-expert` | Author and consume feature-level domain knowledge files |
| `config-export` | Export Claude config to Copilot, Gemini, Cursor formats |
| `skill-creator` | Skill creation |
| `smart-commit` | Conventional commit message generation |
### Workflow
| Skill | Purpose |
|-------|---------|
| `branch-pr` | PR creation workflow |
| `issue-creation` | GitHub issue creation workflow |
| `project-tracking` | GitHub Project board + Issues backlog management |
| `judgment-day` | Parallel adversarial review protocol |
### Technology
| Skill | Purpose |
|-------|---------|
| `go-testing` | Go testing patterns including Bubbletea TUI testing |
| `nextjs-15` | Next.js 15 App Router, Server Actions, data fetching |
| `react-19` | React 19 with React Compiler, Server Components, use() hook |
| `react-native` | React Native with Expo, navigation, NativeWind |
| `solid-ddd` | Language-agnostic SOLID principles and DDD tactical patterns |
| `tailwind-4` | Tailwind CSS 4, cn() utility, dynamic styles |
| `typescript` | TypeScript strict mode, utility types, advanced patterns |
| `zustand-5` | State management with Zustand 5, slices, persistence |
---
## Rules
- Always use real project code as examples when it is a project skill
- Never invent patterns — extract them from existing code
- Minimum 3 code examples per skill (reference and anti-pattern formats)
- Preview and confirm before writing
- Register the new skill in the corresponding CLAUDE.md
- The format-selection step (Step 1b) MUST always run before skeleton generation — a skeleton is never written without a confirmed format type
- The `format:` field MUST be present in the YAML frontmatter of every SKILL.md generated by this skill
- If `docs/format-types.md` does not exist, default all new skills to `procedural` and emit WARNING: "docs/format-types.md not found — skill-format-types change may not be applied"
- Inference is a convenience — the user MUST always confirm or override the inferred type before the skeleton is written