<a id="cli-aws-agent-registry-install-skill"></a>

# install-skill

## Description

Downloads a skill from a registry, verifies it against the SHA-256 digest published on the record, and extracts it into the skills folder of every detected AI coding agent, the agent named by `--agent`, or `--target-directory`.

Name the record with `--record-id`, or with `--record-name`: the record’s own name, as `list-skills` shows it in `name`, not the name in its `SKILL.md` (`skillName` in `list-skills`). That name is looked up among every page of the registry’s `SKILL` records with `ListDiscoverableRegistryRecords`, with the same credentials or sign-in as the rest of the command, so it also needs the `agent-registry:ListDiscoverableRegistryRecords` permission. It is compared exactly, case included, with each record’s `name`. The command says which record id the name resolved to. It refuses a name no skill record has, and a name more than one skill record has, listing their record ids so that you can choose one with `--record-id`.

The archive is fetched directly from storage using the short-lived download URL in the record’s `artifact`, so the bytes do not pass through the service fleet. Installation is refused if the digest does not match, because skills carry executable content. The archive is downloaded and verified once, then installed into each folder in turn; a failure in one folder does not stop the others.

A record with no downloadable package that holds the text of its `SKILL.md` is installed from that text, as it is: only `SKILL.md` is installed, nothing is downloaded, and the command says so. A `SKILL.md` the record only links to is never fetched, so such a record is refused, as is a record with neither. A skill installed from the record’s package is kept, though, when the record offers only its `SKILL.md` text, because the registry can leave the package out; pass `--force` to replace it with the text alone.

The Agent Skills specification requires a skill’s folder to have the skill’s name, so the command installs the skill in a folder named after the `name` in the frontmatter of the package’s `SKILL.md`, whatever the record is named, and says so when the two names differ. The `SKILL.md` name is checked before anything is written. A valid skill name (at most 64 lowercase letters, digits and hyphens, with no hyphen at the start or end and no two hyphens in a row) is installed as it is. A name outside the specification, but still at most 64 letters, digits, dots, underscores and hyphens, beginning with a letter or digit, is installed with a warning, because some agents may not load it; any other name is refused. If the package wraps its files in a single top-level folder, the command installs them without that folder, whatever its name.

Each install records its registry, endpoint, record, SHA-256 and whether it holds the package or only `SKILL.md` in `.agent-registry-skill.json` at the root of the skill. Rerunning install-skill updates a skill it installed to the package now published on the record, and leaves an up-to-date one as it is, finding it by that marker whatever its folder is named. If the skill’s `SKILL.md` name has changed, the skill is installed under the new name, and the earlier install is reported, not removed. A folder holding a skill from another registry, endpoint or record, one this command did not install, or one a newer version of the AWS CLI installed, is never replaced. The command exits non-zero if any folder was refused or could not be installed. Find the skills a registry offers with `list-skills`, and uninstall a skill with `uninstall-skill`.

Use `--authorizer JWT` for a registry configured with a custom JWT authorizer; omit it for SigV4. With `--authorizer JWT`, signs you in through the browser if there is no usable cached sign-in, and caches the sign-in for later commands; `--no-browser` prints the sign-in link instead of opening a browser. Remove a cached sign-in with `sign-out`.

## Synopsis

```
  install-skill
--registry-id <value>
[--record-id <value>]
[--record-name <value>]
[--agent <value>]
[--target-directory <value>]
[--authorizer <value>]
[--client-id <value>]
[--no-browser]
[--force]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
[--cli-error-format <value>]
[--help]
```

## Options

`--registry-id` (string) [required]
The registry holding the skill.

`--record-id` (string)
The record to install, given as an id or an ARN. Specify either this or `--record-name` .

`--record-name` (string)
The record’s own name, as `list-skills` shows it in `name` , matched exactly, case included. The name in the record’s `SKILL.md` , `skillName` in `list-skills` , is not matched. A name more than one skill record has is refused, with their record ids. Looking the name up also needs the `agent-registry:ListDiscoverableRegistryRecords` permission. Specify either this or `--record-id` .

`--agent` (string)
The agentic tool to target. If not set, the operation applies to all detected tools. Valid values: claude-code, cline, codex, cursor, devin, gemini-cli, kiro, openclaw, opencode, pi, windsurf, universal. Cannot be combined with `--target-directory` .

`--target-directory` (string)
Directory to install into instead of the skills folders of the detected agents. The command places the skill in a subdirectory named after the skill’s name in its `SKILL.md` . Cannot be combined with `--agent` .

