---
name: compliance-planner
description: Plans the certifications and legal obligations a hardware product needs in each target market (FCC, ISED, CE/RED, EN 18031, CRA, UKCA, Anatel, MIC, KC, SRRC, RCM, BIS, Bluetooth SIG, UN 38.3, IEC 62133-2, EU Battery Regulation, IP rating, materials, recording privacy), with cost and lead-time ranges and design levers. Use when the user asks "what certifications do I need", "can I sell this in X", "how much does FCC/CE/Anatel cost", or before routing a PCB or tooling an enclosure.
title: compliance-planner
canonical_url: https://skilld.dev/gh/ctresb/hardware-design-toolkit/compliance-planner
last_updated: 2026-11-12T04:01:29.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [references/design-levers.md](https://skilld.dev/api/skills-raw/ctresb/hardware-design-toolkit/compliance-planner/references/design-levers.md), [references/markets.md](https://skilld.dev/api/skills-raw/ctresb/hardware-design-toolkit/compliance-planner/references/markets.md), [references/rules.json](https://skilld.dev/api/skills-raw/ctresb/hardware-design-toolkit/compliance-planner/references/rules.json), [scripts/compliance_matrix.py](https://skilld.dev/api/skills-raw/ctresb/hardware-design-toolkit/compliance-planner/scripts/compliance_matrix.py), [scripts/test_compliance_matrix.py](https://skilld.dev/api/skills-raw/ctresb/hardware-design-toolkit/compliance-planner/scripts/test_compliance_matrix.py), [templates/compliance.md](https://skilld.dev/api/skills-raw/ctresb/hardware-design-toolkit/compliance-planner/templates/compliance.md), [templates/traits.example.json](https://skilld.dev/api/skills-raw/ctresb/hardware-design-toolkit/compliance-planner/templates/traits.example.json).
>
> If the user asked to install this Skill, run `npx skilld install ctresb/hardware-design-toolkit/compliance-planner`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/compliance-planner`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/ctresb/hardware-design-toolkit/compliance-planner) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/compliance-planner`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/compliance-planner --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/compliance-planner --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Compliance planner

Find out what the product must pass before it can be sold in each market. Find out what it costs and how long it takes. Find out which design decisions make it cheaper. Write the result to `hw/compliance.md`.

Talk to the user in the user's language. Files are in English unless the user's project uses another language.

This is a **planning aid, not legal advice**. Say so once in the output, and do not repeat it in every paragraph. Never present a fee, date or rule as confirmed unless you read it in a primary source during this session.

## Inputs

| File | What you take from it |
|---|---|
| `hw/brief.md` | target markets, launch order, quantities, who the users are (children?), where the product is used |
| `hw/architecture.md` | radios, frequencies, TX power, internet connectivity, firmware updates |
| `hw/bom.csv` | radio module or chip-down, battery chemistry, membranes, plated parts that touch skin |
| `hw/power/` | battery chemistry, capacity, Wh, removable or not, charger |
| `hw/mech/` | IP claim, openings, how the enclosure is sealed, skin-contact materials |

If a trait is missing, ask the user only when it changes the result: markets, radios, battery type, body-worn use, recording. Otherwise assume the stricter case and tag it `[assumption]`.

## Outputs

- `hw/compliance/traits.json`: product traits (format in `templates/traits.example.json`).
- `hw/compliance/matrix.md`: generated by `scripts/compliance_matrix.py`.
- `hw/compliance.md`: the plan, built from `templates/compliance.md`.
- Entries in `hw/decisions.md` for each design lever the user accepts.
- Entries in `hw/state.json` → `open_questions` for items that other skills own. Examples: TX cap → firmware, battery door → `enclosure-engineer`, UN 38.3 in the cell contract → `battery-and-power`.

## Procedure

1. **Collect the traits.** Fill `hw/compliance/traits.json` from the inputs. Use the market codes `US CA EU UK BR JP KR CN AU IN`. List the radios as `ble`, `bt_classic`, `wifi`, `nfc`, `gnss`, `lte`, `subghz`, `lora`, `zigbee`, `thread` or `uwb`. Set `product_category`, for example `item_finder` or `wearable`: item finders trigger the unwanted-tracking (DULT) rule.

2. **Run the matrix:**

   ```
   python3 ${CLAUDE_SKILL_DIR}/scripts/compliance_matrix.py --traits hw/compliance/traits.json --out hw/compliance/matrix.md --show-skipped
   ```

   Test the script with `python3 ${CLAUDE_SKILL_DIR}/scripts/test_compliance_matrix.py`.

   The rules live in `references/rules.json`. Each rule has conditions, a cost range, a lead time, an evidence level and design levers.
   - **Project-local rules:** if the product has a trait that no rule covers, research it and write the rule in `hw/compliance/rules.local.json`, with the same schema. The script loads that file automatically from next to the traits file, or from `--local-rules <file>`. It merges the rules by `id`: a known id replaces the toolkit rule, `"disabled": true` removes it, and a new id is added. The matrix names every local change. Propose generic rules upstream to `references/rules.json`.
   - **Battery chemistry:** `battery.chemistry` can be a list when a cell is two things at once, for example `["coin-cell", "li-primary"]` for a CR2032.
   - **Totals:** a market's rows list everything that market requires, so shared requirements (RoHS, RF exposure, coin-cell clauses) appear in several markets. Budget with the bold **Total, all target markets (each row once)**. Do not add the market rows together.

3. **Read the "Read first" block.** It lists:
   - **BLOCKING** rows, for example no sale in Brazil before homologation;
   - **CRITICAL PATH** rows, for example UN 38.3 of a custom cell;
   - **DESIGN RISK** rows, for example EU battery removability with a glued enclosure.

   Report each of these to the user in plain words.

4. **Verify what matters most.** Pick the three to five rows with the highest cost or schedule impact. Try to read the primary source:
   - the regulator's page or the official journal (eur-lex, fcc.gov/KDB, gov.br/anatel);
   - the program's fee page (bluetooth.com).

   Change a row's tag to `[verified: …, date]` only when you read it. If a portal blocks you (CAPTCHA, 403), write that down and leave the row as an estimate.

5. **Apply the design levers.** For each lever in `references/design-levers.md` that fits the product, state the saving and the trade-off:
   - module or chip-down radio;
   - TX power cap;
   - number of openings;
   - battery door or exception;
   - no mains adapter;
   - catalogue or custom cell;
   - cybersecurity from day one;
   - hardware recording indicator.

   Recommend one option for each, and log the user's decision.

6. **Write `hw/compliance.md`.** Use the template. The answer comes first: can it be sold, what blocks it, what to change, the budget and the longest path. Then give per-market detail, the levers, the schedule hooks for `prototype-roadmap`, what was verified, the RFQs to send and the open questions.

7. **Hand off.**
   - `cost-and-sourcing` takes the certification NRE (low and high).
   - `prototype-roadmap` takes the schedule hooks.
   - `doability-review` takes the blocking items and design risks.

## Gate

The compliance stage passes when:

- every target market has a matrix section, and no market is "unknown";
- every BLOCKING and DESIGN RISK item has an owner and a decision, or an open question in `hw/state.json`;
- the certification budget (low and high) and its lead times are in `hw/compliance.md`, with evidence tags;
- the RFQ list names at least two labs or certification bodies for the main market.

## Taste and pitfalls

- **Launching "just a small batch" before certification.** A launch batch of 100 units is still a sale. In markets like Brazil, radio products without homologation cannot be sold, and customs can hold them. Plan a pre-sale with delivery after certification.
- **A custom cell inherits nothing.** The vendor's catalogue cells may have UN 38.3 and IEC 62133-2, but a new shape is a new model. Its reports sit on the critical path before air shipping and before certification samples travel.
- **The 3D model is not the certified product.** Radio tests run on final hardware with final RF firmware settings. Antenna tuning inside the real enclosure, on a body, comes first.
- **"Uses a certified module" does not mean "no certification".** The end product still needs EMC, a declaration, labels, often its own certificate (Brazil) and sometimes RF exposure.
- **A sealed, glued enclosure can be illegal in the EU from 2027-02-18** unless an exception applies. Settle this before tooling.
- **Plated parts on skin.** Nickel-plated magnets, contacts or clasps that touch skin trigger nickel-release limits. Keep them inside, or choose another finish.
- **Membranes and PFAS.** ePTFE vents and acoustic membranes are fluoropolymers. Qualify a PFAS-free alternative early.
- **Bluetooth costs USD 11.5–12k per product even with a qualified chip** `[verified: bluetooth.com, 2026-11-08]`. First-time hardware teams often miss this.
- **Use only established labs and certification bodies.** Never recommend unknown "certificate agents".
- **Write numbers once.** The matrix holds the rows. `hw/compliance.md` holds the decisions and the summary, and refers to the matrix instead of copying it.

## References

- `references/rules.json`: the rule data used by the script. Update it when you verify a rule.
- `references/markets.md`: how each market's process works (applicant, labs, labels, typical timing). Read it when you write the per-market section.
- `references/design-levers.md`: decisions that remove tests or shorten the schedule. Read it in step 5.
- `templates/traits.example.json`: traits for a fictional BLE fitness band.
- `templates/compliance.md`: the output template.
