[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72SXM9BQHRN4K8AXEWG6DKZ":3,"skill-same:01M72SXM9BQHRN4K8AXEWG6DKZ":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M72SXM9BQHRN4K8AXEWG6DKZ","shared-hosting-node-ops",null,"Use when debugging Node on shared hosting: keep one copy.","iberi22\u002Fskills","iberi22","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10615454?v=4","01M72SQ2NXAA3GW0FSH053A5ES","Brahyan Belalcazar","01M72SQ2PYCH0SSA1K61NGEHDV",0,"MIT","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fshared-hosting-node-ops\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: shared-hosting-node-ops\ndescription: 'Use when debugging Node on shared hosting: keep one copy.'\n---\n\n# Shared-Hosting Node Ops — cPanel\u002FCloudLinux backends\n\nClass-level workflow for Node backends living on shared cPanel hosting: no root, CloudLinux LVE limits, Node.js Selector (Passenger) available, deploys over SSH, Apache `.htaccess` proxy to a localhost port. Goal: one healthy copy, verified from the public internet, without ever pinning the account's process limit.\n\n## Operating policy (standing)\n\n- **Self-solve first, hosting support is last resort.** Diagnose everything reachable from our side (SSH, panel UI, public curl) before opening a ticket. Open one only when the cause is invisible from the account (e.g. processes nobody owns, panel backend itself crashing).\n- **Support comms are non-technical.** Ticket drafts state symptoms + the one action requested (\"kill the stuck processes on my account and tell me what spawns them\"), never runtime internals, library names, or stack traces.\n- **Act, don't narrate stalls.** If a step blocks, say what is blocked in one line and what runs next — never end a turn with only a promise. Background deploys report back on completion.\n\n## Deploy flow (nohup worker + .htaccess proxy)\n\n1. **Gate first:** lint clean, `tsc --noEmit` 0 errors, build produces `dist\u002Findex.js`, unit tests green, E2E green, no secrets tracked, no dev URLs in `dist`, deploy credentials present (never in repo — `.env.deploy`-style gitignored file only).\n2. **Ship minimal tarball:** `dist + package.json + prisma` only. Never `node_modules`, `uploads`, or backups. Never print or overwrite the server `.env`.\n3. **On the server:** `npm install --production` → `prisma generate` (pin the CLI version — a bare `npx prisma` can pull a wrong major) → `prisma db push`.\n4. **Restart with verified death:** SIGTERM the old worker matched by CWD, wait up to ~20s verifying zero remain, SIGKILL stragglers, then start the new one with `setsid nohup`. Starting the new copy before the old one releases the port kills the new copy with `EADDRINUSE` while the health check still passes against the OLD copy — always confirm the PID changed.\n5. **Post-checks from the public internet:** `\u002Fhealth` (or proxy path) → 200, one auth endpoint with a dummy payload returns the generic (non-enumerating) response, the public page → 200, exactly ONE worker process for the app, thread count sane (see below).\n\n## The single-copy rule (hard)\n\n- Exactly ONE running copy per backend, matched by process CWD (`readlink \u002Fproc\u002F\u003Cpid>\u002Fcwd`). A second copy (stale nohup + a Passenger Play, a crashed restart that didn't die) doubles thread usage and causes `EADDRINUSE` crashes.\n- **Passenger entry vs nohup: pick ONE mechanism.** If the app runs as a nohup worker behind an `.htaccess` proxy, a `stopped` Passenger entry for the same app root must stay stopped — pressing Play spawns a duplicate that fights for the same port and DB. Never delete a Passenger entry blindly (deletion may remove files); leaving it stopped is safe.\n- A Passenger entry whose docroot subdirectory (e.g. `public_html\u002F\u003Curi>\u002F.htaccess`) does not exist fails to start with `FileNotFoundError` from `clselector` — that is expected when the app is served by port+proxy instead of Passenger URI mapping. Do not \"fix\" it by creating the directory unless migrating to Passenger serving.\n\n## CloudLinux LVE triage (NPROC counts threads)\n\n- **NPROC counts threads, not processes.** A Node backend with a multithreaded engine layer (e.g. Prisma\u002Ftokio workers scale with core count) can sit at ~40+ slots while idle with CPU near zero — two copies pin a 100-slot account with nothing visibly wrong. Thread count per copy is checked with `ls \u002Fproc\u002F\u003Cpid>\u002Ftask | wc -l`.\n- **Saturation signature:** `fork: Resource temporarily unavailable` everywhere, SSH authenticates but exec\u002FSFTP channels never answer, the resource panel itself errors. Auth succeeding while channels stall rules out credential\u002Frate-limit blocks.\n- **When fork is dead, only shell builtins work** (`echo`, `kill`, `for`, `[[ ]]`, redirection reads of `\u002Fproc`). `ps`, `grep`, `tr`, `pgrep`, `curl` all need fork+exec and fail.\n- **Never hammer a saturated account.** Each SSH attempt, panel click, and Play press spawns account processes. One probe at a time, generous waits between them; stop pressing panel buttons once NPROC is near the cap.\n- Account owner vs operator: the cPanel account may belong to the client (tickets go out under their name), while deploy credentials live in the operator's local gitignored env file. Rotate any credential that ever landed in chat or repo history.\n\n## Dictating shell to the user over chat\n\n- **Chat corrupts paired asterisks in glob patterns** (`*sshd*` arrives as `sshd`, silently breaking `case` matches so \"nothing found\" looks like a clean result). When the user must paste shell from chat, match with `[[ $var =~ substr1|substr2 ]]` regex instead of `case` globs, and design every loop to print an explicit sentinel (`DONE`) plus per-item action lines (`KILLING \u003Cpid>`) so a zero-result run is distinguishable from a broken-pattern run.\n- Prefer panel UI paths (Resource Usage snapshot tab, Node.js Selector states) over pasted shell when the user is non-technical — screenshots transcribed via vision beat terminal output they can't copy.\n\n","# Shared-Hosting Node Ops — cPanel\u002FCloudLinux backends\n\nClass-level workflow for Node backends living on shared cPanel hosting: no root, CloudLinux LVE limits, Node.js Selector (Passenger) available, deploys over SSH, Apache `.htaccess` proxy to a localhost port. Goal: one healthy copy, verified from the public internet, without ever pinning the account's process limit.\n\n## Operating policy (standing)\n\n- **Self-solve first, hosting support is last resort.** Diagnose everything reachable from our side (SSH, panel UI, public curl) before opening a ticket. Open one only when the cause is invisible from the account (e.g. processes nobody owns, panel backend itself crashing).\n- **Support comms are non-technical.** Ticket drafts state symptoms + the one action requested (\"kill the stuck processes on my account and tell me what spawns them\"), never runtime internals, library names, or stack traces.\n- **Act, don't narrate stalls.** If a step blocks, say what is blocked in one line and what runs next — never end a turn with only a promise. Background deploys report back on completion.\n\n## Deploy flow (nohup worker + .htaccess proxy)\n\n1. **Gate first:** lint clean, `tsc --noEmit` 0 errors, build produces `dist\u002Findex.js`, unit tests green, E2E green, no secrets tracked, no dev URLs in `dist`, deploy credentials present (never in repo — `.env.deploy`-style gitignored file only).\n2. **Ship minimal tarball:** `dist + package.json + prisma` only. Never `node_modules`, `uploads`, or backups. Never print or overwrite the server `.env`.\n3. **On the server:** `npm install --production` → `prisma generate` (pin the CLI version — a bare `npx prisma` can pull a wrong major) → `prisma db push`.\n4. **Restart with verified death:** SIGTERM the old worker matched by CWD, wait up to ~20s verifying zero remain, SIGKILL stragglers, then start the new one with `setsid nohup`. Starting the new copy before the old one releases the port kills the new copy with `EADDRINUSE` while the health check still passes against the OLD copy — always confirm the PID changed.\n5. **Post-checks from the public internet:** `\u002Fhealth` (or proxy path) → 200, one auth endpoint with a dummy payload returns the generic (non-enumerating) response, the public page → 200, exactly ONE worker process for the app, thread count sane (see below).\n\n## The single-copy rule (hard)\n\n- Exactly ONE running copy per backend, matched by process CWD (`readlink \u002Fproc\u002F\u003Cpid>\u002Fcwd`). A second copy (stale nohup + a Passenger Play, a crashed restart that didn't die) doubles thread usage and causes `EADDRINUSE` crashes.\n- **Passenger entry vs nohup: pick ONE mechanism.** If the app runs as a nohup worker behind an `.htaccess` proxy, a `stopped` Passenger entry for the same app root must stay stopped — pressing Play spawns a duplicate that fights for the same port and DB. Never delete a Passenger entry blindly (deletion may remove files); leaving it stopped is safe.\n- A Passenger entry whose docroot subdirectory (e.g. `public_html\u002F\u003Curi>\u002F.htaccess`) does not exist fails to start with `FileNotFoundError` from `clselector` — that is expected when the app is served by port+proxy instead of Passenger URI mapping. Do not \"fix\" it by creating the directory unless migrating to Passenger serving.\n\n## CloudLinux LVE triage (NPROC counts threads)\n\n- **NPROC counts threads, not processes.** A Node backend with a multithreaded engine layer (e.g. Prisma\u002Ftokio workers scale with core count) can sit at ~40+ slots while idle with CPU near zero — two copies pin a 100-slot account with nothing visibly wrong. Thread count per copy is checked with `ls \u002Fproc\u002F\u003Cpid>\u002Ftask | wc -l`.\n- **Saturation signature:** `fork: Resource temporarily unavailable` everywhere, SSH authenticates but exec\u002FSFTP channels never answer, the resource panel itself errors. Auth succeeding while channels stall rules out credential\u002Frate-limit blocks.\n- **When fork is dead, only shell builtins work** (`echo`, `kill`, `for`, `[[ ]]`, redirection reads of `\u002Fproc`). `ps`, `grep`, `tr`, `pgrep`, `curl` all need fork+exec and fail.\n- **Never hammer a saturated account.** Each SSH attempt, panel click, and Play press spawns account processes. One probe at a time, generous waits between them; stop pressing panel buttons once NPROC is near the cap.\n- Account owner vs operator: the cPanel account may belong to the client (tickets go out under their name), while deploy credentials live in the operator's local gitignored env file. Rotate any credential that ever landed in chat or repo history.\n\n## Dictating shell to the user over chat\n\n- **Chat corrupts paired asterisks in glob patterns** (`*sshd*` arrives as `sshd`, silently breaking `case` matches so \"nothing found\" looks like a clean result). When the user must paste shell from chat, match with `[[ $var =~ substr1|substr2 ]]` regex instead of `case` globs, and design every loop to print an explicit sentinel (`DONE`) plus per-item action lines (`KILLING \u003Cpid>`) so a zero-result run is distinguishable from a broken-pattern run.\n- Prefer panel UI paths (Resource Usage snapshot tab, Node.js Selector states) over pasted shell when the user is non-technical — screenshots transcribed via vision beat terminal output they can't copy.\n\n",{"name":5,"description":7},"main","688810f2886d212632acf81e532b24e483dd8b98","skills\u002Fdevops\u002Fshared-hosting-node-ops","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills","https:\u002F\u002Fgithub.com\u002Fiberi22","Senior WEB Full-Stack","2026-10-12 02:46:21",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add iberi22\u002Fskills --skill shared-hosting-node-ops",{"tool":37,"command":38},"bunx","bunx skills add iberi22\u002Fskills --skill shared-hosting-node-ops",{"tool":40,"command":41},"pnpm","pnpm dlx skills add iberi22\u002Fskills --skill shared-hosting-node-ops","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fshared-hosting-node-ops\u002FSKILL.md",true,[],[46,52,59,65,71,77],{"skillNo":47,"name":48,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M72TWQEQD46ZC9TRBAABF78P","web-design-guidelines","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fweb\u002Fweb-design-guidelines\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M72TWMQFTYD08DGXVAXRPPEB","blocked-page-recovery","Use when a fetch fails: 403\u002F429, paywall, WAF, bot wall. Recovers the page via archives and provenance-checked fallbacks.","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fweb\u002Fblocked-page-recovery\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M72TVQMS3HCTX18C8T97WTQQ","studio-coach","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fstudio-coach\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M72TVNA2PR9RZW0ZAXYP1G6J","src-generator","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fsrc-generator\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M72TVEJHHB6SAT3R3TY9MJKS","sqlite-pro","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fsqlite-pro\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M72TVC2EVBHQHCX96VTTYKB8","rigor-evaluator","Use when you need a quick heuristic rigor score (10 criteria, 0-2 each) for the features in a .gitcore\u002Ffeatures.json file, to decide which features are ready to ship.","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Frigor-evaluator\u002FSKILL.md",[],[]]