AgentSkillsCN

toolkit-new-artifact

以规范的结构与 Frontmatter 格式,创建 Toolkit 工件(代理、命令、技能、规则)。当用户希望贡献新的 Toolkit 工件时,此技能将为您提供贴心的帮助。

SKILL.md
--- frontmatter
name: toolkit-new-artifact
description: Create Toolkit artifacts (agents, commands, skills, rules) with proper structure and frontmatter. Use when users want to contribute a new Toolkit artifact.

Toolkit New Artifact Creator

Create Toolkit artifacts following conventions - proper frontmatter, naming patterns, templates.

Usage

code
/toolkit-new-artifact

The skill will prompt you for:

  1. Artifact type - Agent, Command, Skill, or Rule
  2. Name - Without toolkit- prefix
  3. Description - What it does
  4. Tool access (agents only) - Read-only, Coordinator, or Write-capable

Supported Types

Currently implemented:

  • Agents - Full support with tool selection

Coming soon:

  • Commands - Bash executors
  • Skills - Interactive workflows
  • Rules - Standards/conventions (modular alternative to CLAUDE.md)

What It Does (Agents)

  1. Prompts for details:

    • Name (auto-adds toolkit- prefix)
    • Description
    • Tool access pattern
  2. Creates agent file:

    • Proper frontmatter (name, description, tools, model)
    • Template structure with guidance sections
    • Ready to fill in with domain expertise
  3. Tool patterns:

    • Read-only: Read, Grep, Glob, Skill (reference/guidance)
    • Coordinator: Read, Grep, Glob, Bash, Skill (workflow guide + git ops)
    • Write-capable: Read, Write, Bash, Grep, Glob, Skill (hands-on helper)

After Creation

  1. Edit the agent - Add domain expertise and guidance
  2. Test it - Restart Claude Code and test invocation
  3. Validate - Run make validate
  4. Submit PR - Share with team

Related

  • /toolkit-choose-artifact - Decide which artifact type to create
  • /toolkit-validate - Validate frontmatter
  • rules/toolkit-agents.md - Agent standards and patterns
  • rules/toolkit-frontmatter-standards.md - Metadata standards
  • agents/toolkit-contributing - Contribution workflow guidance

Implementation

This skill runs scripts/new-artifact.sh which:

  • Prompts for artifact details
  • Detects directory location
  • Creates file from template
  • Validates naming conventions
  • Provides next steps

Status: Agent creation implemented, other types coming soon!