[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F60SMNC22BJ54AC3X5PNSS":3,"skill-same:01M7F60SMNC22BJ54AC3X5PNSS":67},{"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":39,"commitSha":40,"skillDirectory":41,"forksCount":14,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":44,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M7F60SMNC22BJ54AC3X5PNSS","windows-background-process-launching",null,"Launch durable hidden Windows processes safely.","chaorenex1\u002Fhermes-home-content","chaorenex1","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F23194925?v=4","01M7F5NA1D1D02R2MEMYQN2NZT","chan chan","01M7F5NA20KTHMTY2015CYM1TZ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content\u002Fblob\u002Fmain\u002Fskills\u002F.archive\u002Fwindows-background-process-launching\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\r\nname: windows-background-process-launching\r\ndescription: \"Launch durable hidden Windows processes safely.\"\r\nversion: 1.0.0\r\nauthor: Hermes Agent\r\nlicense: MIT\r\nplatforms: [windows]\r\nmetadata:\r\n  hermes:\r\n    tags: [windows, background, subprocess, vbs, services, process-lifecycle]\r\n    related_skills: [cross-platform-cli-launching, systematic-debugging]\r\n---\r\n\r\n# Windows Background Process Launching Skill\r\n\r\nUse this skill when a Windows CLI, daemon, dashboard, gateway, or local service must run asynchronously without opening or flashing a console window. It covers launcher design, environment-derived executable resolution, safe process ownership checks, and runtime verification; it does not replace a real service manager when restart-at-boot or recovery policy is required.\r\n\r\n## When to Use\r\n\r\n- A user asks for a hidden or windowless Windows background launcher.\r\n- A Scheduled Task or Startup-folder entry must start a console CLI silently.\r\n- A launcher must follow a profile-local or relocatable installation root.\r\n- A foreground command works, but double-click\u002Fstartup execution flashes a console.\r\n- A background smoke test must distinguish the newly launched process from an existing listener.\r\n\r\nDo not use this skill for POSIX `systemd`, `launchd`, `nohup`, or `tmux` workflows.\r\n\r\n## Prerequisites\r\n\r\n- Confirm the requested executable and arguments in a foreground terminal first.\r\n- Identify the authoritative installation-root environment variable, such as `HERMES_HOME`.\r\n- Confirm whether the process is one-shot or long-lived.\r\n- Decide whether the launcher needs only hidden execution or also boot persistence and restart policy.\r\n- Check whether the target port or singleton resource is already owned before launching.\r\n\r\n## How to Run\r\n\r\nFor a hidden user-launched process, prefer a `.vbs` launcher executed by `wscript.exe`:\r\n\r\n```text\r\nwscript.exe C:\\path\\to\\launcher.vbs\r\n```\r\n\r\nUse Windows Task Scheduler for boot\u002Flogon persistence. Point the task at `wscript.exe` and pass the launcher path as its argument rather than scheduling a `.cmd` file directly.\r\n\r\nSee `references\u002Fhermes-dashboard-vbs.md` for a complete environment-derived Hermes Dashboard example and its verification recipe.\r\n\r\n## Quick Reference\r\n\r\n| Requirement | Preferred mechanism |\r\n|---|---|\r\n| No visible console | `WScript.Shell.Run command, 0, False` |\r\n| Dynamic install root | Read process, user, then system environment at launch time |\r\n| Safe path construction | `Scripting.FileSystemObject.BuildPath` |\r\n| Spaces in executable path | Quote the executable token explicitly |\r\n| Detached\u002Fasynchronous start | `bWaitOnReturn=False` |\r\n| Missing prerequisite | Exit before launch with a concise actionable error |\r\n| Startup persistence | Task Scheduler invoking `wscript.exe` |\r\n| Runtime proof | Listener + command line + health endpoint + visible-window check |\r\n\r\n## Procedure\r\n\r\n### 1. Reproduce the foreground command\r\n\r\nRun the exact executable and argv in a visible terminal. Confirm it reaches a stable ready state. Do not debug hidden execution and application startup simultaneously.\r\n\r\n### 2. Resolve paths from the runtime environment\r\n\r\nRead the installation root each time the launcher runs. Do not bake one user's absolute home directory into the launcher.\r\n\r\nUse this precedence when the script may be launched by a shell, Explorer, or Task Scheduler:\r\n\r\n1. process environment;\r\n2. user environment;\r\n3. system environment.\r\n\r\nFail explicitly if the variable is absent. Build the executable path from that root and verify the file exists before launch.\r\n\r\n### 3. Use a GUI-subsystem launcher\r\n\r\nPrefer `wscript.exe` plus VBScript for a truly hidden entry point. A `.cmd` or console PowerShell entry point can allocate or briefly flash a console before it hides its child.\r\n\r\nLaunch the console executable itself with window style `0`. Do not switch automatically to `pythonw.exe`: a console-less parent can cause console-subsystem descendants to allocate their own visible windows. A hidden console owned by the long-lived process is usually the more stable process tree.\r\n\r\n### 4. Preserve argument boundaries\r\n\r\nConstruct the command so the executable path is quoted as one token. Keep static arguments literal and validate any user-controlled arguments before interpolation. Avoid broad shell evaluation merely to get redirection or path lookup.\r\n\r\n### 5. Separate hidden launch from persistence\r\n\r\nA hidden asynchronous launch is not a service contract. If the process must survive reboot, configure Task Scheduler with:\r\n\r\n- a deterministic trigger;\r\n- the intended user identity;\r\n- `wscript.exe` as the program;\r\n- the absolute `.vbs` path as the argument;\r\n- an explicit working directory when the application depends on it;\r\n- restart-on-failure behavior appropriate to the application.\r\n\r\n### 6. Verify the real process\r\n\r\nUse several independent facts rather than one status command:\r\n\r\n1. identify every listener or process matching the requested resource;\r\n2. inspect the owning process command line;\r\n3. confirm the command line contains the dynamically resolved executable and intended argv;\r\n4. call one health\u002Fstatus endpoint or equivalent protocol check;\r\n5. enumerate visible top-level windows for the owning PID and require none.\r\n\r\nWhen a port is already occupied, do not kill the first returned PID. Windows may have listeners associated with different local addresses or pre-existing companion services. Confirm executable path and argv before terminating anything.\r\n\r\n## Pitfalls\r\n\r\n- Hard-coding `C:\\Users\\name\\...` instead of resolving the profile\u002Finstall root.\r\n- Assuming a variable present in the current shell is persisted into Explorer or Task Scheduler; check process\u002Fuser\u002Fsystem scopes deliberately.\r\n- Treating `--no-open` as hidden execution; it only prevents browser launch, not console creation.\r\n- Using `.cmd` as the outermost scheduled entry point when zero console flash is required.\r\n- Replacing a console interpreter with `pythonw.exe` without testing descendant console behavior.\r\n- Declaring success because a process exists while its port or health endpoint is not ready.\r\n- Declaring failure from one process-status helper while the requested protocol endpoint is healthy.\r\n- Killing a port owner without matching its executable and arguments to the process created by the test.\r\n- Re-running a launcher against an occupied singleton port and interpreting the hidden child’s quick exit as a launcher bug.\r\n- Leaving application-startup errors entirely invisible; use preflight checks, application logs, or a health probe.\r\n\r\n## Verification\r\n\r\nA complete verification records:\r\n\r\n- the launcher file exists at the requested location;\r\n- the environment variable resolves to the expected root at runtime;\r\n- the derived executable exists;\r\n- `wscript.exe` accepts the script without a VBScript error;\r\n- the long-lived process command line contains the expected executable and arguments;\r\n- one application-level health check succeeds;\r\n- the owner PID has no visible top-level windows;\r\n- any pre-existing process or listener was preserved unless the user explicitly authorized replacement.\r\n\r\nFor test cleanup, terminate only the PID whose executable and argv match the launched fixture. If ownership cannot be proven, stop and report the conflict rather than widening the kill scope.\r\n","# Windows Background Process Launching Skill\r\n\r\nUse this skill when a Windows CLI, daemon, dashboard, gateway, or local service must run asynchronously without opening or flashing a console window. It covers launcher design, environment-derived executable resolution, safe process ownership checks, and runtime verification; it does not replace a real service manager when restart-at-boot or recovery policy is required.\r\n\r\n## When to Use\r\n\r\n- A user asks for a hidden or windowless Windows background launcher.\r\n- A Scheduled Task or Startup-folder entry must start a console CLI silently.\r\n- A launcher must follow a profile-local or relocatable installation root.\r\n- A foreground command works, but double-click\u002Fstartup execution flashes a console.\r\n- A background smoke test must distinguish the newly launched process from an existing listener.\r\n\r\nDo not use this skill for POSIX `systemd`, `launchd`, `nohup`, or `tmux` workflows.\r\n\r\n## Prerequisites\r\n\r\n- Confirm the requested executable and arguments in a foreground terminal first.\r\n- Identify the authoritative installation-root environment variable, such as `HERMES_HOME`.\r\n- Confirm whether the process is one-shot or long-lived.\r\n- Decide whether the launcher needs only hidden execution or also boot persistence and restart policy.\r\n- Check whether the target port or singleton resource is already owned before launching.\r\n\r\n## How to Run\r\n\r\nFor a hidden user-launched process, prefer a `.vbs` launcher executed by `wscript.exe`:\r\n\r\n```text\r\nwscript.exe C:\\path\\to\\launcher.vbs\r\n```\r\n\r\nUse Windows Task Scheduler for boot\u002Flogon persistence. Point the task at `wscript.exe` and pass the launcher path as its argument rather than scheduling a `.cmd` file directly.\r\n\r\nSee `references\u002Fhermes-dashboard-vbs.md` for a complete environment-derived Hermes Dashboard example and its verification recipe.\r\n\r\n## Quick Reference\r\n\r\n| Requirement | Preferred mechanism |\r\n|---|---|\r\n| No visible console | `WScript.Shell.Run command, 0, False` |\r\n| Dynamic install root | Read process, user, then system environment at launch time |\r\n| Safe path construction | `Scripting.FileSystemObject.BuildPath` |\r\n| Spaces in executable path | Quote the executable token explicitly |\r\n| Detached\u002Fasynchronous start | `bWaitOnReturn=False` |\r\n| Missing prerequisite | Exit before launch with a concise actionable error |\r\n| Startup persistence | Task Scheduler invoking `wscript.exe` |\r\n| Runtime proof | Listener + command line + health endpoint + visible-window check |\r\n\r\n## Procedure\r\n\r\n### 1. Reproduce the foreground command\r\n\r\nRun the exact executable and argv in a visible terminal. Confirm it reaches a stable ready state. Do not debug hidden execution and application startup simultaneously.\r\n\r\n### 2. Resolve paths from the runtime environment\r\n\r\nRead the installation root each time the launcher runs. Do not bake one user's absolute home directory into the launcher.\r\n\r\nUse this precedence when the script may be launched by a shell, Explorer, or Task Scheduler:\r\n\r\n1. process environment;\r\n2. user environment;\r\n3. system environment.\r\n\r\nFail explicitly if the variable is absent. Build the executable path from that root and verify the file exists before launch.\r\n\r\n### 3. Use a GUI-subsystem launcher\r\n\r\nPrefer `wscript.exe` plus VBScript for a truly hidden entry point. A `.cmd` or console PowerShell entry point can allocate or briefly flash a console before it hides its child.\r\n\r\nLaunch the console executable itself with window style `0`. Do not switch automatically to `pythonw.exe`: a console-less parent can cause console-subsystem descendants to allocate their own visible windows. A hidden console owned by the long-lived process is usually the more stable process tree.\r\n\r\n### 4. Preserve argument boundaries\r\n\r\nConstruct the command so the executable path is quoted as one token. Keep static arguments literal and validate any user-controlled arguments before interpolation. Avoid broad shell evaluation merely to get redirection or path lookup.\r\n\r\n### 5. Separate hidden launch from persistence\r\n\r\nA hidden asynchronous launch is not a service contract. If the process must survive reboot, configure Task Scheduler with:\r\n\r\n- a deterministic trigger;\r\n- the intended user identity;\r\n- `wscript.exe` as the program;\r\n- the absolute `.vbs` path as the argument;\r\n- an explicit working directory when the application depends on it;\r\n- restart-on-failure behavior appropriate to the application.\r\n\r\n### 6. Verify the real process\r\n\r\nUse several independent facts rather than one status command:\r\n\r\n1. identify every listener or process matching the requested resource;\r\n2. inspect the owning process command line;\r\n3. confirm the command line contains the dynamically resolved executable and intended argv;\r\n4. call one health\u002Fstatus endpoint or equivalent protocol check;\r\n5. enumerate visible top-level windows for the owning PID and require none.\r\n\r\nWhen a port is already occupied, do not kill the first returned PID. Windows may have listeners associated with different local addresses or pre-existing companion services. Confirm executable path and argv before terminating anything.\r\n\r\n## Pitfalls\r\n\r\n- Hard-coding `C:\\Users\\name\\...` instead of resolving the profile\u002Finstall root.\r\n- Assuming a variable present in the current shell is persisted into Explorer or Task Scheduler; check process\u002Fuser\u002Fsystem scopes deliberately.\r\n- Treating `--no-open` as hidden execution; it only prevents browser launch, not console creation.\r\n- Using `.cmd` as the outermost scheduled entry point when zero console flash is required.\r\n- Replacing a console interpreter with `pythonw.exe` without testing descendant console behavior.\r\n- Declaring success because a process exists while its port or health endpoint is not ready.\r\n- Declaring failure from one process-status helper while the requested protocol endpoint is healthy.\r\n- Killing a port owner without matching its executable and arguments to the process created by the test.\r\n- Re-running a launcher against an occupied singleton port and interpreting the hidden child’s quick exit as a launcher bug.\r\n- Leaving application-startup errors entirely invisible; use preflight checks, application logs, or a health probe.\r\n\r\n## Verification\r\n\r\nA complete verification records:\r\n\r\n- the launcher file exists at the requested location;\r\n- the environment variable resolves to the expected root at runtime;\r\n- the derived executable exists;\r\n- `wscript.exe` accepts the script without a VBScript error;\r\n- the long-lived process command line contains the expected executable and arguments;\r\n- one application-level health check succeeds;\r\n- the owner PID has no visible top-level windows;\r\n- any pre-existing process or listener was preserved unless the user explicitly authorized replacement.\r\n\r\nFor test cleanup, terminate only the PID whose executable and argv match the launched fixture. If ownership cannot be proven, stop and report the conflict rather than widening the kill scope.\r\n",{"name":5,"author":24,"license":15,"version":25,"metadata":26,"platforms":38,"description":7},"Hermes Agent","1.0.0",{"hermes":27},{"tags":28,"related_skills":35},[29,30,31,32,33,34],"windows","background","subprocess","vbs","services","process-lifecycle",[36,37],"cross-platform-cli-launching","systematic-debugging",[29],"main","a3f3199bb87ec3c91248f68a39d88527e1847ae9","skills\u002F.archive\u002Fwindows-background-process-launching","https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content","https:\u002F\u002Fgithub.com\u002Fchaorenex1","https:\u002F\u002Fblog.aduib.com","A programmer whose only hobby in life is coding","2026-10-20 00:34:32",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add chaorenex1\u002Fhermes-home-content --skill windows-background-process-launching",{"tool":53,"command":54},"bunx","bunx skills add chaorenex1\u002Fhermes-home-content --skill windows-background-process-launching",{"tool":56,"command":57},"pnpm","pnpm dlx skills add chaorenex1\u002Fhermes-home-content --skill windows-background-process-launching","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content\u002Fblob\u002Fmain\u002Fskills\u002F.archive\u002Fwindows-background-process-launching\u002FSKILL.md",true,[61],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fhermes-dashboard-vbs.md","REFERENCE","参考文档",3463,"https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content\u002Fblob\u002Fmain\u002Fskills\u002F.archive\u002Fwindows-background-process-launching\u002Freferences\u002Fhermes-dashboard-vbs.md",[68,75,82,89,96,103],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7F8GF32YD5MBQW2TGSRH1YP","web-retrieval-resilience","Web tools fail or search rules break: repair or fall back.","https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content\u002Fblob\u002Fmain\u002Fskills\u002Fweb\u002Fweb-retrieval-resilience\u002FSKILL.md",[],[],{"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":19},"01M7F8FP46QESQMCZ1KBT3TW3R","blocked-page-recovery","Use when a fetch fails: 403\u002F429, paywall, WAF, bot wall.","https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content\u002Fblob\u002Fmain\u002Fskills\u002Fweb\u002Fblocked-page-recovery\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7F8ER6VXHBNVRQBZS7X08SE","verification-loop","Run a six-phase verification of a Claude Code session's work — build, type check, lint, tests with coverage, security grep, and diff review — then produce a PASS\u002FFAIL verification report. Use when verifying work after completing a feature or refactor, before creating a PR, or when quality gates must pass.","https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"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":19},"01M7F8E4BQJ38KVQVM3MT20PYV","unreal-world-builder","开放世界与环境专家——精通 UE5 World Partition、Landscape、程序化植被、HLOD 和大规模关卡流式加载，打造无缝开放世界体验","https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content\u002Fblob\u002Fmain\u002Fskills\u002Funreal-engine\u002Funreal-world-builder\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7F8D747SQW2FTP7GBSX38BR","unreal-technical-artist","Unreal Engine 视觉管线专家——精通材质编辑器、Niagara 特效、程序化内容生成和 UE5 项目的美术到引擎管线","https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content\u002Fblob\u002Fmain\u002Fskills\u002Funreal-engine\u002Funreal-technical-artist\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M7F8CKHYJVZVBTN0321J88T2","unreal-systems-engineer","性能与混合架构专家——精通 C++\u002FBlueprint 边界、Nanite 几何体、Lumen GI 和 Gameplay Ability System，面向 AAA 级 Unreal Engine 项目","https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content\u002Fblob\u002Fmain\u002Fskills\u002Funreal-engine\u002Funreal-systems-engineer\u002FSKILL.md",[],[]]