/oss-autopilot:oss-searchfrom OSS Autopilot
Searches for open source issues to contribute to via oss-scout, with options to review a curated list first or search GitHub directly.
Ships in OSS Autopilot. Installing the plugin adds it to Claude Code.
This command searches for new open source issues to contribute to by delegating to the @oss-scout/core package (via the CLI's search command). With --full, scout runs every phase in one search (merged-PR repos + open-PR repos → orgs → starred → broad → maintained; without it, one phase per search in rotation) with built-in rate-limit budgeting, skip-list dedup, spam filtering, and vetting — there is no reason for this skill to duplicate any of that logic (#929).
Input validation: See "AskUserQuestion Validation Protocol" in
workflows/reference.md.
Initialize on entry (reset each time):
searchRoundScores: number[] = [] (average vetting score per search round)Inherited from /oss session (if invoked from there):
hasIssueList, availableCount, completedCount, issueListPath — curated issue list infoIf hasIssueList is true and availableCount > 0, present a preamble before searching:
Use AskUserQuestion:
Route based on choice:
/oss context. Tell the user: "Returning to /oss to browse your issue list." End this command; the parent /oss session handles "Pick Issue From List"./oss for "Pick Issue From List"), then continue with Run Search/oss, return to the parent session. If standalone, exit.Marketplace installs ship cli.bundle.cjs prebuilt and the helper below is a no-op there. In a source checkout (claude --plugin-dir .) the bundle is gitignored and can be stale or missing, and this command runs the bundle directly, so run the canonical helper before any bundle invocation:
CLI_BUILD_RC=0
"${CLAUDE_PLUGIN_ROOT}/scripts/build-cli-if-stale.sh" "${CLAUDE_PLUGIN_ROOT}" >/tmp/oss-search-cli-build.log 2>&1 || CLI_BUILD_RC=$?
if [ "$CLI_BUILD_RC" = "2" ]; then
echo "CLI_BUILD_FAILED"; tail -5 /tmp/oss-search-cli-build.log
fi
If the output contains CLI_BUILD_FAILED (helper exit code 2), the bundle is missing or stale and could not be rebuilt — stop and show the build error, whose BUILD_FAILED: line states the fix (reinstall the plugin for a marketplace install; cd "${CLAUDE_PLUGIN_ROOT}" && pnpm install --frozen-lockfile --ignore-scripts && pnpm --filter @oss-autopilot/core run bundle for a source checkout). Do NOT run the search against a stale bundle. Exit codes 0 (current) and 1 (rebuilt) are both fine — proceed.
Run the CLI search command — one call replaces the old 3-strategy orchestration. Scout handles rate-limit budgeting, skip-list integration, exclude-list filtering, spam detection, and deduplication internally:
Task(general-purpose, "Run the CLI search command and return the raw JSON output verbatim:
```bash
GITHUB_TOKEN=$(gh auth token) node \"${CLAUDE_PLUGIN_ROOT}/packages/core/dist/cli.bundle.cjs\" search 25 --full --json
```")
Parsing the response:
success field. If success: false, display the error field and offer retry/done.1a. Skip-list health (#1528): If data.skipListUnavailable is true, the configured skip file could not be loaded (missing or unreadable at its resolved path), so scout searched with an EMPTY skip list and previously-skipped issues may reappear in these results. Warn the user prominently before presenting candidates:
⚠️ Skip list could not be loaded — already-skipped issues may reappear. Check
skippedIssuesPath(a relative path resolves against the current directory) or run/ossfrom the directory that contains your skip file. See stderr for the exact resolved path. 1b. Already in progress (#1856): issues under a live implementation claim (kindimplementationin thework listoutput) are fed to scout as skipped, so they never appear here;veton such a URL returnsskipwith the session named. Nothing to do unless the user asks why an issue is missing.
If success: true, each entry in data.candidates has this shape:
{
issue: { repo, repoUrl, number, title, url, labels },
recommendation: "approve" | "skip" | "needs_review",
viabilityScore: number,
grade: { score: number /* 1-10 */, reason: string },
searchPriority: "merged_pr" | "preferred_org" | "starred" | "normal",
reasonsToApprove: string[],
reasonsToSkip: string[],
repoScore?: { score, mergedPRCount, closedWithoutMergeCount, isResponsive, lastMergedAt? },
linkedPR?: { number, state, url, updatedAt?, isStalled },
boostScore?: number, // strategy-biased ranking (#1244)
boostReasons?: string[], // human-readable "why surfaced" lines
diversitySlot?: boolean // filled a diversity slot outside the usual stack
}
Normalize to { repo, number, title, url, labels, source, metadata } where source is derived from searchPriority:
merged_pr → "established-repo" (user has merged or open PRs in this repo)preferred_org → "preferred-org-repo" (repo belongs to a configured preferred org)starred → "starred-repo" (user starred this repo)normal → "trending-repo" (discovered via broad/maintained phases)Present diversitySlot: true candidates normally inside their group with a short "(diversity pick — outside your usual languages/repos)" annotation; the standard skip-file threshold applies during tiering. The counterweight operates at selection time, so no special scoring treatment is needed here.
If data.candidates is empty:
"No matching issues found. Scout's search returned zero candidates — the skip list, exclude list, or filters may be too narrow."
Use AskUserQuestion: "Retry" / "Done for now".
Group candidates by source (omit empty groups):
## Search Results ({totalCount} candidates)
### From Established Repos ({count})
{results with source: 'established-repo'}
### From Preferred Orgs ({count})
{results with source: 'preferred-org-repo'}
### From Starred Repos ({count})
{results with source: 'starred-repo'}
### From Trending Repos ({count})
{results with source: 'trending-repo'}
Set currentRound = searchRoundScores.length + 1.
Use AskUserQuestion:
"Add all to list and vet in parallel":
Add each candidate to the curated list under ## Pending Vet:
### [{owner}/{repo}](https://github.com/{owner}/{repo}) ({stars}★) — {repo description}
- [#{number}]({url}) — {issue title}
- **Pending vet** — Found in search round {currentRound}, not yet vetted.
Dispatch parallel vet agents (up to 5 concurrent):
Task(issue-scout, "Vet this issue: URL: {issue_url}, Source: search-round-{currentRound}.
Check: still open, unassigned, no linked PRs, repo health, complexity.
Return: score (1-10), recommendation (pursue/maybe/skip), red flags.")
Score Threshold Filter: After all vet agents return, filter on a fixed threshold of 6/10.
For each vetted issue:
If any filtered, display:
"Filtered {count} issue(s) below score threshold (6/10)."
List filtered issues briefly:
- owner/repo#123 (score: 4) — Issue title
Append each filtered issue to the skip file. The command reads the configured skipped-issues path itself; never paste a stored path into shell text:
node "${CLAUDE_PLUGIN_ROOT}/packages/core/dist/cli.bundle.cjs" skip-add "{issue_url}" --json
Important: searchRoundScores should use the unfiltered mean (all vetted scores) so diminishing returns detection remains accurate.
Update list entries with results — move each surviving issue into its vet-recommended tier (## Pursue, ## Maybe, ## Skip) using the deterministic CLI helper (#1107):
node "${CLAUDE_PLUGIN_ROOT}/packages/core/dist/cli.bundle.cjs" list-move-tier "{issue_url}" \
--tier {pursue|maybe|skip} \
--json
Leave out --list-path: the command reads the configured issue list path itself, so a stored path is never pasted into shell text.
The command preserves blank lines and sub-bullets between entries, is idempotent (re-running with the same tier is a no-op), and creates the target tier section if it doesn't already exist. It does NOT create list entries: if the issue URL is missing from the list (e.g. step 1 was skipped or wrote a different URL), the command exits non-zero with success: false (#1355) — add the entry under ## Pending Vet first, then re-run the move.
After the move, replace the entry's **Pending vet** sub-bullet with a status line in this exact format, which parse-issue-list reads the score from:
- **<Tier> (N/10)** — {one-line reason}
<Tier> is Pursue, Maybe, or Skip; N is the vet score (decimals like 7.5/10 are fine). If the issue is vetted but blocked on something outside your control (a required label, a one-open-PR rule, a repo policy), put it under a ## Queued (vetted, blocked until a condition clears) section with a ### heading naming the blocker, or write blocked / wait in the bold span, so it is not counted as ready.
Track round scores: searchRoundScores.push(mean of all scores) (unfiltered — includes scores below threshold)
Present summary, then proceed to Diminishing Returns Check
"Pick one to vet now":
issue-scout agent, present resultnode "${CLAUDE_PLUGIN_ROOT}/packages/core/dist/cli.bundle.cjs" skip-add "{issue_url}" --json
searchRoundScores.push(score) → Diminishing Returns Check"Search again": Route back to Run Search (scout's internal state tracks the skip list across rounds; no manual repo-exclusion bookkeeping required here).
After each vet round, if searchRoundScores.length >= 2:
dropPercent = (previousAvg - currentAvg) / previousAvg * 100
Use AskUserQuestion (if availableCount >= 5 and advisory shown, place list option first with "(Recommended)"):
/oss session if applicableWhen the user selects any issue and starts implementing, set:
isNewContribution = trueissueContext = { title, url, description }Before writing code, follow the Branch Setup Protocol in ${CLAUDE_PLUGIN_ROOT}/workflows/work-through-issues.md Step 6 to create the feature branch from the upstream default branch. This activates the draft-first workflow (see Pre-Commit Review in /oss).
Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub costajohnt/oss-autopilot --plugin oss-autopilot9 commands in this plugin
/ossDaily OSS contribution check - uses CLI with --json for structured data/oss-dashboardOpen the interactive OSS Autopilot dashboard in your browser/oss-guidelinesView / edit / reset per-repo contribution guidelines stored from prior extract-learnings runs/oss-helpQuick reference card for OSS Autopilot commands, agents, and workflows/oss-overnightOvernight prepare-and-queue run: check PRs, prepare fix branches in worktrees, write a morning report. Never pushes, posts, or merges./plan-readyRun a review-and-critique convergence loop on an implementation plan BEFORE any code is written — mirrors /pr-ready for the planning phaseOther plugins' commands for the same job