Agent skill
x-knowledge
This skill provides access to various knowledge search tools through x-cmd CLI, including Hacker News, Wikipedia, DuckDuckGo search, RFC documents, Project Gutenberg books, and Stack Exchange. This skill should be used when users need to search for technical information, browse online knowledge bases, or access documentation from command line interfaces.
Install this agent skill to your Project
npx add-skill https://github.com/x-cmd/skill/tree/main/data/x-cmd/x-knowledge
SKILL.md
x-cmd Knowledge Search Tools
Overview
This skill provides comprehensive command-line access to major knowledge sources and search engines through the x-cmd ecosystem. The tools enable efficient information retrieval, technical documentation browsing, and knowledge discovery directly from the terminal.
Available Tools
Hacker News (hn)
Browse and search Hacker News content with interactive table interface.
- Usage:
x hn [subcommand] - Key subcommands:
top- Display top postsnew- Display new postsbest- Display best postsask- Display ask posts::- Search with DuckDuckGo and AI assistance
- Examples:
x hn- View top postsx hn :: llama3- Search for llama3 with AI assistancex hn top --json 11,20- Get posts 11-20 in JSON format
Wikipedia (wkp)
Search Wikipedia and extract article summaries.
- Usage:
x wkp [subcommand] [query] - Key subcommands:
search- Search Wikipedia pagesextract- Get article summariessuggest- Get search suggestions:- Search with DuckDuckGo
- Examples:
x wkp search AI- Search for AI articlesx wkp extract OpenAI- Get OpenAI summaryx wkp suggest pythen- Get spelling suggestions
DuckDuckGo Search (ddgo)
Web search engine with AI-powered results.
- Usage:
x ddgo [query] - Key subcommands:
--ai- Use AI to select and summarize results--top N- Get top N resultsdump --json- Output results in JSON formatinit- Configure proxy settings
- Examples:
x ddgo bash- Search for bash informationx ddgo --ai bash- AI-assisted bash searchx ddgo --top 10 bash- Get top 10 bash results
RFC Documents (rfc)
Browse and search Internet RFC documents.
- Usage:
x rfc [subcommand] - Key subcommands:
ls- List all RFC documentstxt- Read RFC document content:- Search RFC content::- Search with AI summary
- Examples:
x rfc ls- List all RFCsx rfc 1003- Read RFC 1003x rfc : csv- Search for CSV-related RFCs
Project Gutenberg Books (gtb)
Search and browse free ebooks from Project Gutenberg.
- Usage:
x gtb [subcommand] - Key subcommands:
search- Search books by keywordshow- View book details interactivelytxt- Get book text content:- Search with DuckDuckGo
- Examples:
x gtb- List all booksx gtb search Dumas- Search for Dumas booksx gtb show 100- View book ID 100
Stack Exchange (se)
Search across Stack Exchange sites.
- Usage:
x se [subcommand] [query] - Key subcommands:
search- Search questionsquestion- Get question answers:- Search with DuckDuckGosite- View available sites
- Examples:
x se search "how to use jq"- Search for jq usagex se :au "how to use jq"- Search Ask Ubuntux se question 75261408- Get question answers
Installation and Setup
Prerequisites
- x-cmd CLI installed
- Internet connection
Configuration
Each tool supports configuration through:
init- Interactive configuration setupcfg- Proxy and API endpoint configurationcur- Session default management
Proxy Setup
For tools requiring proxy access:
x ddgo init # Configure proxy for DuckDuckGo
x hn init # Configure proxy for Hacker News
Usage Patterns
Quick Information Retrieval
- Use
x ddgo --aifor AI-assisted search - Use
x wkp extractfor quick summaries - Use
x hn topfor latest tech news
Technical Documentation
- Use
x rfcfor protocol specifications - Use
x sefor programming questions - Use
x gtbfor reference books
Interactive Browsing
- Most tools support interactive table interfaces
- Use arrow keys for navigation
- Press
oto open links in browser - Press
uto open user profiles
Troubleshooting
Common Issues
- Network errors: Check proxy configuration with
initsubcommand - No results: Verify search query syntax
- Permission errors: Ensure x-cmd has network access
Performance Tips
- Use
--jsonflag for programmatic output - Use
--top Nto limit results - Configure data retention settings with
cfgsubcommand
Integration
These tools can be combined with other x-cmd modules:
- Pipe output to
@zhfor Chinese translation - Use with
x jqfor JSON processing - Combine with
x curlfor advanced HTTP requests
Support
For additional help:
- Visit: https://x-cmd.com
- Use
x [tool] --helpfor specific tool documentation - Check individual module pages for detailed usage
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
pufferlib
High-performance reinforcement learning framework optimized for speed and scale. Use when you need fast parallel training, vectorized environments, multi-agent systems, or integration with game environments (Atari, Procgen, NetHack). Achieves 2-10x speedups over standard implementations. For quick prototyping or standard algorithm implementations with extensive documentation, use stable-baselines3 instead.
fluidsim
Framework for computational fluid dynamics simulations using Python. Use when running fluid dynamics simulations including Navier-Stokes equations (2D/3D), shallow water equations, stratified flows, or when analyzing turbulence, vortex dynamics, or geophysical flows. Provides pseudospectral methods with FFT, HPC support, and comprehensive output analysis.
metabolomics-workbench-database
Access NIH Metabolomics Workbench via REST API (4,200+ studies). Query metabolites, RefMet nomenclature, MS/NMR data, m/z searches, study metadata, for metabolomics and biomarker discovery.
geniml
This skill should be used when working with genomic interval data (BED files) for machine learning tasks. Use for training region embeddings (Region2Vec, BEDspace), single-cell ATAC-seq analysis (scEmbed), building consensus peaks (universes), or any ML-based analysis of genomic regions. Applies to BED file collections, scATAC-seq data, chromatin accessibility datasets, and region-based genomic feature learning.
zinc-database
Access ZINC (230M+ purchasable compounds). Search by ZINC ID/SMILES, similarity searches, 3D-ready structures for docking, analog discovery, for virtual screening and drug discovery.
astropy
Comprehensive Python library for astronomy and astrophysics. This skill should be used when working with astronomical data including celestial coordinates, physical units, FITS files, cosmological calculations, time systems, tables, world coordinate systems (WCS), and astronomical data analysis. Use when tasks involve coordinate transformations, unit conversions, FITS file manipulation, cosmological distance calculations, time scale conversions, or astronomical data processing.
Didn't find tool you were looking for?