Agency issue

From the-agency-ai/the-agency · View interactive version

Agency issue is an AI agent skill from the GitHub repository the-agency-ai/the-agency. File, view, comment on, and close issues against the-agency framework on GitHub. Two-way channel with persisted local audit trail in `usr/{principal}/reports/`.

How to use this skill

Skill file

agency-issue

Use this skill when the user (or you) hits friction with the-agency framework — a bug, missing feature, doc gap, ergonomic problem — and wants to file it in the GitHub issue tracker.

Unlike /feedback (which is fire-and-forget to Anthropic for Claude Code itself), /agency-issue is a two-way channel against the-agency's own GitHub repo. You can file, view current state, add comments, and close issues — all from within an agency session.

Every filed issue writes a markdown report to usr/{principal}/reports/ with frontmatter capturing the GitHub issue number, target repo, date, and a response log slot.

Usage

File a new issue

./agency/tools/agency-issue file \
  --type bug \
  --title "Concise one-line title" \
  --body-file /path/to/issue-body.md

Or with inline body:

./agency/tools/agency-issue file \
  --type friction \
  --title "Hookify rule X blocks legitimate workflow Y" \
  --body "When I do X, hookify rule Y triggers and blocks me. The rule is correct in spirit but the heuristic is too broad..."

Required flags:

No labels in v1. The type goes into the issue body header, not a GitHub label. Triage happens by reading.

List open issues

./agency/tools/agency-issue list
./agency/tools/agency-issue list --state closed --limit 50
./agency/tools/agency-issue list --state all

View a specific issue

./agency/tools/agency-issue view 47

Shows the issue body, metadata, and all comments.

Comment on an issue

./agency/tools/agency-issue comment 47 --body "Reproduced in another repo too. Adding context: ..."
./agency/tools/agency-issue comment 47 --body-file my-comment.md

Close an issue

./agency/tools/agency-issue close 47
./agency/tools/agency-issue close 47 --comment "Fixed in #52, shipped in Day 33 R2."

Issue body format

For consistency, follow the same structure as /feedback (per agency/REFERENCE/REFERENCE-FEEDBACK-FORMAT.md):

For internal cross-references, append a "Related" section at the bottom with paths to seeds, dispatches, transcripts, etc.

Permissions

Delegated to GitHub via gh. Anyone with gh auth can file. Comment and close are gated by GitHub's own write-access checks — gh will refuse if the user lacks permission.

Configuration

Target repo lives in agency/config/agency.yaml:

issues:
  provider: github
  github:
    target_repo: "the-agency-ai/the-agency"

v1 supports a single provider (github) and single target repo. v2+ will follow the SPEC-PROVIDER pattern for pluggable backends (gitlab, linear, jira) and multi-target support.

Reports and audit trail

Every filed issue writes a report file to usr/{principal}/reports/:

report-agency-issue-{slug}-{YYYYMMDD}.md

The frontmatter captures:

---
report_type: agency-issue
issue_type: bug
filing_agent: the-agency/jordan/captain
filed_by: jordan
date_filed: 2026-04-08
target_repo: the-agency-ai/the-agency
github_issue: https://github.com/the-agency-ai/the-agency/issues/47
github_issue_number: 47
status: open
---

The usr/{principal}/reports/REPORTS-INDEX.md file is updated with a row pointing at the new report. Same pattern as Claude Code feedback reports — the reports directory is the principal's external-filing record.

Failure modes

When to use vs not use

Use agency-issue when:

Use /feedback instead when:

Use a flag (flag <message>) instead when:

Use a dispatch instead when:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.