[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AVBKFBXWB4TY54Q52F7GWJ":3,"skill-same:01M7AVBKFBXWB4TY54Q52F7GWJ":56},{"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":35,"commitSha":36,"skillDirectory":37,"forksCount":14,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":39,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M7AVBKFBXWB4TY54Q52F7GWJ","machine-environment-inspection",null,"Check the host machine: hardware, virtualization, GPUs.","peterlau123\u002Fskills-you-need","peterlau123","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F19188200?v=4","01M7AV0Y55C30Y4E2TGRQ8X7WR","Sloth","01M7AV0Y5SNAJQ4E3FG1EEK8S4",0,"MIT","https:\u002F\u002Fgithub.com\u002Fpeterlau123\u002Fskills-you-need\u002Fblob\u002Fmain\u002Fmlops\u002Fmachine-environment-inspection\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: machine-environment-inspection\ndescription: \"Check the host machine: hardware, virtualization, GPUs.\"\nversion: 1.0.0\nlicense: MIT\nmetadata:\n  hermes:\n    tags: [environment, hardware, gpu, lspci, mx-smi, hostnamectl, inspection]\n---\n\n# Machine Environment Inspection\n\nUse when asked \"what machine are you on \u002F 机器环境 \u002F 看下环境 \u002F 检查运行环境\", before claiming\nthe host type (cloud vs physical), or when planning resource-dependent work (GPU training\u002Finference).\n\n## Procedure\n\n1. OS & kernel: `uname -a`, `. \u002Fetc\u002Fos-release && echo $PRETTY_NAME`\n2. Hardware identity (physical vs VM\u002Fcloud):\n   - `hostnamectl` — shows Hardware Vendor + Model (e.g. \"New H3C Technologies ... UniServer R5300 G6\")\n   - `systemd-detect-virt` — `none` = bare metal; `kvm`\u002F`docker`\u002F`wsl` otherwise\n   - `ls \u002F.dockerenv` and `grep -i microsoft \u002Fproc\u002Fversion` (container\u002FWSL probes)\n3. Scale: `nproc` (threads), `free -h`, `df -h \u002F`, `uptime`, `hostname`\n4. GPU \u002F compute accelerators:\n   - `lspci | grep -iE \"vga|3d|display\"` — many display controllers = GPU server\n   - Unknown vendor IDs (e.g. `9999:4040`): `lspci -vnn -s \u003Cslot>` → read \"Kernel driver in use\"\n     and \"Kernel modules\" (e.g. `metax`). Confirm identity via the kernel module, not the ID alone.\n   - Driver dirs: `ls \u002Fusr\u002Flocal\u002F` for `metax`, `Ascend`, `cambricon`, `iluvatar`, `maca`, `musa`, `corex`\n   - Loaded modules: `lsmod | grep -iE \"metax|iluvatar|cambricon|ascend|maca\"`\n   - MetaX cards: `mx-smi` (MetaX's nvidia-smi equivalent, at \u002Fusr\u002Fbin\u002Fmx-smi) → card count, model,\n     per-GPU memory\u002Futil, kernel driver & MACA versions.\n5. Running compute workloads: `ps aux | grep -E \"sglang|vllm|python\"` — identify inference\u002Ftraining\n   services; the `mx-smi` (or nvidia-smi) process section maps PIDs → GPU. The service's own\n   command line (`sglang serve --model-path ... --tp N --nnodes M`) reveals model, quantization,\n   tensor parallelism, and cluster topology.\n\n## Pitfalls\n\n- NEVER guess the cloud provider from the username — `ecs-user` looked like Alibaba ECS, but the\n  box was a physical H3C UniServer R5300 G6. Verify with `hostnamectl` + `systemd-detect-virt`.\n- Vendor ID 9999 = MetaX (沐曦), not NVIDIA (10de). On MetaX boxes `nvidia-smi` does not exist —\n  `mx-smi` is the tool. Other Chinese GPU vendors to sniff for: Ascend 19e5, Cambricon 1d94,\n  Moore Threads 1f90, Iluvatar 1f07 — always confirm with the loaded kernel module.\n- `hostname -I` returns the first NIC IP only; multi-node clusters use a different dist-init\n  address (e.g. `--dist-init-addr`), so don't equate the box's IP with the cluster endpoint.\n- GPU memory can read ~full with 0% util when an inference service (sglang scheduler processes)\n  holds weights in VRAM — check the process section before concluding the GPUs are busy.\n","# Machine Environment Inspection\n\nUse when asked \"what machine are you on \u002F 机器环境 \u002F 看下环境 \u002F 检查运行环境\", before claiming\nthe host type (cloud vs physical), or when planning resource-dependent work (GPU training\u002Finference).\n\n## Procedure\n\n1. OS & kernel: `uname -a`, `. \u002Fetc\u002Fos-release && echo $PRETTY_NAME`\n2. Hardware identity (physical vs VM\u002Fcloud):\n   - `hostnamectl` — shows Hardware Vendor + Model (e.g. \"New H3C Technologies ... UniServer R5300 G6\")\n   - `systemd-detect-virt` — `none` = bare metal; `kvm`\u002F`docker`\u002F`wsl` otherwise\n   - `ls \u002F.dockerenv` and `grep -i microsoft \u002Fproc\u002Fversion` (container\u002FWSL probes)\n3. Scale: `nproc` (threads), `free -h`, `df -h \u002F`, `uptime`, `hostname`\n4. GPU \u002F compute accelerators:\n   - `lspci | grep -iE \"vga|3d|display\"` — many display controllers = GPU server\n   - Unknown vendor IDs (e.g. `9999:4040`): `lspci -vnn -s \u003Cslot>` → read \"Kernel driver in use\"\n     and \"Kernel modules\" (e.g. `metax`). Confirm identity via the kernel module, not the ID alone.\n   - Driver dirs: `ls \u002Fusr\u002Flocal\u002F` for `metax`, `Ascend`, `cambricon`, `iluvatar`, `maca`, `musa`, `corex`\n   - Loaded modules: `lsmod | grep -iE \"metax|iluvatar|cambricon|ascend|maca\"`\n   - MetaX cards: `mx-smi` (MetaX's nvidia-smi equivalent, at \u002Fusr\u002Fbin\u002Fmx-smi) → card count, model,\n     per-GPU memory\u002Futil, kernel driver & MACA versions.\n5. Running compute workloads: `ps aux | grep -E \"sglang|vllm|python\"` — identify inference\u002Ftraining\n   services; the `mx-smi` (or nvidia-smi) process section maps PIDs → GPU. The service's own\n   command line (`sglang serve --model-path ... --tp N --nnodes M`) reveals model, quantization,\n   tensor parallelism, and cluster topology.\n\n## Pitfalls\n\n- NEVER guess the cloud provider from the username — `ecs-user` looked like Alibaba ECS, but the\n  box was a physical H3C UniServer R5300 G6. Verify with `hostnamectl` + `systemd-detect-virt`.\n- Vendor ID 9999 = MetaX (沐曦), not NVIDIA (10de). On MetaX boxes `nvidia-smi` does not exist —\n  `mx-smi` is the tool. Other Chinese GPU vendors to sniff for: Ascend 19e5, Cambricon 1d94,\n  Moore Threads 1f90, Iluvatar 1f07 — always confirm with the loaded kernel module.\n- `hostname -I` returns the first NIC IP only; multi-node clusters use a different dist-init\n  address (e.g. `--dist-init-addr`), so don't equate the box's IP with the cluster endpoint.\n- GPU memory can read ~full with 0% util when an inference service (sglang scheduler processes)\n  holds weights in VRAM — check the process section before concluding the GPUs are busy.\n",{"name":5,"license":15,"version":24,"metadata":25,"description":7},"1.0.0",{"hermes":26},{"tags":27},[28,29,30,31,32,33,34],"environment","hardware","gpu","lspci","mx-smi","hostnamectl","inspection","main","c0b220603dea88e986e5b31268098ef2f5b07fd0","mlops\u002Fmachine-environment-inspection","https:\u002F\u002Fgithub.com\u002Fpeterlau123\u002Fskills-you-need","https:\u002F\u002Fgithub.com\u002Fpeterlau123","A software engineer in deep learning\r\n","2026-08-19 16:46:00",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add peterlau123\u002Fskills-you-need --skill machine-environment-inspection",{"tool":48,"command":49},"bunx","bunx skills add peterlau123\u002Fskills-you-need --skill machine-environment-inspection",{"tool":51,"command":52},"pnpm","pnpm dlx skills add peterlau123\u002Fskills-you-need --skill machine-environment-inspection","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpeterlau123\u002Fskills-you-need\u002Fblob\u002Fmain\u002Fmlops\u002Fmachine-environment-inspection\u002FSKILL.md",true,[],[57,64,71,78,85,92],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7AVH2D16QBRC8T2P6SVXSTS","jekyll-chirpy-blog","Use when editing the Jekyll\u002FChirpy blog or fixing mermaid.","https:\u002F\u002Fgithub.com\u002Fpeterlau123\u002Fskills-you-need\u002Fblob\u002Fmain\u002Fweb\u002Fjekyll-chirpy-blog\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"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},"01M7AVGYYFDK4GKCSNHBCP59Y6","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002Fpeterlau123\u002Fskills-you-need\u002Fblob\u002Fmain\u002Fsoftware-development\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7AVGT9GAVB5EBKZ2616R27Z","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002Fpeterlau123\u002Fskills-you-need\u002Fblob\u002Fmain\u002Fsoftware-development\u002Fsystematic-debugging\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7AVGQ23T5EHRQP5GZ45KZC5","spike","Throwaway experiments to validate an idea before build.","https:\u002F\u002Fgithub.com\u002Fpeterlau123\u002Fskills-you-need\u002Fblob\u002Fmain\u002Fsoftware-development\u002Fspike\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7AVGKZ0ZD91ATKD9QB44E1B","simplify-code","Parallel 4-agent cleanup of recent code changes.","https:\u002F\u002Fgithub.com\u002Fpeterlau123\u002Fskills-you-need\u002Fblob\u002Fmain\u002Fsoftware-development\u002Fsimplify-code\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7AVGFBR76BWQNG2X4CN5SQT","requesting-code-review","Pre-commit review: security scan, quality gates, auto-fix.","https:\u002F\u002Fgithub.com\u002Fpeterlau123\u002Fskills-you-need\u002Fblob\u002Fmain\u002Fsoftware-development\u002Frequesting-code-review\u002FSKILL.md",[],[]]