Skip to content
Back to skills

Agent Scaffolder

ASecurity

Use when user says 'agent を作りたい', 'create agent', 'scaffold agent', '新しい agent', 'agent 作成', or discusses creating a new climpt agent. Generates .agent/{name}/ directory with all required files including agent.json, steps_registry.json, schemas, and prompts.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
ai-agentsbashcode-review

Works with

  • cli

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill agent-scaffolder --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Scaffolder?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agent Scaffolder
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-agent-scaffolder/badge)](https://www.skillsdirectory.com/skills/david-li0406-agent-scaffolder)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agent-scaffolder
description: "Use when user says 'agent を作りたい', 'create agent', 'scaffold agent', '新しい agent', 'agent 作成', or discusses creating a new climpt agent. Generates .agent/{name}/ directory with all required files including agent.json, steps_registry.json, schemas, and prompts."
allowed-tools: [Read, Write, Edit, Bash, Glob, AskUserQuestion]
---

# Agent Scaffolder

Climpt Agent の雛形を生成する Skill。

## 使用方法

### 1. 情報収集

ユーザーに以下を確認:

1. **Agent 名** (必須): kebab-case (例: `my-agent`, `code-reviewer`)
2. **説明**: Agent の目的
3. **completionType**: 完了条件の種類

### completionType 選択肢

| タイプ            | 用途                | 設定                  |
| ----------------- | ------------------- | --------------------- |
| `externalState`   | Issue/PR の状態監視 | `maxIterations`       |
| `iterationBudget` | 固定回数で終了      | `maxIterations`       |
| `keywordSignal`   | キーワードで終了    | `completionKeyword`   |
| `stepMachine`     | Step グラフで判定   | `steps_registry.json` |

### 2. Scaffolding 実行

```bash
deno run -A ${CLAUDE_PLUGIN_ROOT}/skills/agent-scaffolder/scripts/scaffold.ts \
  --name <agent-name> \
  --description "<説明>" \
  --completion-type <type>
```

### 3. 生成される構造

```
.agent/{agent-name}/
├── agent.json              # Agent 定義
├── steps_registry.json     # Step マッピング
├── schemas/
│   └── step_outputs.schema.json
└── prompts/
    ├── system.md
    └── steps/
        ├── initial/default/f_default.md       # Work step: 初期化
        ├── continuation/default/f_default.md  # Work step: 継続
        ├── verification/default/f_default.md  # Verification step: 検証
        └── closure/default/f_default.md       # Closure step: 完了
```

### 4. 次のステップ案内

生成後、ユーザーに以下を案内:

1. `prompts/system.md` を編集して Agent の役割を定義
2. `prompts/steps/` 配下の各プロンプトをカスタマイズ
3. 必要に応じて `steps_registry.json` に Step を追加
4. `deno run -A agents/scripts/run-agent.ts --agent {name} --dry-run` で検証

### 5. intentSchemaRef の形式

**重要**: `structuredGate.intentSchemaRef` は**解決済み Step スキーマ内**の
内部ポインタ (`#/properties/...`) を使用すること。Runner は `outputSchemaRef.schema`
で Step スキーマを解決した後に `intentSchemaRef` を適用するため、
`definitions` を含むパスは動作しない。

```json
// ✅ 正しい形式: 解決済みスキーマへのポインタ
"intentSchemaRef": "#/properties/next_action/properties/action"

// ❌ 禁止: definitions を含むパス(解決後に存在しない)
"intentSchemaRef": "#/definitions/initial.default/properties/next_action/properties/action"

// ❌ 禁止: 外部ファイル参照
"intentSchemaRef": "common.schema.json#/$defs/nextAction/properties/action"
```

共通定義を使う場合は、Step スキーマ内で `$ref` で参照し、
`intentSchemaRef` は解決後のローカルポインタを指定する。

## 詳細ドキュメント

- `agents/docs/builder/01_quickstart.md` - クイックスタート
- `agents/docs/builder/02_agent_definition.md` - agent.json 詳細
- `agents/docs/builder/03_builder_guide.md` - ビルダーガイド
- `agents/docs/builder/04_config_system.md` - 設定システム

Files in this skill

  • SKILL.md3.5 KB
  • scripts/scaffold.ts6.7 KB
  • templates/agent.json.tmpl810 B
  • templates/prompts/steps/closure.md.tmpl748 B
  • templates/prompts/steps/continuation.md.tmpl302 B
  • templates/prompts/steps/initial.md.tmpl355 B
  • templates/prompts/steps/verification.md.tmpl515 B
  • templates/prompts/system.md.tmpl1.2 KB
  • templates/step_outputs.schema.json.tmpl4.5 KB
  • templates/steps_registry.json.tmpl3.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…