Agent Skillsopen-gitagent/opengap › create-agent

create-agent

GitHub

用于创建和配置智能体,包括生成agent.yaml、编写SOUL.md人格定义及设置目录结构。适用于需要定制智能体身份、行为规则、技能工具集成及知识库初始化的场景。

examples/gitagent-helper/skills/create-agent/SKILL.md open-gitagent/opengap

Trigger Scenarios

创建智能体配置文件 定义智能体人格 设置智能体目录结构

Install

npx skills add open-gitagent/opengap --skill create-agent -g -y
More Options

Non-standard path

npx skills add https://github.com/open-gitagent/opengap/tree/main/examples/gitagent-helper/skills/create-agent -g -y

Use without installing

npx skills use open-gitagent/opengap@create-agent

指定 Agent (Claude Code)

npx skills add open-gitagent/opengap --skill create-agent -a claude-code -g -y

安装 repo 全部 skill

npx skills add open-gitagent/opengap --all -g -y

预览 repo 内 skill

npx skills add open-gitagent/opengap --list

SKILL.md

Frontmatter
{
    "name": "create-agent",
    "license": "MIT",
    "metadata": {
        "author": "gitagent",
        "version": "1.0.0",
        "category": "authoring"
    },
    "description": "Creates and configures agent.yaml files, writes SOUL.md personality definitions, and sets up agent directory structures with skills, tools, and knowledge. Use when the user wants to configure an agent, create agent.yaml, write SOUL.md, set up agent directory structure, or customize agent settings."
}

Create & Configure Agents

Quick Start

  1. Create directory structure: mkdir -p my-agent/skills
  2. Write agent.yaml with required fields (see below)
  3. Create SOUL.md with agent identity
  4. Add skills, tools, and knowledge as needed
  5. Validate: opengap validate -d ./my-agent

agent.yaml Reference

Required Fields

spec_version: "0.1.0"
name: my-agent          # Unique identifier
version: 1.0.0          # Semantic version
description: What this agent does

Model Configuration

model:
  preferred: claude-sonnet-4-5-20250929
  fallback:
    - claude-haiku-4-5-20251001
  constraints:
    temperature: 0.2     # 0.0 - 1.0
    max_tokens: 4096
    top_p: 0.9

Skills & Tools

skills:
  - code-review          # Must match directory name in skills/
  - security-audit

tools:
  - lint-check           # Must match filename in tools/ (without .yaml)

Runtime

runtime:
  max_turns: 20          # Max conversation turns
  timeout: 120           # Seconds

Sub-Agents

agents:
  reviewer:
    description: Reviews code quality
    delegation:
      mode: auto
      triggers:
        - "review this"

Writing a Good SOUL.md

A SOUL.md should have these sections:

  • Core Identity — Who is this agent? One clear sentence.
  • Communication Style — How does it talk? (direct, friendly, formal, etc.)
  • Values & Principles — What does it prioritize?
  • Domain Expertise — What does it know?
  • Collaboration Style — How does it work with the user?

Writing RULES.md

Structure as:

  • Must Always — Non-negotiable behaviors
  • Must Never — Hard boundaries
  • Output Constraints — Formatting rules
  • Interaction Boundaries — Scope limits

Adding Skills

Create skills/<name>/SKILL.md:

---
name: my-skill
description: What this skill does
license: MIT
allowed-tools: Read Edit Grep
metadata:
  version: "1.0.0"
---

# Instructions
[Detailed instructions for using this skill]

Adding Tools

Create tools/<name>.yaml:

name: my-tool
description: What this tool does
input_schema:
  type: object
  properties:
    query:
      type: string
      description: Search query
  required:
    - query

Adding Knowledge

Create knowledge/index.yaml:

documents:
  - path: reference.md
    always_load: true    # Include in system prompt
  - path: appendix.md
    always_load: false   # Available on demand

Version History

  • d7a8e2e Current 2026-07-25 08:12

Same Skill Collection

examples/full/skills/document-review/SKILL.md
examples/full/skills/regulatory-analysis/SKILL.md
examples/gitagent-helper/skills/export-agent/SKILL.md
examples/gitagent-helper/skills/get-started/SKILL.md
examples/gitagent-helper/skills/manage-skills/SKILL.md
examples/gitagent-helper/skills/run-agent/SKILL.md
examples/jason-my-claw-is-the-law-deebee-4567b4/skills/compute-ladder/SKILL.md
examples/jason-my-claw-is-the-law-deebee-4567b4/skills/narco-check/SKILL.md
examples/jason-my-claw-is-the-law-deebee-4567b4/skills/packet-factory/SKILL.md
examples/llm-wiki/skills/wiki-ingest/SKILL.md
examples/llm-wiki/skills/wiki-lint/SKILL.md
examples/llm-wiki/skills/wiki-query/SKILL.md
examples/lyzr-agent/skills/research/SKILL.md
examples/nvidia-deep-researcher/skills/knowledge-retrieval/SKILL.md
examples/nvidia-deep-researcher/skills/paper-search/SKILL.md
examples/nvidia-deep-researcher/skills/web-search/SKILL.md
examples/standard/skills/code-review/SKILL.md

Metadata

Files
0
Version
d7a8e2e
Hash
ea9009dc
Indexed
2026-07-25 08:12

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-22 21:41
浙ICP备14020137号-1 $mapa de visitantes$