[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71K78ZSQXHVZPCPDMG3B75J":3,"skill-same:01M71K78ZSQXHVZPCPDMG3B75J":74},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":50,"ownerHtmlUrl":51,"ownerBlogUrl":52,"ownerDescription":6,"updatedAt":53,"install":54,"resources":67},"01M71K78ZSQXHVZPCPDMG3B75J","harden-vps",null,"Harden a production Linux VPS for your application across three layers — application (systemd hardening, monitoring alerts, backup automation), Ubuntu OS (UFW firewall, fail2ban SSH, unattended-upgrades, SSH hardening), and VPS provider (health checks, daily backups, monthly snapshots). Use when the user wants to secure a production server, harden a VPS, audit server security, or mentions production hardening, VPS security, or harden the server.","danielvm-git\u002Fbigpowers","danielvm-git","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1020864?v=4","01M71H1N1CTQ529S0KN7KETVG6","Daniel V M","01M71H1N218Y3S8WHCJ58NPRSW",292,"MIT","https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers\u002Fblob\u002Fmain\u002Fskills\u002Fharden-vps\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"harden vps","harden","vps","for","three","unattended","security","os","secure","audit","haiku","alerts","server","across","monitoring","when","snapshots","Ubuntu","firewall","ufw","2026-11-10 10:12:30",false,"---\nname: harden-vps\ndescription: \"Harden a production Linux VPS for your application across three layers — application (systemd hardening, monitoring alerts, backup automation), Ubuntu OS (UFW firewall, fail2ban SSH, unattended-upgrades, SSH hardening), and VPS provider (health checks, daily backups, monthly snapshots). Use when the user wants to secure a production server, harden a VPS, audit server security, or mentions production hardening, VPS security, or harden the server.\"\nmodel: haiku\neffort: standard\n---\n\n# Harden VPS\n\nThree-layer production hardening for a self-hosted app on any VPS. Each layer independently verifiable. Apply OS first (firewall blocks attacks immediately), then your application (alerts + backups), then your VPS provider (snapshots). See [REFERENCE.md](REFERENCE.md) for full script bodies, systemd unit template, and gotchas.\n\n## Quick start\n\nSSH as root into the VPS. Find credentials in the your VPS provider Customer Control Panel.\n\n> **HARD GATE** — Run `ufw status` first. No firewall = layer 1 takes priority over everything.\n\n## Layer 1 — Ubuntu OS\n\n```bash\n# UFW\nufw default deny incoming && ufw default allow outgoing\nufw allow 22\u002Ftcp && ufw allow 80\u002Ftcp && ufw allow 443\u002Ftcp && ufw enable\n# → verify: ufw status | grep -q active\n\n# fail2ban\napt install -y fail2ban\n# Configure \u002Fetc\u002Ffail2ban\u002Fjail.local: sshd, maxretry=3, bantime=3600, findtime=600\nsystemctl restart fail2ban\n# → verify: fail2ban-client status sshd\n\n# unattended-upgrades\napt install -y unattended-upgrades && dpkg-reconfigure -plow unattended-upgrades\n# → verify: systemctl is-active unattended-upgrades | grep -q active\n\n# SSH: PermitRootLogin no, PasswordAuthentication no, PubkeyAuthentication yes\n# → verify: sshd -T | grep -E 'permitrootlogin no|passwordauthentication no'\n\n# Deploy healthcheck.sh → \u002Fopt\u002Fyour-app\u002Fscripts\u002Fhealthcheck.sh\n# Crontab: *\u002F5 * * * * \u002Fopt\u002Fyour-app\u002Fscripts\u002Fhealthcheck.sh\n```\n\n## Layer 2 — applicationlication\n\n```bash\n# systemd: User=your-app, NoNewPrivileges=yes, ProtectSystem=full,\n#   ProtectKernelTunables=yes, ProtectKernelModules=yes,\n#   ProtectControlGroups=yes, RestrictAddressFamilies=AF_INET AF_INET6,\n#   RestrictRealtime=yes, PrivateTmp=yes, LimitNOFILE=65536\n# → verify: systemctl show your-app -p NoNewPrivileges -p ProtectSystem -p User\n\n# Alerts (your application requires auth; insert via SQLite)\nsqlite3 \u002Fopt\u002Fyour-app\u002Fdata\u002Fyour-app.db \"\nINSERT INTO monitoring_alerts (id,name,metric,threshold,operator,enabled,duration_seconds)\nVALUES ('a1','Disk >80%','disk_used_percent',80,'gt',1,300);\nINSERT INTO monitoring_alerts (id,name,metric,threshold,operator,enabled,duration_seconds)\nVALUES ('a2','CPU >90%','cpu_percent',90,'gt',1,60);\nINSERT INTO monitoring_alerts (id,name,metric,threshold,operator,enabled,duration_seconds)\nVALUES ('a3','RAM >85%','mem_used_percent',85,'gt',1,120);\n\"\nsystemctl restart your-app\n\n# Backup crontab (root):\n# 0 2 * * * cp \u002Fopt\u002Fyour-app\u002Fdata\u002Fyour-app.db \u002Fbackup\u002Fyour-app-$(date +\\%Y\\%m\\%d).db\n# 0 3 * * * find \u002Fbackup\u002F -name \"your-app-*.db\" -mtime +90 -delete\n```\n\n## Layer 3 — VPS provider\n\n```bash\n# cntb CLI\ncurl -sL \"$(curl -sL https:\u002F\u002Fapi.github.com\u002Frepos\u002Fcontabo\u002Fcntb\u002Freleases\u002Flatest \\\n  | grep browser_download_url.*linux_amd64.tar.gz | head -1 | cut -d'\"' -f4)\" \\\n  | tar xz -C \u002Fusr\u002Flocal\u002Fbin\n\n# Snapshot script → \u002Fopt\u002Fyour-app\u002Fscripts\u002Fcontabo-snapshot.sh (reads from \u002Fopt\u002Fyour-app\u002F.env)\n# Credentials as env vars in \u002Fopt\u002Fyour-app\u002F.env (deployed by GitHub Actions):\n#   CONTABO_CLIENT_ID, CONTABO_CLIENT_SECRET, CONTABO_API_USER, CONTABO_API_PASSWORD\n# Crontab: 0 4 1 * * \u002Fopt\u002Fyour-app\u002Fscripts\u002Fcontabo-snapshot.sh\n\n# > HARD GATE — Snapshot cron silently fails until env vars are set in .env.\n# Credentials source: your VPS provider Customer Panel → API Details.\n# Local dev: add to .envrc. Production: GitHub Secrets → deploy → \u002Fopt\u002Fyour-app\u002F.env\n```\n\n## CRITICAL GOTCHAS\n\n1. **Shell escaping in Orca terminals:** `$VAR`, `$(…)`, and `%` get eaten by the local shell. Always use base64: `echo '\u003Cbase64>' | base64 -d > script.sh`\n2. **Crontab `%`:** cron interprets `%` as newline. Escape as `\\%` in `$(date +\\%Y\\%m\\%d)`\n3. **fail2ban exit 255:** means a jail references a missing log file. Remove the broken jail, restart.\n4. **your application alerts need auth:** POST to `\u002Fapi\u002Fmonitoring\u002Falerts` requires Bearer token. Workaround: insert directly into SQLite, then restart your application.\n\n## Verify all 8 gates\n\n```bash\nufw status|grep -q active||echo FAIL:ufw\nfail2ban-client status sshd>\u002Fdev\u002Fnull 2>&1||echo FAIL:fail2ban\nsystemctl is-active unattended-upgrades|grep -q active||echo FAIL:unattended\nsshd -T|grep -q 'permitrootlogin no'||echo FAIL:sshd\nsystemctl show your-app -p NoNewPrivileges|grep -q yes||echo FAIL:systemd\nsystemctl is-active your-app|grep -q active||echo FAIL:your-app\nsqlite3 \u002Fopt\u002Fyour-app\u002Fdata\u002Fyour-app.db \"SELECT count(*) FROM monitoring_alerts\"|grep -q 3||echo FAIL:alerts\ncrontab -l|grep -q healthcheck&&crontab -l|grep -q your-app.db&&crontab -l|grep -q contabo-snapshot||echo FAIL:crontab\necho ALL 8 GATES PASSED\n```\n\n→ verify: # requires VPS SSH — run the 8-gate one-liner on the VPS manually\n","# Harden VPS\n\nThree-layer production hardening for a self-hosted app on any VPS. Each layer independently verifiable. Apply OS first (firewall blocks attacks immediately), then your application (alerts + backups), then your VPS provider (snapshots). See [REFERENCE.md](REFERENCE.md) for full script bodies, systemd unit template, and gotchas.\n\n## Quick start\n\nSSH as root into the VPS. Find credentials in the your VPS provider Customer Control Panel.\n\n> **HARD GATE** — Run `ufw status` first. No firewall = layer 1 takes priority over everything.\n\n## Layer 1 — Ubuntu OS\n\n```bash\n# UFW\nufw default deny incoming && ufw default allow outgoing\nufw allow 22\u002Ftcp && ufw allow 80\u002Ftcp && ufw allow 443\u002Ftcp && ufw enable\n# → verify: ufw status | grep -q active\n\n# fail2ban\napt install -y fail2ban\n# Configure \u002Fetc\u002Ffail2ban\u002Fjail.local: sshd, maxretry=3, bantime=3600, findtime=600\nsystemctl restart fail2ban\n# → verify: fail2ban-client status sshd\n\n# unattended-upgrades\napt install -y unattended-upgrades && dpkg-reconfigure -plow unattended-upgrades\n# → verify: systemctl is-active unattended-upgrades | grep -q active\n\n# SSH: PermitRootLogin no, PasswordAuthentication no, PubkeyAuthentication yes\n# → verify: sshd -T | grep -E 'permitrootlogin no|passwordauthentication no'\n\n# Deploy healthcheck.sh → \u002Fopt\u002Fyour-app\u002Fscripts\u002Fhealthcheck.sh\n# Crontab: *\u002F5 * * * * \u002Fopt\u002Fyour-app\u002Fscripts\u002Fhealthcheck.sh\n```\n\n## Layer 2 — applicationlication\n\n```bash\n# systemd: User=your-app, NoNewPrivileges=yes, ProtectSystem=full,\n#   ProtectKernelTunables=yes, ProtectKernelModules=yes,\n#   ProtectControlGroups=yes, RestrictAddressFamilies=AF_INET AF_INET6,\n#   RestrictRealtime=yes, PrivateTmp=yes, LimitNOFILE=65536\n# → verify: systemctl show your-app -p NoNewPrivileges -p ProtectSystem -p User\n\n# Alerts (your application requires auth; insert via SQLite)\nsqlite3 \u002Fopt\u002Fyour-app\u002Fdata\u002Fyour-app.db \"\nINSERT INTO monitoring_alerts (id,name,metric,threshold,operator,enabled,duration_seconds)\nVALUES ('a1','Disk >80%','disk_used_percent',80,'gt',1,300);\nINSERT INTO monitoring_alerts (id,name,metric,threshold,operator,enabled,duration_seconds)\nVALUES ('a2','CPU >90%','cpu_percent',90,'gt',1,60);\nINSERT INTO monitoring_alerts (id,name,metric,threshold,operator,enabled,duration_seconds)\nVALUES ('a3','RAM >85%','mem_used_percent',85,'gt',1,120);\n\"\nsystemctl restart your-app\n\n# Backup crontab (root):\n# 0 2 * * * cp \u002Fopt\u002Fyour-app\u002Fdata\u002Fyour-app.db \u002Fbackup\u002Fyour-app-$(date +\\%Y\\%m\\%d).db\n# 0 3 * * * find \u002Fbackup\u002F -name \"your-app-*.db\" -mtime +90 -delete\n```\n\n## Layer 3 — VPS provider\n\n```bash\n# cntb CLI\ncurl -sL \"$(curl -sL https:\u002F\u002Fapi.github.com\u002Frepos\u002Fcontabo\u002Fcntb\u002Freleases\u002Flatest \\\n  | grep browser_download_url.*linux_amd64.tar.gz | head -1 | cut -d'\"' -f4)\" \\\n  | tar xz -C \u002Fusr\u002Flocal\u002Fbin\n\n# Snapshot script → \u002Fopt\u002Fyour-app\u002Fscripts\u002Fcontabo-snapshot.sh (reads from \u002Fopt\u002Fyour-app\u002F.env)\n# Credentials as env vars in \u002Fopt\u002Fyour-app\u002F.env (deployed by GitHub Actions):\n#   CONTABO_CLIENT_ID, CONTABO_CLIENT_SECRET, CONTABO_API_USER, CONTABO_API_PASSWORD\n# Crontab: 0 4 1 * * \u002Fopt\u002Fyour-app\u002Fscripts\u002Fcontabo-snapshot.sh\n\n# > HARD GATE — Snapshot cron silently fails until env vars are set in .env.\n# Credentials source: your VPS provider Customer Panel → API Details.\n# Local dev: add to .envrc. Production: GitHub Secrets → deploy → \u002Fopt\u002Fyour-app\u002F.env\n```\n\n## CRITICAL GOTCHAS\n\n1. **Shell escaping in Orca terminals:** `$VAR`, `$(…)`, and `%` get eaten by the local shell. Always use base64: `echo '\u003Cbase64>' | base64 -d > script.sh`\n2. **Crontab `%`:** cron interprets `%` as newline. Escape as `\\%` in `$(date +\\%Y\\%m\\%d)`\n3. **fail2ban exit 255:** means a jail references a missing log file. Remove the broken jail, restart.\n4. **your application alerts need auth:** POST to `\u002Fapi\u002Fmonitoring\u002Falerts` requires Bearer token. Workaround: insert directly into SQLite, then restart your application.\n\n## Verify all 8 gates\n\n```bash\nufw status|grep -q active||echo FAIL:ufw\nfail2ban-client status sshd>\u002Fdev\u002Fnull 2>&1||echo FAIL:fail2ban\nsystemctl is-active unattended-upgrades|grep -q active||echo FAIL:unattended\nsshd -T|grep -q 'permitrootlogin no'||echo FAIL:sshd\nsystemctl show your-app -p NoNewPrivileges|grep -q yes||echo FAIL:systemd\nsystemctl is-active your-app|grep -q active||echo FAIL:your-app\nsqlite3 \u002Fopt\u002Fyour-app\u002Fdata\u002Fyour-app.db \"SELECT count(*) FROM monitoring_alerts\"|grep -q 3||echo FAIL:alerts\ncrontab -l|grep -q healthcheck&&crontab -l|grep -q your-app.db&&crontab -l|grep -q contabo-snapshot||echo FAIL:crontab\necho ALL 8 GATES PASSED\n```\n\n→ verify: # requires VPS SSH — run the 8-gate one-liner on the VPS manually\n",{"name":5,"model":29,"effort":44,"description":7},"standard","main","72f5e4c8b43f60cf86b37078ad8cd7e22daf67aa","skills\u002Fharden-vps",23,"https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers","https:\u002F\u002Fdanielvm-git.github.io\u002Fbigpowers\u002F","https:\u002F\u002Fgithub.com\u002Fdanielvm-git","danielvm.net","2026-11-10 01:18:54",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add danielvm-git\u002Fbigpowers --skill harden-vps",{"tool":60,"command":61},"bunx","bunx skills add danielvm-git\u002Fbigpowers --skill harden-vps",{"tool":63,"command":64},"pnpm","pnpm dlx skills add danielvm-git\u002Fbigpowers --skill harden-vps","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers\u002Fblob\u002Fmain\u002Fskills\u002Fharden-vps\u002FSKILL.md",true,[68],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"REFERENCE.md","REFERENCE","参考文档",5706,"https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers\u002Fblob\u002Fmain\u002Fskills\u002Fharden-vps\u002FREFERENCE.md",[75,90,97,122,145,166],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":39},"01M71KBG9F8X644MJB16H4V8M7","skill-verify-fail-open-fixture","Negative-path fixture for run-skill-verify.sh — must never PASS.","https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers\u002Fblob\u002Fmain\u002Fspecs\u002Fverifications\u002Ffixtures\u002Fskill-verify-fail-open\u002FSKILL.md",[],[82,83,84,85,86,87,88,22,89],"fixture","open","verify","skill verify fail open fixture","skill verify","path","run","never",{"skillNo":91,"name":92,"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":93,"categories":94,"keywords":95,"publishedAt":39},"01M71KBE3BKEMKNE0C5DGVDWZH","negative-path","https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers\u002Fblob\u002Fmain\u002Fspecs\u002Fverifications\u002Ffixtures\u002Fnegative-path\u002FSKILL.md",[],[96,87],"negative path",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":39},"01M71KBBGF7Y4EB4AMHBZ8CJFC","write-document","Write, organize, and sync high-integrity technical documents using the BMAD methodology. Ensures every document is Bold, Minimal, Actionable, and Durable. Use when creating architectural docs, technical guides, or organizing the specs\u002F directory.","https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-document\u002FSKILL.md",[],[104,105,106,107,108,109,110,111,112,44,113,34,114,115,116,117,118,119,120,121],"write","write document","document","documents","actionable","technical","methodology","high","bmad","use","minimal","bold","sonnet","integrity","organize","sync","directory","guides",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":39},"01M71KB8TM089JJD5AY5KAFSDM","wire-observability","Add structured JSON logging, observability commands, and idempotent setup scripts to a project. Use when a project needs production-readiness instrumentation, when user wants structured logging, or as a production-readiness gate at any phase of development.","https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers\u002Fblob\u002Fmain\u002Fskills\u002Fwire-observability\u002FSKILL.md",[],[129,130,131,44,132,113,133,134,135,136,116,137,138,139,140,141,142,34,143,144],"observability","wire observability","readiness","commands","development","as","logging","add","instrumentation","at","structured logging","production-readiness","idempotent","phase","project","scripts",{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":39},"01M71KB6CNRANP449DQA3NJZ96","wire-ci","CI pipeline setup with bundled, forge-neutral templates and local validation. Detects the forge from the git remote, generates workflows for supported forges, and skips honestly for the rest. The CI equivalent of wire-observability.","https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers\u002Fblob\u002Fmain\u002Fskills\u002Fwire-ci\u002FSKILL.md",[],[152,153,154,155,156,157,158,159,160,161,162,44,163,22,129,116,164,165],"wire ci","ci","remote","local","pipeline","forge","validation","setup","templates","REST","with","ci pipeline setup","git","workflows",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"publishedAt":39},"01M71KB2ZV98P03X88QR8MT9F1","visual-dashboard","Start a browser-based dashboard that visualizes architecture, implementation plans, and project status. Persists artifacts in .bigpowers\u002Fdashboard\u002F. Reads specs\u002Fstate.yaml, release-plan.yaml, epics, and planning-status via HTTP API or opencode panel.","https:\u002F\u002Fgithub.com\u002Fdanielvm-git\u002Fbigpowers\u002Fblob\u002Fmain\u002Fskills\u002Fvisual-dashboard\u002FSKILL.md",[],[173,174,175,176,177,178,179,180,181,116,182,183,184,185,186,187,188,143,189,190],"dashboard","visual","visual dashboard","status","artifacts","http","plans","planning","panel","start","release","opencode","plan","browser","api","architecture","project status","http api"]