Open
Conversation
Add ghcrawl triage command that generates markdown triage reports from existing cluster data. Reports include top clusters by size, freshness stats, and suggested actions (close duplicates, investigate growth, stale clusters). Supports --json flag for agent consumption. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a
ghcrawl triage owner/repocommand that generates a markdown triage report from existing cluster data. Local-only, no API calls required.Why
ghcrawl clusters related issues/PRs, but there is no way to generate a standalone triage report that a maintainer can read, share, or hand to an agent. The SPEC lists "maintainer triage" as a goal. This fills that gap.
The report includes:
Changes
packages/api-core/src/report/triage.tsgenerateSuggestedActions()andformatTriageMarkdown()packages/api-core/src/report/triage.test.tspackages/api-core/src/service.tsgenerateTriageReport()method using existinglistClusterSummaries()packages/api-core/src/api/server.tsGET /triageroute withformat=markdownsupportapps/cli/src/main.tstriagecommand with--json,--limit,--min-sizeflagspackages/api-core/src/index.tsUsage
Suggested actions heuristics
Testing
pnpm buildpassesThe
generateSuggestedActions()function inreport/triage.ts:18and theformatTriageMarkdown()formatter inreport/triage.ts:62are pure functions that operate on the existingClusterSummaryDtocontract. The service method atservice.ts:1474reuseslistClusterSummaries()withsort: 'size'to avoid duplicating query logic.This contribution was developed with AI assistance (Claude Code + Codex).