MCP HubMCP Hub
スキル一覧に戻る

create-agent

majiayu000
更新日 2 days ago
21 閲覧
58
9
58
GitHubで表示
メタautomation

について

`create-agent`スキルは、開発者が複雑なワークフローや再利用可能なタスクを委任するための専門サブエージェントを定義できるようにします。これは、`.claude/agents/`ディレクトリ内に特定のYAML形式でエージェントファイルを作成し、ツール、モデル、権限のカスタマイズを可能にします。これにより、モジュール化されたタスク分解が容易になり、プロジェクト間でのコードの再利用性が促進されます。

クイックインストール

Claude Code

推奨
プラグインコマンド推奨
/plugin add https://github.com/majiayu000/claude-skill-registry
Git クローン代替
git clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/create-agent

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

Creating a New Agent

Official Documentation

File Location

Create .claude/agents/<agent-name>.md

Agent File Format

---
name: agent-name                    # Required: lowercase-with-dashes
description: What the agent does and when to delegate to it. Be specific about trigger conditions.
# Optional fields below:
tools: Read, Grep, Glob, Bash       # Comma-separated; inherits all if omitted
disallowedTools: Edit, Write        # Explicitly deny tools
model: sonnet                       # sonnet, opus, haiku, or inherit (default)
permissionMode: default             # default, acceptEdits, dontAsk, bypassPermissions, plan
skills: skill-a, skill-b            # Skills to preload into agent context
---

You are a [role description].

## Your Task

When invoked:
1. First step
2. Second step
3. Third step

## Guidelines

- Specific instruction
- Another instruction

## Output Format

Describe expected output format.

Built-in Subagent Types

Before creating a custom agent, consider if a built-in type suffices:

TypePurposeTools
ExploreFast codebase search, file discoveryRead-only
PlanArchitecture, implementation planningRead-only
BashCommand executionBash only
general-purposeComplex multi-step tasksAll tools

Design Principles

Focus: One agent, one job. Don't create jack-of-all-trades agents.

Minimal Tools: Grant only necessary tools. Read-only agents can't accidentally break things.

Clear Workflow: Numbered steps help the agent stay on track.

Good Description: Claude uses the description to decide when to delegate. Include:

  • What the agent specializes in
  • When to use it (trigger conditions)
  • "Use proactively when..." if appropriate

Example: Read-Only Reviewer

---
name: lore-checker
description: Verify lore consistency across campaign materials. Use when adding new lore, after writing session logs, or when the user asks to check for contradictions.
tools: Read, Grep, Glob
model: haiku
---

You are a lore consistency checker for TTRPG campaigns.

## Your Task

1. Identify the new or modified lore element
2. Search for related existing lore using Grep
3. Read relevant files
4. Report any contradictions or inconsistencies
5. Suggest resolutions if conflicts found

## Output Format

**Checked**: [element being verified]
**Related Files**: [list of files examined]
**Status**: Consistent / Conflicts Found
**Details**: [explanation]

Checklist

Before committing a new agent:

  1. Name is lowercase-with-dashes
  2. Description explains what AND when to delegate
  3. Tools are minimal for the task
  4. Workflow steps are clear and numbered
  5. Output format is specified
  6. Tested via Task() delegation

GitHub リポジトリ

majiayu000/claude-skill-registry
パス: skills/create-agent

関連スキル

content-collections

メタ

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

スキルを見る

sglang

メタ

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

スキルを見る

cloudflare-turnstile

メタ

This skill provides comprehensive guidance for implementing Cloudflare Turnstile as a CAPTCHA-alternative bot protection system. It covers integration for forms, login pages, API endpoints, and frameworks like React/Next.js/Hono, while handling invisible challenges that maintain user experience. Use it when migrating from reCAPTCHA, debugging error codes, or implementing token validation and E2E tests.

スキルを見る

Algorithmic Art Generation

メタ

This skill helps developers create algorithmic art using p5.js, focusing on generative art, computational aesthetics, and interactive visualizations. It automatically activates for topics like "generative art" or "p5.js visualization" and guides you through creating unique algorithms with features like seeded randomness, flow fields, and particle systems. Use it when you need to build reproducible, code-driven artistic patterns.

スキルを見る