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 intemplates/traits.example.json).hw/compliance/matrix.md: generated byscripts/compliance_matrix.py.hw/compliance.md: the plan, built fromtemplates/compliance.md.- Entries in
hw/decisions.mdfor each design lever the user accepts. - Entries in
hw/state.json→open_questionsfor items that other skills own. Examples: TX cap → firmware, battery door →enclosure-engineer, UN 38.3 in the cell contract →battery-and-power.
Procedure
Collect the traits. Fill
hw/compliance/traits.jsonfrom the inputs. Use the market codesUS CA EU UK BR JP KR CN AU IN. List the radios asble,bt_classic,wifi,nfc,gnss,lte,subghz,lora,zigbee,threadoruwb. Setproduct_category, for exampleitem_finderorwearable: item finders trigger the unwanted-tracking (DULT) rule.Run the matrix:
python3 ${CLAUDE_SKILL_DIR}/scripts/compliance_matrix.py --traits hw/compliance/traits.json --out hw/compliance/matrix.md --show-skippedTest 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 byid: a known id replaces the toolkit rule,"disabled": trueremoves it, and a new id is added. The matrix names every local change. Propose generic rules upstream toreferences/rules.json. - Battery chemistry:
battery.chemistrycan 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.
- Project-local rules: if the product has a trait that no rule covers, research it and write the rule in
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.
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.Apply the design levers. For each lever in
references/design-levers.mdthat 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.
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 forprototype-roadmap, what was verified, the RFQs to send and the open questions.Hand off.
cost-and-sourcingtakes the certification NRE (low and high).prototype-roadmaptakes the schedule hooks.doability-reviewtakes 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.mdholds 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.