/codely-skills:create-plan-githubfrom codely-skills
Creates a structured plan as GitHub issues with sub-issues. Given an issue URL, generates a parent plan issue with phases as linked child issues, requiring user approval before creation.
Ships in codely-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
[!CRITICAL] Do NOT create or edit any GitHub issue until the user has agreed on the specific public contracts to be considered and the implementation phases. Propose first, get approval, then create the issues.
The structure of a plan, its sections and the rules to shape them are defined in references/plan-guidelines.md. Read it before proposing anything.
This skill is invoked as /create-plan-github <github-issue-url>.
<github-issue-url> is the URL of the GitHub issue describing the task to plan. This issue becomes the parent "plan" issue.All the plan lives as GitHub issues in the repository of the current working directory. Never hardcode a repository: let gh resolve it from the local Git remote.
gh issue view <number>
gh issue create --title "..." --body "..."
gh issue edit <number> --body "..."
Derive <number> from the provided URL. Confirm the repository gh resolves with gh repo view --json nameWithOwner --jq .nameWithOwner, and check that the provided URL belongs to it. If it does not, stop and ask the user to run the skill from the clone of that repository.
To link a phase as a native GitHub sub-issue of the parent, use the sub-issues REST API. It expects the child's numeric database id (not its issue number), so resolve it first. The {owner} and {repo} placeholders are substituted by gh with the current repository:
# Resolve the child issue database id from its number
child_id=$(gh api repos/{owner}/{repo}/issues/<child> --jq .id)
# Attach the child as a native sub-issue of the parent
gh api --method POST repos/{owner}/{repo}/issues/<parent>/sub_issues -F sub_issue_id="$child_id"
A plan is stored as a tree of issues, using GitHub's native sub-issues feature:
Goal, the Context, the agreed design decisions, and a checklist of the phases, each item linking its child issue. The parent depends on its children: when every child issue is closed, the parent closes too.Part of #<parent>). Every child is attached to the parent as a native GitHub sub-issue (via the sub-issues API), not only as a checklist link.#12 Product Bundles (parent plan)
Goal / Context / design decisions
- [ ] #13 Phase 1: ...
- [ ] #14 Phase 2: ...
#13 Phase 1: ... (child, to-do checkboxes)
#14 Phase 2: ... (child, to-do checkboxes)
Read the task from the parent issue with gh issue view <parent>.
Define task phases, letting the user choose the amount of phases as described in the guidelines.
Specify the public contracts to be created/modified/deleted on each phase task, as described in the guidelines.
Propose the plan to the user for approval. IMPORTANT: Do not create any issue until the user has agreed on the specific contracts to be considered and the implementation phases.
Create one child issue per phase with gh issue create. Each child issue body must contain:
- [ ] ...).Part of #<parent> reference line.Capture the number of every child issue returned by gh.
Attach every child as a native sub-issue of the parent. For each child, resolve its database id and link it to the parent with the sub-issues API (see the snippet in the Repository section above):
child_id=$(gh api repos/{owner}/{repo}/issues/<child> --jq .id)
gh api --method POST repos/{owner}/{repo}/issues/<parent>/sub_issues -F sub_issue_id="$child_id"
Do this for every phase, in order, so the parent lists all phases as native sub-issues.
Update the parent issue with gh issue edit <parent> --body ... so its body contains the Goal, Context, agreed design decisions and a Phases checklist that links every child issue (- [ ] #<child> Phase N: <title>). Preserve the original task description from the parent issue: keep it as-is and append the new plan content below it, separated by a --- line (do not lose or rewrite the original text).
Suggest next steps. Ask the user what do they want to do:
/implement-plan-phase-github <parent-issue-url> skill (implements Phase 1 only)./implement-plan-phase-github <child-issue-url> skill.[!IMPORTANT]
/implement-plan-phase-githubhandles one phase per invocation. Never implement all phases at once.
GitHub issues have no YAML frontmatter, so add the plan metadata as a footer at the end of the parent issue body:
---
<sub>Created by { tool } · { model.name } { model.version } (reasoning effort: { model.reasoning_effort }) · { current_date }</sub>
current_date: The current date in the format ISO 8601 RFC 3339 (YYYY-MM-DDTHH:MM:SSZ).tool: The AI coding tool used (e.g. Claude Code, Cursor, Copilot, Codex)model.name: The name of the model used to make the change (e.g. Claude Opus, Cursor Composer, OpenAI GPT)model.version: The version of the model used to make the change (e.g. 4.6, 1.5, 5.4)model.reasoning_effort: The reasoning effort of the model used to make the change (e.g. low, medium, high)The parent issue holds the Goal, the Context, the Phases checklist and the Next step sections described in references/plan-guidelines.md. Each child issue holds the description and the to-do actions list of its own phase.
As the phases are implemented through pull requests, the last to-do action of every phase asks for pull request titles instead of commit messages.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub codelytv/agent-harness --plugin codely-skills13 skills in this plugin
/create-docDeprecated: use create-rule instead. Create new documentation based on the current conversation context./create-planCreate a plan for the specified task./create-plan-gitlabCreate a plan for the specified task and store it as GitLab issues in the repository of the current working directory. Given the URL of a GitLab issue, it turns that issue into the parent "plan" issue (Goal, Context and a checklist of phases) and creates one child issue per phase, linking every phase to the parent with GitLab related-issue links. Stops for user approval before creating any issue. After creation, the plan is meant to be implemented with the implement-plan-phase-gitlab skill.Other plugins' skills for the same job