一键导入
credential-setup
Standardize credential handling for an ESP32 project (credentials.h.example, .gitignore, pre-commit protection)
菜单
Standardize credential handling for an ESP32 project (credentials.h.example, .gitignore, pre-commit protection)
Set up ESP-IDF development environment, create new projects, and verify configuration
Generate a CLAUDE.md for a project with build commands, hardware constraints, architecture, and development tasks
Audit project completeness against the monorepo standard checklist (docs, config, registration)
Generate a standardized README.md for an ESP32 project by analyzing source code, justfile, and hardware configuration
Register a project in the monorepo — justfile mod, CI matrix, standard file inventory
Audit sdkconfig.defaults by inferring needed settings from source code analysis
| name | credential-setup |
| description | Standardize credential handling for an ESP32 project (credentials.h.example, .gitignore, pre-commit protection) |
| argument-hint | <project-path> |
| user-invocable | true |
| allowed-tools | Read, Write, Edit, Grep, Glob |
Standardize credential handling for the project at $1 (relative path under packages/<domain>/).
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
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"
CMakeLists.txt vs .yaml config#include "credentials.h" or #include "secrets.h" or #include "wifi_config.h"WIFI_SSID, WIFI_PASSWORD, API_KEY, etc..example file exist?wifi_config.h / wifi_config_example.h → rename to credentials.h / credentials.h.examplesecrets.h / secrets.h.example → rename to credentials.h / credentials.h.example#include statements in source to match.gitignore covers credentials.h and secrets.yaml.pre-commit-config.yaml blocks credential files| Current File | Standard Name | Action |
|---|---|---|
wifi_config.h | credentials.h | Rename, update includes |
wifi_config_example.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 |
Report what was found and what was changed: