Get the FREE Ultimate OpenClaw Setup Guide →

skill-developer

npx machina-cli add skill aiskillstore/marketplace/skill-developer --openclaw
Files (1)
SKILL.md
6.5 KB

Skill Developer Guide

Purpose

Comprehensive guide for creating and managing Claude Code skills, hooks, agents, and commands. This meta-skill helps you build and configure Claude Code infrastructure components.

When to Use This Skill

  • Creating new skills
  • Configuring skill triggers in skill-rules.json
  • Setting up hooks
  • Creating agents
  • Adding slash commands
  • Understanding skill activation patterns
  • Customizing skill behavior

Quick Start

Creating a New Skill

  1. Create skill directory:

    mkdir -p .claude/skills/{skill-name}
    
  2. Create SKILL.md file:

    • Add frontmatter with name and description
    • Write comprehensive guidelines
    • Use progressive disclosure (main file + resources/)
  3. Update skill-rules.json:

    • Add skill entry with triggers
    • Configure fileTriggers and promptTriggers
    • Set enforcement and priority

Skill Structure

.claude/skills/
  {skill-name}/
    SKILL.md              # Main skill file
    resources/            # Optional: Additional resources
      pattern-1.md
      pattern-2.md

Skill Configuration

skill-rules.json Structure

{
  "version": "1.0",
  "description": "Skill activation triggers",
  "skills": {
    "{skill-name}": {
      "type": "domain" | "guardrail",
      "enforcement": "suggest" | "block" | "warn",
      "priority": "critical" | "high" | "medium" | "low",
      "description": "Skill description",
      "promptTriggers": {
        "keywords": ["keyword1", "keyword2"],
        "intentPatterns": ["regex pattern"]
      },
      "fileTriggers": {
        "pathPatterns": ["app/**/*.tsx"],
        "pathExclusions": ["**/*.test.tsx"],
        "contentPatterns": ["import.*from.*next"]
      }
    }
  }
}

Enforcement Types

  • suggest: Skill suggestion appears but doesn't block execution
  • block: Requires skill to be used before proceeding (guardrail)
  • warn: Shows warning but allows proceeding

Priority Levels

  • critical: Highest - Always trigger when matched
  • high: Important - Trigger for most matches
  • medium: Moderate - Trigger for clear matches
  • low: Optional - Trigger only for explicit matches

File Triggers

Path Patterns

Use glob patterns to match file paths:

{
  "pathPatterns": [
    "app/**/*.tsx", // All .tsx files in app/
    "components/**/*.ts", // All .ts files in components/
    "**/*.tsx" // All .tsx files anywhere
  ]
}

Path Exclusions

Exclude files from triggering:

{
  "pathExclusions": [
    "**/*.test.tsx", // Test files
    "**/node_modules/**", // Dependencies
    "**/.next/**" // Build output
  ]
}

Content Patterns

Match file content with regex:

{
  "contentPatterns": [
    "from '@/components/ui/", // Shadcn imports
    "import.*from.*next", // Next.js imports
    "'use client'" // Client component directive
  ]
}

Prompt Triggers

Keywords

Simple keyword matching:

{
  "keywords": ["component", "page", "route", "frontend"]
}

Intent Patterns

Regex patterns for flexible matching:

{
  "intentPatterns": [
    "(create|add|make|build).*?component", // Create component
    "(how to|best practice).*?react", // How to questions
    "app router.*?(page|route)" // App router related
  ]
}

Skill Types

Domain Skills

  • Purpose: Provide guidelines for specific domains
  • Example: frontend-dev-guidelines, backend-dev-guidelines
  • Enforcement: Usually "suggest"

Guardrail Skills

  • Purpose: Enforce best practices and prevent mistakes
  • Example: Code quality checks, security rules
  • Enforcement: Usually "block" or "warn"

Best Practices

Skill Design

  1. Progressive Disclosure: Main file + resources/ for detailed guides
  2. Clear Examples: Include working code examples
  3. Quick Reference: Add quick reference tables
  4. When to Use: Clearly state when skill applies

Trigger Configuration

  1. Specific Keywords: Use domain-specific terms
  2. Flexible Patterns: Use regex for intent matching
  3. Path Specificity: Match actual project structure
  4. Avoid Over-triggering: Use exclusions appropriately

File Organization

  1. Modular Structure: Split large skills into resources/
  2. Clear Naming: Use descriptive skill names
  3. Documentation: Document all configuration options

Common Patterns

Tech Stack Specific Skills

