x-cmd

Provide POSIX shell modules and 600+ on-demand CLI tools.

4.6k|161|Updated Oct 1, 2022
One-click install
npx skills add https://github.com/x-cmd/x-cmd --skill x-cmd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: x-cmd
Source: https://github.com/x-cmd/x-cmd/tree/main/mod/skill/lib/x-cmd-skill
Command: npx skills add https://github.com/x-cmd/x-cmd --skill x-cmd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides an extensive library of POSIX shell modules and 600+ CLI tools, making your shell environment more powerful and versatile, especially when working with AI agents.

Core Features & Use Cases

  • Shell Standard Library: Access over 300 shell/awk modules for modern capabilities in any POSIX-compliant system.
  • On-Demand Package System: Load modern CLI tools like jq, fzf, fd, ripgrep on-demand, without system pollution.
  • Diverse Modules: Includes themes, completions, githook, free commands, Chinese calendar, WeChat integration, and more.
  • AI-Native Shell: Access AI services like OpenAI, Gemini, DeepSeek, Zhipu, MiniMax with a pure-shell agent.
  • Optimized for Agents: Suitable for AI agents where network latency and LLM throughput are critical.

Quick Start

Load x-cmd: . ~/.x-cmd.root/X Explore with x nihao --llmstxt or discover skills via x skill

Frequently Asked Questions about x-cmd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I access modern CLI tools like jq and ripgrep without polluting my system environment?

You can load modern CLI tools like jq, fzf, fd, and ripgrep on-demand using a portable package system. This approach provides the utilities you need dynamically without requiring permanent system installation or polluting your local environment.

Can I use AI services directly within a POSIX shell environment?

Yes, you can access AI services like OpenAI, Gemini, DeepSeek, Zhipu, and MiniMax directly within a POSIX shell. A pure-shell agent facilitates this integration, optimizing network latency and LLM throughput specifically for AI agents.

What is a POSIX shell standard library and how does it enhance command line capabilities?

A POSIX shell standard library provides over 300 shell and awk modules that introduce modern capabilities to any POSIX-compliant system. It acts as an extensive library to make your shell environment more powerful and versatile for complex tasks.

Does this portable shell tool suite require any specific system dependencies?

This portable shell tool suite requires a POSIX-compliant shell environment and the x-cmd installation. It operates without external dependencies, utilizing an on-demand package system to load necessary CLI tools dynamically.

What is the best way to bootstrap a shell environment optimized for AI agents?

The best way to bootstrap an AI-optimized shell environment is to load a library that supports modern AI services with low latency and high LLM throughput. You can quickly start by loading the root file and exploring available skills via the command line.

Are there limitations when running shell modules on different POSIX-compliant systems?

The suite is designed for any POSIX-compliant system, meaning it functions across diverse UNIX-like environments without significant limitations. It leverages portable shell and awk modules to ensure broad compatibility across different platforms.