All skills
davila7 avatar

/skill-developer

@1deb97c

Create and manage Claude Code skills following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns, file paths, content patterns), enforcement levels (block, suggest, warn), hook mechanisms (UserPromptSubmit, PreToolUse), session tracking, and the 500-line rule.

Use this Skill: https://skilld.dev/gh/davila7/claude-code-templates/skill-developer

This session only. Nothing lands on disk.

PATTERNS_LIBRARY.md

≈837 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Common Patterns Library

Ready-to-use regex and glob patterns for skill triggers. Copy and customize for your skills.


Intent Patterns (Regex)

Feature/Endpoint Creation

(add|create|implement|build).*?(feature|endpoint|route|service|controller)

Component Creation

(create|add|make|build).*?(component|UI|page|modal|dialog|form)

Database Work

(add|create|modify|update).*?(user|table|column|field|schema|migration)
(database|prisma).*?(change|update|query)

Error Handling

(fix|handle|catch|debug).*?(error|exception|bug)
(add|implement).*?(try|catch|error.*?handling)

Explanation Requests

(how does|how do|explain|what is|describe|tell me about).*?

Workflow Operations

(create|add|modify|update).*?(workflow|step|branch|condition)
(debug|troubleshoot|fix).*?workflow

Testing

(write|create|add).*?(test|spec|unit.*?test)

File Path Patterns (Glob)

Frontend

frontend/src/**/*.tsx        # All React components
frontend/src/**/*.ts         # All TypeScript files
frontend/src/components/**   # Only components directory

Backend Services

form/src/**/*.ts            # Form service
email/src/**/*.ts           # Email service
users/src/**/*.ts           # Users service
projects/src/**/*.ts        # Projects service

Database

**/schema.prisma            # Prisma schema (anywhere)
**/migrations/**/*.sql      # Migration files
database/src/**/*.ts        # Database scripts

Workflows

form/src/workflow/**/*.ts              # Workflow engine
form/src/workflow-definitions/**/*.json # Workflow definitions

Test Exclusions

**/*.test.ts                # TypeScript tests
**/*.test.tsx               # React component tests
**/*.spec.ts                # Spec files

Content Patterns (Regex)

Prisma/Database

import.*[Pp]risma                # Prisma imports
PrismaService                    # PrismaService usage
prisma\.                         # prisma.something
\.findMany\(                     # Prisma query methods
\.create\(
\.update\(
\.delete\(

Controllers/Routes

export class.*Controller         # Controller classes
router\.                         # Express router
app\.(get|post|put|delete|patch) # Express app routes

Error Handling

try\s*\{                        # Try blocks
catch\s*\(                      # Catch blocks
throw new                        # Throw statements

React/Components

export.*React\.FC               # React functional components
export default function.*       # Default function exports
useState|useEffect              # React hooks

Usage Example:

{
  "my-skill": {
    "promptTriggers": {
      "intentPatterns": [
        "(create|add|build).*?(component|UI|page)"
      ]
    },
    "fileTriggers": {
      "pathPatterns": [
        "frontend/src/**/*.tsx"
      ],
      "contentPatterns": [
        "export.*React\\.FC",
        "useState|useEffect"
      ]
    }
  }
}

Related Files:

Source: SKILL.md on GitHub

1 warning13d5 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    The skill provides comprehensive documentation and templates for building Claude Code skills using an auto-activation hook system. It describes an architecture that processes user prompts and file contents to trigger suggestions or block edits, which introduces a potential surface for indirect prompt injection. The skill also includes standard command-line examples for testing local scripts during development.

  • Socket13d

    No alerts

  • Snyk13d

    Risk: LOW · No issues

  • Runlayer7mo

    7/7 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 1deb97c. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 12 hours ago.

Activeupdated 8 months ago

README badge

README badge for davila7/claude-code-templates/skill-developer