{
  "frontend-dev-guidelines": {
    "fileTriggers": {
      "pathPatterns": ["app/**/*.tsx", "components/**/*.tsx"],
      "contentPatterns": ["from '@/components/ui/", "import.*from.*next"]
    },
    "promptTriggers": {
      "keywords": ["component", "shadcn", "next.js"],
      "intentPatterns": ["(create|build).*?component"]
    }
  }
}

Framework Agnostic Skills

{
  "error-tracking": {
    "fileTriggers": {
      "pathPatterns": ["**/*Controller.ts", "**/*Service.ts"],
      "contentPatterns": ["Sentry\\.", "captureException"]
    },
    "promptTriggers": {
      "keywords": ["error", "sentry", "exception"],
      "intentPatterns": ["(add|implement).*?error.*?handling"]
    }
  }
}

Integration Checklist

When adding a new skill:

  • Create skill directory and SKILL.md
  • Write comprehensive guidelines
  • Add to skill-rules.json
  • Configure fileTriggers (pathPatterns, exclusions, contentPatterns)
  • Configure promptTriggers (keywords, intentPatterns)
  • Set appropriate enforcement and priority
  • Test skill activation
  • Document customization needs

Troubleshooting

Skill Not Triggering

  1. Check pathPatterns match actual file paths
  2. Verify keywords are spelled correctly
  3. Test intentPatterns regex patterns
  4. Check for pathExclusions blocking triggers

Over-triggering

  1. Add more specific pathPatterns
  2. Use pathExclusions to filter out files
  3. Make intentPatterns more specific
  4. Lower priority level

Skill File Not Found

  1. Verify skill directory exists: .claude/skills/{skill-name}/
  2. Check SKILL.md file exists
  3. Verify skill name matches skill-rules.json entry

Related Skills

  • frontend-dev-guidelines: Frontend development patterns
  • backend-dev-guidelines: Backend development patterns

Skill Status: Meta-skill for skill development and management

Source

git clone https://github.com/aiskillstore/marketplace/blob/main/skills/0chan-smc/skill-developer/SKILL.mdView on GitHub

Overview

Claude Code 기반의 스킬 생성과 관리를 위한 메타 스킬로, 새로운 스킬 생성, 트리거 구성, 훅 설정, 에이전트/명령어 관리 등을 한 곳에서 설계하고 운영합니다. .claude/skills 디렉터리 구조와 skill-rules.json의 트리거 정의를 활용해 일관된 워크플로를 제공합니다.

How This Skill Works

사용자는 .claude/skills/{skill-name} 폴더를 만들고 SKILL.md에 메타 정보를 기입합니다. 이후 skill-rules.json에 파일 트리거와 프롬프트 트리거를 설정하고 enforcement와 priority를 지정합니다. 이 프로세스를 통해 훅, 에이전트, 명령어, 슬래시 커맨드 등의 Claude Code 인프라 구성요소를 체계적으로 생성하고 관리합니다.

When to Use It

  • 새로운 스킬을 생성할 때
  • skill-rules.json에서 트리거를 구성할 때
  • 훅을 설정할 때
  • 에이전트를 생성할 때
  • 슬래시 커맨드를 추가할 때

Quick Start

  1. Step 1: mkdir -p .claude/skills/{skill-name}
  2. Step 2: Create SKILL.md with frontmatter (name, description) and comprehensive guidelines
  3. Step 3: Update skill-rules.json with triggers, enforcement, priority, and file/prompt patterns

Best Practices

  • 진행형 공개(프로그레시브 디스클로저) 구조를 유지해 main 파일과 resources/로 상세 지침을 분리한다
  • 각 스킬에 대해 enforcement와 priority를 명확히 정의해 실행 흐름에 맞춘 규칙을 만든다
  • fileTriggers와 contentPatterns를 구체적으로 설정해 오탐을 최소화한다
  • skill-rules.json 중앙 관리로 규칙 변경 시 모든 관련 스킬에 즉시 반영되도록 한다
  • .claude/skills 구조를 유지하고 resources/를 통해 가이드를 확장한다

Example Use Cases

  • 새로운 UI 컴포넌트 생성 스킬과 트리거를 정의해 자동화
  • Next.js import 패턴을 검증하는 파일 트리거 설정 예제
  • app router 관련 컴포넌트 생성을 돕는 프롬프트 트리거 구성
  • 에이전트를 생성하고 관리하는 워크플로우 구축
  • 슬래시 명령어를 추가하고 문서화하는 시나리오

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers