Skip to content

Development

nodemode-ai edited this page Dec 2, 2026 · 1 revision

Development

Engine: backend/ (FastAPI, Python 3.12, venv at backend/venv). App: frontend/ (vanilla TypeScript and Vite on port 5220 with host: false and strictPort, no framework). Desktop: src-tauri/. The formchem-skillset skill in .claude/skills/ maps the codebase for agents working on it.

Repo rules

  • Clean room. FormChem is written only from the owner's clean-room specifications. Never open, run, decompile or read the private documentation of the commercial suite it replaces, and never copy its names, icons, templates or text.
  • Surgical edits. Change one region at a time, by hand. No scripted rewrites, codemods, patch files or wholesale file rewrites.
  • Near-zero comments. No comments except where truly unavoidable, no commented-out code. The reason behind a non-obvious decision goes in frontend/HASHOUT_LOG.md or backend/HASHOUT_LOG.md as a short entry anchored by file and symbol.
  • No tests unless the owner asks for them in words.
  • No emoji, no em dashes, in code, UI text or markdown. Use commas, colons or parentheses.
  • Icons are inline currentColor SVG from frontend/src/ui/icons.ts. No icon libraries.
  • z-index only through the tokens in frontend/src/styles/tokens.css. Floating UI goes in #overlay-root.
  • Zero DOM flash. Mount structure once and patch nodes; never rebuild a live container to change one node. Reserve space for async content. No theme or font flash at first paint.
  • Throttled verification. Every UI change is checked in a browser under 4x CPU slowdown and network throttling for flashes, layout shift and focus loss before it lands.
  • Skills. Every skill or sub-skill under .claude/skills or .agents/skills is authored and repaired through the god-tier-skill-creator pipeline, and its validator must report zero FAIL before a hand-back. ./formchem agents sync --check fails when the mirror, the generated tool list or the vendored dock module drift.
  • Licences. Every new dependency gets a NOTICE.md row first. GPL outside the bundle, AGPL nowhere, LGPL only as a separate program, non-commercial code or data never.

CI

.github/workflows/ci.yml runs four jobs: frontend (npm ci, npm audit, build), backend (compile, formchem_engine.py --selfcheck, boot and probe /api/health and /api/version), notices (setup/notices.py --check) and scripts (bash -n on every shell script, no em dash in tracked Markdown, no emoji in tracked text).

Commits

Conventional Commits with the version in the summary, type(scope): summary (x.y.z), and a body. The version bump is the last commit of every series. The full model is in .docs/BRANCHING.md; releases are on the Releasing page.

Clone this wiki locally