Skip to content
Skillv1.0.0

x-cpu

Display CPU information and detect system endianness. Shows model, cores, frequency, vendor, cache size. **Dependency**: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation

by x-cmd(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from x-cmd/x-cmd (mod/cpu/SKILL.md). Install upstream with npx skills add x-cmd/x-cmd --skill cpu. Copyright stays with the author (Apache-2.0).

x cpu - CPU Information

Display CPU information and detect system endianness.


Quick Start

# Display CPU information (default)
x cpu

# Detect system endianness
x cpu endianness

Features

  • CPU Info: Display processor details (model, cores, MHz, vendor, cache)
  • Endianness Detection: Detect system byte order (little/big endian)
  • Cross-platform: Linux (via /proc/cpuinfo) and macOS (via sysctl)

Commands

Command Description
x cpu Display CPU information (default)
x cpu info Display CPU information
x cpu endianness Detect system endianness (l/b)

Examples

CPU Information

# Default - show CPU info
x cpu

# Linux output example:
# processor                : 0
# model name               : Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
# cpu cores                : 6
# cpu MHz                  : 2600.000
# vendor_id                : GenuineIntel
# cache size               : 12288 KB

# macOS output example:
# brand_string             : Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
# core_count               : 6
# thread_count             : 12
# features                 : FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE POPCNT AES PCID XSAVE OSXSAVE SEGLIM64 TSCTMR AVX1.0 RDRAND F16C

Endianness Detection

# Detect byte order
x cpu endianness

# Output: l (little-endian) or b (big-endian)

Platform Notes

Linux

  • Reads from /proc/cpuinfo
  • Shows: processor, model name, cpu cores, cpu MHz, vendor_id, cache size

macOS

  • Uses sysctl machdep.cpu
  • Shows: brand_string, core_count, thread_count, features

About Endianness

Value Meaning
l Little-endian (x86, x86_64, ARM)
b Big-endian (some MIPS, PowerPC, SPARC)

Most modern systems use little-endian byte order.


Related

  • Linux /proc/cpuinfo documentation
  • macOS sysctl manual page

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/x-cmd-x-cmd-cpu/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

x-cmd-x-cmd-cpu.ocm.jsonjson
{
  "ocm": "1",
  "id": "x-cmd-x-cmd-cpu",
  "kind": "skill",
  "name": "x-cpu",
  "description": "Display CPU information and detect system endianness. Shows model, cores, frequency, vendor, cache size. **Dependency**: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.",
  "publisher": "x-cmd",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "x-cmd",
      "system",
      "cpu",
      "hardware",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Display CPU information and detect system endianness. Shows model, cores, frequency, vendor, cache size. **Dependency**: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/x-cmd/x-cmd",
      "path": "mod/cpu/SKILL.md",
      "ref": "e18c1ef8b4695c7556c4e847b2eb7eaac13b9230",
      "url": "https://github.com/x-cmd/x-cmd/blob/e18c1ef8b4695c7556c4e847b2eb7eaac13b9230/mod/cpu/SKILL.md",
      "key": "x-cmd/x-cmd/mod/cpu/SKILL.md"
    },
    "compatibility": "POSIX Shell",
    "license": "Apache-2.0"
  },
  "instructions": "# x cpu - CPU Information\n\n> Display CPU information and detect system endianness.\n\n---\n\n## Quick Start\n\n```bash\n# Display CPU information (default)\nx cpu\n\n# Detect system endianness\nx cpu endianness\n```\n\n---\n\n## Features\n\n- **CPU Info**: Display processor details (model, cores, MHz, vendor, cache)\n- **Endianness Detection**: Detect system byte order (little/big endian)\n- **Cross-platform**: Linux (via /proc/cpuinfo) and macOS (via sysctl)\n\n---\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `x cpu` | Display CPU information (default) |\n| `x cpu info` | Display CPU informat",
  "cost": {
    "context_tokens": 534
  }
}

Fetch it by URL: GET /api/v1/registry/x-cmd-x-cmd-cpu/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.