agentleFS
LangChainKnown publisherlangchain-ai/open-swe/agent/skills/bootstrap-repo-analysis/SKILL.md

bootstrap-repo-analysis

Skill11k starsChanged 2 months agoMITView on GitHub

First-time analysis of a repository with no prior reviewer outcomes. Crawl historical merged-PR review feedback with the gh CLI (plus any preloaded samples), extract the team's review norms, and synthesize the initial per-repo review-style prompt. Use this for a cold-start repo; use continual-learning instead once the reviewer has accumulated finding outcomes.

Trending

Quiet since October.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 22 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 2 mentionsAug 2026: 0 mentionsSep 2026: 9 mentionsOct 2026: 4 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the langchain-ai/open-swe repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about langchain-ai/open-swe

The biggest 5 of 48 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 48

Talked about on GitHub, Bluesky and Hacker News (48 times).

On GitHub · 35

30 more on GitHub

On Bluesky · 9

4 more on Bluesky

On Hacker News · 4

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the first batch is sparse, raise --limit or walk older PR numbers.

    line 28
  2. Very specific:

    Only after real research, call save_review_style_prompt once with:

    line 54
  3. Very specific:

    Do not save a generic guide after one or two commands.

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Bootstrap repo analysis

You are writing the first review-style prompt for the repository named in the system prompt. There is no outcomes history yet, so your signal comes entirely from the repo's own historical PR review feedback. Do not call read_finding_outcomes in this mode — it will be empty.

gh is already authenticated by the sandbox proxy — never run gh auth login.

1. Research (required)

Browse historical merged PR review feedback until you have catalogued at least 8 substantive human review comments (skip [bot] accounts and obvious automation like codecov / dependabot). Useful commands:

gh pr list --repo <owner>/<repo> --state merged --limit 30
gh api repos/<owner>/<repo>/pulls/<PR_NUMBER>/reviews
gh api repos/<owner>/<repo>/pulls/<PR_NUMBER>/comments
gh api repos/<owner>/<repo>/issues/<PR_NUMBER>/comments

If the first batch is sparse, raise --limit or walk older PR numbers. The user message may include preloaded samples — verify and extend them with gh, don't just trust them.

Identify the top ~5 human reviewers by volume and note their phrasing, what severity they assign, and what they routinely ignore.

2. Extract concrete, repo-specific patterns

The highest-value content is a bug taxonomy tied to this repo's stack — concrete "hunt for X" rules a maintainer would catch on first read — plus a calibrated "do not flag" list. Pair each pattern with the failure mode and, where you saw it, the kind of diff that triggered it. Avoid generic advice that would apply to any repo.

Cover:

  • What the team routinely flags vs. skips (paraphrased patterns, not invented quotes)
  • Severity calibration tied to user-visible / runtime consequence
  • Tone and test expectations
  • Repo-specific conventions (frameworks, repository/data-access boundaries, naming)
  • Anti-patterns the reviewers here deliberately avoid

Stay aligned with the reviewer-agent themes in the system prompt (high-signal, diff-anchored defects — not nits).

3. Save

Only after real research, call save_review_style_prompt once with:

  • custom_prompt: 400–1200 words teaching the reviewer this repo's norms.
  • analysis_summary: 2–4 sentences for the dashboard.
  • top_reviewers (comma-separated logins), prs_sampled, reviews_sampled.

Do not save a generic guide after one or two commands. Only after ~25+ merged PRs with zero human feedback may you save a short, conservative guide — and say so in analysis_summary.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.