agentleFS
MaibornWolffMaibornWolff/acf-research-plan-implement-skills/skills/rpi-research/SKILL.md

rpi-research

Skill9 starsChanged 8 months agoMITView on GitHub

Conduct deep codebase research and produce a written report. Use when the user says "Research ...", "start a research for", "deeply investigate", or "fully understand how X works". Do not use for quick questions or simple code lookups.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. microsoft/hve-core★ 1.5ksame 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.

  • In this repository4 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

40 rules. About 0 are common, 36 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈36

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    DO NOT suggest improvements or changes unless the user explicitly asks for them

    line 11
  2. Distinctive:

    DO NOT perform root cause analysis unless the user explicitly asks for them

    line 12
  3. Distinctive:

    DO NOT propose future enhancements unless the user explicitly asks for them

    line 13
  4. Distinctive:

    DO NOT critique the implementation or identify problems

    line 14
  5. Distinctive:

    DO NOT recommend refactoring, optimization, or architectural changes

    line 15
  6. Distinctive:

    ONLY describe what exists, where it exists, how it works, and how components interact

    line 16
  7. Distinctive:

    If the user already provided a research question or topic alongside this command, proceed directly to step 1 below.

    line 22
  8. Very specific:

    If the user prompts you with an feature request, deny the research with an explanation why and tell him to create a new context with /new …

    line 28
  9. Distinctive:

    If the user mentions specific files or docs, read them FULLY first

    line 34
  10. Distinctive:

    IMPORTANT: Use the Read tool WITHOUT limit/offset parameters to read entire files

    line 35
  11. Distinctive:

    CRITICAL: Read these files yourself in the main context before spawning any sub-tasks

    line 36
  12. Distinctive:

    If you have a todo list, use it to track progress

    line 44
  13. Distinctive:

    Consider which directories, files, or architectural patterns are relevant

    line 45
  14. Distinctive:

    Create multiple Task agents to search for files and identify what's relevant

    line 48
  15. Distinctive:

    If you don't have access to subagents, do the research in your main context

    line 49
  16. Distinctive:

    Search for files related to each research area

    line 52
  17. Distinctive:

    Run multiple agents in parallel when they're searching for different things

    line 55
  18. Distinctive:

    Check the commit hash and timestamp in the document header, you MUST make sure the document is still up-to-date by spawning a subagent with …

    line 58
  19. Distinctive:

    Read the document and understand it if still up to date

    line 59
  20. Distinctive:

    After sub-agents report back, identify the most important files for answering the research question

    line 68
  21. Distinctive:

    Do NOT rely solely on sub-agent summaries for the core findings - sub-agent summaries may miss nuances, connections, or important details

    line 70
  22. Very specific:

    Run python3 <skill_directory>/scripts/metadata.py to get date, commit, branch, and repository info

    line 82
  23. Distinctive:

    Use the metadata gathered in step 5

    line 89
  24. Very specific:

    Ensure the docs/agents/research/ directory exists (create if needed)

    line 90
  25. Distinctive:

    Ask if they have follow-up questions or need clarification

    line 138
  26. Distinctive:

    If the user has follow-up questions, append to the same research document

    line 141
  27. Very specific:

    Add a new section: ## Follow-up Research [timestamp]

    line 142
  28. Distinctive:

    If already have the full context directly answer that question, otherwise spawn new sub-agents as needed for additional investigation.

    line 143
  29. Distinctive:

    Use parallel sub-agents for file discovery and landscape mapping, but read the most important files yourself in the main context

    line 147
  30. Distinctive:

    Document cross-component connections and how systems interact

    line 151
  31. Distinctive:

    If the user gives you a web research task, ONLY read files if relevant for the task.

    line 152
  32. Distinctive:

    REMEMBER: Document what IS, not what SHOULD BE

    line 154
  33. Distinctive:

    NO RECOMMENDATIONS: Only describe the current state of the codebase

    line 155
  34. Distinctive:

    File reading: Always read mentioned files FULLY (no limit/offset) before spawning sub-tasks

    line 156
  35. Distinctive:

    Critical ordering: Follow the numbered steps exactly

    line 157
  36. Distinctive:

    ALWAYS read mentioned files first before spawning sub-tasks (step 1)

    line 158
  37. Distinctive:

    ALWAYS read key files yourself after sub-agents report back (step 4)

    line 159
  38. Distinctive:

    ALWAYS wait for your own reading to complete before synthesizing (step 5)

    line 160
  39. Distinctive:

    ALWAYS gather metadata before writing the document (step 6 before step 7)

    line 161
  40. Distinctive:

    NEVER write the research document with placeholder values

    line 162

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

