AGENT SKILL

triage-issue-reports

Triage Slack issue reports with one thread-only verdict, evidence review, cause-aware routing, tracker dedupe, and fail-closed ticket creation. Use only from the configured Benny triage automation.

License 许可
MIT
最近更新
2026-10-26
Stars
★ 0
Forks
0

01 前言 Front Matter

name
triage-issue-reports
description
Triage Slack issue reports with one thread-only verdict, evidence review, cause-aware routing, tracker dedupe, and fail-closed ticket creation. Use only from the configured Benny triage automation.
disable-model-invocation
true

02 资源文件 1

03 SKILL.md 正文

OpenAI runtime contract

Call pstack_context for this target workspace and read its returned adapter_contract path before this workflow. It maps provider selection, agent calls, loops, persistent state, history, verification, and authorization. That contract supersedes Cursor-specific execution syntax and unverified model fallbacks below; the engineering steps remain required.

Executable OpenAI coordination

Use pstack_benny for durable run state, not prose-only progress. setup consumes the seven required project/source fields, four exact verified provider:model choices and eight explicit execution budgets. The API shape is documented by its tool description; map the external YAML sections to these fields explicitly. control_url must name the actual tested UI when using the bundled browser harness. plan requires committed operational files, feature map, secret-free configuration and project .codex/config.toml enabling the actual personal marketplace entry. It returns two reviewable native scheduling prompts; it never activates a schedule. Fresh scheduled-host dependency discovery and connector access still need their own live test.

The coordinator freezes actual source coordinates, checks the parent/tracker through real native connectors, calls ingest, records one verdict, delivers the outbox in the original thread, reads the delivered message back, and then acknowledges its actual coordinates. The runtime's preflight flags and acknowledgement are coordinator attestations, not a substitute for connector evidence. Workers receive no posting capability.

For reproduction, apply repro_gate, start two independent workspace-owned control_ui recordings, drive the discriminating interaction, inspect state read-only and stop each recording. Submit each completed capture with evidence phase baseline and the exact expected/broken states. launch role media_review attaches those actual screenshots through native Codex image input; currently this role must use a verified Codex model. confirm_repro consumes the native final image verdict. fix_gate rechecks ownership/existing fixes, the rejection deadline and a real scoped failed live receipt. Only then may launch role code use its one bounded isolated writer. Grok is excluded from this posting-free code role until native plugin isolation is established; generic Grok worktree repair remains available.

After the fix, collect two independent patched recordings through the same UI path and save actual unit/live pstack_verify receipts at the writer worktree's current HEAD and bytes. draft_gate accepts only this before/after evidence and returns draft readiness. Create a draft PR only with the configured user's authorization and concrete target; readiness does not create or merge a PR. reconsider allows one explicit diagnostic correction before any fix and invalidates previous proof. cancel cancels owned workers and records cancellation. Recover the persisted run/checkpoint after interruption and reverify current state.

Triage issue reports

Classify one Slack report and post one useful verdict in its source thread. Create a tracker issue only for a clear, new bug. Do not reproduce or fix it here.

Load the external Benny configuration supplied by the automation. If the config is missing, malformed, or incomplete, stop without posting or writing to the tracker.

Hard safety rules

  • The source channel and root thread coordinates are immutable.
  • Never post a root message in the source channel.
  • Never post to another channel, broadcast a reply, send a DM, or start a replacement thread.
  • Preflight the source parent before any tracker write and immediately before the verdict post.
  • If the parent is missing, deleted, inaccessible, or uncertain, stop with no writes.
  • Post one substantive verdict. Do not narrate progress.
  • The coordinator is the only Slack poster.
  • Delegated workers return findings only. They must be read-only and receive no Slack credentials or write actions.
  • Every child prompt must forbid SendSlackMessage, PostToSlack, chat.postMessage, and every other Slack write.
  • If worker isolation cannot enforce those limits, do the work in the coordinator.
  • Never create an issue that cannot link back to the source thread.
  • Prefer no ticket over a guessed or duplicate ticket.
  • Apply pstack's principle-separate-before-serializing-shared-state to source coordinates.
  • Apply pstack's principle-minimize-reader-load and unslop skills to the final verdict.

1. Freeze source coordinates

