How iot-agent/iot-skillsbench works
This repository provides an LLM agent that turns embedded/IoT requirements into framework-specific code and project artifacts, alongside a multi-board, multi-peripheral benchmark. The primary path is task submission, configuration, skill selection and optional Arduino pin mapping, code generation, artifact assembly, then disk persistence. Batch execution supports repeated benchmark runs; human-expert and LLM-generated skills provide distinct knowledge sets. The excerpts show the graph and key node behaviors, but not every implementation detail or the hardware-validation path, so unverified relationships are omitted.
Main entry points: graph.py Workflow Graph · nodes.py Code Generator · run_task_single.py Single Task Runner · batch_run.py Batch Runner
Components 21
Task Entry
- Single Task Runner
scripts/run_task_single.py - Batch Runner
scripts/batch_run.py - Runtime Config
src/config.py
Agent Workflow
- Workflow Graph
src/graph.py - Agent State
src/state.py - Planner and Selector
src/nodes.py - Pin Mapper
src/nodes.py - Workspace Preparation
src/nodes.py - Code Generator
src/nodes.py - Diagram Branch
src/nodes.py - Artifact Assembler
src/nodes.py
Skills Knowledge
- Skill Registry
src/loader.py - Expert Skills
skills-human-expert - Generated Skills
skills-llm-generated
Benchmark Evaluation
- Benchmark Tasks
tasks - Arduino Compile Retry
scripts/auto_test.py
Generated Results
- Artifact Persistence
src/nodes.py - Generated Project
Other components
- Task Author
- LLM Provider
- Physical Hardware
Connections 26
- Task Author → Single Task Runner: submits task
README.md - Benchmark Tasks → Batch Runner: supplies tasks
README.md - Single Task Runner → Runtime Config: loads settings
scripts/run_task_single.py - Batch Runner → Runtime Config: loads settings
scripts/batch_run.py - Single Task Runner → Workflow Graph: builds and runs
scripts/run_task_single.py - Batch Runner → Workflow Graph: builds and runs
scripts/batch_run.py - Workflow Graph → Planner and Selector: dispatches
src/graph.py - Workflow Graph → Pin Mapper: dispatches
src/graph.py - Workflow Graph → Workspace Preparation: dispatches
src/graph.py - Workflow Graph → Code Generator: dispatches
src/graph.py - Workflow Graph → Diagram Branch: optionally dispatches
src/graph.py - Workflow Graph → Artifact Assembler: dispatches
src/graph.py - Workflow Graph → Artifact Persistence: dispatches
src/graph.py - Workflow Graph → Agent State: uses schema
src/graph.py - Planner and Selector → Skill Registry: loads skills
src/nodes.py - Skill Registry → Expert Skills: scans configured set
README.md - Skill Registry → Generated Skills: scans configured set
README.md - Planner and Selector → LLM Provider: plans task
- Pin Mapper → Code Generator: provides pin notes
src/graph.py - Workspace Preparation → Code Generator: prepares code path
src/graph.py - Code Generator → LLM Provider: generates code
src/nodes.py - Diagram Branch → Artifact Assembler: provides diagram
src/graph.py - Code Generator → Artifact Assembler: provides code
src/graph.py - Artifact Assembler → Artifact Persistence: provides artifacts
src/graph.py - Artifact Persistence → Generated Project: writes files
src/nodes.py - Arduino Compile Retry → Physical Hardware: validates on hardware