一键导入
feature-contract
Generate a structured implementation contract before making any code changes to an ESP32 project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate a structured implementation contract before making any code changes to an ESP32 project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Verifies user's board configuration against known hardware limitations like strapping pins, ADC/Wi-Fi conflicts, and input-only pins.
Review ESP32 firmware architecture for RTOS safety, memory management, error handling, and embedded best practices.
Analyze ESP32 Guru Meditation errors and crash dumps to identify root cause and recommend fixes.
Parse and classify ESP32 serial log output to identify errors, warnings, boot issues, and failure patterns.
Audit ESP32 GPIO usage for conflicts, reserved pin violations, and documentation drift.
Generate a structured test plan for ESP32 firmware changes across all testing layers.
| name | feature_contract |
| description | Generate a structured implementation contract before making any code changes to an ESP32 project. |
Generate an implementation contract that must be reviewed and approved before any code changes begin.
Ask or determine:
Document:
Evaluate:
Specify:
Document:
Write the contract to the active mission file or as a standalone document using the template at missions/templates/implementation_contract.md.
# Implementation Contract
## Change Summary
[One-paragraph description]
## Non-Goals
- [What this does NOT include]
## Affected Files
| File | Action | Description |
|------|--------|-------------|
| path/to/file.c | MODIFY | [What changes] |
| path/to/new.h | CREATE | [Purpose] |
## APIs Touched
- `function_name()` — [How it changes]
## Risk Assessment
### Concurrency: [LOW/MED/HIGH]
[Details]
### Peripheral: [LOW/MED/HIGH]
[Details]
### Memory: [LOW/MED/HIGH]
[Details]
## Test Plan
- [ ] [Test case description]
## Rollback Strategy
[Steps to revert]
## Acceptance Criteria
- [ ] [Criterion]