Before making a work list or delegating:

  1. Read source_channel_id from the trigger.
  2. Require it to equal the configured source channel.
  3. Set SOURCE_THREAD_TS to trigger.thread_ts when present. Otherwise use trigger.ts.
  4. Require a nonempty SOURCE_THREAD_TS.
  5. Store SOURCE_CHANNEL_ID and SOURCE_THREAD_TS as immutable values.
  6. Read the thread and verify that its root has exactly those coordinates.
  7. Fetch a stable source permalink.

Every later source read and post must use those stored values. Never replace them with a reply timestamp or an operations-thread timestamp.

2. Read the whole report

Read the root and current replies before deciding.

Capture:

  • Reporter wording
  • Product version, app build, environment, and platform when present
  • Expected behavior
  • Observed behavior
  • Frequency and trigger
  • Error text or stack signature
  • Existing issue, commit, or pull request links
  • Any explicit statement that someone is already fixing it

Inspect every relevant attachment.

  • Read screenshots at full useful resolution.
  • Review video for the state transition that separates correct and broken behavior.
  • Read logs, traces, and crash text for concrete signatures.
  • If media needs specialist review, use a read-only media worker and ask a narrow question. The worker returns findings only.
  • If an attachment cannot be read, say so in the verdict. Do not invent what it shows.

Use evidence already in the thread before asking the reporter for more.

3. Trace cause before routing

Do a bounded source and history pass before choosing an owner or destination. Use pstack's how skill to trace the path from the reported action to the observed result. Use why when the report looks like a regression or touches defensive code.

  1. Identify the likely code path from the reported action to the observed result.
  2. Check whether the visible symptom belongs to that code path or a dependency below it.
  3. Check recent changes when the report looks like a regression.
  4. Check whether a merged commit or open pull request already addresses the same symptom.
  5. Separate confirmed facts from hypotheses.

This pass does not need a complete root cause. It must be strong enough to avoid routing a visible symptom to the wrong owner.

If the repository cannot be read, do not guess a code owner. Continue with a conservative classification and say that cause tracing was unavailable.

4. Classify

Choose one category.

Bug

Something violates intended behavior. Examples include wrong output, broken state, an error, a crash, a hang, a silent no-op, or a regression.

Performance

The report describes measurable slowness, excess memory, battery drain, jank, or another resource problem. Treat it as a bug, but preserve measurements and profiles.

Feature request

The current behavior appears intentional and the reporter wants a different behavior or affordance.

Question or feedback

The report asks how something works, expresses a preference without a concrete defect, or gives general feedback.

Reroute

Cause tracing shows that another configured destination owns the issue.

When the bug versus feature line is unclear, do not file. The one verdict may ask one focused question and use the other marker.

5. Apply configured routing

Read the optional routing map from routing.map_path.

  • Match on confirmed product area, code path, or error signature.
  • A visible symptom alone is not enough when cause tracing points elsewhere.
  • If no route matches, say the owner is unclear. Do not guess.
  • Do not cross-post. Tell the reporter where to take the issue in the source thread.

Owner pings are off by default. A ping is allowed only when all of these hold:

  1. The routing map explicitly names the owner.
  2. The config allows that ping type.
  3. The item is a feature request that needs owner input, or recent history identifies a likely regression author with strong evidence.
  4. The owner is not a broad on-call group.

No other case gets a ping.

6. Use the issue-tracker adapter

The tracker is an adapter, not a required vendor. A Linear adapter is one valid example. A GitHub Issues adapter or another tracker may implement the same contract.

The configured adapter must provide:

  • Search issues by text, state, label, source URL, and date range
  • Read one issue and its links
  • Create an issue with title, body, status, labels, and source URL
  • Update an existing issue without replacing unrelated fields
  • Add a source link and recurrence note
  • Cancel, close, or delete an issue created by this run if the Slack handoff fails

If a required operation is unavailable, fail closed for that write.

Resolve configured team, project, status, and labels at runtime. Do not invent IDs, create labels, assign owners, or set priority unless the config explicitly requires it.

7. Dedupe

Always check whether this source permalink is already linked to a tracker issue or a prior triage reply. If so, do not post or create a duplicate.