You are tasked with conducting comprehensive research across the codebase to answer user questions by spawning parallel sub-agents and synthesizing their findings.

CRITICAL: YOUR ONLY JOB IS TO DOCUMENT AND EXPLAIN THE CODEBASE AS IT EXISTS TODAY

  • DO NOT suggest improvements or changes unless the user explicitly asks for them
  • DO NOT perform root cause analysis unless the user explicitly asks for them
  • DO NOT propose future enhancements unless the user explicitly asks for them
  • DO NOT critique the implementation or identify problems
  • DO NOT recommend refactoring, optimization, or architectural changes
  • ONLY describe what exists, where it exists, how it works, and how components interact
  • You are creating a technical map/documentation of the existing system

Initial Setup

If the user already provided a research question or topic alongside this command, proceed directly to step 1 below. Only if no query was given, respond with:

I'm ready to research the codebase. Please provide your research question or area of interest, and I'll analyze it thoroughly by exploring relevant components and connections.

Then wait for the user's research query.

If the user prompts you with an feature request, deny the research with an explanation why and tell him to create a new context with /new and the ask one or more research question. Provide him an relevant example, e.g. /rpi-reseach <question>.

Steps to follow after receiving the research query:

  1. Read any directly mentioned files first:
    • If the user mentions specific files or docs, read them FULLY first
    • IMPORTANT: Use the Read tool WITHOUT limit/offset parameters to read entire files
    • CRITICAL: Read these files yourself in the main context before spawning any sub-tasks
    • This ensures you have full context before decomposing the research
  2. Analyze and decompose the research question:
    • IMPORTANT: Your task is to research not plan. If the user gives you a feature request, ONLY understand existing code related to the feature, NEVER make assumptions are plan out the new feature.
    • Break down the user's query into composable research areas
    • Take time to think deeply about the underlying patterns, connections, and architectural implications the user might be seeking
    • Identify specific components, patterns, or concepts to investigate
    • If you have a todo list, use it to track progress
    • Consider which directories, files, or architectural patterns are relevant
  3. Spawn parallel sub-agents to identify relevant files and map the landscape:
    • Create multiple Task agents to search for files and identify what's relevant
      • If you don't have access to subagents, do the research in your main context
    • Each sub-agent should focus on locating files and reporting back paths and brief summaries - NOT on deeply analyzing code
    • The key is to use these agents for discovery:
      • Search for files related to each research area
      • Identify entry points, key types, important functions and relevant documentation
      • Report back file paths, line numbers, and short descriptions of what each file contains
      • Run multiple agents in parallel when they're searching for different things
      • Remind agents they are documenting, not evaluating or improving
    • If you find an existing research regarding the same or a similar topic
      • Check the commit hash and timestamp in the document header, you MUST make sure the document is still up-to-date by spawning a subagent with the task to check all changes since the document creation
      • Read the document and understand it if still up to date
      • Decide for yourself if you should update the existing document in the following steps or create a new one instead
    • If the user explicitly asks for web research
      • Spawn agents with WebSearch/WebFetch tools or skills (depending what is available)
      • Each agent should focus on one research question
      • The agent should fully answer that question and provide sources for every statement
      • IMPORTANT: If the websearch tool or skill, already acts like a subagent and directly provides the answer, DO NOT spawn subagents, instead use the tool directly
  4. Read the most relevant files yourself in the main context:
    • After sub-agents report back, identify the most important files for answering the research question
    • Read these files yourself using the Read tool - you need them in your own context to write an accurate, detailed research document
    • Do NOT rely solely on sub-agent summaries for the core findings - sub-agent summaries may miss nuances, connections, or important details
    • Prioritize files that are central to the research question; skip peripheral files that sub-agents already summarized adequately
    • This is the step where you build deep understanding - the previous step was just finding what to read
  5. Synthesize findings into a complete picture:
    • Combine your own reading with sub-agent discoveries
    • Connect findings across different components
    • Include specific file paths and line numbers for reference
    • Highlight patterns, connections, and architectural decisions
    • Answer the user's specific questions with concrete evidence
  6. Gather metadata for the research document:
    • Run python3 <skill_directory>/scripts/metadata.py to get date, commit, branch, and repository info
    • Determine the output filename: docs/agents/research/YYYY-MM-DD-description.md
      • description is a brief kebab-case description of the research topic
      • Example: 2025-01-08-authentication-flow.md
      • The output folder (docs/agents/research/) can be overridden by instructions in the project's AGENTS.md or CLAUDE.md
  7. Generate research document:
    • Use the metadata gathered in step 5
    • Ensure the docs/agents/research/ directory exists (create if needed)
    • Structure the document with YAML frontmatter followed by content:
      ---
      date: [ISO date/time from metadata]
      git_commit: [Current commit hash from metadata]
      branch: [Current branch name from metadata]
      topic: "[User's Question/Topic]"
      tags: [research, codebase, relevant-component-names]
      status: complete
      ---
      
      # Research: [User's Question/Topic]
      
      ## Research Question
      [Original user query]
      
      ## Summary
      [High-level documentation of what was found, answering the user's question by describing what exists]
      
      [Render a file tree, giving an overview of the key files, grouped by folder]
      
      [Include ASCII diagrams if helps the reader to understand the discovered concepts]
      
      ## Detailed Findings
      
      ### [Component/Area 1]
      - Description of what exists (file.ext:line)
      - How it connects to other components
      - Current implementation details (without evaluation)
      
      ### [Component/Area 2]
      ...
      
      ## Code References
      - `path/to/file.py:123` - Description of what's there
      - `another/file.ts:45-67` - Description of the code block
      
      ## Architecture Documentation
      [Current patterns, conventions, and design implementations found in the codebase]
      
      ## Open Questions
      [Any areas that need further investigation]
  8. Present findings to the user:
    • Present a concise summary of findings
    • Include key file references for easy navigation
    • Ask if they have follow-up questions or need clarification
  9. Handle follow-up questions:
    • If the user has follow-up questions, append to the same research document
    • Add a new section: ## Follow-up Research [timestamp]
    • If already have the full context directly answer that question, otherwise spawn new sub-agents as needed for additional investigation.
    • Continue updating the document

Important notes:

  • Use parallel sub-agents for file discovery and landscape mapping, but read the most important files yourself in the main context
  • Each sub-agent prompt should be specific and focused on locating files and reporting back paths
  • Focus on finding concrete file paths and line numbers for developer reference
  • Research documents should be self-contained with all necessary context
  • Document cross-component connections and how systems interact
  • If the user gives you a web research task, ONLY read files if relevant for the task. Adapt the document structure dynamically to fit the request.
  • CRITICAL: You and all sub-agents are documentarians, not evaluators
  • REMEMBER: Document what IS, not what SHOULD BE
  • NO RECOMMENDATIONS: Only describe the current state of the codebase
  • File reading: Always read mentioned files FULLY (no limit/offset) before spawning sub-tasks
  • Critical ordering: Follow the numbered steps exactly
    • ALWAYS read mentioned files first before spawning sub-tasks (step 1)
    • ALWAYS read key files yourself after sub-agents report back (step 4)
    • ALWAYS wait for your own reading to complete before synthesizing (step 5)
    • ALWAYS gather metadata before writing the document (step 6 before step 7)
    • NEVER write the research document with placeholder values

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.