Powerful command-line utilities that enhance your development workflow with AI-assisted features, content processing, and intelligent operations. Our tools are designed to support Retrieval Augmented Generation (RAG) workflows, making it easier to build AI-powered applications.
Our CLI tools are designed to work together in a Retrieval Augmented Generation (RAG) workflow:
mcurl
mq
md2html
udx.get.book
udx
and udx.sdlc
Get started with UDX CLI tools in just a few steps:
npm install -g @udx/mcurl @udx/mq
curl -sL https://gist.githubusercontent.com/andypotanin/udx-cli/raw/install.sh | bash
export OPENAI_API_KEY="your-key"
A context-aware AI assistant that provides helpful commands and information based on your current development environment.
Install the required dependencies first:
# On macOS
brew install jq yq gh
# On Linux
sudo apt-get install jq yq gh xclip
# Install via public gist (recommended)
curl -sL https://gist.githubusercontent.com/andypotanin/udx-cli/raw/install.sh | bash
# Set up your OpenAI API key
export OPENAI_API_KEY="your-api-key-here"
# Tool is now available globally as 'udx'
udx --help
The udx
CLI tool provides context-aware assistance by analyzing your current directory, environment variables, and other relevant information.
Get environment variables
udx "give me all my env vars"
Get Docker and Git setup commands
udx "give me commands to bootstrap a docker git repo"
Set up VS Code command-line integration
udx "make VS code be callable from command line as 'code' so I can open files"
Get testing setup help
udx "give me a command to install mocha for repository and bootstrap testing of server.js: $(cat server.js)"
Analyzes your directory structure, environment, and Git repository to provide relevant assistance.
Reads and analyzes code files in your current directory to provide targeted assistance.
Generates shell commands tailored to your specific development needs and environment.
A Python utility that analyzes Jupyter notebooks to extract data models, views, and controllers using the MVC pattern.
Install the required dependencies first:
# Install Python dependencies
pip install pyperclip
# Install via public gist
curl -sL https://gist.githubusercontent.com/andypotanin/udx-get-book/raw/install.py | python3
# Or install dependencies and download script
pip install pyperclip
curl -o udx.get.book https://gist.githubusercontent.com/andypotanin/udx-get-book/raw/udx.get.book.py
chmod +x udx.get.book
The udx.get.book
tool analyzes Jupyter notebooks to extract different components based on the MVC pattern.
Syntax
udx.get.book <notebook_path> [--model|--view|--controller]
Extract data model from a notebook
udx.get.book notebooks/analysis.ipynb --model
Extract view (visualization code) from a notebook
udx.get.book notebooks/analysis.ipynb --view
Extract controller logic from a notebook
udx.get.book notebooks/analysis.ipynb --controller
The tool will copy the extracted content to your clipboard by default. You can also redirect the output to a file:
Save output to a file
udx.get.book notebooks/analysis.ipynb --model > model.py
Separates notebook code into model, view, and controller components for better code organization.
Automatically copies extracted code to clipboard for quick use in other applications.
Helps transform notebook prototypes into production-ready, modular Python code.
An AI-powered tool that generates meaningful Git commit messages based on your code changes.
Install the required dependencies first:
# On macOS
brew install jq gh
# On Linux
sudo apt-get install jq gh
# Install via public gist (recommended)
curl -sL https://gist.githubusercontent.com/andypotanin/udx-sdlc/raw/install.sh | bash
# Set up your OpenAI API key
export OPENAI_API_KEY="your-api-key-here"
# Tool is now available globally as 'udx.sdlc'
udx.sdlc --help
The udx.sdlc
tool analyzes your Git changes and generates meaningful commit messages.
Run the tool from within a Git repository with staged changes:
# First stage your changes
git add .
# Then generate a commit message
udx.sdlc
# Or if you created the symlink
udx-sdlc
Complete Git workflow with udx.sdlc
# Make your code changes
git add .
udx.sdlc
# The tool will generate a commit message and copy it to your clipboard
# You can now paste it directly into your git commit command
git commit -m "$(pbpaste)" # On macOS
git commit -m "$(xclip -selection clipboard -o)" # On Linux
Uses OpenAI's GPT-4o to analyze code changes and generate meaningful, descriptive commit messages.
Automatically copies generated commit messages to clipboard for quick use in your Git workflow.
Analyzes your staged changes to provide context-specific commit messages that accurately describe your work.
curl but in markdown - fetches content from URLs and converts to clean, readable markdown format. Perfect for extracting content for AI processing, documentation, or content analysis. A key component in RAG workflows for high-quality data retrieval.
Install the required dependencies first:
# Node.js (v14 or higher)
# npm (comes with Node.js)
# Install globally via NPM
npm install -g @udx/mcurl
# After installation, mcurl command is available globally
# Optional: Set up configuration file
mkdir -p ~/.udx
touch ~/.udx/mcurl.yml
The mcurl
CLI tool fetches content from URLs and converts it to clean, readable markdown format.
Fetch and convert web content to markdown
mcurl https://udx.io
Extract specific content using CSS selector
mcurl --selector "article.main-content" https://udx.io/about
Save output to file
mcurl --output result.md https://udx.io
Use custom headers and user agent
mcurl --header "Authorization: Bearer token" --user-agent "MyBot/1.0" https://api.example.com
Intelligently extracts main content from web pages, filtering out navigation, ads, and other non-essential elements.
Converts HTML to clean markdown and formats JSON responses in a structured, readable format.
Extensible with custom handlers for different content types and sources.
Designed for AI tool integration and chaining with SERP API responses for automated content processing.
Markdown Query - think of it as "jq for markdown" - a powerful tool for querying and transforming markdown documents. Extract, filter, and analyze markdown content with precision. Essential for the transformation phase of RAG pipelines.
Install the required dependencies first:
# Node.js (v14 or higher)
# npm (comes with Node.js)
# Install globally via NPM
npm install -g @udx/mq
# After installation, mq command is available globally
The mq
CLI tool provides powerful querying and transformation capabilities for markdown documents.
Extract clean content without code blocks
mq --clean-content --input document.md
Analyze document structure
mq --structure --input document.md
Extract images from markdown
mq --images --input document.md
Chain with mcurl for web content processing
mcurl https://udx.io | mq --clean-content
Pull narrative content without code blocks for cleaner analysis and better focus on conceptual information.
Filter and transform markdown content like jq does for JSON with powerful query capabilities.
Generate actionable insights and understand document structure for better content organization.
Transform between JSON, markdown, and other formats for flexible integration with other tools.
A lightweight markdown to HTML converter with customizable styling and template support. Perfect for generating documentation, reports, and web content from markdown files.
Install the required dependencies first:
# Node.js (v14 or higher)
# npm (comes with Node.js)
# Install via NPM (coming soon)
npm install -g @udx/md2html
# Or install via public gist
curl -sL https://gist.githubusercontent.com/andypotanin/md2html/raw/install.sh | bash
# Tool is now available globally as 'md2html'
md2html --help
The md2html
CLI tool converts markdown files to HTML with customizable styling and templates.
Convert markdown to HTML
md2html input.md output.html
Use custom CSS styling
md2html --css styles.css input.md output.html
Apply HTML template
md2html --template template.html input.md output.html
Batch convert multiple files
md2html --batch docs/*.md --output-dir html/
Apply custom CSS styles and HTML templates to create professional-looking documents.
Convert multiple markdown files at once with consistent styling and organization.
Built-in syntax highlighting for code blocks with support for multiple programming languages.
Generates mobile-friendly HTML with responsive design patterns and clean markup.