laurigates/mcu-tinkering-lab

credential-setup

Standardize credential handling for an ESP32 project (credentials.h.example, .gitignore, pre-commit protection)

First seen Apr 27, 2026

Installation

$ npx skills add laurigates/mcu-tinkering-lab --skill credential-setup

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from laurigates/mcu-tinkering-lab · top by installs.

npx skills add laurigates/mcu-tinkering-lab

Browse all from laurigates/mcu-tinkering-lab

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 7
License LICENSE
Default branch main
Open issues 38
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsRead, Write, Edit, Grep, Glob

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,818 B
  • docs SUMMARY.md 135 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 13 installs

SKILL.md

Task

Standardize credential handling for the project at $1 (relative path under packages/<domain>/).

Standard Patterns

ESP-IDF Projects

Use credentials.h + credentials.h.example:

// credentials.h.example — Template for project credentials
// Copy to credentials.h and fill in your values:
//   cp credentials.h.example credentials.h

#ifndef CREDENTIALS_H
#define CREDENTIALS_H

// WiFi Configuration
#define WIFI_SSID "your-wifi-ssid"
#define WIFI_PASSWORD "your-wifi-password"

// API Keys (uncomment and fill in as needed)
// #define API_KEY "your-api-key"

#endif // CREDENTIALS_H

ESPHome Projects

Use secrets.yaml + secrets.yaml.example:

# secrets.yaml.example — Template for project secrets
# Copy to secrets.yaml and fill in your values:
#   cp secrets.yaml.example secrets.yaml

wifi_ssid: "your-wifi-ssid"
wifi_password: "your-wifi-password"
api_encryption_key: "generate-with-esphome"
ota_password: "your-ota-password"

Process

  1. Detect project type (ESP-IDF or ESPHome) by checking for CMakeLists.txt vs .yaml config
  2. Scan source for credential usage:

- #include "credentials.h" or #include "secrets.h" or #include "wificonfig.h" - WIFISSID, WIFIPASSWORD, APIKEY, etc.

  1. Check current state:

- Does a .example file exist? - Is the credential file gitignored? - Are pre-commit hooks protecting it?

  1. Fix non-conforming patterns:

- wificonfig.h / wificonfig_example.h → rename to credentials.h / credentials.h.example - secrets.h / secrets.h.example → rename to credentials.h / credentials.h.example - Update #include statements in source to match

  1. Ensure protection:

- Verify .gitignore covers credentials.h and secrets.yaml - Verify root .pre-commit-config.yaml blocks credential files

Migration Table

Current File Standard Name Action
wifi_config.h credentials.h Rename, update includes
wificonfigexample.h credentials.h.example Rename
secrets.h credentials.h Rename, update includes
secrets.h.example credentials.h.example Rename
credentials.h.template credentials.h.example Rename
credentials.h.example (already correct) No action

Output

Report what was found and what was changed:

  • Current credential pattern detected
  • Files renamed/created
  • .gitignore status
  • Pre-commit protection status
  • Source files updated (if includes were changed)