Skip to content
Agent Memory
Skill

/first-tree-file-bug

File a GitHub issue about a defect in First Tree itself — the CLI, agent runtime, chat, web app, GitHub integration, GitLab integration, or Context Tree tooling — onto First Tree's own GitHub-hosted public tracker (agent-team-foundation/first-tree). Use only when the user

BOOST
From plugin
first-tree
1588 skills
Install
$ npx -y skills add first-tree-ai/first-tree --skill first-tree-file-bug --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/first-tree-file-bug

Context preview

The summary Claude sees to decide when to auto-load this skill.

File a GitHub issue about a defect in First Tree itself — the CLI, agent runtime, chat, web app, GitHub integration, GitLab integration, or Context Tree tooling — onto First Tree's own GitHub-hosted public tracker (agent-team-foundation/first-tree). Use only when the user

SKILL.md

first-tree-file-bug.SKILL.md
name: first-tree-file-bug
description: File a GitHub issue about a defect in First Tree itself — the CLI, agent runtime, chat, web app, GitHub integration, GitLab integration, or Context Tree tooling — onto First Tree's own GitHub-hosted public tracker (agent-team-foundation/first-tree). Use only when the user reports that First Tree the platform is broken, errored, crashed, or misbehaving and wants it reported (e.g. "First Tree has a bug", "chat send keeps failing", "the CLI crashed", "给 First Tree 开个 issue 反馈这个 bug"). The skill gathers reproduction steps, the First Tree client/CLI version, the chat ID, the reporting user's ID, OS, and error output, then opens the issue with the user's `gh` CLI. NOT for filing an issue into the user's own or bound source repo — that is an ordinary source-repo issue using the target forge CLI (`gh` for GitHub, `glab` for GitLab), not this skill — and not for bugs in the user's project code or third-party tools.

First Tree File Bug

Purpose

Turn a user's informal bug report about **First Tree itself** into a well-formed GitHub issue on `agent-team-foundation/first-tree`, filed with the user's authenticated `gh` CLI. The value is that the user only has to say "First Tree has a bug" — this skill does the collection, drafting, and filing, opens a dedicated chat that follows the issue for tracking, and reports the issue URL back.

The target repo is **public**. Filing publishes whatever you include, so gather deliberately, confirm with the user before creating, and never post secrets (see **Guardrails**).

When to use

  • The defect is in **First Tree** — the CLI (`first-tree …`), the agent

runtime / client, chat delivery, the web app, notifications, GitHub integration, GitLab integration, or Context Tree tooling.

  • The user wants it **reported / filed / logged**, not just diagnosed.

When NOT to use

  • The bug is in the **user's own project code**, a dependency, or a

third-party tool — that is normal debugging, not a First Tree issue.

  • The user only wants help understanding or working around the problem

and has not asked to file anything. Fix or explain first; offer to file only if it is a genuine First Tree defect.

  • It is a **security vulnerability** — do not open a public issue; point

the user to the repo's `SECURITY.md` reporting path instead.

Workflow

1. Confirm the scope

State briefly what you understand the bug to be and that it looks like a First Tree defect worth filing. If it is ambiguous whether the fault is in First Tree or the user's own setup, resolve that first — do not file an issue against First Tree for something outside it. If the report is really about the user's own project or their bound source repo, this is not the skill: file it into that repo with the target repository's forge CLI (`gh issue create --repo <their repo>` for GitHub, or `glab issue create --repo <their repo>` for GitLab) instead of here. If that CLI is not authenticated, recover with `gh auth login` for GitHub or `glab auth login` for GitLab.

2. Gather the bug context

Collect what the maintainers need to reproduce and triage. Get what you can yourself; ask the user only for what you genuinely cannot infer (typically the repro steps and the observed error). Do not over-interrogate.

| Field | How to get it | |---|---| | **What happened** | From the user: what they were doing, the expected result, and the actual result. Turn this into numbered reproduction steps. | | **Error output / logs** | Paste from the user's message or from recent command output in this session. Scrub secrets first (see Guardrails). | | **Client / CLI version** | Run the First Tree CLI with `--version` (e.g. `first-tree --version` — substitute your channel binary; see **CLI binary** below). | | **Runtime / provider** | Your agent runtime kind (e.g. `claude-code`, `codex`), if relevant to the bug. | | **Chat ID** | From the injected **Current Chat Context** block — the `Chat ID:` line, or the `chatId` field of the `first-tree-current-chat-context` JSON payload. | | **Reporting user ID** | The human participant in this chat: their handle from the Current Chat Context participants list (`type=human`), which is also the `<name>` in the `[From: <name> …]` header of their message. | | **Operating system** | `uname -srm` (or `sw_vers` on macOS). |

If the user already pasted a stack trace or exact error, capture it verbatim — it is the highest-signal part of the report.

3. Check for an existing issue

Do a quick duplicate scan so you do not file a repeat:

gh issue list --repo agent-team-foundation/first-tree --search "<key error phrase>" --state all --limit 10

If a clear match exists, show it to the user and ask whether to comment on it instead of opening a new one.

4. Draft the issue

Follow the repo's bug-report template. Title as `[Bug] <concise summary>`. Body:

## Summary

<one or two sentences>

## Surface Area

<which part of First Tree: CLI / runtime / chat / web / GitHub integration / GitLab integration / Context Tree>

## Environment

- version: <first-tree --version output>
- runtime: <claude-code | codex | …>
- operating system: <uname / sw_vers>

## Reproduction

1. …
2. …
3. …

## Expected Behavior

<what should have happened>

## Actual Behavior

<what actually happened; include the verbatim error / stack trace>

## First Tree Context

- Chat ID: <chatId>
- Reported by (user): <human participant handle>
- Agent: <your agent id / name>

## Additional Context

<logs, screenshots, related links — secrets scrubbed>

Keep it tight and factual. The **First Tree Context** block is what lets maintainers correlate the report with server-side logs — these are opaque identifiers, not credentials.

5. Confirm before filing

Filing is outward-facing and publishes to a public tracker, so show the user the drafted title and body **and state the destination explicitly — this files into `agent-team-foundation/first-t

Read more
Ships withfirst-tree

Context-grounded agentic work for teams. First Tree is an open-source workspace where AI agents work from your team's shared context, not isolated prompts.

Get the whole plugin

Other skills on first-tree.