Create repository
gh_create_repoCreates a new GitHub repository for a specified owner after policy checks, then verifies its identity, visibility, description, and init state.
Instructions
Additive write: create exactly one repository at the canonical OWNER/REPO target after ordinary write policy, exact prospective-repository target policy, and the separate repository-creation fine gate allow it. The mutation is attempted once, then exact authoritative readback verifies repository identity, visibility, description, and initialization when GitHub exposes that evidence. It never retries an ambiguous creation and cannot delete, rename, transfer, or otherwise administer an existing repository.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | GitHub repository name without the owner prefix. | |
| owner | Yes | GitHub repository owner or organization login. | |
| private | No | ||
| auto_init | No | ||
| description | No | Optional repository description. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| repo | Yes | ||
| owner | Yes | ||
| warning | No | ||
| is_private | No | ||
| request_id | No | ||
| description | No | ||
| initialized | No | ||
| name_with_owner | No | ||
| write_completed | Yes | ||
| readback_completed | Yes | ||
| precondition_checked | Yes | ||
| state_matches_requested | Yes |