GitHub Project
Overview
Create a new GitHub repository and matching local clone from a default-first plan. In this skill, "GitHub project" means a GitHub repository unless the user explicitly asks for a GitHub Projects board.
Do not create anything until the user explicitly confirms Create GitHub project.
Defaults
Infer a complete repo plan before asking questions:
- Artifact: GitHub repository.
- Owner: active authenticated
gh account.
- Parent location:
~/IdeaProjects.
- Visibility: public.
- License: MIT.
- Initial contents: README plus MIT license.
- Repo features: GitHub defaults; do not toggle issues, wiki, projects, or discussions unless requested.
- Folder name: GitHub-safe slug inferred from the project name.
- Repo name: same as folder name unless the user requests otherwise.
- Friendly name: human-readable title inferred from the project name.
- Description: generated from the project purpose, capped at 350 characters.
- Topics: 6-10 GitHub repository topics optimized for user search queries.
Topics are GitHub repository topics for discoverability. They are not issue labels and should not be appended as hashtag-style description text.
Workflow
Resolve prerequisites.
- Run
gh --version.
- Run
gh auth status.
- If
gh is missing or unauthenticated, stop and report the blocker.
- Resolve the active owner from
gh auth status or another read-only gh query if needed.
Infer the project plan.
- Derive the friendly name, folder name, repo name, description, and topics from the user's request.
- Use lowercase hyphenated slugs for folder and repo names.
- Keep the description plain and searchable, not promotional.
- Select topics from terms users would search for on GitHub for the project subject or technology.
Present native menus for every configurable setting.
- Use
request_user_input for each menu when available.
- Ask one setting at a time.
- Defaults are preselected, not hidden.
- The first option in each menu must be the inferred default with
(Recommended) in the label.
- Do not skip a setting just because a good default was inferred.
- If structured menus are unavailable, stop and say the integrated menu UI is unavailable in the current mode.
Required setting menus, in order:
- Parent location.
- Repo, folder, and friendly name.
- Description.
- Topics.
- Visibility.
- License.
- Initial contents.
.gitignore.
Menu requirements by setting:
- Parent location:
~/IdeaProjects (Recommended)
Specify
Do something else
- Repo, folder, and friendly name:
- The inferred names as one recommended option.
Change names
Do something else
- Description:
Use generated description (Recommended)
Specify
Do something else
- Topics:
Use generated topics (Recommended)
Specify
Do something else
- Visibility:
Public (Recommended)
Private
Do something else
- License:
MIT (Recommended)
Apache-2.0
GPL-3.0
- Rely on the tool's free-form Other path when the user wants another license.
- Initial contents:
README plus MIT license (Recommended)
README only
Do something else
.gitignore:
- If the stack is clear, make the matching GitHub template the recommended option.
- If the stack is unclear, make
None (Recommended) the recommended option.
- Always include
Specify.
- Include
Do something else when there is room within the menu option limit.
Check for collisions after the user has confirmed the names and location.
- Expand
~/IdeaProjects to an absolute path.
- If the target local folder already exists, stop and ask for a new name or explicit instruction.
- Check whether the target GitHub repository already exists with a read-only
gh repo view OWNER/REPO.
- If the target repository already exists, stop and ask for a new name or explicit instruction.
Present the final creation plan.
- Show the resolved plan in chat after all setting menus and collision checks are complete.
- Then ask for final confirmation with a native menu.
- Because
request_user_input supports only 2-3 explicit choices, use a compact final menu:
Create GitHub project
Change settings
Do something else
- If the user selects
Change settings, ask a follow-up native menu for the setting category to change:
Location or names
Description or topics
Visibility, license, contents, or gitignore
- After any change, rerun the affected collision checks and return to the final creation plan.
Create only after explicit confirmation.
- Run from the chosen parent directory.
- Use this command shape:
gh repo create REPO --public --clone --add-readme --license mit --description "DESCRIPTION"
- Include
--gitignore TEMPLATE only when the user selected a template.
- If visibility or license changed during confirmation, replace
--public or --license mit with the confirmed value.
- After creation, add topics:
gh repo edit OWNER/REPO --add-topic topic-a,topic-b,topic-c
- Return the result.
- Include the local path, GitHub URL, visibility, license, description, and topics.
- If any step fails, report the exact failed command and stop. Do not retry through an alternate path unless the user asks.
Menu Behavior
Prefer a low-friction default-first interaction. Low friction means defaults are preselected, not hidden.
Menu 1: Parent location
~/IdeaProjects (Recommended)
Specify
Do something else
Menu 2: Names
Use repo-name / Friendly Name (Recommended)
Change names
Do something else
Menu 3: Description
Use generated description (Recommended)
Specify
Do something else
Menu 4: Topics
Use generated topics (Recommended)
Specify
Do something else
Menu 5: Visibility
Public (Recommended)
Private
Do something else
Menu 6: License
MIT (Recommended)
Apache-2.0
GPL-3.0
Other is available through the integrated input-control free-form path.
Menu 7: Initial contents
README plus MIT license (Recommended)
README only
Do something else
Menu 8: .gitignore
None or TEMPLATE (Recommended)
Specify
Do something else
Final menu:
Create GitHub project
Change settings
Do something else
Every configurable setting gets a native menu even when the inferred default is probably correct. The user should be able to press the recommended choice repeatedly and move quickly through the wizard.
Do not replace the integrated input-control menu with a numbered Markdown menu. The intended interaction is the same structured menu surface used by planning. If that surface is unavailable, stop rather than degrading to chat options.
Stop Conditions
Stop and ask, without creating the repository, when:
- The user asks for a GitHub Projects board instead of a repository.
gh is unavailable.
gh is unauthenticated.
- The active owner cannot be resolved.
- The local folder exists.
- The GitHub repository exists.
- The user has not explicitly selected
Create GitHub project.
- The integrated input-control menu is unavailable when a menu decision is required.
1---2name: gh-project3description: Create new GitHub repositories with low-friction defaults. Use when the user invokes /gh-project or $gh-project, asks to create a new GitHub project, asks to create a GitHub repo/repository, or wants a local folder plus GitHub repository created from inferred defaults.4---56# GitHub Project78## Overview910Create a new GitHub repository and matching local clone from a default-first plan. In this skill, "GitHub project" means a GitHub repository unless the user explicitly asks for a GitHub Projects board.1112Do not create anything until the user explicitly confirms `Create GitHub project`.1314## Defaults1516Infer a complete repo plan before asking questions:1718- Artifact: GitHub repository.19- Owner: active authenticated `gh` account.20- Parent location: `~/IdeaProjects`.21- Visibility: public.22- License: MIT.23- Initial contents: README plus MIT license.24- Repo features: GitHub defaults; do not toggle issues, wiki, projects, or discussions unless requested.25- Folder name: GitHub-safe slug inferred from the project name.26- Repo name: same as folder name unless the user requests otherwise.27- Friendly name: human-readable title inferred from the project name.28- Description: generated from the project purpose, capped at 350 characters.29- Topics: 6-10 GitHub repository topics optimized for user search queries.3031Topics are GitHub repository topics for discoverability. They are not issue labels and should not be appended as hashtag-style description text.3233## Workflow34351. Resolve prerequisites.36 - Run `gh --version`.37 - Run `gh auth status`.38 - If `gh` is missing or unauthenticated, stop and report the blocker.39 - Resolve the active owner from `gh auth status` or another read-only `gh` query if needed.40412. Infer the project plan.42 - Derive the friendly name, folder name, repo name, description, and topics from the user's request.43 - Use lowercase hyphenated slugs for folder and repo names.44 - Keep the description plain and searchable, not promotional.45 - Select topics from terms users would search for on GitHub for the project subject or technology.46473. Present native menus for every configurable setting.48 - Use `request_user_input` for each menu when available.49 - Ask one setting at a time.50 - Defaults are preselected, not hidden.51 - The first option in each menu must be the inferred default with `(Recommended)` in the label.52 - Do not skip a setting just because a good default was inferred.53 - If structured menus are unavailable, stop and say the integrated menu UI is unavailable in the current mode.54554. Required setting menus, in order:56 - Parent location.57 - Repo, folder, and friendly name.58 - Description.59 - Topics.60 - Visibility.61 - License.62 - Initial contents.63 - `.gitignore`.64655. Menu requirements by setting:66 - Parent location:67 - `~/IdeaProjects (Recommended)`68 - `Specify`69 - `Do something else`70 - Repo, folder, and friendly name:71 - The inferred names as one recommended option.72 - `Change names`73 - `Do something else`74 - Description:75 - `Use generated description (Recommended)`76 - `Specify`77 - `Do something else`78 - Topics:79 - `Use generated topics (Recommended)`80 - `Specify`81 - `Do something else`82 - Visibility:83 - `Public (Recommended)`84 - `Private`85 - `Do something else`86 - License:87 - `MIT (Recommended)`88 - `Apache-2.0`89 - `GPL-3.0`90 - Rely on the tool's free-form Other path when the user wants another license.91 - Initial contents:92 - `README plus MIT license (Recommended)`93 - `README only`94 - `Do something else`95 - `.gitignore`:96 - If the stack is clear, make the matching GitHub template the recommended option.97 - If the stack is unclear, make `None (Recommended)` the recommended option.98 - Always include `Specify`.99 - Include `Do something else` when there is room within the menu option limit.1001016. Check for collisions after the user has confirmed the names and location.102 - Expand `~/IdeaProjects` to an absolute path.103 - If the target local folder already exists, stop and ask for a new name or explicit instruction.104 - Check whether the target GitHub repository already exists with a read-only `gh repo view OWNER/REPO`.105 - If the target repository already exists, stop and ask for a new name or explicit instruction.1061077. Present the final creation plan.108 - Show the resolved plan in chat after all setting menus and collision checks are complete.109 - Then ask for final confirmation with a native menu.110 - Because `request_user_input` supports only 2-3 explicit choices, use a compact final menu:111 - `Create GitHub project`112 - `Change settings`113 - `Do something else`114 - If the user selects `Change settings`, ask a follow-up native menu for the setting category to change:115 - `Location or names`116 - `Description or topics`117 - `Visibility, license, contents, or gitignore`118 - After any change, rerun the affected collision checks and return to the final creation plan.1191208. Create only after explicit confirmation.121 - Run from the chosen parent directory.122 - Use this command shape:123124```bash125gh repo create REPO --public --clone --add-readme --license mit --description "DESCRIPTION"126```127128 - Include `--gitignore TEMPLATE` only when the user selected a template.129 - If visibility or license changed during confirmation, replace `--public` or `--license mit` with the confirmed value.130 - After creation, add topics:131132```bash133gh repo edit OWNER/REPO --add-topic topic-a,topic-b,topic-c134```1351369. Return the result.137 - Include the local path, GitHub URL, visibility, license, description, and topics.138 - If any step fails, report the exact failed command and stop. Do not retry through an alternate path unless the user asks.139140## Menu Behavior141142Prefer a low-friction default-first interaction. Low friction means defaults are preselected, not hidden.143144```text145Menu 1: Parent location146 ~/IdeaProjects (Recommended)147 Specify148 Do something else149150Menu 2: Names151 Use repo-name / Friendly Name (Recommended)152 Change names153 Do something else154155Menu 3: Description156 Use generated description (Recommended)157 Specify158 Do something else159160Menu 4: Topics161 Use generated topics (Recommended)162 Specify163 Do something else164165Menu 5: Visibility166 Public (Recommended)167 Private168 Do something else169170Menu 6: License171 MIT (Recommended)172 Apache-2.0173 GPL-3.0174 Other is available through the integrated input-control free-form path.175176Menu 7: Initial contents177 README plus MIT license (Recommended)178 README only179 Do something else180181Menu 8: .gitignore182 None or TEMPLATE (Recommended)183 Specify184 Do something else185186Final menu:187 Create GitHub project188 Change settings189 Do something else190```191192Every configurable setting gets a native menu even when the inferred default is probably correct. The user should be able to press the recommended choice repeatedly and move quickly through the wizard.193194Do not replace the integrated input-control menu with a numbered Markdown menu. The intended interaction is the same structured menu surface used by planning. If that surface is unavailable, stop rather than degrading to chat options.195196## Stop Conditions197198Stop and ask, without creating the repository, when:199200- The user asks for a GitHub Projects board instead of a repository.201- `gh` is unavailable.202- `gh` is unauthenticated.203- The active owner cannot be resolved.204- The local folder exists.205- The GitHub repository exists.206- The user has not explicitly selected `Create GitHub project`.207- The integrated input-control menu is unavailable when a menu decision is required.