cv¶
How to work in the cv/ half of cv-pro: the commands, the rules of the CV machine, and its conventions.
Guidance for AI coding agents (Claude Code, Copilot, Cursor) working in cv/. The repository-wide rules are in the root AGENTS.md.
What this is¶
The CV of Amr Abdel-Motaleb run as a build machine, edited primarily in VS Code: data/cv.json (canonical CVData, schema shared with the builder app in ../app/) is the single source of truth, rendered by the TypeScript engine in builder/ into Markdown (CV.md), the LaTeX content sections (sections/*.tex — both committed + sync-gated), ASCII, portable LaTeX templates, and the HTML Pages site; cv.tex + resume.sty are the layout-only shell that turns the generated sections into cv.pdf. See README.md for the full architecture and the VS Code editing loop (.vscode/ tasks, watch mode, snippets).
Stack & commands¶
# install dependencies:
npm install
# run the build (data/cv.json -> CV.md + sections/*.tex + dist/):
npm run build
# rebuild on every save (the VS Code editing loop; also the "CV: watch" task):
npm run watch
# run tests (data contract + CV.md/sections sync gates + generator invariants):
npm test
# lint (typecheck):
npm run lint
# verify CV.md is in sync without writing:
npm run check
# artisanal PDF (optional locally; CI compiles it in publish/latex-preview):
latexmk -pdf cv.tex
Rules of the machine¶
data/cv.jsonis the single source of truth. Content changes start there — never in a render.CV.mdandsections/*.texare generated and committed;npm testfails on any drift, so always runnpm run buildand commit the regenerated surfaces together with the data change.- Layout ≠ content.
cv.tex+resume.stycarry typography/spacing/section order only — edit them for looks, never to add or change facts.sections/*.texanddist/**are never hand-edited. - The CVData contract is shared with the builder app (
app/src/types/cv.tsand the vendoredapp/contract/cv.schema.jsonthere,builder/types.ts+data/cv.schema.jsonhere). Schema changes land here first and then inapp/, backward-compatibly; the vendored copy stays byte-identical (cmp ../app/contract/cv.schema.json data/cv.schema.json). - This is real personal data. Transcribe, reorder, and reformat — never invent facts, dates, employers, or credentials. Tailored variants (from the
jd/loop) go injd/*.tailored.json, not indata/cv.json. - Generated PDFs/renders belong in releases and Pages, not the working tree (
cv.pdfis the one committed render; the publish workflow recompiles it).
Conventions¶
- Conventional Commits:
type(scope): description(feat/fix/docs/refactor/test/chore/ci). - Default branch is
main— branch from it and open a PR; never push to it directly. - README-First, README-Last: read the nearest
README.mdbefore changing a directory, and update it after. - Don't suppress type errors (
as any,@ts-ignore,# type: ignore) or leave empty exception handlers. - Markdown prose is one paragraph per line (
markdown-onelinegate; fix withpython3 tools/unwrap-prose.py --write). - Dependencies follow the fleet's always-latest policy:
"*"ranges, no lockfiles committed.
Fleet context¶
This directory is one half of bamr87/cv-pro, imported with its history from bamr87/cv; cv-pro is the repository the bamr87/bamr87 dash vendors as a submodule, so the root AGENTS.md § Fleet context applies. The nested .github/workflows/ here are kept as the reference for porting and do not run from cv-pro.