Skip to content
Back to skills

Gh Issue

ASecurity

Fetch a GitHub issue, branch, implement with TDD, open a PR

  • 6 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 12, 2026
documentationgitapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add phel-lang/phel-pdo --skill gh-issue --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gh Issue?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gh Issue
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/phel-lang-gh-issue/badge)](https://www.skillsdirectory.com/skills/phel-lang-gh-issue)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Fetch a GitHub issue, branch, implement with TDD, open a PR
argument-hint: "[issue-number]"
disable-model-invocation: true
---

# /gh-issue

## Context

!`gh issue view ${ARGUMENTS#\#} --json number,url,title,body,labels,assignees,state,comments 2>/dev/null || echo "Provide an issue number"`

Read the body **and every comment** - later comments often refine or override the original.

## Steps

1. Strip `#` from `$ARGUMENTS`. Self-assign: `gh issue edit <num> --add-assignee @me`.
2. Branch from a fresh `main`. Prefix by label: `bug` → `fix/`, `enhancement` → `feat/`, `documentation` → `docs/`, else `feat/`. Format: `<prefix><num>-<slug>`.
3. **Plan** the change: which file (`src/pdo.phel` connection-side, `src/pdo/statement.phel` statement-side), what `deftest` covers it, whether README API table + CHANGELOG need updating. Present the plan.
4. **TDD** via the `tdd-coach` agent (red → green → refactor).
5. `composer test` - fix everything before continuing.
6. Update `## [Unreleased]` in `CHANGELOG.md`.
7. Commit:
   ```
   <type>(<scope>): <description>

   Related to #<num>
   ```
8. **Mandatory polish commit** (separate `ref(...)`): re-review every touched file against `.claude/rules/*.md`. Drop duplication, dead branches, leftover debug, naming drift, premature abstractions. If nothing surfaces, note that in the PR body.
9. `/pr #<num>`.
10. `gh pr checks <pr> --watch`. Fix red checks on the branch.
11. Merge: `gh pr merge <pr> --squash --admin --delete-branch`. Fallback `--auto --squash --delete-branch` if `--admin` is rejected. Never `--no-verify` past a failing required check.
12. Sync main: `git checkout main && git fetch origin main && git reset --hard origin/main`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.