[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77MN9RP3GSHMVYMYSXRZATT":3,"skill-same:01M77MN9RP3GSHMVYMYSXRZATT":54},{"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":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M77MN9RP3GSHMVYMYSXRZATT","persistent-localhost",null,"Manage persistent dev servers, APIs, and other local processes on a port using macOS LaunchAgents. Use when starting, stopping, restarting, inspecting, or troubleshooting local servers that should survive shell exit and restart after crashes.","davidondrej\u002Fskills","davidondrej","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F131768515?v=4","01M77MHARFKYVNT9FV22807T8F","David Ondrej","01M77MHASHNDV507F9NTVKR2CY",4310,"MIT","https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fpersistent-localhost\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: persistent-localhost\ndescription: \"Manage persistent dev servers, APIs, and other local processes on a port using macOS LaunchAgents. Use when starting, stopping, restarting, inspecting, or troubleshooting local servers that should survive shell exit and restart after crashes.\"\n---\n\n# Persistent localhost servers (macOS launchd)\n\nOne script does everything. Resolve `scripts\u002Fpersistent-localhost.sh` relative to this `SKILL.md`, never from the current directory.\n\n## Workflow\n\n1. Check what already exists:\n\n```bash\nscripts\u002Fpersistent-localhost.sh list\n```\n\n2. Start the server. `--name` is the handle. `--port` enables readiness checks and duplicate handling. `--dir` defaults to the current directory.\n\n```bash\nscripts\u002Fpersistent-localhost.sh start --name myproj --port 5111 --cmd \".\u002Fbin\u002Fserve\"\n```\n\nThe command returns only after the port is listening, or fails with the last 20 log lines. Report the printed `URL=` to the user.\n\n3. Inspect, restart, read logs, stop:\n\n```bash\nscripts\u002Fpersistent-localhost.sh status myproj\nscripts\u002Fpersistent-localhost.sh restart myproj   # after editing code that has no reloader\nscripts\u002Fpersistent-localhost.sh logs myproj 100\nscripts\u002Fpersistent-localhost.sh stop myproj\n```\n\n## Hot reload\n\nPrefer the framework's own reloader in `--cmd` (`flask run --debug`, `vite`, `uvicorn --reload`, `node --watch`). If the server has none, add `--watch`. It wraps the command in `watchexec -r` on the working directory. Never use both. Requires `brew install watchexec`.\n\n## Rules the script enforces\n\n- Runs as `com.persistent-localhost.\u003Cname>` in the user `gui` domain via `launchctl bootstrap`. Restart uses `kickstart -kp`, stop uses `bootout`. No deprecated `load`, `start`, `stop`, no broad `pkill`.\n- `KeepAlive` only on crash. A clean exit stays down. Throttle 5s so a syntax error cannot spin.\n- Port already taken by the same app (our own label, or a stray process with the same working directory) is replaced. A different app is left alone and the next free port is used. Read the printed `PORT=`.\n- The caller's `PATH` and a `PORT` variable are passed into the job. Add more with `--env KEY=VAL`.\n- Logs: `~\u002FLibrary\u002FLogs\u002Fpersistent-localhost\u002F\u003Cname>.log`. State: `~\u002FLibrary\u002FApplication Support\u002Fpersistent-localhost\u002F\u003Cname>.state`. Plist: `~\u002FLibrary\u002FLaunchAgents\u002F`.\n\n## Fallback\n\nNever start servers with `nohup`, `&`, `disown`, `setsid`, or `run_in_background`. If `launchctl bootstrap` fails, report the failure and stop.\n","# Persistent localhost servers (macOS launchd)\n\nOne script does everything. Resolve `scripts\u002Fpersistent-localhost.sh` relative to this `SKILL.md`, never from the current directory.\n\n## Workflow\n\n1. Check what already exists:\n\n```bash\nscripts\u002Fpersistent-localhost.sh list\n```\n\n2. Start the server. `--name` is the handle. `--port` enables readiness checks and duplicate handling. `--dir` defaults to the current directory.\n\n```bash\nscripts\u002Fpersistent-localhost.sh start --name myproj --port 5111 --cmd \".\u002Fbin\u002Fserve\"\n```\n\nThe command returns only after the port is listening, or fails with the last 20 log lines. Report the printed `URL=` to the user.\n\n3. Inspect, restart, read logs, stop:\n\n```bash\nscripts\u002Fpersistent-localhost.sh status myproj\nscripts\u002Fpersistent-localhost.sh restart myproj   # after editing code that has no reloader\nscripts\u002Fpersistent-localhost.sh logs myproj 100\nscripts\u002Fpersistent-localhost.sh stop myproj\n```\n\n## Hot reload\n\nPrefer the framework's own reloader in `--cmd` (`flask run --debug`, `vite`, `uvicorn --reload`, `node --watch`). If the server has none, add `--watch`. It wraps the command in `watchexec -r` on the working directory. Never use both. Requires `brew install watchexec`.\n\n## Rules the script enforces\n\n- Runs as `com.persistent-localhost.\u003Cname>` in the user `gui` domain via `launchctl bootstrap`. Restart uses `kickstart -kp`, stop uses `bootout`. No deprecated `load`, `start`, `stop`, no broad `pkill`.\n- `KeepAlive` only on crash. A clean exit stays down. Throttle 5s so a syntax error cannot spin.\n- Port already taken by the same app (our own label, or a stray process with the same working directory) is replaced. A different app is left alone and the next free port is used. Read the printed `PORT=`.\n- The caller's `PATH` and a `PORT` variable are passed into the job. Add more with `--env KEY=VAL`.\n- Logs: `~\u002FLibrary\u002FLogs\u002Fpersistent-localhost\u002F\u003Cname>.log`. State: `~\u002FLibrary\u002FApplication Support\u002Fpersistent-localhost\u002F\u003Cname>.state`. Plist: `~\u002FLibrary\u002FLaunchAgents\u002F`.\n\n## Fallback\n\nNever start servers with `nohup`, `&`, `disown`, `setsid`, or `run_in_background`. If `launchctl bootstrap` fails, report the failure and stop.\n",{"name":5,"description":7},"main","a9d4ad810cf3c303fde23bdcd5fc86df7c57daf3","skills\u002Fpersistent-localhost",626,"https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills","https:\u002F\u002Fwww.cloudroom.dev","https:\u002F\u002Fgithub.com\u002Fdavidondrej","https:\u002F\u002Fwww.cloudroom.dev\u002F","founder of Cloudroom","2026-11-14 10:00:36",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add davidondrej\u002Fskills --skill persistent-localhost",{"tool":40,"command":41},"bunx","bunx skills add davidondrej\u002Fskills --skill persistent-localhost",{"tool":43,"command":44},"pnpm","pnpm dlx skills add davidondrej\u002Fskills --skill persistent-localhost","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fpersistent-localhost\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"scripts\u002Fpersistent-localhost.sh","SCRIPT","脚本",7123,"https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fpersistent-localhost\u002Fscripts\u002Fpersistent-localhost.sh",[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M77MPMR6DE13EZFSMY76S6YB","varied-search","Research a topic across the web, GitHub, and X\u002FTwitter with DeepAPI and produce a concise Markdown report. Use for varied-search or requests to compare web coverage, relevant repositories, and social discussion.","https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fvaried-search\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M77MPG5F9H2JBW4VFHBY1VSM","total-review","Run five independent max-effort reviews (Fable 5.1, Opus 5.5, GPT-6 Astra, GPT-6.1 Sol, Muse Wonder), merge their findings, and fix only what the user approves. Use for \u002Ftotal-review, or when the user or another agent asks for a total review.","https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftotal-review\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M77MP8XZJ42ZJZQV8C76B353","stop-overthinking","Manually-invoked skill that stops overthinking and forces a short, practical decision. Use only when the user explicitly invokes stop-overthinking.","https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fstop-overthinking\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M77MP5EGQSNF1VS9SY8CK60Q","state","Manually-invoked skill that recaps what the current thread is doing and how far along it is. Use when the user says \"state\", \"where are we\", or \"what % are we done\".","https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fstate\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M77MP2H479SWAP7687RAVG7T","setup-help","Guide setup one step at a time and show what remains. Use only when the user explicitly asks for it by name.","https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsetup-help\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M77MNZV9X8NPC9JZMWP8WAF8","self-archive","Archive the current Cloudroom thread and release its runtime. Use only when the user explicitly asks to self-archive, archive yourself, or archive this thread.","https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fself-archive\u002FSKILL.md",[],[]]