`--authorizer` (string)

> Authorization mode. Omit this argument, or specify `SIGV4` , to sign requests with your AWS credentials. Specify `JWT` for a registry configured with a `CUSTOM_JWT` authorizer, to send a bearer token from the registry owner’s identity provider instead. The token comes from `AWS_BEARER_TOKEN_AGENT_REGISTRY` if that is set, and is then sent as is. Otherwise it comes from the cached sign-in for this registry and endpoint, refreshed silently when possible. If there is no usable cached sign-in, you sign in through the browser and the new sign-in is cached. The CLI requests any scopes the registry advertises in its Protected Resource Metadata. Remove a cached sign-in with `sign-out` .

`--client-id` (string)

> OAuth client id to sign in with when `--authorizer JWT` is used. Protected Resource Metadata does not publish the client id, so it must be supplied by the registry owner. If omitted, the CLI reuses the client id of the earlier sign-in to this registry at this endpoint, if that was with the same identity provider, or prompts for it when standard input is a terminal. A client id that differs from the cached sign-in starts a new sign-in.

> The registry owner sets up an app client for the CLI in the identity provider: a public client with no client secret, the callback URL `http://127.0.0.1:8484/oauth/callback` (with the port from `AWS_AGENT_REGISTRY_CALLBACK_PORT` if that is set), the authorization-code flow, the `openid` scope, and any scopes the registry advertises in its Protected Resource Metadata. An Amazon Cognito user pool also needs a domain.

`--no-browser` (boolean)

> Print the sign-in link instead of opening a browser, when `--authorizer JWT` has to sign you in, and open it in a browser yourself. The sign-in still redirects to `127.0.0.1` on the machine that runs the CLI. To sign in with a browser on another machine, connect from that machine with `ssh -L 8484:127.0.0.1:8484` to the one that runs the CLI.

`--force` (boolean)
Reinstall even if the installed copy is already up to date, and replace a copy of the record’s package with its `SKILL.md` text when the record offers only the text. A skill installed from another registry, endpoint or record, or by anything other than this command, is never replaced.

## Global Options

`--debug` (boolean)

Turn on debug logging.

`--endpoint-url` (string)

Override command’s default URL with the given URL.

`--no-verify-ssl` (boolean)

By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.

`--no-paginate` (boolean)

Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.

`--output` (string)

The formatting style for command output.

* json
* text
* table
* yaml
* yaml-stream
* off

`--query` (string)

A JMESPath query to use in filtering the response data.

`--profile` (string)

Use a specific profile from your credential file.

`--region` (string)

The region to use. Overrides config/env settings.

`--version` (string)

Display the version of this tool.

`--color` (string)

Turn on/off color output.

* on
* off
* auto

`--no-sign-request` (boolean)

Do not sign requests. Credentials will not be loaded if this argument is provided.

`--ca-bundle` (string)

The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.

`--cli-read-timeout` (int)

The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.

`--cli-connect-timeout` (int)

The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.

`--cli-binary-format` (string)

The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob `fileb://` will always be treated as binary and use the file contents directly regardless of the `cli-binary-format` setting. When using `file://` the file contents will need to properly formatted for the configured `cli-binary-format`.

* base64
* raw-in-base64-out

`--no-cli-pager` (boolean)

Disable cli pager for output.

`--cli-auto-prompt` (boolean)

Automatically prompt for CLI input parameters.

`--no-cli-auto-prompt` (boolean)

Disable automatically prompt for CLI input parameters.

`--cli-error-format` (string)

The formatting style for error output. By default, errors are displayed in enhanced format.

* legacy
* json
* yaml
* text
* table
* enhanced

`--help` (boolean)

Display help for the command/subcommand.

## Examples

#### NOTE
To use the following examples, you must have the AWS CLI installed and configured. See the [Getting started guide](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html) in the *AWS CLI User Guide* for more information.

Unless otherwise stated, all examples have unix-like quotation rules. These examples will need to be adapted to your terminal’s quoting rules. See [Using quotation marks with strings](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html) in the *AWS CLI User Guide* .

**Example 1: To install a skill for every detected AI coding agent**

The following `install-skill` example downloads the specified skill record’s package, verifies its SHA-256 digest, and installs the skill for every AI coding agent detected on this computer.

```bash
aws agent-registry install-skill \
    --registry-id a1b2c3d4e5f6g7h8 \
    --record-id r1s2t3u4v5w6
```

Output:

