﻿---
title: stack kb agent-builder post-agent-builder-skills cli command
description: Create a skill Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4097/reference/elastic-cli/cli/stack/kb/agent-builder/post-agent-builder-skills
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb agent-builder post-agent-builder-skills cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb agent-builder post-agent-builder-skills \
  --content <content> \
  --description <description> \
  --id <id> \
  --name <name> \
  [options]
```

Create a skill
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--content string required">
    Skill instructions content (markdown).
  </definition>
  <definition term="--description string required">
    Description of what the skill does.
  </definition>
  <definition term="--id string required">
    Unique identifier for the skill.
  </definition>
  <definition term="--name string required">
    Human-readable name for the skill.
  </definition>
  <definition term="--referenced-content string[]">
    **Repeatable:** pass `--referenced-content` multiple times to supply more than one value
  </definition>
  <definition term="--tool-ids string[]">
    Tool IDs from the tool registry that this skill references.
    **Repeatable:** pass `--tool-ids` multiple times to supply more than one value
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--json">
    output as JSON
  </definition>
</definitions>