issue

File a new repository issue or ticket when asked; do not trigger merely because work references an existing issue

File a Repository Issue

TL;DR

Choose the executor from the invocation, not model discretion:

These are prose selectors, not Harnez CLI flags. A delegated filer reads this skill completely and follows the direct path; it must not delegate filing again.

The selected executor reads the target repository's applicable instructions and issue-tracking guidance before acting, then runs the filing workflow end to end:

If .harnez/repo.yaml sets issues.tracker: none, follow .harnez/rules/Index.md for the local-tracker/session fallback.

harnez find -d <repo> issues -a status:active
harnez find -d <repo> issues "<search terms>"
harnez find -d <repo> issues similar "<search terms>"
git -C <repo> fetch          # see tickets already pushed by other clones (unpushed reservations stay invisible)
harnez issues new -d &lt;repo&gt; "<title>"
# Fill the returned ticket path using the repository's issue conventions.
harnez issues open -d &lt;repo&gt; &lt;n&gt; --commit "docs(issues): file &lt;n&gt;, <summary>"

Use text for routine issue discovery. Add -I/--image only when the user explicitly requests image output; an assumed token benefit is not a reason to render PNG cards. The active index issues/README.md covers Open, In Progress, Blocked, and Draft tickets; it links to the generated Backlog and Closed indexes.

Publish Promptly

The goal is that the ticket commit reaches main, or a review PR, as soon as it is filed.

Routes, in order:

  1. Direct push to main, preferred whenever the admin's authorization allows it and the remote accepts it. Standing consent counts only where applicable policy allows it. Where applicable policy requires authorization in the current session, standing consent is insufficient: ask for it, or use the AGit route. Several policy sources may apply, such as AGENTS.md, .harnez/repo.yaml or docs/Git.md. The strictest rule wins, and the remote's branch protection has the final word.
  2. AGit PR to main, when direct push is not allowed and the remote supports AGit. Use the contributor's reusable topic (by default the Git username). Several issues may share one topic and one PR.
  3. Stop otherwise. Leave the commit on the current branch, or on issue/<n>-<slug> if you are on the default branch, and report the reason.

<sha> is the intended issue commit: the commit that harnez issues open --commit made for this ticket.

Direct route:

AGit route:

Number collisions: harnez issues new checks only fetched remote branches, so another clone's unpushed reservation stays invisible. Before publishing, check git -C <repo> ls-tree origin/main issues/ for the reserved number. If it is taken, fetch, run harnez issues new for a fresh number, move the draft into the new path, and update its number. Keep the old file until the move is confirmed with git -C <repo> status. Never delete or overwrite content. Stop and report the paths only if this cannot be done cleanly.

Report one state per ticket: "on main at <sha>, confirmed as an ancestor of origin/main"; "AGit PR <number or URL> open or updated, not on main until merged"; or "committed locally on <branch>, not published: <reason>". Say "published" or "on main" only after the remote confirms it.

On the delegated path, keep the host responsive: report that filing was dispatched and don't block the main chat on the subagent's result, unless the user explicitly asked to wait or the very next step in the conversation truly cannot proceed without the ticket number.

Keep this workflow deliberately thin: the repository instructions and issue-tracking documentation should already be in context. Inspect and follow them rather than restating their full policy here.

Handoff Prompt

The subagent has no memory of this conversation — brief it like a colleague who just walked in, never "as discussed above." At minimum, include:

The delegator supplies known context without predoing duplicate search or drafting. The executor must read the full installed issue skill and applicable repository instructions, including referenced issue-tracking guidance not already in context. Do not assume a child inherited these documents or conversation history.

Leave the exploratory steps to the selected executor: duplicate search, inspecting nearby tickets for local conventions, choosing priority independently from severity, and drafting the ticket body:

On the delegated path, use a compatible, healthy named filer if explicitly selected or already assigned to this workflow; otherwise create a fresh filer. Freshness is not a requirement for every ticket. Load harnez-advisor guidance only when the user explicitly requests advisor reuse; ordinary delegation needs no advisor skill. Reuse must preserve the session's role and permissions. Closed/parked sessions remain candidates for supported native reuse; closure alone proves no failure. For Codex usage-limit interruptions, suspend productive dispatch and use bounded health checks. Quarantine a confirmed dead session, close/retire it using supported controls, and verify one fresh replacement before dispatch. Keep the exclusion and replacement mapping outside the repository; quota reset does not clear quarantine. Inspect any reserved ticket and actual work before replay to avoid duplicate filing. If native recovery is unsupported or inconclusive, report the blocker; invent no APIs.

Serialize tracker mutations and commits with other writers in the shared repository. The host owns result collection and targeted child cleanup. Confirm explicit native compaction before parking a reusable filer; a self-summary is not compaction. Report unavailable operations honestly. Close disposable filers after collecting their result.

Stage only the new ticket and regenerated index so unrelated working-tree changes remain untouched. In team/protected mode (git.mode in .harnez/repo.yaml), the ticket commit rides on the current topic branch; on the default branch, create issue/<n>-<slug> first. If the repository is not harnez-managed, follow its local tracker and commit rules instead of assuming harnez, issues/, or an immediate tracker commit.

Content
file-backed
License:
AGPL-3.0-or-later
Origin
first-party
Source:
docs/commands/issue.md
Source revision
3cb914dfaf6c43cbbbc43868d6b47c2cc7516c22
Requires
Targets
codex, claude
Invocation
/issue

Related skills