issue-report-filing-flow

Guides consent-based GitHub issue filing via gh CLI or manual handoff.

692|60|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/Lingtai-AI/lingtai --skill issue-report-filing-flow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: issue-report-filing-flow
Source: https://github.com/Lingtai-AI/lingtai/tree/main/tui/internal/preset/skills/lingtai-issue-report/reference/filing-flow
Command: npx skills add https://github.com/Lingtai-AI/lingtai --skill issue-report-filing-flow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When an agent discovers a bug in the Lingtai project, it needs a safe, consistent way to file a GitHub issue without overstepping human authority or leaking credentials. This reference defines the decision flow for turning a drafted issue report into an actual filed issue.

Core Features & Use Cases

  • Mandatory human consent boundary: The agent never files a GitHub issue without an explicit per-issue yes from the human, and drops the matter if declined.
  • Read-only gh probe: Detects whether the GitHub CLI is installed and authenticated (via existing gh auth or a session-provided GH_TOKEN) before proposing a filing path.
  • Two filing paths: Path A files directly with gh issue create using a body tempfile, while Path B hands the human a paste-ready title and body for manual filing.
  • Token hygiene and proactive surfacing: Keeps tokens out of logs and files, and prompts the agent to surface bugs it discovers without waiting to be asked.
  • Use Case: An agent spends several turns diagnosing an undocumented workaround, drafts a structured report, probes gh auth, asks the human for permission, and files the issue to Lingtai-AI/lingtai, quoting back the issue URL.

Quick Start

Ask the agent to check whether gh is authenticated and, with your approval, file the drafted issue report to the Lingtai-AI/lingtai tracker.

Frequently Asked Questions about issue-report-filing-flow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I file a GitHub issue from the command line with gh?

Use gh issue create with --repo, --title, and --body-file pointing to a tempfile containing the markdown body. The command prints the new issue URL on stdout, which you can quote back for verification.

How to check if the GitHub CLI is authenticated before filing?

Run command -v gh to confirm installation and gh auth status to check for an existing login. A GH_TOKEN environment variable provided for the session also works, since gh reads it per invocation without gh auth login.

Can an AI agent file GitHub issues without asking the user first?

No. This flow requires explicit per-issue human consent before any filing, even when gh is authenticated. If the human declines, the agent drops the matter and does not retry on later turns.

What happens if gh issue create fails with a 401 error?

A 401 usually means the token is expired or lacks permission. The agent reports the exact gh error to the human, does not retry silently, and offers the manual paste-ready fallback path instead.

How should a GH_TOKEN be handled when filing issues?

Keep the token only in the environment of the single gh command, never echo it to chat or logs, never write it to files, and never include it in the issue body. Delete the body tempfile after filing.