SuperAPI AI Directory

rolecraft

Zero-dependency CLI to install AI agent skills as roles & behaviors from any source. Works with 86 coding agents.

Open website

About this tool

rolecraft is a zero-dependency command-line tool for installing skills (roles and behaviors) for AI agents and managing skills and MCP servers. It requires Node.js >= 22 and uses only Node.js built-in modules (fs, path, crypto, https), introducing no third-party dependencies to reduce supply chain risk.

Main capabilities: supports installing skills from any source such as local folders, GitHub/GitLab/SSH URLs, npm packages, etc.; covers 90 agents (65 of which are verified), including opencode, claude-code, cursor, copilot, aider, oh-my-pi, etc.; usable without registration or a marketplace; supports installing skills and MCP servers with a single command; provides shell autocompletion (bash, zsh, fish); supports a configuration file system that can save, apply, and share multi-agent configurations; provides lockfile-based CI reinstallation (rolecraft ci), --yes and --dry-run and other CI-friendly options.

Security mechanisms: before each installation, skills undergo static analysis to detect prompt injection, command injection, obfuscated code, and credential theft, and are given a score of 0–100. Above 90 is SAFE, and installation continues; 70–89 is REVIEW, requiring confirmation; below 70 is DANGER, blocked unless --yes is used; any critical finding is directly judged as DANGER. Scanning covers paths such as install, bundle, update, setup, search --interactive, watch auto-sync, ci, and profile apply.

Known limitations: the scanner is a regex-based check and does not interpret skill semantics, so natural language instructions that evade all patterns may receive a perfect score; --dry-run does not perform scanning; setup does not scan MCP servers declared by skills, while install does; MCP servers installed from uvx, pipx, go, deno, cargo, or local paths are not scanned, and their contents are not fetched, so they are reported as SAFE; rolecraft ci verifies content but does not pin sources, and moving sources such as npm dist-tags.latest or git branch heads are not pinned, so two runs may legitimately differ, and there is no --frozen mode. A security score does not represent a trust decision; it only reports whether dangerous patterns are found in the parsed files, and does not judge whether the upstream source is trustworthy.