```
Downloading pdf-extract from https://artifact-123456789012-us-west-2.s3.us-west-2.amazonaws.com...
Verified SHA-256 9805b8de5b0b745ea24ce17dccaea04aee7ac0347980c6d624466f7f977e24d6
Claude Code: Installed pdf-extract to /home/user/.claude/skills/pdf-extract
Kiro: Installed pdf-extract to /home/user/.kiro/skills/pdf-extract
```

For more information, see [AWS Agent Registry](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/registry.html) in the *Amazon Bedrock AgentCore Developer Guide*.

**Example 2: To install a skill for a specific AI coding agent**

The following `install-skill` example installs the specified skill only for Claude Code.

```bash
aws agent-registry install-skill \
    --registry-id a1b2c3d4e5f6g7h8 \
    --record-id r1s2t3u4v5w6 \
    --agent claude-code
```

Output:

```
Downloading pdf-extract from https://artifact-123456789012-us-west-2.s3.us-west-2.amazonaws.com...
Verified SHA-256 9805b8de5b0b745ea24ce17dccaea04aee7ac0347980c6d624466f7f977e24d6
Claude Code: Installed pdf-extract to /home/user/.claude/skills/pdf-extract
```

For more information, see [AWS Agent Registry](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/registry.html) in the *Amazon Bedrock AgentCore Developer Guide*.

**Example 3: To install a skill into a specific directory**

The following `install-skill` example installs the specified skill into a subdirectory of the specified directory, instead of the skills folders of the detected AI coding agents.

```bash
aws agent-registry install-skill \
    --registry-id a1b2c3d4e5f6g7h8 \
    --record-id r1s2t3u4v5w6 \
    --target-directory /home/user/my-project/skills
```

Output:

```
Downloading pdf-extract from https://artifact-123456789012-us-west-2.s3.us-west-2.amazonaws.com...
Verified SHA-256 9805b8de5b0b745ea24ce17dccaea04aee7ac0347980c6d624466f7f977e24d6
Installed pdf-extract to /home/user/my-project/skills/pdf-extract
```

For more information, see [AWS Agent Registry](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/registry.html) in the *Amazon Bedrock AgentCore Developer Guide*.

**Example 4: To install a skill from a registry that uses a custom JWT authorizer**

The following `install-skill` example signs in to a registry that uses a `CUSTOM_JWT` authorizer and installs the specified skill. If there is no cached sign-in for the registry, the command opens the identity provider’s sign-in page in your browser first.

```bash
aws agent-registry install-skill \
    --registry-id a1b2c3d4e5f6g7h8 \
    --record-id r1s2t3u4v5w6 \
    --authorizer JWT \
    --client-id 0oa1b2c3d4e5f6g7h8i9
```

Output:

```
Registry a1b2c3d4e5f6g7h8 trusts: https://example.us.auth0.com/
Detected identity provider: generic OIDC provider
Attempting to open your default browser. If the browser does not open, open the following URL.

https://example.us.auth0.com/authorize?response_type=code&client_id=0oa1b2c3d4e5f6g7h8i9&...

Waiting for sign-in to complete (up to 10 minutes)...
Signed in.

Downloading pdf-extract from https://artifact-123456789012-us-west-2.s3.us-west-2.amazonaws.com...
Verified SHA-256 9805b8de5b0b745ea24ce17dccaea04aee7ac0347980c6d624466f7f977e24d6
Claude Code: Installed pdf-extract to /home/user/.claude/skills/pdf-extract
Kiro: Installed pdf-extract to /home/user/.kiro/skills/pdf-extract
```

For more information, see [AWS Agent Registry](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/registry.html) in the *Amazon Bedrock AgentCore Developer Guide*.

**Example 5: To reinstall a skill that is already up to date**

The following `install-skill` example uses `--force` to reinstall a skill whose installed copy already matches the package published on the record. Without `--force`, the command leaves an up-to-date copy as it is.

```bash
aws agent-registry install-skill \
    --registry-id a1b2c3d4e5f6g7h8 \
    --record-id r1s2t3u4v5w6 \
    --force
```

Output:

```
Downloading pdf-extract from https://artifact-123456789012-us-west-2.s3.us-west-2.amazonaws.com...
Verified SHA-256 9805b8de5b0b745ea24ce17dccaea04aee7ac0347980c6d624466f7f977e24d6
Claude Code: Reinstalled pdf-extract at /home/user/.claude/skills/pdf-extract.
Kiro: Reinstalled pdf-extract at /home/user/.kiro/skills/pdf-extract.
```

