Skip to content
Back to skills

Gz Issue File

ASecurity

Use from a consuming repository to file a gzkit defect or enhancement at tvproductions/gzkit.

  • 9 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 19, 2026
toolsgobashgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 19, 2026

npx -y skills add tvproductions/gzkit --skill gz-issue-file --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gz Issue File?

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

Security grade badge for Gz Issue File
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tvproductions-gz-issue-file/badge)](https://www.skillsdirectory.com/skills/tvproductions-gz-issue-file)

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

SKILL.md
---
name: gz-issue-file
persona: main-session
description: Use from a consuming repository to file a gzkit defect or enhancement at tvproductions/gzkit.
category: agent-operations
lifecycle_state: active
owner: gzkit-governance
last_reviewed: 2026-10-17
metadata:
  skill-version: "1.0.4"
  govzero-framework-version: "v6"
model: sonnet
---

# gz-issue-file

## Invocation

```text
/gz-issue-file
```

No ID argument. `gh issue create` (invoked under the hood by `gz issue file`)
assigns the next available issue number on `tvproductions/gzkit`; the skill
records the assigned number into session evidence after creation.

## When to use

When working **inside a gzkit-consuming repository** and the finding belongs
to a **gzkit-owned surface**:

- The `gz` CLI itself misbehaves (parser, dispatcher, output, exit code).
- A schema under `src/gzkit/schemas/` is over- or under-strict.
- A validator scope (`gz validate --<scope>`) misses or false-flags drift.
- A ledger event semantic drifts from doctrine.
- A rule under `.gzkit/rules/**` contradicts another rule or is silently
  skipped.
- A skill or hook surface in `.gzkit/skills/` or `.gzkit/hooks/` regresses.

For enhancements to any of the above, file with `--enhancement` instead of
`--defect`.

## When NOT to use

- Defects in **consumer-repo** code, content, or governance — file at the
  consumer's tracker via plain `gh issue create`.
- In-flight defects against gzkit that meet the direct-fix thresholds in
  `AGENTS.md` § Defect-fix routing (diff size ≤10 source lines **OR** ≤2
  source files; single named surface; ≥3 recent `fix(` precedents) — fix
  in place with `fix(<scope>): … (GHI #N)` rather
  than filing.

## Procedure

1. **Preview first** with `--dry-run`:

   ```bash
   uv run gz issue file \
     --title "<gzkit-surface description>" \
     --body "<must reference gz <verb>, .gzkit/, src/gzkit/, or gzkit.<module>>" \
     --defect \
     --dry-run
   ```

2. **Confirm the provenance line and target** in the dry-run output:
   - `Filed from <owner>/<repo> running gz vX.Y.Z` is the first line of
     the issue *body* (the dry-run prints `Target:`/`Label:`/`Title:` above it).
   - `Target: tvproductions/gzkit`.
   - `Label: defect` (or `enhancement`).

3. **File live** by re-running without `--dry-run`. The wrapper invokes
   `gh issue create --repo tvproductions/gzkit --title T --body B --label L`
   and propagates `gh`'s exit code on failure.

4. **Record the assigned issue number** into the relevant brief, GHI, or
   commit body so downstream `(GHI #N)` references resolve.

## Doctrine

- `.gzkit/rules/gh-cli.md` § Cross-repo filing — the canonical doctrine
  surface this skill operationalizes.
- `.gzkit/rules/agent-failure-modes.md` § Safeguard circumvention — the
  failure shape this wrapper closes structurally.
- `AGENTS.md` § Execution Rules (Operator PII) — the auto-stamped trailer
  composes only the repo slug and gz version; no email is ever derived.

## Output Contract

Default form: **plain text** (one `Target:`/`Label:`/`Title:` line each, then
the composed body). `--dry-run` is the canonical preview affordance.

The wrapper has **no `--json` flag**: filing an issue is a side-effecting
operation whose canonical output is the GHI URL on stdout (`gh issue
create`'s default), not a structured payload.

## Failure Modes

| Failure | Cause | Resolution |
|---------|-------|------------|
| Exit 1, "issue body references no gzkit-owned surface" | Body lacks `gz <verb>`, `.gzkit/`, `src/gzkit/`, or `gzkit.<module>` | Edit body to name the gzkit surface; or file at the consumer's tracker if the defect is consumer-owned |
| Exit 1, "no git remote found" | Working tree is not a git repo or has no remote | Run from a real git working tree |
| Exit 2, mutually-exclusive flag conflict | Both `--defect` and `--enhancement` supplied (argparse rejects before the command body runs) | Pick one |
| Exit 2 | `gh` subprocess failed (auth, network, GitHub API error) | Run `gh auth status`; check network; re-try |

## Related

- Manpage: `docs/user/manpages/issue.md`
- Command doc: `docs/user/manpages/issue-file.md`
- Operator runbook entry: `docs/user/runbook.md` § Cross-Repo Defect Filing
- Governance runbook entry: `docs/governance/governance_runbook.md` § Cross-repo defect routing
- Parent ADR: `docs/design/adr/foundation/ADR-0.0.23-agent-failure-mode-taxonomy/`
- Source brief: GHI #316
- Sibling skill: `ghi-author` — for filing GHIs at the **current** repo (not cross-repo)

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.

View all in tools →

Comments

Loading comments…

Newsletter

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