[{"data":1,"prerenderedAt":839},["ShallowReactive",2],{"figure-telemetry":3,"menu-audits":6,"menu-decisions":7,"menu-projects":23,"menu-workflows":99,"decision-0005-nx-generators-and-ai-agent-setup":116},{"value":4,"alert":5},"18%",false,[],[8,11,14,17,20],{"label":9,"to":10},"0041 The visitor view becomes its own app, and the portal reads only as a developer platform","\u002Fdecisions\u002F0041-personal-site-splits-from-developer-portal",{"label":12,"to":13},"0040 Visitors land on the front page and toggle to the developer view","\u002Fdecisions\u002F0040-developer-portal-visitor-structure",{"label":15,"to":16},"0039 The developer portal is redesigned for visitors, from a twelve-site benchmark","\u002Fdecisions\u002F0039-developer-portal-benchmark",{"label":18,"to":19},"0038 Marina Roustan's discovery","\u002Fdecisions\u002F0038-marina-roustan-discovery",{"label":21,"to":22},"0013 New linters: the robustness gap is tsconfig and enforcement, not plugins","\u002Fdecisions\u002F0013-linter-coverage",[24,29,60,83],{"labelKey":25,"icon":26,"to":27,"badge":28},"app.menu.allProjects","i-lucide-layers","\u002Fprojects","11",{"labelKey":30,"icon":31,"to":32,"badge":33,"children":34},"app.menu.kinds.apps","i-lucide-app-window","\u002Fprojects?kind=apps","5",[35,40,45,50,55],{"label":36,"icon":31,"to":37,"badge":38,"coverage":39},"developer-portal","\u002Fprojects\u002Fdeveloper-portal","94%",94.37,{"label":41,"icon":31,"to":42,"badge":43,"coverage":44},"huella-legal","\u002Fprojects\u002Fhuella-legal","97%",97.48,{"label":46,"icon":31,"to":47,"badge":48,"coverage":49},"marina-roustan","\u002Fprojects\u002Fmarina-roustan","100%",100,{"label":51,"icon":31,"to":52,"badge":53,"coverage":54},"portfolio","\u002Fprojects\u002Fportfolio","91%",91.31,{"label":56,"icon":31,"to":57,"badge":58,"coverage":59},"wp-editor","\u002Fprojects\u002Fwp-editor","50%",49.89,{"labelKey":61,"icon":62,"to":63,"badge":64,"children":65},"app.menu.kinds.packages","i-lucide-package","\u002Fprojects?kind=packages","4",[66,71,75,80],{"label":67,"icon":62,"to":68,"badge":69,"coverage":70},"configs","\u002Fprojects\u002Fconfigs","76%",75.7,{"label":72,"icon":62,"to":73,"badge":48,"coverage":74},"content","\u002Fprojects\u002Fcontent",99.58,{"label":76,"icon":62,"to":77,"badge":78,"coverage":79},"i18n","\u002Fprojects\u002Fi18n","99%",99.08,{"label":81,"icon":62,"to":82,"badge":48,"coverage":49},"observability","\u002Fprojects\u002Fobservability",{"labelKey":84,"icon":85,"to":86,"badge":87,"children":88},"app.menu.kinds.infrastructure","i-lucide-server","\u002Fprojects?kind=infrastructure","2",[89,94],{"label":90,"icon":85,"to":91,"badge":92,"coverage":93},"scripts","\u002Fprojects\u002Fscripts","79%",78.6,{"label":95,"icon":85,"to":96,"badge":97,"coverage":98},"translations","\u002Fprojects\u002Ftranslations","93%",93.33,[100,103,106,109,112],{"label":101,"to":102},"Huella Legal","\u002Fworkflows\u002Fhuella-legal",{"label":104,"to":105},"Marina Roustan","\u002Fworkflows\u002Fmarina-roustan",{"label":107,"to":108},"Developer portal front door","\u002Fworkflows\u002Fdeveloper-portal-front-door",{"label":110,"to":111},"Huella Legal editorial","\u002Fworkflows\u002Fhuella-legal-editorial",{"labelKey":113,"icon":114,"to":115},"app.menu.newProject","i-lucide-plus","\u002Fworkflows\u002Fnew",{"id":117,"title":118,"body":119,"description":819,"extension":827,"kind":828,"meta":829,"navigation":834,"path":835,"seo":836,"stem":837,"url":828,"verdict":828,"__hash__":838},"docs\u002Fdocs\u002Fdecisions\u002F0005-nx-generators-and-ai-agent-setup.md","🧭 Nx generators, the MCP server and nx migrate",{"type":120,"value":121,"toc":818},"minimark",[122,131,136,187,191,194,270,280,334,377,380,470,505,520,523,590,593,597,677,681,715,738,768,779,783],[123,124,126,127],"h1",{"id":125},"nx-generators-the-mcp-server-and-nx-migrate","🧭 Nx generators, the MCP server and ",[128,129,130],"code",{},"nx migrate",[132,133,135],"h2",{"id":134},"context","Context",[137,138,139,140,142,143,146,147,154,155,158,159,162,163,162,166,162,169,172,173,179,180,182,183,186],"p",{},"The question was whether any of the Nx platform features this repo doesn't use yet — code\ngenerators, sync generators, Nx Cloud orchestration, ",[128,141,130],{},", and the AI-coding-agent\nintegration — were worth adopting, given what this repo actually already leverages: ",[128,144,145],{},"nx affected","\nplus local caching, the project graph and tag-based boundaries\n(",[148,149,151],"a",{"href":150},"repo:packages\u002Fconfigs\u002Fsrc\u002Feslint\u002Flib\u002Fboundaries.ts",[128,152,153],{},"boundaries.ts","), ",[128,156,157],{},"nx release",", and inferred\ntargets from ",[128,160,161],{},"@nx\u002Fnuxt"," \u002F ",[128,164,165],{},"@nx\u002Feslint",[128,167,168],{},"@nx\u002Fvitest",[128,170,171],{},"@nx\u002Fvite",". Two candidates looked like a\nconcrete fit against real, already-documented pain: ",[148,174,176],{"href":175},"repo:CLAUDE%2Emd",[128,177,178],{},"CLAUDE.md","'s own \"two places\nthat must agree\" section names the ",[128,181,153],{}," ↔ README tag table as \"the standing failure mode\nin this repo,\" and the ",[128,184,185],{},"new-package"," skill exists specifically because six files have to agree\nacross directories when scaffolding a project.",[132,188,190],{"id":189},"result","Result",[137,192,193],{},"Both generator candidates were built far enough to prove they work, and both were reverted. Two\nmuch smaller things were adopted instead.",[137,195,196,200,201,204,205,207,208,210,211,214,215,218,219,222,223,226,227,230,231,233,234,237,238,241,242,245,246,249,250,252,253,256,257,256,260,256,263,265,266,269],{},[197,198,199],"strong",{},"Local Nx generators."," A new ",[128,202,203],{},"infrastructure\u002Fnx-plugin"," package was scaffolded with two\ngenerators: ",[128,206,185],{}," (mechanizes steps 2-4 of the ",[128,209,185],{}," skill — ",[128,212,213],{},"package.json",", the\nthree wrapper configs, a README skeleton) and ",[128,216,217],{},"sync-boundaries"," (a global sync generator, wired into\n",[128,220,221],{},"nx.json","'s ",[128,224,225],{},"sync.globalGenerators"," and CI via ",[128,228,229],{},"nx sync:check",", that dynamically imports\n",[128,232,153],{}," and regenerates the README's tag table from it, failing loudly on a ",[128,235,236],{},"type:"," tag with\nno ",[128,239,240],{},"depConstraints"," entry or a project missing from the workspace-layout block). Both were fully\nwired — CI step, root ",[128,243,244],{},"pnpm sync"," script, skill and CLAUDE.md updates — and verified end to end:\n",[128,247,248],{},"nx sync"," correctly caught the plugin's own project missing from the README on first run, regenerated\nthe table to match ",[128,251,153],{}," byte for byte, and ",[128,254,255],{},"lint","\u002F",[128,258,259],{},"typecheck",[128,261,262],{},"test",[128,264,229],{},"\u002F\n",[128,267,268],{},"docs:map --check"," all passed clean.",[137,271,272,273,276,277,279],{},"It was reverted anyway. The problem being solved — a six-file scaffold done occasionally, and a\ntwo-file drift ",[128,274,275],{},"check-invariants.sh"," already nudges about on every agent edit — didn't need a\ndevkit-based plugin package, dynamic TypeScript importing of ",[128,278,153],{},", and its own test suite\nto fix. That's permanent maintenance surface sized for a team monorepo, not this one.",[137,281,282,287,288,291,292,295,296,299,300,303,304,307,308,311,312,317,318,321,322,325,326,329,330,333],{},[197,283,284],{},[128,285,286],{},"nx g nx:set-up-ai-agents"," (Nx's own \"enhance coding agents\" generator) was read at the source\nlevel inside the installed ",[128,289,290],{},"nx"," package rather than run. For the Claude Code path specifically, it\ndoes not add a plain MCP server entry: it installs a third-party Claude plugin from an external\nmarketplace (",[128,293,294],{},"enabledPlugins: {\"nx@nx-claude-plugins\": true}",", sourced from\n",[128,297,298],{},"github:nrwl\u002Fnx-ai-agents-config","), and it widens ",[128,301,302],{},".claude\u002Fsettings.json","'s sandbox\n",[128,305,306],{},"network.allowedDomains"," to let Nx's analytics domain through — directly against this repo's own\n",[128,309,310],{},"\"analytics\": false"," in ",[148,313,315],{"href":314},"repo:nx.json",[128,316,221],{},". Left at its default ",[128,319,320],{},"agents"," option, it also\nwrites Cursor\u002FGemini\u002FCodex\u002FCopilot\u002Fopencode config nobody here uses, cloning an external config repo\nto do it. Not run. The narrower thing actually wanted — Nx's project graph and generators reachable\nover MCP — doesn't need any of that: a plain project-scoped ",[128,323,324],{},".mcp.json"," with a ",[128,327,328],{},"stdio"," entry\n(",[128,331,332],{},"npx nx mcp",") gets there in one small, fully reversible file. That minimal version is what was\nadopted, with one correction that only testing found.",[137,335,336,344,345,348,349,352,353,356,357,360,361,364,365,368,369,311,372,376],{},[197,337,338,343],{},[148,339,341],{"href":340},"repo:.mcp.json",[128,342,324],{},", adopted."," Eight lines, no plugin, no marketplace grant, no\nsandbox change. The obvious entry is useless, though: ",[128,346,347],{},"nx-mcp"," 0.25.0 defaults ",[128,350,351],{},"--minimal"," to\n",[128,354,355],{},"true",", which hides every workspace-analysis tool, so a server registered the plain way exposes\nexactly one tool — ",[128,358,359],{},"nx_docs",", a documentation fetcher. Nothing reports that as an error; it\nsurfaced by driving the server over stdio and reading its CLI parser. ",[128,362,363],{},"--minimal=false"," registers\nseven. ",[128,366,367],{},"--disableTelemetry"," is passed because the server's own default is to send telemetry, which\n",[128,370,371],{},"analytics: false",[148,373,374],{"href":314},[128,375,221],{}," already answers.",[137,378,379],{},"Roughly half of what it registers actually works against Nx 23:",[381,382,383,396],"table",{},[384,385,386],"thead",{},[387,388,389,393],"tr",{},[390,391,392],"th",{},"Tool",[390,394,395],{},"Against this workspace",[397,398,399,417,434,454],"tbody",{},[387,400,401,411],{},[402,403,404,407,408],"td",{},[128,405,406],{},"nx_workspace",", ",[128,409,410],{},"nx_workspace_path",[402,412,413,414,416],{},"Annotated ",[128,415,221],{}," and the project graph — the reason the file exists",[387,418,419,427],{},[402,420,421,407,424],{},[128,422,423],{},"nx_generators",[128,425,426],{},"nx_generator_schema",[402,428,429,430,433],{},"Work, but list the ",[128,431,432],{},"@nx\u002F*"," generators this repo deliberately doesn't use",[387,435,436,441],{},[402,437,438],{},[128,439,440],{},"nx_project_details",[402,442,443,446,447,450,451],{},[197,444,445],{},"Broken"," — hardcodes ",[128,448,449],{},"nx\u002Fsrc\u002Futils\u002Ffind-matching-projects",", and Nx 23 moved its internals under ",[128,452,453],{},"nx\u002Fdist\u002F",[387,455,456,463],{},[402,457,458,407,460],{},[128,459,359],{},[128,461,462],{},"nx_available_plugins",[402,464,465,466,469],{},"Work; both fetch from ",[128,467,468],{},"raw.githubusercontent.com"," at call time",[137,471,472,473,476,477,479,480,483,484,407,487,490,491,494,495,498,499,504],{},"Two things to know before trusting it. ",[128,474,475],{},"nx mcp"," fetches ",[128,478,347],{}," ",[197,481,482],{},"unpinned"," on every cold start\n(0.25.0 today), so the table above can change without anything in this repo changing. And the\nserver loads ",[128,485,486],{},".env",[128,488,489],{},".env.local"," and ",[128,492,493],{},".local.env"," from the workspace root into its own process\nenvironment, which sits oddly beside the ",[128,496,497],{},"Read(**\u002F.env)"," deny rule in\n",[148,500,502],{"href":501},"repo:.claude\u002Fsettings.json",[128,503,302],{},".",[137,506,507,512,513,516,517,519],{},[197,508,509,511],{},[128,510,130],{},", used for the pending 23.0.1 → 23.2.0 bump."," Nine migrations: seven applied, two\ndeferred as AI prompts, and both deferred ones are no-ops here — all eight ESLint configs are\nalready flat and ",[128,514,515],{},"ban-types"," appears nowhere in source. The workspace passes cold afterwards: 24\ntasks of lint, typecheck, test and build in 22.6s, ",[128,518,268],{}," clean.",[137,521,522],{},"It also changed four things nobody asked for, all reverted:",[381,524,525,535],{},[384,526,527],{},[387,528,529,532],{},[390,530,531],{},"What it did",[390,533,534],{},"Why it was reverted",[397,536,537,553,567,579],{},[387,538,539,550],{},[402,540,541,542,545,546,549],{},"Injected ",[128,543,544],{},"\"ignoreDeprecations\": \"6.0\""," into all eight ",[128,547,548],{},"tsconfig.json"," files",[402,551,552],{},"Typecheck passes cold on all eight without it. Suppressing a TS 6 deprecation nobody has hit hides the breakage the warning exists to announce",[387,554,555,561],{},[402,556,557,558,560],{},"Reformatted those eight files and the root ",[128,559,213],{}," to 2-space",[402,562,563,564,566],{},"4-space is house style everywhere but ",[128,565,213],{},"; it turned a six-line bump into a hundred-line diff",[387,568,569,576],{},[402,570,571,572,575],{},"Left ",[128,573,574],{},"migrations.json"," at the root",[402,577,578],{},"Spent the moment the migrations ran",[387,580,581,587],{},[402,582,583,584,575],{},"Created ",[128,585,586],{},"tools\u002Fai-migrations\u002F",[402,588,589],{},"A directory outside the documented workspace layout, holding two prompts that are no-ops here",[137,591,592],{},"The habit is still worth keeping — a plain version bump would have skipped seven codemods — but a\nmigrate run has to be read afterwards, not trusted.",[132,594,596],{"id":595},"options-considered","Options considered",[381,598,599,609],{},[384,600,601],{},[387,602,603,606],{},[390,604,605],{},"Option",[390,607,608],{},"Why not",[397,610,611,622,635,643,658],{},[387,612,613,619],{},[402,614,615,616,618],{},"Local Nx generators in ",[128,617,203],{}," (built, verified, reverted)",[402,620,621],{},"Worked correctly, but the plugin package + dynamic TS parsing + test suite it took to get there is disproportionate to a six-file scaffold and a two-file drift a hook already nudges about",[387,623,624,629],{},[402,625,626,628],{},[128,627,286],{},", default options",[402,630,631,632,634],{},"Installs a third-party plugin marketplace grant and loosens the sandbox network allowlist against ",[128,633,371],{},"; also configures five agents unused here",[387,636,637,640],{},[402,638,639],{},"Nx Cloud (remote caching, distributed task execution, self-healing CI)",[402,641,642],{},"A hosted vendor account and token for one CI runner, against CLAUDE.md's posture of no vendor endpoints — and the whole workspace now measures at 22.6s cold, so there is no CI pain to spend it on",[387,644,645,651],{},[402,646,647,648,650],{},"An Nx sync generator for the ",[128,649,153],{}," ↔ README table",[402,652,653,654,657],{},"A sync generator is only a delivery mechanism: the renderer still has to be written by hand, and ",[128,655,656],{},"docs:map"," already delivers one the same way with no plugin package behind it",[387,659,660,667],{},[402,661,662,663,666],{},"Caching ",[128,664,665],{},".nx\u002Fcache"," in CI",[402,668,669,670,676],{},"Would help a PR that gets several pushes, but ",[148,671,673],{"href":672},"repo:.github\u002Fworkflows\u002Fci.yml",[128,674,675],{},"ci.yml"," restores no cache today and a 22.6s cold workspace isn't worth a cache key to maintain",[132,678,680],{"id":679},"consequences","Consequences",[137,682,683,684,687,688,690,691,693,694,479,696,699,700,703,704,708,709,714],{},"The Nx surface itself is unchanged — ",[128,685,686],{},"affected"," + cache, the project graph and boundaries,\n",[128,689,157],{},", inferred targets. ",[128,692,203],{},", the ",[128,695,221],{},[128,697,698],{},"sync"," block, the CI\n",[128,701,702],{},"sync:check"," step and every doc edit that referenced them were reverted in the same session they\nwere built. What landed is ",[148,705,706],{"href":340},[128,707,324],{}," and the 23.2.0 bump in\n",[148,710,712],{"href":711},"repo:package.json",[128,713,213],{}," with its lockfile: no new project, no new CI step, no new\ntarget.",[137,716,717,718,721,722,724,725,727,728,730,731,734,735,737],{},"One loose end from the migrate half. ",[128,719,720],{},"renovate.json"," will bump ",[128,723,290],{}," and\n",[128,726,432],{}," as ordinary version bumps and skip their migrations entirely, which is the exact failure\n",[128,729,130],{}," exists to prevent. A ",[128,732,733],{},"packageRule"," handing those packages to ",[128,736,130],{}," instead\nwould make the habit stick; it isn't written yet.",[137,739,740,741,743,744,747,748,754,755,757,758,760,761,767],{},"The generator idea is worth revisiting only if either half of the \"two places that must agree\"\nproblem starts drifting in practice rather than in theory, more often than ",[128,742,275],{},"'s\nprose nudge catches. The right-sized fix then is a ",[128,745,746],{},"--check"," script in\n",[148,749,751],{"href":750},"repo:infrastructure\u002Fscripts",[128,752,753],{},"infrastructure\u002Fscripts"," rendering the README table from\n",[128,756,153],{},", the way ",[128,759,656],{}," already renders ",[148,762,764],{"href":763},"\u002Fwiki\u002Fdocs\u002Ffeatures",[128,765,766],{},"docs\u002FFEATURES.md"," — not a\nplugin package, and not a sync generator.",[137,769,770,771,773,774,778],{},"That framing matters for a second reason. Only one of ",[128,772,275],{},"'s six checks concerns\nderived content at all; the other five are policy assertions with no Nx equivalent to move them to.\nAll six share the same real gap, which is not about Nx: the hook fires only when an ",[775,776,777],"em",{},"agent"," edits a\nfile, so the same violation made by hand and pushed passes every gate the repo has — the pre-push\nhook runs lint, test and typecheck, and CI never runs the invariants at all.",[132,780,782],{"id":781},"confirmation","Confirmation",[137,784,785,787,788,790,791,793,794,796,797,222,799,490,801,803,804,807,808,810,811,817],{},[128,786,324],{}," exists at the repo root, ",[128,789,203],{}," does not, and ",[128,792,221],{}," carries no\n",[128,795,698],{}," block — verified by their presence or absence in the tree. ",[128,798,213],{},[128,800,290],{},[128,802,432],{},"\nentries read ",[128,805,806],{},"23.2.0",". The closing line above is no longer current: ",[128,809,275],{},"'s\nassertions now also run in CI, over the whole tree rather than only an agent's edit — see\n",[148,812,814],{"href":813},"\u002Fwiki\u002Fdocs\u002Fdecisions\u002F0011-docs-system-enforcement",[128,815,816],{},"0011-docs-system-enforcement.md","'s Confirmation, not this\nrecord, which stays a snapshot of what this decision itself found.",{"title":819,"searchDepth":820,"depth":820,"links":821},"",2,[822,823,824,825,826],{"id":134,"depth":820,"text":135},{"id":189,"depth":820,"text":190},{"id":595,"depth":820,"text":596},{"id":679,"depth":820,"text":680},{"id":781,"depth":820,"text":782},"md",null,{"issue":830,"status":831,"decision":832,"supersededBy":833},61,"implemented","superseded","0026-nx-cloud-remote-cache.md",true,"\u002Fdocs\u002Fdecisions\u002F0005-nx-generators-and-ai-agent-setup",{"title":118,"description":819},"docs\u002Fdecisions\u002F0005-nx-generators-and-ai-agent-setup","huDxul_0ci6ahUvMNOY-VsUZPlr1OF4fT4qMfyduSzY",1795478398278]