---
name: issues-show
description: Show the full details of a specific issue.
disable-model-invocation: true
argument-hint: "[issue-id]"
allowed-tools: Read, Glob
---

## Arguments

The argument is the issue ID, e.g. `0001` or `1`. If the ID is not zero-padded, pad it to 4 digits (e.g. `1` becomes `0001`).

## Steps

1. Parse the argument as an issue ID. Zero-pad it to 4 digits.
2. Use the Glob tool to verify `.issues/{id}.toml` exists.
3. If the file does not exist, inform the user and stop.
4. Read the issue file using the Read tool.
5. Display all fields in a nicely formatted output:

```
Issue {id}: {title}
─────────────────────────
Status:      {status}
Priority:    {priority}
Assigned to: {assigned_to}
Created:     {created_at}

Comments:
──────────
[2026-02-15] user@example.com:
  Comment text here...
```

If assigned_to is empty, show "unassigned". If the issue has `[[comments]]` entries, render them at the bottom under a "Comments:" header. Each comment shows `[{date}] {author}:` followed by the message text indented with two spaces. If there are no comments, omit the Comments section entirely.

## Allowed tools

- `Bash(git *)` - for git commands
- `Read` - for reading the issue file
- `Glob` - for verifying the issue file exists
