agentleFS
agodianelagodianel/esp32-claude-workbench/.claude/skills/repo_scout/SKILL.md

repo_scout

Skill79 starsChanged 8 months agoMITView on GitHub

Scan and understand an ESP-IDF project structure, identifying components, dependencies, and architecture patterns.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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. Distinctive:

    Before writing an implementation contract.

    line 13
  2. Distinctive:

    When you need to understand dependencies between components.

    line 14
  3. Very specific:

    Check for CMakeLists.txt at root → ESP-IDF CMake project

    line 21
  4. Very specific:

    Check for platformio.ini → PlatformIO project

    line 22
  5. Very specific:

    Check for Makefile with PROJECT_NAME → Legacy ESP-IDF Make project

    line 23
  6. Distinctive:

    Search for FreeRTOS task creation:

    line 48
  7. Distinctive:

    Write the scout report to the active mission file or print it in a structured markdown block.

    line 80

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

Repo Scout

Scan an ESP-IDF project to understand its structure, components, and patterns before making changes.

When to Use

  • Starting work on an unfamiliar project.
  • Before writing an implementation contract.
  • When you need to understand dependencies between components.

Steps

1. Identify Project Type

Determine the build system:

  • Check for CMakeLists.txt at root → ESP-IDF CMake project
  • Check for platformio.ini → PlatformIO project
  • Check for Makefile with PROJECT_NAME → Legacy ESP-IDF Make project

2. Map the Component Structure

find . -name "CMakeLists.txt" -not -path "./build/*" | head -20
find . -name "component.mk" -not -path "./build/*" | head -20

For each component directory, note:

  • Component name
  • Public headers (in include/)
  • Dependencies (from CMakeLists.txt REQUIRES and PRIV_REQUIRES)
  • Whether it has tests (check for test/ subdirectory)

3. Identify Hardware Configuration

Look for:

  • sdkconfig.defaults — default Kconfig settings
  • sdkconfig — current build configuration
  • Pin definitions — search for GPIO_NUM_, #define.*PIN, #define.*GPIO
  • Peripheral usage — search for i2c_, spi_, uart_, ledc_, adc_, wifi_, ble_

4. Map Task Architecture

Search for FreeRTOS task creation:

grep -rn "xTaskCreate\|xTaskCreatePinnedToCore" --include="*.c" --include="*.h"

Document:

  • Task names
  • Stack sizes
  • Priorities
  • Core affinity (if pinned)

5. Identify External Dependencies

Check:

  • idf_component.yml — ESP Component Registry dependencies
  • managed_components/ — downloaded components
  • Git submodules — .gitmodules
  • Direct source vendoring — third_party/ or lib/

6. Generate Scout Report

Produce a summary with:

  • Project type: ESP-IDF version, build system
  • Components: list with brief purpose
  • Hardware dependencies: pins, peripherals, communication protocols
  • Task map: FreeRTOS tasks with parameters
  • External dependencies: libraries and components
  • Test coverage: which components have tests
  • Risks: anything unusual or potentially problematic

Output Format

Write the scout report to the active mission file or print it in a structured markdown block.

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.