[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77P09BJQRHNJHB4MRD3NW64":3,"skill-same:01M77P09BJQRHNJHB4MRD3NW64":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":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M77P09BJQRHNJHB4MRD3NW64","processkiller",null,"Identify and terminate processes by port number, process name, or PID. Cross-platform (Windows, macOS, Linux). Use when the user asks to kill a process by port, name, or PID, or mentions port conflicts, occupied ports, stuck processes, or wants to free up a port. Also triggers on phrases like \"kill process\", \"占用端口\", \"结束进程\", \"释放端口\", \"force close\", \"terminate process\".","fangkunx\u002Fskills","fangkunx","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3828399?v=4","01M77NP6TYYBEVYHARHP6P4R7C","fangkun","01M77NP6VMPS68CTZ620GQCZ3D",0,"MIT","https:\u002F\u002Fgithub.com\u002Ffangkunx\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fprocesskiller\u002Fskills\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\r\nname: processkiller\r\ndescription: >\r\n  Identify and terminate processes by port number, process name, or PID.\r\n  Cross-platform (Windows, macOS, Linux). Use when the user asks to kill\r\n  a process by port, name, or PID, or mentions port conflicts, occupied\r\n  ports, stuck processes, or wants to free up a port. Also triggers on\r\n  phrases like \"kill process\", \"占用端口\", \"结束进程\", \"释放端口\",\r\n  \"force close\", \"terminate process\".\r\nlicense: MIT\r\n---\r\n\r\n# ProcessKiller\r\n\r\nIdentify the process occupying a given port, or find a process by name or PID,\r\nthen ask the user for confirmation before terminating it.\r\n\r\n## Workflow\r\n\r\n```\r\nUser provides input\r\n        │\r\n        ▼\r\n┌──────────────────────┐\r\n│ Step 1: Identify     │ ← Determine input type: port, process name, or PID\r\n│         input type   │\r\n└──────────────────────┘\r\n        │\r\n        ▼\r\n┌──────────────────────┐\r\n│ Step 2: Find process │ ← Run OS-specific commands to locate the process\r\n└──────────────────────┘\r\n        │\r\n        ▼\r\n┌──────────────────────┐\r\n│ Step 3: Show details │ ← Display process name, PID, port (if applicable)\r\n└──────────────────────┘\r\n        │\r\n        ▼\r\n┌──────────────────────┐\r\n│ Step 4: AskUser      │ ← Ask user: \"Kill this process?\"\r\n└──────────────────────┘\r\n        │\r\n     ┌──┴──┐\r\n     ▼     ▼\r\n   Yes    No\r\n   kill  done\r\n```\r\n\r\n## Step 1: Identify Input Type\r\n\r\nDetermine what the user provided:\r\n\r\n- **Port number**: A number between 1-65535 (e.g., `3000`, `8080`)\r\n- **Process name**: A string that looks like an executable name (e.g., `node.exe`, `python`, `java`)\r\n- **PID**: A positive integer, typically 4-6 digits (e.g., `1234`, `5678`)\r\n\r\nIf ambiguous (e.g., `8080` could be a port or a PID), default to treating it as a port number. If the user explicitly says \"PID 8080\" or \"process 8080\", use that context.\r\n\r\n## Step 2: Find Process\r\n\r\n### By Port Number\r\n\r\n**Windows:**\r\n```bash\r\nnetstat -ano | findstr \u002FR \"^[^:]*:[0-9]*:.*\u003CPORT> \"\r\n```\r\n\r\nOr using PowerShell:\r\n```powershell\r\nGet-NetTCPConnection -LocalPort \u003CPORT> | Select-Object -ExpandProperty OwningProcess\r\n```\r\n\r\n**macOS \u002F Linux:**\r\n```bash\r\nlsof -i :\u003CPORT> -t 2>\u002Fdev\u002Fnull\r\n```\r\nOr:\r\n```bash\r\nss -tlnp \"sport = :\u003CPORT>\" | grep -oP 'pid=\\K[0-9]+'\r\n```\r\n\r\n### By Process Name\r\n\r\n**Windows:**\r\n```bash\r\ntasklist \u002FFI \"IMAGENAME eq \u003CNAME>\" \u002FFO CSV \u002FNH\r\n```\r\nOr:\r\n```bash\r\nwmic process where \"name='\u003CNAME>'\" get ProcessId,Name,CommandLine \u002Fformat:list\r\n```\r\n\r\n**macOS \u002F Linux:**\r\n```bash\r\npgrep -a \u003CNAME>\r\n```\r\nOr:\r\n```bash\r\nps aux | grep -i \u003CNAME> | grep -v grep\r\n```\r\n\r\n### By PID\r\n\r\n**All platforms:**\r\n```bash\r\n# Windows\r\ntasklist \u002FFI \"PID eq \u003CPID>\" \u002FFO CSV \u002FNH\r\n\r\n# macOS \u002F Linux\r\nps -p \u003CPID> -o pid,comm,args\r\n```\r\n\r\n## Step 3: Display Results\r\n\r\nShow the user a clear summary:\r\n\r\n```\r\nFound process(es):\r\n┌──────┬──────────────┬─────────┬──────────────────────────────┐\r\n│ PID  │ Name         │ Port(s) │ Command Line                 │\r\n├──────┼──────────────┼─────────┼──────────────────────────────┤\r\n│ 1234 │ node.exe     │ 3000    │ node server.js               │\r\n└──────┴──────────────┴─────────┴──────────────────────────────┘\r\n```\r\n\r\nIf multiple processes match, show all of them and let the user decide which to kill (or kill all).\r\n\r\nIf no process is found, tell the user clearly and suggest alternatives.\r\n\r\n## Step 4: Ask for Confirmation\r\n\r\nUse the **AskUserQuestion** tool to ask:\r\n\r\n- **Question**: \"是否结束该进程？\" \u002F \"Kill this process?\"\r\n- **Options**: [\"是，结束进程\", \"否，取消操作\"]\r\n- **Header**: \"确认操作\"\r\n\r\nIf multiple processes are found, ask:\r\n- **Options**: [\"全部结束\", \"只结束指定进程\", \"取消操作\"]\r\n\r\n## Step 5: Terminate (Only if User Confirms)\r\n\r\n**Windows:**\r\n```bash\r\ntaskkill \u002FPID \u003CPID> \u002FF\r\n```\r\n\r\n**macOS \u002F Linux:**\r\n```bash\r\nkill -9 \u003CPID>\r\n```\r\n\r\nReport the result back to the user:\r\n- If successful: \"进程 \u003CPID> (\u003Cname>) 已成功结束\"\r\n- If failed: \"无法结束进程 \u003CPID>: \u003Cerror>\" and suggest running as administrator \u002F using sudo.\r\n\r\n## Edge Cases\r\n\r\n### No process found\r\n- Inform the user clearly: \"未找到占用端口 \u003CPORT> 的进程\" or \"未找到名为 \u003CNAME> 的进程\"\r\n- Suggest checking if the service is running, or verifying the port\u002Fname\r\n\r\n### Multiple processes found\r\n- Show all matches with full details\r\n- Let user choose which to kill, or kill all\r\n\r\n### Permission denied\r\n- On Windows: suggest \"以管理员身份运行\"\r\n- On macOS\u002FLinux: suggest using `sudo`\r\n\r\n### System-critical processes\r\n- Warn the user if the process appears to be a system process (e.g., `svchost.exe`, `system`, `launchd`)\r\n- Ask for explicit confirmation: \"这是一个系统进程，结束它可能导致系统不稳定。确定要继续吗？\"\r\n\r\n### Input validation\r\n- Port must be 1-65535\r\n- PID must be a positive integer\r\n- Process name must be non-empty and reasonable (\u003C 256 chars)\r\n- Reject obviously invalid input before running commands\r\n","# ProcessKiller\r\n\r\nIdentify the process occupying a given port, or find a process by name or PID,\r\nthen ask the user for confirmation before terminating it.\r\n\r\n## Workflow\r\n\r\n```\r\nUser provides input\r\n        │\r\n        ▼\r\n┌──────────────────────┐\r\n│ Step 1: Identify     │ ← Determine input type: port, process name, or PID\r\n│         input type   │\r\n└──────────────────────┘\r\n        │\r\n        ▼\r\n┌──────────────────────┐\r\n│ Step 2: Find process │ ← Run OS-specific commands to locate the process\r\n└──────────────────────┘\r\n        │\r\n        ▼\r\n┌──────────────────────┐\r\n│ Step 3: Show details │ ← Display process name, PID, port (if applicable)\r\n└──────────────────────┘\r\n        │\r\n        ▼\r\n┌──────────────────────┐\r\n│ Step 4: AskUser      │ ← Ask user: \"Kill this process?\"\r\n└──────────────────────┘\r\n        │\r\n     ┌──┴──┐\r\n     ▼     ▼\r\n   Yes    No\r\n   kill  done\r\n```\r\n\r\n## Step 1: Identify Input Type\r\n\r\nDetermine what the user provided:\r\n\r\n- **Port number**: A number between 1-65535 (e.g., `3000`, `8080`)\r\n- **Process name**: A string that looks like an executable name (e.g., `node.exe`, `python`, `java`)\r\n- **PID**: A positive integer, typically 4-6 digits (e.g., `1234`, `5678`)\r\n\r\nIf ambiguous (e.g., `8080` could be a port or a PID), default to treating it as a port number. If the user explicitly says \"PID 8080\" or \"process 8080\", use that context.\r\n\r\n## Step 2: Find Process\r\n\r\n### By Port Number\r\n\r\n**Windows:**\r\n```bash\r\nnetstat -ano | findstr \u002FR \"^[^:]*:[0-9]*:.*\u003CPORT> \"\r\n```\r\n\r\nOr using PowerShell:\r\n```powershell\r\nGet-NetTCPConnection -LocalPort \u003CPORT> | Select-Object -ExpandProperty OwningProcess\r\n```\r\n\r\n**macOS \u002F Linux:**\r\n```bash\r\nlsof -i :\u003CPORT> -t 2>\u002Fdev\u002Fnull\r\n```\r\nOr:\r\n```bash\r\nss -tlnp \"sport = :\u003CPORT>\" | grep -oP 'pid=\\K[0-9]+'\r\n```\r\n\r\n### By Process Name\r\n\r\n**Windows:**\r\n```bash\r\ntasklist \u002FFI \"IMAGENAME eq \u003CNAME>\" \u002FFO CSV \u002FNH\r\n```\r\nOr:\r\n```bash\r\nwmic process where \"name='\u003CNAME>'\" get ProcessId,Name,CommandLine \u002Fformat:list\r\n```\r\n\r\n**macOS \u002F Linux:**\r\n```bash\r\npgrep -a \u003CNAME>\r\n```\r\nOr:\r\n```bash\r\nps aux | grep -i \u003CNAME> | grep -v grep\r\n```\r\n\r\n### By PID\r\n\r\n**All platforms:**\r\n```bash\r\n# Windows\r\ntasklist \u002FFI \"PID eq \u003CPID>\" \u002FFO CSV \u002FNH\r\n\r\n# macOS \u002F Linux\r\nps -p \u003CPID> -o pid,comm,args\r\n```\r\n\r\n## Step 3: Display Results\r\n\r\nShow the user a clear summary:\r\n\r\n```\r\nFound process(es):\r\n┌──────┬──────────────┬─────────┬──────────────────────────────┐\r\n│ PID  │ Name         │ Port(s) │ Command Line                 │\r\n├──────┼──────────────┼─────────┼──────────────────────────────┤\r\n│ 1234 │ node.exe     │ 3000    │ node server.js               │\r\n└──────┴──────────────┴─────────┴──────────────────────────────┘\r\n```\r\n\r\nIf multiple processes match, show all of them and let the user decide which to kill (or kill all).\r\n\r\nIf no process is found, tell the user clearly and suggest alternatives.\r\n\r\n## Step 4: Ask for Confirmation\r\n\r\nUse the **AskUserQuestion** tool to ask:\r\n\r\n- **Question**: \"是否结束该进程？\" \u002F \"Kill this process?\"\r\n- **Options**: [\"是，结束进程\", \"否，取消操作\"]\r\n- **Header**: \"确认操作\"\r\n\r\nIf multiple processes are found, ask:\r\n- **Options**: [\"全部结束\", \"只结束指定进程\", \"取消操作\"]\r\n\r\n## Step 5: Terminate (Only if User Confirms)\r\n\r\n**Windows:**\r\n```bash\r\ntaskkill \u002FPID \u003CPID> \u002FF\r\n```\r\n\r\n**macOS \u002F Linux:**\r\n```bash\r\nkill -9 \u003CPID>\r\n```\r\n\r\nReport the result back to the user:\r\n- If successful: \"进程 \u003CPID> (\u003Cname>) 已成功结束\"\r\n- If failed: \"无法结束进程 \u003CPID>: \u003Cerror>\" and suggest running as administrator \u002F using sudo.\r\n\r\n## Edge Cases\r\n\r\n### No process found\r\n- Inform the user clearly: \"未找到占用端口 \u003CPORT> 的进程\" or \"未找到名为 \u003CNAME> 的进程\"\r\n- Suggest checking if the service is running, or verifying the port\u002Fname\r\n\r\n### Multiple processes found\r\n- Show all matches with full details\r\n- Let user choose which to kill, or kill all\r\n\r\n### Permission denied\r\n- On Windows: suggest \"以管理员身份运行\"\r\n- On macOS\u002FLinux: suggest using `sudo`\r\n\r\n### System-critical processes\r\n- Warn the user if the process appears to be a system process (e.g., `svchost.exe`, `system`, `launchd`)\r\n- Ask for explicit confirmation: \"这是一个系统进程，结束它可能导致系统不稳定。确定要继续吗？\"\r\n\r\n### Input validation\r\n- Port must be 1-65535\r\n- PID must be a positive integer\r\n- Process name must be non-empty and reasonable (\u003C 256 chars)\r\n- Reject obviously invalid input before running commands\r\n",{"name":5,"license":15,"description":24},"Identify and terminate processes by port number, process name, or PID. Cross-platform (Windows, macOS, Linux). Use when the user asks to kill a process by port, name, or PID, or mentions port conflicts, occupied ports, stuck processes, or wants to free up a port. Also triggers on phrases like \"kill process\", \"占用端口\", \"结束进程\", \"释放端口\", \"force close\", \"terminate process\".\n","main","3a57ff74e2612f9ce61b47c81917e131ff154699","plugins\u002Fprocesskiller\u002Fskills","https:\u002F\u002Fgithub.com\u002Ffangkunx\u002Fskills","https:\u002F\u002Fgithub.com\u002Ffangkunx","2026-09-30 10:39:33",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add fangkunx\u002Fskills --skill processkiller",{"tool":37,"command":38},"bunx","bunx skills add fangkunx\u002Fskills --skill processkiller",{"tool":40,"command":41},"pnpm","pnpm dlx skills add fangkunx\u002Fskills --skill processkiller","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffangkunx\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fprocesskiller\u002Fskills\u002FSKILL.md",true,[],[46,51,58,65,72,79],{"skillNo":47,"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":48,"categories":49,"keywords":50,"publishedAt":19},"01M77P5TR6ZGXXPJG1ZSRGJ4MJ","https:\u002F\u002Fgithub.com\u002Ffangkunx\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fprocesskiller\u002Fskills\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M77P5RSDHQV4QC42BMPTPKE6","openspec-verify-change","Verify implementation matches change artifacts. Use when the user wants to validate that implementation is complete, correct, and coherent before archiving.","https:\u002F\u002Fgithub.com\u002Ffangkunx\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fopenspec-workflow\u002Fskills\u002Fopenspec-verify-change\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"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},"01M77P5NER4VDNV6CRH04ZDQ14","openspec-propose","Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.","https:\u002F\u002Fgithub.com\u002Ffangkunx\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fopenspec-workflow\u002Fskills\u002Fopenspec-propose\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M77P5HPRY8VW5YHMMTDQQSVF","openspec-explore","Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.","https:\u002F\u002Fgithub.com\u002Ffangkunx\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fopenspec-workflow\u002Fskills\u002Fopenspec-explore\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M77P5FV6GSBK8NVBRWFAAWWM","openspec-archive-change","Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.","https:\u002F\u002Fgithub.com\u002Ffangkunx\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fopenspec-workflow\u002Fskills\u002Fopenspec-archive-change\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M77P5DVRJCY4W1SN2RAJ3X56","openspec-apply-change","Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.","https:\u002F\u002Fgithub.com\u002Ffangkunx\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fopenspec-workflow\u002Fskills\u002Fopenspec-apply-change\u002FSKILL.md",[],[]]