Files
make-cad/docs
NiJingzhe efe9751bdf docs(skill): feature tree convention discipline; mandatory read in all workflows
Codify the FTC coding standard as references/discipline/
feature-tree-convention.md:

- the block paradigm sketch -> basic body op -> bool -> modifier as
  explicit dataflow (body = op(body, tools)), one application call
  per block, no accumulator state
- mandatory boundary comments '# ---- feature: <slug> (<role>) ----'
  with closed role vocabulary (build|add|subtract|intersect|modify|
  pattern|annotate) and tier annotations profile=/path=; slugs are
  stable identities, never sequence numbers
- tier rules: closed planar profiles and planar sweep paths are sketch
  API only (tangency is a constraint, not hand-computed coordinates;
  open-chain promotion is legal, closedness is a consumer contract);
  geometry tier is restricted to non-planar 3D curves, transcribed
  geometry with unknown constraints, and tool bodies whose shape is
  completely contained in a primitive form — primitives are never a
  shortcut for a profiled feature
- modify blocks select via QL predicates + exactly(n) cardinality;
  parameter guards stay in source, geometric verification stays
  external; block ordering defers to feature-ordering.md

Wire it as required reading into every workflow on this branch (all
six): single-part (standing discipline + Role 4 reading), sketch-
feature (required_domains + build step), assembly-product (per-part
authoring step), step-reconstruction (build step, geometry-tier
honesty), standard-part-assembly (custom parts step), export-and-
translation (source edits while making a package current). SKILL.md
global rule 3 points at the convention for part-source form. Mirrors
rebuilt via tools/skillbuild.py.
2026-09-01 02:13:50 +08:00
..