Bfd project init

From Sonder4/STM32-BFD-Kit · View interactive version

Bfd project init is an AI agent skill from the GitHub repository Sonder4/STM32-BFD-Kit. Use when preparing an STM32 project for debug/flash/RTT workflows by scanning ioc/startup/linker/svd/cfg files, generating a unified profile, and optionally creating missing baseline files.

How to use this skill

Skill file

BFD Project Init

Self-Improvement Loop (Required)

Use this skill to generate one canonical STM32 runtime profile consumed by all debug/flash/RTT skills.

Quick Start

  1. Run the profile scan.
  2. Check blockers and warnings.
  3. Re-run with --mode apply --apply only when missing baseline files must be created.

Core Commands

# Canonical profile refresh
python3 ./.codex/skills/bfd-project-init/scripts/bootstrap.py \
  --project-root . \
  --mode check \
  --out-json .codex/bfd/active_profile.json \
  --out-env .codex/bfd/active_profile.env \
  --report .codex/bfd/bootstrap_report.md
# Auto-init / freshness check for downstream scripts
python3 ./.codex/skills/bfd-project-init/scripts/ensure_profile.py \
  --project-root . \
  --print-env-path
# Safe autofix (explicit apply required)
python3 ./.codex/skills/bfd-project-init/scripts/bootstrap.py \
  --project-root . \
  --mode apply \
  --apply

Workflow

  1. Parse .ioc and detect MCU family/device.
  2. Locate startup/linker/svd/cfg/build artifacts.
  3. Export IOC JSON into .codex/bfd/ioc_json/.
  4. Emit canonical profile JSON/env into .codex/bfd/.
  5. Mirror profile outputs into legacy .codex/stm32/bootstrap/ for compatibility.
  6. Fail on blockers; keep warnings as evidence.

Hard Rules

Outputs

Scripts

References

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.