Pin Assignment logo

Pin Assignment

Community
wedsamuel1230
pin-assignment

Use when assigning Arduino, ESP32, ESP32-S3, Pico, or Pico W pins; creating a GPIO map; assigning buttons, LEDs, sensors, buses, or actuators; migrating a pin map; or generating constexpr int declarations. Check the exact board and physical pin constraints before emitting the user's ordered raw declaration format.

Overview

Publisherwedsamuel1230
Repositoryembedded-engineering-skills
Skill namepin-assignment
Stars
29
Forks
1
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by wedsamuel1230 on GitHub. Read the source before you install it.

Installation

Install the Pin Assignment AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/wedsamuel1230/embedded-engineering-skills/tree/main/skills/pin-assignment
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wedsamuel1230/embedded-engineering-skills.git /tmp/embedded-engineering-skills
mkdir -p .claude/skills
cp -r /tmp/embedded-engineering-skills/skills/pin-assignment .claude/skills/pin-assignment
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Pin Assignment in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Pin Assignment on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Pin Assignment is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Pin Assignment

Produce a board-aware pin plan without losing the repository's declaration convention. A logical declaration ID is not automatically a physical GPIO number; keep those layers distinct.

Intake

Record the exact board/revision, MCU/module, framework/core version, toolchain, signal names, direction, voltage, current, pull requirements, bus ownership, boot/debug/USB/radio constraints, and whether the user wants declarations, physical wiring, or both. Resolve the target through ../board-support/SKILL.md first; its resolution_status must be resolved for the requested pin-advice purpose. Load the matching file under ../../references/boards/ before selecting a physical pin. If the board is a bounded family with missing identity fields, stop and request them instead of using a similar profile.

Process

  1. Classify every signal as input, output, analog, PWM, bus, interrupt, boot, debug, USB, flash, PSRAM, or radio related.
  2. Reserve board-specific flash, PSRAM, USB, boot-strapping, debug, and default bus pins unless the exact board documentation approves reuse.
  3. Reject a candidate whose direction, pull capability, voltage, current, ADC, PWM, or protocol behavior does not match the signal.
  4. Keep logical IDs stable and allocate them in the requested fixed order.
  5. If the user requests only declarations, emit only the declarations as plain text. Do not add a code fence, heading, explanation, or trailing comment.
  6. If a physical map is requested, provide it separately and label assumptions and source-backed constraints.

Required declaration convention

For the user's custom output mode, use raw C++ declarations in numeric order:

cpp
constexpr int btn_esc = 101;
constexpr int btn_enter = 102;
constexpr int led_status = 103;

Use the next sequential logical value for each requested signal. These values are stable logical identifiers unless the user explicitly defines them as physical GPIO numbers. Never replace this format with an enum, macro, array, namespace, explanatory wrapper, or reordered declaration list.

Anti-rationalization

ShortcutResponse
"The pin is probably free."Check the exact board reference and active peripherals.
"GPIO34 works for an LED on every ESP32."Reject classic ESP32 input-only GPIO34-39 for outputs; distinguish ESP32-S3 and verify its module table.
"GPIO0 is just another output."Check its strapping role and reset level before assigning it.
"The compile passed."Keep wiring and target behavior unverified.
"I can explain the declarations around the code."In declarations-only mode, output the raw ordered lines only.

Verification

  • Declaration names and values are constexpr int and strictly increasing from the required starting ID.
  • Every physical output avoids input-only, flash/PSRAM, USB, and unapproved strapping pins for the exact board.
  • Voltage/current and pull-up requirements have a source or explicit unknown.
  • Build proof, upload proof, hardware proof, and system proof are reported separately.

Shared output contract

Use the shared Arduino skill contract: state assumptions, required tools and versions, implementation steps, tests/evidence by proof stage, known limitations, and recovery/security notes.

Frequently asked questions

What does the Pin Assignment AI skill do?

Use when assigning Arduino, ESP32, ESP32-S3, Pico, or Pico W pins; creating a GPIO map; assigning buttons, LEDs, sensors, buses, or actuators; migrating a pin map; or generating constexpr int declarations. Check the exact board and physical pin constraints before emitting the user's ordered raw declaration format.

Why use Pin Assignment on TypingMind?

Because you install it once and use it with any model. Pin Assignment is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Pin Assignment in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/wedsamuel1230/embedded-engineering-skills/tree/main/skills/pin-assignment. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Pin Assignment?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Pin Assignment?

As many as you like. As long as a model supports skills, you can use Pin Assignment with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Pin Assignment AI skill free?

Yes. It is published on GitHub by wedsamuel1230 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