← Commit history
Publish 0.1.1
3 files changed
+45−4
package.json+1−1@@ -2,7 +2,7 @@ "name": "build-a-component-page", "slug": "build-a-component-page", "title": "Build a Component Page Yourself",- "version": "0.1.0",+ "version": "0.1.1", "type": "skill", "org": "adom", "description": "The parts factory's method, written for your own AI: build a wiki component page for a part the wiki lacks or a part request that could not be built. Datasheet, package, footprint checked against the package drawing, pinout read twice, symbol, 3D model, hero and page, with what to do for each failure reason and when to stop instead of guessing.",
page.json+1−1@@ -2,7 +2,7 @@ "name": "build-a-component-page", "slug": "build-a-component-page", "title": "Build a Component Page Yourself",- "version": "0.1.0",+ "version": "0.1.1", "type": "skill", "org": "adom", "description": "The parts factory's method, written for your own AI: build a wiki component page for a part the wiki lacks or a part request that could not be built. Datasheet, package, footprint checked against the package drawing, pinout read twice, symbol, 3D model, hero and page, with what to do for each failure reason and when to stop instead of guessing.",
skills/build-a-component-page/SKILL.md+43−2@@ -117,6 +117,40 @@ Also check that no two pads with different numbers touch, and that no copper lie - Marking: `adom-chip-laser etch` puts the part number on the top of the body as a flat mark. - Convert with `step2glb convert`. Colours follow the datasheet (housing colour, plating). +### Connectors, switches and other electromechanical parts with no usable maker model++Defect it prevents: a plain box published as the model of a USB receptacle or a pushbutton.++- A generated prism is fine for a chip package, never for a connector, switch, header or terminal block.+- Draw the part yourself from the maker's published drawing (CadQuery works): the real shapes, such as the mouth or+ opening, the cap and its bevel, formed terminals, stakes and standoffs. Take every dimension from the drawing, and+ list the ones you had to estimate.+- The geometry is ours, made from the maker's drawing. Never put a CADENAS / PARTcommunity / 3D-portal file or a+ vendor's licensed model in the bundle, and never use a maker's form-based model generator.+- Pose it like any model, then say on the page: "3D model authored from <maker> drawing <ref>; not the maker's model".++### Plating and colour when the sheet offers options++Defect it prevents: silver-contact parts shown with gold terminals.++- A line such as "silver or gold plating" does not say which one this part has. The ordering code in the MPN decides+ (for example NKK UB2: W = silver, G = gold, from the ordering-key page).+- If nothing in the MPN decides, leave the plating as drawn and say it is undecided. Never take the first word.++### Mark only where the maker marks++Defect it prevents: a part number etched on a switch cap or a connector shell that carries no marking.++- Etch the part number only on a body the maker marks (most ICs). Switch caps, connector shells, passives and+ headers usually carry none: ship the plain model and say why.++### Record the model's pose++Defect it prevents: a model whose pose nobody can check later.++- Add the model to `component.models_3d` with its file, sha256 and pose (`up: Z`, `seated: true`, `origin: pad+ centre`). component-page-verify warns when it is missing.+ ## 7. The page - **Hero:** a 16:10 PNG at least 1600 px wide. `step2glb thumbnail --width 2400 --height 1500` renders one from the STEP.@@ -148,13 +182,20 @@ Go down this list. Each line is a defect that reached a published page at least - [ ] Polarity is from the datasheet, and nothing polarised says "either orientation". - [ ] The symbol's pins equal the page's pins, and the symbol does not depend on a missing base. - [ ] The model is Z up, seated, centred on the pads, and fits A, D and E.+- [ ] A connector or switch model shows the part's real shapes and is ours, never a box or a CADENAS/vendor file.+- [ ] Plating follows the MPN's ordering code where the sheet offers options; the part number is etched only where+ the maker marks the part.+- [ ] `component.models_3d` records the model with its pose. - [ ] The hero is 16:10 and at least 1600 px wide. - [ ] The `.lbr` validates. - [ ] Distributor numbers are present; LCSC has its C. - [ ] A license is stated. - [ ] Open the live page and look at it: the symbol, the footprint and the 3D model all render. -Tell the person which of these you checked and which you could not.+Tell the person which of these you checked and which you could not. List every value you read off a drawing by eye+(a pad size measured from a picture, a dimension whose leader line was ambiguous, a pitch printed to one decimal),+with its page, so a person can check those few readings against the sheet. Defect it prevents: a misread+dimension that nobody knew to look at. ## By failure reason @@ -168,7 +209,7 @@ The request email and `adom-wiki part status` give a reason. Start where it poin | No footprint for the package; footprint failed the fit check | Step 3, item 3: draw the pads from the datasheet drawing and check every number. | | Readings disagreed; pin or footprint guard | Step 4. Two readings gave different pinouts, or the pinout did not fit the pads. First confirm the package (step 2): this usually means the wrong package variant. | | 3D model pose; model outside the package | Step 6. Re-seat and centre the model, or pick the model that fits A, D and E. |-| Waiting on a maker 3D model | Ask the person whether they have the maker's STEP. If not, model the body from the datasheet drawing and say it is generated. |+| Waiting on a maker 3D model | Ask the person whether they have the maker's STEP. If not, model the body from the datasheet drawing and say it is generated; for a connector or switch, draw its real shapes (step 6, electromechanical parts). | | Unsupported kind (a development kit or module board) | A board is not a single-package part. It needs its own header footprint, pinout and 3D; say so and ask the person how far they want to go. | | Not orderable | Confirm the exact orderable number with the person. `adom-wiki part candidates "<partial number>"` lists them. |