For more information, see [AWS Agent Registry](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/registry.html) in the *Amazon Bedrock AgentCore Developer Guide*.

**Example 6: To install a skill whose record has only SKILL.md text**

The following `install-skill` example installs a skill whose record has no downloadable package but holds the text of its `SKILL.md`. The command writes that text as the skill’s `SKILL.md` and downloads nothing, so the installed skill has no other files.

```bash
aws agent-registry install-skill \
    --registry-id a1b2c3d4e5f6g7h8 \
    --record-id r1s2t3u4v5w6
```

Output:

```
Installing the SKILL.md text published on record r1s2t3u4v5w6; the record has no package, so only SKILL.md is installed.
Claude Code: Installed pdf-extract to /home/user/.claude/skills/pdf-extract
Kiro: Installed pdf-extract to /home/user/.kiro/skills/pdf-extract
```

For more information, see [AWS Agent Registry](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/registry.html) in the *Amazon Bedrock AgentCore Developer Guide*.

**Example 7: To install a skill whose record is named differently from the skill**

The following `install-skill` example installs a skill from a record named `pdf_processing_skill` whose `SKILL.md` names the skill `pdf-processing-skill`. The command names the skill’s folder after the `name` in its `SKILL.md`, and says so when the record’s name differs.

```bash
aws agent-registry install-skill \
    --registry-id a1b2c3d4e5f6g7h8 \
    --record-id r1s2t3u4v5w6
```

Output:

```
Downloading pdf_processing_skill from https://artifact-123456789012-us-west-2.s3.us-west-2.amazonaws.com...
Verified SHA-256 9805b8de5b0b745ea24ce17dccaea04aee7ac0347980c6d624466f7f977e24d6
Record 'pdf_processing_skill' installs as skill 'pdf-processing-skill'.
Claude Code: Installed pdf-processing-skill to /home/user/.claude/skills/pdf-processing-skill
Kiro: Installed pdf-processing-skill to /home/user/.kiro/skills/pdf-processing-skill
```

For more information, see [AWS Agent Registry](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/registry.html) in the *Amazon Bedrock AgentCore Developer Guide*.

**Example 8: To keep an installed package when the record offers only SKILL.md text**

The following `install-skill` example runs against a record that now returns only its `SKILL.md` text, for a skill that was installed earlier from the record’s package. The command keeps the installed package rather than replacing it with the text alone. Pass `--force` to replace it.

```bash
aws agent-registry install-skill \
    --registry-id a1b2c3d4e5f6g7h8 \
    --record-id r1s2t3u4v5w6
```

Output:

```
Claude Code: pdf-extract at /home/user/.claude/skills/pdf-extract holds the record's package; the record now publishes no downloadable package, so it was left as it is. Pass --force to replace it with the SKILL.md text only.
Kiro: pdf-extract at /home/user/.kiro/skills/pdf-extract holds the record's package; the record now publishes no downloadable package, so it was left as it is. Pass --force to replace it with the SKILL.md text only.
```

For more information, see [AWS Agent Registry](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/registry.html) in the *Amazon Bedrock AgentCore Developer Guide*.

**Example 9: To install a skill by its record name**

The following `install-skill` example installs the skill whose record is named `pdf-extract`, as `list-skills` shows it in `name`, instead of giving the record ID. The command looks the name up among every page of the registry’s skill records, which also needs the `agent-registry:ListDiscoverableRegistryRecords` permission, says which record ID it resolved to, and then installs that record. `--record-name` is the record’s own name, matched exactly; the name in the skill’s `SKILL.md`, which `list-skills` shows in `skillName`, is not matched. If more than one skill record has the name, the command installs nothing and lists their record IDs, so that you can choose one with `--record-id`.

```bash
aws agent-registry install-skill \
    --registry-id a1b2c3d4e5f6g7h8 \
    --record-name pdf-extract
```

Output:

```
Record 'pdf-extract' is r1s2t3u4v5w6.
Downloading pdf-extract from https://artifact-123456789012-us-west-2.s3.us-west-2.amazonaws.com...
Verified SHA-256 9805b8de5b0b745ea24ce17dccaea04aee7ac0347980c6d624466f7f977e24d6
Claude Code: Installed pdf-extract to /home/user/.claude/skills/pdf-extract
Kiro: Installed pdf-extract to /home/user/.kiro/skills/pdf-extract
```

For more information, see [AWS Agent Registry](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/registry.html) in the *Amazon Bedrock AgentCore Developer Guide*.
