Universal AI Commands
# Universal AI Commands (`v2.0.0`)
[](https://www.npmjs.com/package/universal-ai-commands)
[](https://www.npmjs.com/package/universal-ai-commands)
[](https://github.com/TekiDeki/Universal-AI-Commands/actions/workflows/ci.yml)
[](LICENSE)
[](PRIVACY.md)
[](https://tekideki.github.io/Universal-AI-Commands/)
A self-contained single-file offline web application, zero-dependency CLI (`uac`), native **Model Context Protocol (MCP) server** (`uac-mcp`), offline **Manifest V3 Browser Extension** (Firefox & Edge/Chromium), and **Userscript / Bookmarklet** cataloging **1,060 unique, standardized AI commands** across **30 domains** and **142 categories**, strictly separated from **102 verified real native platform commands and parameters** (Domain 30). Runs 100% offline with zero external runtime dependencies, zero tracking, and four built-in languages (`EN`, `RO`, `SR` Ekavica Latin, `SR` Ekavica Cyrillic).
- **Current version**: `v2.0.0`
- **Live web app (offline PWA)**: https://tekideki.github.io/Universal-AI-Commands/
- **npm package (CLI + MCP server)**: https://www.npmjs.com/package/universal-ai-commands
- **1-Click Userscript (`Alt+K`, `$0`)**: https://tekideki.github.io/Universal-AI-Commands/userscript/universal-ai-commands.user.js
- **Privacy Policy (Zero Data Collection)**: https://tekideki.github.io/Universal-AI-Commands/privacy.html
- **Releases & offline downloads**: https://github.com/TekiDeki/Universal-AI-Commands/releases
- **Part of**: https://freehtml.dev/
## Quick Start ($0, Zero Dependencies)
```bash
# Instant CLI (no global install needed)
npx -y universal-ai-commands stats
npx -y universal-ai-commands search midjourney --domain 30 --limit 5
# Instant Native MCP Server (Claude Code 1-liner)
claude mcp add universal-ai-commands -- npx -y universal-ai-commands mcp
```
## Highlights
- **1,060 unique commands** with 0 duplicates, strict naming compliance (`/[lowercase]`, no spaces, no typos), and 15 structured metadata fields per command.
- **30 domains & 142 categories**: Image Generation (124), Video Generation (45), Audio & Music (56), Writing & Text (49), Coding & Dev (59), Data & Analytics (33), Design & UI/UX (32), 3D/AR/VR (24), Marketing (25), Business & Productivity (33), Education, Science, Finance, E-Commerce, Gaming, Social Media, Security, DevOps, Automation, Legal (with legal disclaimer), HR, Health (with medical disclaimer), Architecture, Travel, Culinary, Personal Productivity, Prompt Engineering, Universal Controls (50), Parameters & Modifiers (55), and Verified Platform-Specific Native Syntax (102).
- **Strict separation of Domain 30 (102 verified native entries)**: Real native syntax for Midjourney v6/v7 (`--ar`, `--stylize`, `--chaos`, `--sref`, `--cref`, `--oref`, `--iw`, `--ow`, `--exp`, `--draft`, `/imagine`, `/blend`), Stable Diffusion / FLUX / ComfyUI (`(word:1.3)`, `CFG Scale`, `guidance`, `controlnet_strength`, `ControlNet`, `IP-Adapter`), Claude Code & Aider CLI (`/compact`, `/clear`, `/review`, `/init`, `/model`, `/mcp`, `/memory`, `/cost`, `/plan`, `/agents`, `/permissions`, `/ide`, `/vim`, `/diff`, `/add`, `/architect`), OpenAI Codex CLI (`--full-auto`, `--approval-mode`, `--sandbox`, `AGENTS.md`), Google Gemini CLI (`GEMINI.md`, `/stats`, `/compress`, `/restore`, `/tools`), Cursor (`@codebase`, `@docs`, `@web`, `.cursorrules`), Windsurf & Cline (`.windsurfrules`, `.clinerules`, `@terminal`, `/newtask`), GitHub Copilot (`/explain`, `/fix`, `/tests`), OpenAI / Anthropic / Gemini API controls (`response_format:json_schema`, `reasoning_effort`, `thinking.budget_tokens`, `cache_control:ephemeral`, `system_instruction`, `google_search`, `tool_choice`, `seed`), Suno (`[Verse]`, `[Chorus]`, `[Instrumental]`), Udio, ElevenLabs, Runway Gen-3/Gen-4, Sora, Veo, Kling, Luma, DALL-E, and Ideogram.
- **Multi-Step Workflow Chains (14 Curated + Custom Builder)**: Ready-to-run 3- and 4-step workflows across Dev/Security, Creative/Media, Business/Marketing, Research/Learning, and Legal/Wellness (with built-in disclaimers). Fill `{{variables}}` once to populate every step live, copy individual steps or full Markdown chains, share via `#wf=...` links, send any step directly into the Multi-Platform Compiler, or create and save custom chains locally.
- **Interactive Prompt Builder & Multi-Platform Compiler**: Stack multiple commands, set subject and parameters, and compile one universal recipe directly into native syntax for **Midjourney** (`--ar`, `--style raw`, `--stylize`, `--no`), **Stable Diffusion / ComfyUI** (weighted positive + negative prompt + Steps/CFG/Resolution), **ChatGPT / Claude / Gemini** (structured XML tags), **Suno / Udio** (`Style of Music` + metatags), and **Runway / Kling / Sora** (scene-camera-motion).
- **Conflict Detector & Synergy Engine**: Live detection of contradictory commands (`/brief` vs `/detailed`, `/formal` vs `/casual`, `/photorealistic` vs `/pixelart`, conflicting aspect ratios, modality mixes) with 1-click Keep A / Keep B resolution, plus conflict-free synergy recommendations.
- **Executable AI Config Exporter & 12 System Prompt Profiles (`Profiles & Studio`)**: Choose from 12 curated role personas (Senior Staff Engineer, AppSec Auditor, Root-Cause Debugger, Conversion Copywriter, Technical SEO, Academic Reviewer, Data Strategy Analyst, Cinematic Director, UI/UX Architect, Suno/Udio Producer, Technical Localizer, Curriculum Tutor) and export directly to **`AGENTS.md`**, **`CLAUDE.md`**, **`.cursorrules`**, **`.github/copilot-instructions.md`**, **ChatGPT Custom Instructions** (with live 1,500-char meter), or **API System Prompt JSON**.
- **Prompt Diff A/B & Token/Platform Limit Estimator**: Capture compiled prompts from Prompt Builder into Variant A / Variant B, inspect highlighted word-by-word diffs (`+added / -removed` + token delta), monitor real-time token estimates and platform limits (ChatGPT 1,500 chars, Suno 200 chars, Midjourney 60-word optimal window), and store local comparison snapshots.
- **Native Zero-Dependency MCP Server (`scripts/uac-mcp.mjs` / `uac-mcp`)**: Standard JSON-RPC 2.0 `stdio` server connecting directly to **Claude Desktop**, **Claude Code**, **Cursor**, **Windsurf**, **Cline**, and **VS Code Copilot**, exposing `search_commands`, `compile_prompt`, `lint_prompt`, `optimize_prompt`, `export_ai_config`, 4 reusable MCP Prompts, and catalog stats resources with zero `npm install`.
- **Offline Manifest V3 Browser Extension (`extension/`)**: Press **`Alt+K`** inside **ChatGPT**, **Claude**, **Gemini**, **Perplexity**, **Suno**, or **Midjourney Web** to fuzzy-search all **1,060 commands** and insert directly into the active chat input via an isolated Shadow-DOM picker.
- **102 Verified Native Platform Commands & Flags (Domain 30, 2026 Edition)**: Expanded with native commands and config files for **OpenAI Codex CLI** (`--full-auto`, `--approval-mode`, `--sandbox`, `AGENTS.md`), **Google Gemini CLI** (`GEMINI.md`, `/stats`, `/compress`, `/restore`, `/tools`, `/chat`), **Claude Code** (`/agents`, `/permissions`, `/ide`, `/vim`, `--print`), **Windsurf & Cline / Roo Code** (`.windsurfrules`, `.clinerules`, `@terminal`, `/newtask`, `/smol`), and **Midjourney v7 / Veo / Sora / Kling / Runway** (`--ow`, `--exp`, `--draft`, `camera_motion`, `duration_seconds`, `aspect_ratio`).
- **Prompt Builder v2 (Live `{{variables}}`, 5-Target Side-by-Side Matrix & Role Quick-Start)**: Type `{{module}}`, `{{stack}}`, or any `{{var}}` in the Builder subject for live interpolated input fields, compare all **5 target platforms side-by-side**, or jump straight in via **5 Role Quick-Start presets** (*Developer*, *Designer/Visual*, *Writer/SEO*, *Security Auditor*, *Music/Video*).
- **Multi-Language SDK & MCP Code Export (`cURL`, `Python`, `TypeScript`, `MCP JSON`)** & **8 AI Config Formats (`AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, `.windsurfrules`, `.cursorrules`, `copilot-instructions.md`, ChatGPT, API JSON)**.
- **Prompt Optimizer**, **Live Prompt Linter (`0-100`)**, **Local Prompt History & Snapshots**, **Fuzzy Typo-Tolerant Search**, **Print/PDF Cheatsheet**, **Project Workspaces**, **14 Workflows**, **12 System Profiles**, **Real Headless Browser E2E CI**, and **Automated Release CI**.
- **Team Packs & Workspace Backup (`.uac.json` & `#pack=...`)**: Bundle custom commands, custom workflows, custom workspaces, favorites, and saved snapshots into a portable `.uac.json` file (or zero-server `#pack=...` shareable URL) with smart non-destructive merge and automatic duplicate skipping.
- **Zero-Server Shareable Links & `Ctrl+K` Command Palette**: Share any command (`#cmd=...`), complete Prompt Builder recipe (`#build=...`), populated workflow (`#wf=...`), or Team Pack (`#pack=...`) via URL hash, and jump anywhere instantly with `Ctrl+K` / `Cmd+K` (`Enter` copies, `Shift+Enter` adds to Builder).
- **Built-in Utilities**: Instant search with `/` hotkey, multi-faceted filters (domain, category, subcategory, compatibility class, platform, difficulty), side-by-side comparison matrix, favorites, personal history, custom command creator, live Part VI duplicate/rule validator, dark/light themes, print stylesheet, and one-click export (`JSON`, `CSV`, `Markdown`, `Print/PDF`).
- **Four languages (`EN | RO | SR | ЋИР`)**: Default English UI with full translations in Romanian, Serbian Ekavica Latin, and Serbian Ekavica Cyrillic while keeping every `/command` and native syntax token in its original form.
## Repository Structure
```text
Universal-AI-Commands/
├── index.html # Standalone single-file web app (zero external deps)
├── privacy.html / PRIVACY.md # Public zero-data-collection privacy policy
├── manifest.json / sw.js # Offline-first PWA manifest & service worker
├── icon.svg / icon-*.png # App icons & Open Graph preview (og.png)
├── DATABASE/ # Master JSON databases (commands, categories, platforms, synonyms, changelog)
├── DOCUMENTATION/ # Master Markdown catalog, naming standard, compatibility matrix, changelog
├── 01-IMAGE-GENERATION/ ... # Per-domain JSON folders (01 through 30)
├── extension/ # Offline MV3 extension (Firefox AMO & Microsoft Edge/Chromium ready)
├── userscript/ # Zero-cost Userscript (Alt+K offline) & CSP-safe Bookmarklet
├── scripts/ # Python build pipeline, zero-dep CLI (uac.mjs) & MCP server (uac-mcp.mjs)
├── tests/ # Static audit (Python), core tests (Node.js) & Playwright E2E
├── package.json # npm package (universal-ai-commands: uac + uac-mcp)
├── LICENSE # Apache License 2.0
└── README.md
```
## Rebuild & Verify
Requirements: Python 3.10+ (Pillow for icon regeneration) and Node.js 18+.
```bash
# Regenerate JSON databases, per-domain folders, Markdown docs and index.html
python3 scripts/build_all.py
# Regenerate PNG icons and Open Graph preview card
python3 make_icons.py
# Run static SEO/PWA/CSP/em-dash audit and Node.js hydration & integrity tests
python3 tests/static_audit.py
node tests/core-test.cjs
```
## Zero-Dependency CLI (`scripts/uac.mjs`)
```bash
# Catalog statistics
node scripts/uac.mjs stats
# Search commands (optionally scoped to Domain 30 verified native syntax)
node scripts/uac.mjs search midjourney --domain 30 --limit 10
# Compile a native prompt directly from the terminal
node scripts/uac.mjs compile --target midjourney --subject "rainy Tokyo alley" /photorealistic /16:9 /highdetail
# Score a prompt from the terminal (0-100 + suggestions)
node scripts/uac.mjs lint --target llm --subject "Audit OAuth refresh flow for race conditions" /securityreview /noassumptions /checklist
# Reverse-engineer & upgrade any raw prompt automatically
node scripts/uac.mjs optimize "Fix my Node.js auth bug where refresh token fails on parallel requests"
# Generate ready-to-run API code snippets (cURL, Python SDK, TypeScript, or MCP JSON)
node scripts/uac.mjs snippet --provider openai --lang python --subject "Audit JWT refresh flow" /securityreview /noassumptions
# Generate AGENTS.md, CLAUDE.md, GEMINI.md, .windsurfrules, .cursorrules, or copilot-instructions.md
node scripts/uac.mjs export-config --format gemini --out GEMINI.md /cleanarchitecture /noassumptions /unittest /diff
# Start the zero-dependency native MCP Server (stdio JSON-RPC 2.0)
node scripts/uac-mcp.mjs
```
### MCP Configuration (Claude Desktop / Cursor / Windsurf / Claude Code / VS Code)
**Claude Desktop / Cursor / Windsurf / Cline** (zero manual clone via `npx`):
```json
{
"mcpServers": {
"universal-ai-commands": {
"command": "npx",
"args": ["-y", "universal-ai-commands", "mcp"]
}
}
}
```
**Claude Code CLI**:
```bash
claude mcp add universal-ai-commands -- npx -y universal-ai-commands mcp
```
**VS Code Copilot** (`.vscode/mcp.json`):
```json
{
"servers": {
"universal-ai-commands": {
"type": "stdio",
"command": "npx",
"args": ["-y", "universal-ai-commands", "mcp"]
}
}
}
```
## Zero-Cost Browser Install ($0): Userscript & Bookmarklet
Use all **1,060 commands & 102 native flags** directly inside ChatGPT, Claude, Gemini, Perplexity, Suno, Midjourney, DeepSeek, Grok, and Copilot without paying extension store fees:
- **1-Click Userscript (Full 1,060 Commands, Offline `Alt+K`)**: Install via free open-source [Violentmonkey](https://violentmonkey.github.io/) or Tampermonkey from [`userscript/universal-ai-commands.user.js`](https://tekideki.github.io/Universal-AI-Commands/userscript/universal-ai-commands.user.js) (caches `commands-mini.json` locally and bypasses strict page CSP). Also ready for [GreasyFork](https://greasyfork.org/).
- **Drag & Drop Bookmarklet (Zero Extensions, Any Browser)**: Click **`Install ($0)`** in the live app and drag **`UAC Quick Palette`** to your Bookmarks Bar (or copy [`userscript/bookmarklet.txt`](userscript/bookmarklet.txt)). Works offline on Chrome, Edge, Firefox, Safari, and Brave with 42 inline core/native commands + 1-click full Studio popup (`#palette`).
See [`userscript/README.md`](userscript/README.md) for full details.
## Release History
- **`v2.0.0`**: Major ecosystem release adding the **Zero-Dependency Native MCP Server** (`scripts/uac-mcp.mjs` / `uac-mcp`), **Offline Manifest V3 Browser Extension** (`extension/` with `Alt+K` Shadow-DOM overlay for ChatGPT, Claude, Gemini, Perplexity, Suno & Midjourney), **+26 verified 2026 native commands in Domain 30** (`102` native / `1,060` total across `142` categories: Codex CLI, Gemini CLI, Claude Code, Windsurf, Cline, Midjourney v7, Veo/Sora/Kling), **Prompt Builder v2** (live `{{variables}}`, **5-Target Side-by-Side Matrix**, **5 Role Quick-Start presets**), **Real Headless Browser E2E CI** (`tests/e2e-browser.mjs`), and `npm`-ready `package.json` (`uac` + `uac-mcp`).
- **`v1.7.0`**: Added **Multi-Language SDK & MCP Code Export** (`cURL`, `Python`, `TypeScript`, `MCP JSON`) for OpenAI/Anthropic/Gemini in Builder & CLI (`uac snippet`), **Local Prompt History & Snapshots** (`uac_prompt_hist`, Restore/Copy/Delete), **Fuzzy Typo-Tolerant Search** across Catalog, `Ctrl+K` & CLI, **`GEMINI.md` & `.windsurfrules`** (8 AI Config formats total), **Print / Save-as-PDF Cheatsheet**, and **Automated GitHub Release Workflow** (`.github/workflows/release.yml`).
- **`v1.6.0`**: Added **Prompt Optimizer (Reverse-Engineer & Upgrade)** in Profiles & Studio (auto-detects Midjourney/SD/Suno/Video/LLM, extracts commands, shows Before -> After quality score, 1-click Load into Builder), **1-Click API `cURL` Export** (OpenAI, Anthropic, Gemini) in Prompt Builder, **`?` Keyboard Shortcuts Cheatsheet**, **`lint` & `optimize` CLI commands**, and zero-dependency **`package.json` (`bin: uac`)** for `npx` usage.
- **`v1.5.0`**: Added **Live Prompt Quality Linter & Scorer** (`0-100`, Grade `A-D`, 6 criteria with 1-click `+ /command` auto-fixes in Prompt Builder), **Project Workspaces Switcher** (3 built-in + unlimited custom workspaces persisted locally and bundled in `.uac.json`), **Zero-Dependency Terminal CLI** (`scripts/uac.mjs` for `search`, `show`, `compile`, `export-config`, `stats`), and official **GitHub Releases** with attached offline assets.
- **`v1.4.0`**: Added **Profiles & Studio** (`#view-studio`) with **12 System Prompt Profiles** (1-click export to `AGENTS.md`, `CLAUDE.md`, `.cursorrules`, `.github/copilot-instructions.md`, ChatGPT Custom Instructions, and API JSON), **Prompt Diff A/B Comparator & Token/Platform Limit Estimator** (live word-level LCS diff, ChatGPT/Suno/Midjourney limit indicators, local snapshots, live token badge in Builder), and **Team Packs & Workspace Backup** (`.uac.json` export/import + `#pack=...` URL sharing with smart duplicate-safe merge).
- **`v1.3.0`**: Added **Multi-Step Workflow Chains** (14 curated real workflows across 5 categories with live `{{variable}}` interpolation, clickable command pills, `Send to Builder`, Markdown export, `#wf=...` shareable links, and custom local workflow creator) and expanded Domain 30 from 54 to **76 verified native commands** (+22 verified CLI/IDE agent commands, OpenAI/Anthropic/Gemini API controls, and Midjourney v7 / FLUX flags; total catalog **1,034 commands** across **139 categories**).
- **`v1.2.0`**: Added **Multi-Platform Native Prompt Compiler** (Midjourney, Stable Diffusion/ComfyUI, ChatGPT/Claude/Gemini XML, Suno/Udio, Runway/Kling/Sora), **Conflict Detector & Synergy Engine**, **Executable AI Config Exporter** (`CLAUDE.md`, `.cursorrules`, ChatGPT Custom Instructions with 1,500-char meter, API JSON), **`Ctrl+K` Command Palette**, and zero-server shareable URL hashes (`#cmd=...`, `#build=...`).
- **`v1.1.0`**: Initial public release with 1,012 unique commands across 30 domains and 136 categories, strict Domain 30 separation (54 native entries), 4-language UI (`EN`, `RO`, `SR-Latn`, `SR-Cyrl`), offline PWA, and automated validation suite.
## Disclaimers
- **Domain 20 (Legal / Compliance)**: Informative and structural prompts only. Outputs do not replace qualified legal advice.
- **Domain 22 (Health / Wellness)**: Informational wellness prompts only. Not intended for medical diagnosis or treatment.
## Support
This tool is free, open source and runs completely offline with zero tracking. If it saves you time, you can support the work via PayPal:
- **PayPal**: https://paypal.me/TekiDeki
## License
Copyright 2026 Kristian Mario Mišković. Licensed under the [Apache License, Version 2.0](LICENSE).
TDQS
Scored across 5 tools
Each tool has a recognizable role: search finds catalog entries, compile builds a prompt, lint scores it, optimize rewrites a raw prompt, and export writes config files. The one real overlap is that optimize_prompt re-compiles and implicitly re-lints, so an agent could reasonably ask whether compile_prompt or optimize_prompt is the right entry point. Descriptions do enough to separate 'subject + commands' input from 'raw prompt' input.
All five tools use a strict verb_noun snake_case pattern (search_commands, compile_prompt, lint_prompt, optimize_prompt, export_ai_config). The convention is predictable and self-documenting throughout.
Five tools for a prompt-catalog-and-compilation server is a tight, well-scoped surface. Each tool maps to a distinct step in the prompt workflow (find, build, check, improve, distribute) with no filler.
The lifecycle of search → compile → lint → optimize → export is nearly complete. The main gap is retrieval depth: there is no tool to fetch a single command's full definition by ID or to list the 30 domains/categories directly, so agents must rely on fuzzy search to navigate the 1,060-command catalog.