agentleFS
nivekuniveku/skill-research-first/skills/research-first/SKILL.md

research-first

Skill0 starsChanged 8 months agoMITView on GitHub

Finds existing tools, libraries, MCPs, templates, datasets, and frameworks before creating anything from scratch. Use when the user asks to build, create, add, implement, write, draft, design, set up, automate, or analyze anything - especially on phrases like "build me a", "I want to create", "add X to my project", "is there a library for", "is there a template for", "how do I implement", "set up Y", "find a dataset for", "write a report/template/strategy/PRD". Runs BEFORE code or content is produced to prevent reinventing the wheel across dev, writing, data, ops, and research tasks.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. ZaxbyHub/opencode-swarm★ 485same name
    2. danielvm-git/bigpowers★ 252same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. About 0 are common, 18 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈18

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before writing a single line of code, drafting a document, or designing a process, find the best existing tools, libraries, templates, …

    line 8
  2. Distinctive:

    If context is clear from the conversation, don't ask - just proceed.

    line 25
  3. Distinctive:

    Run searches in parallel where possible.

    line 29
  4. Distinctive:

    Layer 1 - already connected: if a tool in the current session handles it, use it directly.

    line 33
  5. Distinctive:

    Before building anything non-trivial, check if someone has already built something similar that you can:

    line 41
  6. Distinctive:

    Self-host and adapt: when the hosted version doesn't fit your constraints

    line 44
  7. Distinctive:

    Cross-reference 3+ independent sources: If only one blog promotes it, be skeptical.

    line 79
  8. Distinctive:

    When in doubt, tell the user: If the best source is the product's own site, say so.

    line 82
  9. Distinctive:

    Only now create. Install/adopt the recommended resource instead of reimplementing.

    line 94
  10. Distinctive:

    Not every task warrants the full 5-step workflow.

    line 98
  11. Distinctive:

    Don't skip the search and jump to creating, even if you "know" how.

    line 114
  12. Very specific:

    Don't reimplement a whole product when a similar open-source project already exists.

    line 115
  13. Distinctive:

    Don't recommend abandoned projects (12+ months no commits with open critical issues).

    line 116
  14. Distinctive:

    Don't recommend libraries with unpatched CVEs.

    line 117
  15. Distinctive:

    Don't add heavy frameworks when a utility would do.

    line 118
  16. Distinctive:

    Don't spend more than 2-3 minutes searching for a simple task.

    line 119
  17. Distinctive:

    Don't trust a single "Top 10" blog as your only source - cross-reference.

    line 120
  18. Distinctive:

    Don't apply dev metrics (GitHub stars) to non-dev tasks (document templates).

    line 121
  19. Distinctive:

    Highly custom business logic: search won't help; note it and implement.

    line 126

≈ “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

Research-First Workflow

Before writing a single line of code, drafting a document, or designing a process, find the best existing tools, libraries, templates, frameworks, and resources. A 5-minute search saves hours of work and weeks of maintenance.

The Workflow

Step 1: Understand the task and detect existing context (30 seconds)

Clarify:

  • Core problem or deliverable
  • Constraints (language, framework, budget, timeline, audience, format)
  • What's already available. The best recommendation almost always depends on what already exists.

Load the domain-specific context detection from the matching reference:

  • Dev tasks -> references/dev.md
  • Writing / content tasks -> references/writing.md
  • Data / analysis / ML tasks -> references/data.md
  • Ops / process / infra tasks -> references/ops.md

If context is clear from the conversation, don't ask - just proceed.

Step 2: Search for existing solutions (the core of this skill)

Run searches in parallel where possible. Breadth first, depth on the best candidates.

2a. Check available MCPs, plugins, and skills (skip for pure writing/content tasks):

  • Layer 1 - already connected: if a tool in the current session handles it, use it directly.
  • Layer 2 - registries: search_mcp_registry with 2-3 keyword variations. search_plugins for installable plugins. Check Smithery.ai, mcp.run, Glama.ai.
  • Layer 3 - community: awesome-mcp-servers on GitHub, punkpeye/awesome-mcp-servers, modelcontextprotocol/servers. GitHub Discussions for real-world reports. Reddit and Hacker News for unfiltered opinions.

Forums beat blogs: developers will say "I tried X and it was terrible because..." - blogs rarely do.

2b. Look for similar open-source projects (do this FIRST when the task is "build a product / system / clone / tool").

Before building anything non-trivial, check if someone has already built something similar that you can:

  • Use directly as an open-source alternative to a commercial tool
  • Self-host and adapt when the hosted version doesn't fit your constraints
  • Fork and extend for missing features (flag license compatibility)
  • Learn from as a reference architecture, even if you ultimately build your own

This applies to requests like "build a CRM", "make a Notion clone", "create a job queue", "I want a dashboard tool". Prioritize open-source; include paid alternatives only when clearly the best fit, and flag them explicitly as paid.

Primary searches:

  • "open source {category} github", "self-hosted {product}", "{commercial product} open source alternative"
  • GitHub: topic:{keyword} (browse at github.com/topics/{topic}) and search in:name,description,topics {keyword} stars:>500
  • site:alternativeto.net {product} - filter "Open Source"
  • awesome-selfhosted - canonical self-hostable list (15k+ stars)
  • openalternative.co - curated OSS alternatives to popular SaaS
  • GitHub Trending - what the community is building now

More search patterns and resource lists in references/dev.md.

2c. Web search for tools, libraries, and resources (for the pieces you'll assemble inside your project) - query patterns are domain-specific, see the matching reference file.

2d. Search for reusable patterns and templates - boilerplates, starter repos, document frameworks, analysis notebooks, SOPs. See the domain reference.

Step 3: Evaluate candidates (rigorous validation with bias detection)

For each candidate, verify:

CriteriaWhat to check
ActivityLast commit < 6 months. Issues being addressed.
AdoptionStars > 100 (libs), weekly downloads, used by known projects.
SecurityNo unpatched CVEs. Check snyk.io or socket.dev if in doubt.
LicenseMIT, Apache 2.0, BSD, or similarly permissive. Flag GPL/AGPL.
DocumentationREADME with usage examples. Ideally a docs site.
FitWorks with existing stack. Minimal dependencies. Solves the actual problem.

Anti-bias filter. Many "Top 10" blogs rank their own product #1. Mitigations:

  • Cross-reference 3+ independent sources. If only one blog promotes it, be skeptical.
  • Prioritize objective metrics (stars, downloads, StackOverflow question count) over opinions.
  • Prefer neutral sources: Stack Overflow, GitHub trending, npmtrends.com, Reddit/HN threads, official framework docs.
  • When in doubt, tell the user. If the best source is the product's own site, say so.

Step 4: Present the recommendation

  • Recommended approach: one clear pick with reasoning. Why it fits the existing stack. If a similar open-source project exists, say whether to use it directly, self-host, fork, or just use as reference.
  • What it solves: how it addresses the task.
  • What we still need to build: remaining custom work (if any).
  • Alternatives: 1-2 options with trade-offs. Include similar projects found, commercial alternatives (clearly flagged as paid), and stack-overlap options.
  • Free resources found: anything relevant from free-for.dev or similar.

Step 5: Execute with found resources

Only now create. Install/adopt the recommended resource instead of reimplementing. Reference official docs - don't guess APIs. Document the source (URL comment, citation). Domain-specific execution guidance lives in the matching reference file.

Effort calibration

Not every task warrants the full 5-step workflow.

Task typeSearch depthSkip what
Trivial (rename, typo)Skip entirelyEverything - just do it
Simple, well-known (add .gitignore, format a date)1 min maxMCP layer and forum search
Dev task with a clear library solution3-5 minNon-dev reference files
Build a product / system / clone / tool10-15 minNothing - emphasis on Step 2b (similar projects)
Writing task (report, template)3-5 minMCP layer (2a) entirely
Data / ML task5-10 minSkip MCP unless it's a data pipeline
Complex or ambiguous taskFull workflowNothing - run all layers

A search that takes longer than the task itself is waste.

What NOT to do

  • Don't skip the search and jump to creating, even if you "know" how.
  • Don't reimplement a whole product when a similar open-source project already exists. Check awesome-selfhosted, openalternative.co, and GitHub topics before assembling from scratch.
  • Don't recommend abandoned projects (12+ months no commits with open critical issues).
  • Don't recommend libraries with unpatched CVEs.
  • Don't add heavy frameworks when a utility would do.
  • Don't spend more than 2-3 minutes searching for a simple task.
  • Don't trust a single "Top 10" blog as your only source - cross-reference.
  • Don't apply dev metrics (GitHub stars) to non-dev tasks (document templates).

Edge cases

  • Trivial tasks: skip this workflow entirely.
  • Highly custom business logic: search won't help; note it and implement.
  • User says "write it from scratch": respect that, but briefly mention strong existing options.
  • Offline: fall back to training knowledge, note you couldn't verify recency.
  • Library name confusion (e.g., NextAuth.js -> Auth.js): clarify current name and version.
  • Non-technical user: skip the MCP layer (2a) and focus on templates / frameworks.

Domain reference files

Load only the one(s) relevant to the task to keep context lean:

  • references/dev.md - Dev tasks: context detection, web search patterns, key resource lists (npm trends, PyPI stats, free-for.dev, GitHub Discussions).
  • references/writing.md - Writing and content: Notion, Canva, Google Workspace templates, document frameworks.
  • references/data.md - Data, analysis, and ML: Kaggle, Hugging Face, Papers With Code, public datasets.
  • references/ops.md - Ops, CI/CD, infra, and process: GitHub Actions, Terraform modules, SOP templates.

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.