- [Resource: Skill](https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills#Skill)
  - [JSON representation](https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills#Skill.SCHEMA_REPRESENTATION)
- [Type](https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills#Type)
- [State](https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills#State)
- [TargetState](https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills#TargetState)
- [Methods](https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills#METHODS_SUMMARY)

## Resource: Skill

Represents an Executable Agent Skill or a Composite Tool Suite (Bundle). Sibling resource with Agent and McpServer under agentregistry.googleapis.com.

| JSON representation |
|---|
| ``` { "name": string, "uid": string, "displayName": string, "description": string, "type": enum (`https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills#Type`), "state": enum (`https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills#State`), "targetState": enum (`https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills#TargetState`), "defaultRevision": string, "frontmatter": { object (`https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/Frontmatter`) }, "skillId": string, "createTime": string, "updateTime": string, "publisher": string, "initialRevision": { object (`https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills.revisions#SkillRevision`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. Resource name of the Skill. Format: `projects/{project}/locations/{location}/skills/{skill}` The `{skill}` segment acts as the resource ID. If the skill is associated with a Publisher, this segment typically uses a hyphenated namespace prefix corresponding to the publisher (e.g., `google-workspace-create-docs`). |
| `uid` | `string` Output only. Universally unique identifier (UUID4) for the logical container. |
| `displayName` | `string` Required. Human-readable display name of the skill. Maximum length is 128 characters. |
| `description` | `string` Optional. Brief summary describing the capabilities of the skill. Maximum length is 2048 characters. |
| `type` | ``enum (`https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills#Type`)`` Required. Structural deployment type (SIMPLE leaf vs COMPOSITE bundle). |
| `state` | ``enum (`https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills#State`)`` Output only. The system-managed state of the skill. |
| `targetState` | ``enum (`https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills#TargetState`)`` Required. User-managed target state of the skill. |
| `defaultRevision` | `string` Optional. The full resource name of the revision currently served by default (floating track). Format: `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}` |
| `frontmatter` | ``object (`https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/Frontmatter`)`` Output only. Lightweight frontmatter metadata attributes copied from the default revision. |
| `skillId` | `string` Output only. A stable, globally unique logical identifier for the skill. It is securely constructed by the backend by combining the associated `publisher`'s verified namespace and the skill's resource ID to enforce strict ownership. For example, the prefix `google-` is reserved exclusively for first-party Google publishers to prevent namespace squatting. Example: `urn:skill:google-workspace:create-docs` |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Create time. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Update time. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `publisher` | `string` Optional. The publisher resource associated with this skill. Format: `projects/{project}/locations/{location}/publishers/{publisher}` The publisher dictates the allowed namespace prefixes for the skill's name and logical `skillId` (e.g., Publisher `google` authorizes the `google-*` prefix). |
| `initialRevision` | ``object (`https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills.revisions#SkillRevision`)`` Optional. Input only. Optional nested initial revision payload to support standard one-shot creation. The server processes this field on input during creation but must never return it in responses. |

## Type

The structural type of the Skill.

| Enums ||
|---|---|
| `TYPE_UNSPECIFIED` | Default value. This value is unused. |
| `SIMPLE` | A standard, leaf executable skill containing natural language and code. |

## State

System-managed state.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Default value. This value is unused. |
| `STATE_CREATING` | The skill is being created. It is not served. |
| `STATE_DRAFT` | The skill is in draft, or lacks a valid payload. It is not served. |
| `STATE_ACTIVE` | The skill is active and is served. |
| `STATE_DISABLED` | The skill is disabled and is not served. |
| `STATE_DEPRECATED` | The skill is deprecated. It is served, but emits warnings. |
| `STATE_DECOMMISSIONED` | The skill is decommissioned and is not served. |
| `STATE_DELETING` | The skill is being deleted. It is not served. |

## TargetState

User-configurable target state.

| Enums ||
|---|---|
| `TARGET_STATE_UNSPECIFIED` | Default value. This value is unused. |
| `TARGET_STATE_DRAFT` | The skill is in draft and cannot be served. |
| `TARGET_STATE_ACTIVE` | The skill is active and can be served. |
| `TARGET_STATE_DISABLED` | The skill is disabled and cannot be served. |
| `TARGET_STATE_DEPRECATED` | The skill is deprecated. It can still be served, but emits warnings. |
| `TARGET_STATE_DECOMMISSIONED` | The skill is decommissioned and cannot be served. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills/create` | ========================================================================= # Skills Collection APIs Creates a Skill resource container, optionally publishing the initial SkillRevision inline in a single, atomic CRUD roundtrip. |
| ### `https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills/delete` | Deletes a Skill container along with all its revisions. |
| ### `https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills/get` | Fetches the active configuration and metadata of a Skill. |
| ### `https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills/getIamPolicy` | Gets the access control policy for a resource. |
| ### `https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills/list` | Lists logical Skills available in a project. |
| ### `https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills/patch` | Updates Skill metadata or overrides active pointers/state using REST standard PATCH. |
| ### `https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills/search` | Custom deep-search method to filter by frontmatter or query SKILL.md text blobs. |
| ### `https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills/setIamPolicy` | Sets the access control policy on the specified resource. |
| ### `https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/projects.locations.skills/testIamPermissions` | Returns permissions that a caller has on the specified resource. |