agentleFS
karashiirokarashiiro/agent-skills/investigating-open-source-projects/SKILL.md

investigating-open-source-projects

Skill2 starsChanged 9 months agoUnlicenseView on GitHub

Use when investigating how external or open-source projects implement features, make design decisions, or evolve over time — guides research strategies across code, issues, and documentation

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search for source code across repositories, then read implementations directly.

    line 18
  2. Distinctive:

    Search code with targeted queries scoped by repo, language, and path

    line 20
  3. Distinctive:

    Read 2-3 of the most relevant source files

    line 21
  4. Distinctive:

    Search issues and PRs in the project for the feature/decision

    line 46
  5. Distinctive:

    Read key issues to find debate and rationale

    line 47
  6. Distinctive:

    Check blog posts or release notes for additional context

    line 48
  7. Distinctive:

    Search for related issues/bugs that reveal edge cases

    line 99
  8. Distinctive:

    Look up external documentation for underlying APIs or protocols

    line 100
  9. Very specific:

    Start with repo: or org: scoping to reduce noise

    line 133
  10. Very specific:

    Use symbol: to find definitions, not just references

    line 134

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Investigating Open-Source Projects

Overview

Choose a research strategy based on the type of question. Different question types benefit from different tool combinations. GitHub's structured API tools excel at code-level and issue-level investigation; web search excels at finding blogs, release announcements, and ecosystem context.

Research Patterns

Implementation Discovery

Trigger: "How does X implement Y?" / "What patterns do libraries use for Z?"

Search for source code across repositories, then read implementations directly.

  1. Search code with targeted queries scoped by repo, language, and path
  2. Read 2-3 of the most relevant source files
  3. Compare patterns across implementations
-- Find implementations
local results = github.search_code({
  query = 'symbol:retryWithBackoff language:typescript path:src NOT path:test'
}):await()

-- Read a file from results
local file = github.get_file_contents({
  owner = "some-org", repo = "some-repo", path = "src/retry.ts"
}):await()

result({ search = results, file = file })

Best for: finding how multiple projects solve the same problem. Especially strong for obscure libraries with sparse documentation — code search finds implementations that web search cannot.

Decision Archaeology

Trigger: "Why did project X choose Y over Z?" / "What alternatives were considered?"

Reasoning lives in issue discussions, PR comments, and blog posts. Search for the discussion, not the code.

  1. Search issues and PRs in the project for the feature/decision
  2. Read key issues to find debate and rationale
  3. Check blog posts or release notes for additional context
-- Find relevant issues
local issues = github.search_issues({
  query = 'repo:prisma/prisma "json filtering" is:issue'
}):await()

-- Read an issue with comments
local detail = github.issue_read({
  owner = "prisma", repo = "prisma", issueNumber = 2444
}):await()

result({ issues = issues, detail = detail })

Best when combined with web search for blog posts and release announcements that explain the "why" in the team's own words.

Evolution Tracking

Trigger: "How has X changed over time?" / "What's the history of feature Y?"

Evolution narratives are told in blog posts, release announcements, and changelogs. Start with web search, supplement with GitHub for precision.

  1. Web search for blog posts, release notes, and changelogs
  2. Supplement with releases and specific PRs for dates and details
  3. Reconstruct timeline from multiple sources
-- List releases to identify version milestones
local releases = github.list_releases({
  owner = "vercel", repo = "next.js", perPage = 20
}):await()

-- Read a specific PR for detail
local pr = github.pull_request_read({
  owner = "vercel", repo = "next.js", pullNumber = 59447
}):await()

result({ releases = releases, pr = pr })

Web search is the primary tool here — teams write blog posts about major changes. Use GitHub tools to fill in precise dates, PR numbers, and technical details.

Deep Dive

Trigger: "How does X work internally?" / "What's the mechanism behind Y?"

Understanding internals requires reading source code AND the concepts behind it.

  1. Find and read the key source files
  2. Search for related issues/bugs that reveal edge cases
  3. Look up external documentation for underlying APIs or protocols
-- Find core implementation files
local code = github.search_code({
  query = 'repo:ceifa/wasmoon "lua_yieldk" language:typescript path:src'
}):await()

-- Find related bug reports
local bugs = github.search_issues({
  query = 'repo:ceifa/wasmoon await coroutine is:issue'
}):await()

result({ code = code, bugs = bugs })

Combine GitHub tools for code and issues with web search for external API/protocol documentation.

GitHub Search Quick Reference

SyntaxExampleWhat it does
"exact phrase""exponential backoff"Exact string match
/regex//Math\.pow.*retry/Regular expression
language:language:typescriptFilter by language
path:path:src NOT path:testFilter by file path
symbol:symbol:exponentialBackoffFind definitions only
repo:repo:vercel/next.jsScope to one repo
org:org:microsoftScope to an organization
NOTNOT path:node_modulesExclude results
OR(language:ts OR language:js)Boolean or

Tips:

  • Start with repo: or org: scoping to reduce noise
  • Use symbol: to find definitions, not just references
  • path:src NOT path:test NOT path:vendor eliminates most noise
  • "exact phrase" beats vague keywords for precision
  • Combine multiple filters: symbol:fetchWithRetry language:typescript repo:org/repo

Common Mistakes

MistakeFix
Using only web search for code questionsCode search finds actual implementations; web search finds descriptions
Using only GitHub tools for "why" questionsBlog posts and release notes explain reasoning better than raw PR lists
Vague keyword searchesUse symbol:, "exact phrase", or /regex/ for precision
Not filtering by pathNOT path:test NOT path:vendor dramatically reduces noise
Searching one repo when the impl is in a dependencyCheck package.json/Cargo.toml for where the real implementation lives
Giving up when a file isn't on mainget_file_contents handles branch resolution; or use get_repository_tree to discover the default branch
Using path_filter in get_repository_tree like a deep path lookuppath_filter is a prefix filter on entries at the current tree level, not a recursive path navigator. To reach packages/effect/src, walk the tree by SHA: get root → extract packages SHA → extract effect SHA → extract src SHA

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.