Back to Skills

create-agent

Bootstrap a modular AI agent with OpenRouter SDK, extensible hooks, and optional Ink TUI

26stars9forksUpdated 5/18/2026

Security Assessment

Medium Risk(50/100)

Detected risks:

Secret Exposure([SKILL.md] API_KEY=)
Sensitive File Access([SKILL.md] .env)
Security Score50/100

About create-agent

The 'create-agent' skill provides developers with a framework to bootstrap a modular AI agent using the OpenRouter SDK. It addresses the challenge of integrating multiple language models and building a flexible agent architecture by offering a standalone agent core that can operate independently and be extended through hooks. This modular approach allows developers to decouple the agent's core logic from its interfaces, ensuring easier maintenance and adaptability to various application environments.

The skill's main features include a robust agent core that supports lifecycle hooks and event-driven interactions, access to over 300 language models via the OpenRouter SDK, and an optional Ink TUI for a terminal-based user interface. The architecture is designed to allow multiple frontends such as HTTP APIs, Discord bots, or command-line interfaces to interact seamlessly with the agent core. Developers can also leverage TypeScript and related tooling to ensure type safety and streamline development, while environment variables secure API keys, preventing accidental exposure.

Ideal use cases for this skill include creating AI-powered assistants, chatbots, or automation tools that require a flexible backend capable of interacting with various inputs and outputs. Target users are developers familiar with JavaScript, TypeScript, and React who want a foundation for building extensible AI agents. The modularity allows both headless applications and interactive terminal interfaces, making it suitable for experimentation, prototyping, and production-ready AI services.

FAQ

How do I initialize a project using this skill?

Create a new directory, run 'npm init -y', and set the project type to 'module'. Then install the required dependencies and configure TypeScript if needed.

Can I use the agent without the Ink TUI?

Yes, the Ink TUI is optional. The agent core can run headless and be integrated with other interfaces like HTTP APIs or Discord bots.

Which language models are supported?

The skill provides access to over 300 language models through the OpenRouter SDK.

How should I handle API keys securely?

Never commit API keys to version control. Store them in environment variables and access them in your application as needed.

What are the prerequisites for using this skill?

You need an OpenRouter API key and familiarity with JavaScript or TypeScript development environments.

All Files

2 files
metadata.json0.9 KB
View
SKILL.md25.2 KB
View

Install create-agent

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill