baremetal-startup

baremetal-startup is a skill for Codex from OutlineDriven/outline-driven-development. It costs 57 tokens per session (2,068 once invoked), scanned A, original, Apache-2.0.

A bare-metal firmware guide for the code that runs after a microcontroller resets and before the C program reaches main(). It supports Cortex-M and RISC-V chips without relying on a vendor hardware library.

In plain words
What is it for?
Use it to write or check startup.s, Reset_Handler, or crt0 code, initialize .data and .bss memory, and connect startup code to a linker script.
Why use it?
It helps diagnose or build the low-level startup path, including the reset vector, memory initialization, stack setup, and linker requirements.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to write or check startup.s, Reset_Handler, or crt0 code, initialize .data and .bss memory, and connect startup code to a linker script.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/outlinedriven/outline-driven-development/baremetal-startup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OutlineDriven/outline-driven-development --skill baremetal-startup
Clone the repo
git clone --depth 1 https://github.com/OutlineDriven/outline-driven-development

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for baremetal-startup

README.md
[![agentmods](https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/baremetal-startup/github.svg)](https://agentmods.dev/skills/outlinedriven/outline-driven-development/baremetal-startup)
Your own site
<a href="https://agentmods.dev/skills/outlinedriven/outline-driven-development/baremetal-startup"><img src="https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/baremetal-startup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for baremetal-startup

Your own site · 80×15
<a href="https://agentmods.dev/skills/outlinedriven/outline-driven-development/baremetal-startup"><img src="https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/baremetal-startup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,068 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.02068
Opus 5.5 $0.00023 $0.00827
Sonnet 5.5 $0.00011 $0.00414
Haiku 4.5 $0.00006 $0.00207

Measured 2mo ago against content hash ed16c0b1c227, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

baremetal-startup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.devin/skills/baremetal-startup/SKILL.md · 149 lines

How it starts

The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bare-metal startup

Contract

Field Bound contract
Trigger Firmware never reaches main(), a new MCU is being brought up without a vendor HAL, or a custom startup.s, Reset_Handler, or crt0 is being written or debugged on Cortex-M or RISC-V.
Authority Read-only: emits startup code, linker symbol requirements, and diagnostics to chat; the user places them in the project. Rollback is not needed because no file is written. No remote mutation.
Side effect Chat output only.
Done The startup path from the reset vector to main() is stated step by step, the vector table layout and the .data and .bss loops are given for the target core, and every linker symbol the code uses is listed with the linker script line that defines it.

Inputs

  • Target core (Cortex-M0+, M3, M4F, M7, or RISC-V RV32 or RV64) and the vendor part.
  • The linker script, or at least its MEMORY regions and the symbols it exports.
  • Whether the firmware boots directly from flash or is launched by a bootloader at an offset.
  • Which C runtime is linked (newlib, newlib-nano, none) and whether C++ static constructors exist.

Procedure

  1. State the boot sequence for the core before writing code. On Cortex-M the hardware loads SP from vector 0 and branches to vector 1, Reset_Handler. On RISC-V the core starts at the reset address with sp undefined, so the first instruction sets it. Done when: the sequence is written as an ordered list from power-on to main().

    Cortex-M vector table head:

    Index Entry
    0 Initial stack pointer (_estack)
    1 Reset_Handler
    2 NMI_Handler
    3 HardFault_Handler
    4 and up Fault handlers, then device IRQ handlers in NVIC order
  2. Write the vector table and Reset_Handler for Cortex-M. Copy .data from its load address in flash to its run address in RAM, zero .bss, then call SystemInit and main. Compare addresses with an unsigned branch (bcc), because addresses are unsigned. Done when: the assembly assembles for the target and the three symbol pairs come from the linker script.

Read the full file on GitHub · 149 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 149 lines · 57 tokens per session scan A ed16c0b1c227

Subscribe to this mod's changes

baremetal-startup is a skill published in the GitHub repository OutlineDriven/outline-driven-development (54 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 57 tokens to every session and 2,068 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.

Related

baremetal-startup compared with skills from other repositories

baremetal-startup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
baremetal-startupOutlineDriven/outline-driven-developmentSkill542mo agoApache-2.0A57Codex
gke-ai-troubleshooting-tpu-dynamic-slices-monitoringgoogle/skillsSkill25ktodayApache-2.0A107Claude Code, Codex
doca-flowNVIDIA/skillsSkill4.2k2d agoApache-2.0A224Claude Code
evpn-vxlan-fabricautomateyournetwork/netclawSkill739todayApache-2.0A74Claude Code
platform-device-modelmohitmishra786/low-level-dev-skillsSkill30410d agoMITA57Claude Code, Codex
esp32-pin-auditagodianel/esp32-claude-workbenchSkill8216d agoMITA202Claude Code, Codex
hw-debug-loopvibeic/vibe-icSkill32todayApache-2.0A192Claude Code