360 Secure SkillHub
360 安全技能中心

solidcraft-ground-rules

用于在向 SolidCraft 添加依赖、图标、图片、字体、测试数据或产品文案前,检查是否违反独立性、GPL 许可证、资产归属和命名规则,并指向相关规则文件与校验命令。

分类:开发
tangency-labs
热度 0.00
最近更新 2026-11-11 05:26:53

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add tangency-labs/solidcraft/solidcraft-ground-rules
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
solidcraft-ground-rules
description
Use before adding any dependency, icon, image, font, test reference data or product wording to SolidCraft, or when unsure whether something may be copied, read or named. Covers independence from other CAD products, GPL code, asset attribution and the product name.

Independence, licences, assets and the name

The rules that cannot be broken in a PR. AGENTS.md lists them in one line each; the reasons are in CONTRIBUTING.md, "Rules that aren't negotiable".

Independent

  • Behaviour comes from public documentation, general CAD conventions and user feedback. File formats come from public specifications.
  • Never copy another product's code, icons, artwork, help text, tooltips, templates or materials.
  • Reference tests use analytic values (tools/oracle-analytic/) or open-source tools. Expected values never come from a commercial CAD product.
  • Do not drive, script, automate or extract data from commercial CAD products (Fusion, SolidWorks, Onshape, ...) for this project: no test data, measurements, command lists, ids or files produced with them.
  • Command ids are our own: dotted, lower-case <area>.<thing>[.<variant>], never another product's id.

No GPL, LGPL or AGPL code

  • Do not read, copy or link OpenCASCADE, FreeCAD (including planegcs), SolveSpace, CadQuery/OCP, LibreCAD or QCAD. Do not even read their sources.
  • tools/freecad-oracle/ runs FreeCAD as a separate program through its public scripting API to compute reference values. Nothing from FreeCAD is linked, vendored or shipped. The sketch solver and the blend operations are our own.
  • Permissive dependencies are fine: say which one you add and why in the PR. THIRD-PARTY-LICENSES.txt is regenerated on main; never edit it in a PR (cargo xtask licences --check only reports).
  • Code adapted from other permissive projects (MIT OR Apache-2.0) is noted in ATTRIBUTION.md. Projects published by storytold can serve as references for implementation conventions.

Assets: the most serious rule

  • SolidCraft contains no iconography, images, fonts or artwork from commercial CAD products, ever. Screenshots of commercial CAD software are never committed.
  • Every file asset is original or openly licensed and has a row in ATTRIBUTION.md. cargo xtask assets enforces it.
  • Command icons are the original SVG masters in crates/look/icons/design/svg/, compiled by the look crate (crates/look/build.rs, crates/look/src/icons.rs).
  • Before any icon, icon assignment or media edit, read assets/AGENTS.md, crates/look/icons/AGENTS.md and crates/look/icons/STYLE_GUIDE.md. Use the canonical bases and named finished references there; never invent a parallel icon style. cargo xtask icons validates them.

The name

  • SolidCraft everywhere: crates solidcraft-*, binaries solidcraft and solidcraft-cli, .sc designs (.solidcraft still opens), the solidcraft/N format tag, SOLIDCRAFT_* environment variables, settings and recovery folders, the MCP server name, docs, CI and packaging.
  • The old name survives only in the compatibility shims listed in docs/compatibility.md. Do not add new uses of it.
  • Public docs, web and Flatpak deployments use project Pages /solidcraft/. Do not add permanent old-name Pages aliases.
  • Labels, parameter docs, messages and docs use the terms in the glossary (docs/book/src/reference/glossary.md): one term for each idea. A change that adds a new idea adds its term there.
  • Units are millimetres and radians internally; Z is up.