For bugs and performance reports, search the tracker using:

  • Exact error or crash signature
  • Product area
  • Trigger
  • Symptom
  • Version or date window
  • Suspected regression commit
  • Source permalink

Choose one outcome:

  • Confident duplicate: same signature, or the same area, trigger, and symptom, or a confirmed shared cause.
  • Possibly related: a shared cause is plausible but not proven.
  • Weak resemblance: similarity is superficial.
  • No match.

For a confident duplicate, update the existing issue with the source permalink and one short recurrence note. Do not reopen, relabel, or reassign it unless the config says to.

For a possible match, link it in the verdict as uncertain and create nothing.

A long-closed issue is a regression lead, not automatically a live duplicate.

8. Decide whether to create

Create only when all of these are true:

  1. The classification is bug or performance.
  2. The behavior is clearly broken.
  3. The issue is still live or not known to be fixed.
  4. Dedupe found no confident or plausible live match.
  5. The source parent and permalink passed preflight.
  6. The tracker target fields resolved.
  7. The adapter can compensate if the verdict post fails.

Never create for a feature request, question, feedback item, reroute, possible duplicate, confident duplicate, or already-fixed issue.

The new issue must be self-contained:

  • Plain title that names the area and symptom
  • Reporter quote
  • Expected and observed behavior
  • Version and environment, or unknown
  • Trigger and frequency
  • Source thread permalink
  • Short cause-tracing findings with hypotheses labeled as hypotheses
  • Inline screenshot or representative video frame when supported
  • Links to remaining artifacts
  • Configured intake status and labels

Do not put a guessed root cause in the title.

9. Post one verdict

Run a fresh source-parent preflight. Then post exactly one reply with channel=SOURCE_CHANNEL_ID and thread_ts=SOURCE_THREAD_TS.

Never call a source-channel posting action without a nonempty thread_ts.

Keep the reply short:

  • Lead with the outcome.
  • Link the existing or new tracker issue when there is one.
  • Mention a reroute or one missing fact when needed.
  • Include at most one allowed owner ping.
  • End with exactly one marker line.

Marker contract:

[benny:bug]
[benny:bug] tracker=https://tracker.example/issue/123
[benny:performance]
[benny:performance] tracker=https://tracker.example/issue/123
[benny:other]

Use only the configured marker strings. The repro automation trusts the marker only when it comes from the configured triage identity in this source thread.

After posting, read the same source thread and verify the verdict appears under SOURCE_THREAD_TS. If it does not, never retry at the root.

If this run created a tracker issue and the verdict did not land, use the adapter's compensation action. Verify that the issue is canceled, closed, or deleted. If compensation cannot be verified, report the failure only in the automation run output.

10. Watch one follow-up window

Watch the source thread for the configured follow-up window, then stop.

  • Answer only a direct question to the triage identity.
  • Apply a concrete correction to the tracker issue when safe.
  • Do not emit a second marker in the same run.
  • Stay out of human coordination and side chatter.
  • Stop early if someone asks the automation to stop.

Do not extend the window more than once. A new report should start a new run.

04 同仓库更多 Skills

noodlemind
noodlemind/pstack-plugin

why

Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.

★ 0
noodlemind
noodlemind/pstack-plugin

unslop

Cut AI tells from any writing. Must always apply.

★ 0
noodlemind
noodlemind/pstack-plugin

typescript-best-practices

TypeScript best practices. Use when reading or editing any .ts or .tsx file.

★ 0
noodlemind
noodlemind/pstack-plugin

technical-writing

Layered technical-writing standard: Diátaxis structure, Google developer style sentences, STE instruction rules, Global English syntax. Use for /technical-writing or when writing or reviewing docs, RFCs, readmes, PR descriptions, or commit messages.

★ 0
noodlemind
noodlemind/pstack-plugin

teach

Explain a body of work plainly so a person actually understands it. Runs the `how` and `why` skills and weaves what they find into one clear explanation. Use for 'teach me this', 'help me really understand X', 'explain this change or subsystem to me'.

★ 0
noodlemind
noodlemind/pstack-plugin

tdd

Use only when the user explicitly asks for TDD, a failing test, or a regression test, OR when the bug has an obvious cheap local test target. Skip when the test path is unclear, expensive, integration-heavy, or not requested.

★ 0