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
In this repository6 other files it gives its agents.
- analyzing-claude-sessionsSkill
- bound-live-debuggingSkill
- commit-styleSkill
- creating-a-new-projectSkill
- doing-creative-workSkill
- organizing-pr-feedbackSkill
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
- Distinctive: line 18
Search for source code across repositories, then read implementations directly.
- Distinctive: line 20
Search code with targeted queries scoped by repo, language, and path
- Distinctive: line 21
Read 2-3 of the most relevant source files
- Distinctive: line 46
Search issues and PRs in the project for the feature/decision
- Distinctive: line 47
Read key issues to find debate and rationale
- Distinctive: line 48
Check blog posts or release notes for additional context
- Distinctive: line 99
Search for related issues/bugs that reveal edge cases
- Distinctive: line 100
Look up external documentation for underlying APIs or protocols
- Very specific: line 133
Start with repo: or org: scoping to reduce noise
- Very specific: line 134
Use symbol: to find definitions, not just references
≈ “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.
Files
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.
- Search code with targeted queries scoped by repo, language, and path
- Read 2-3 of the most relevant source files
- 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.
- Search issues and PRs in the project for the feature/decision
- Read key issues to find debate and rationale
- 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.
- Web search for blog posts, release notes, and changelogs
- Supplement with releases and specific PRs for dates and details
- 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.
- Find and read the key source files
- Search for related issues/bugs that reveal edge cases
- 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
| Syntax | Example | What it does |
"exact phrase" | "exponential backoff" | Exact string match |
/regex/ | /Math\.pow.*retry/ | Regular expression |
language: | language:typescript | Filter by language |
path: | path:src NOT path:test | Filter by file path |
symbol: | symbol:exponentialBackoff | Find definitions only |
repo: | repo:vercel/next.js | Scope to one repo |
org: | org:microsoft | Scope to an organization |
NOT | NOT path:node_modules | Exclude results |
OR | (language:ts OR language:js) | Boolean or |
Tips:
- Start with
repo:ororg:scoping to reduce noise - Use
symbol:to find definitions, not just references path:src NOT path:test NOT path:vendoreliminates most noise"exact phrase"beats vague keywords for precision- Combine multiple filters:
symbol:fetchWithRetry language:typescript repo:org/repo
Common Mistakes
| Mistake | Fix |
| Using only web search for code questions | Code search finds actual implementations; web search finds descriptions |
| Using only GitHub tools for "why" questions | Blog posts and release notes explain reasoning better than raw PR lists |
| Vague keyword searches | Use symbol:, "exact phrase", or /regex/ for precision |
| Not filtering by path | NOT path:test NOT path:vendor dramatically reduces noise |
| Searching one repo when the impl is in a dependency | Check package.json/Cargo.toml for where the real implementation lives |
Giving up when a file isn't on main | get_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 lookup | path_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 |
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
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.

