/SKILL.md
# ai-coder Skill Definition ## Overview **ai-coder** is a local, GPU-accelerated AI-assisted coding CLI tool that runs large language models (LLMs) on your machine using Ollama. It enables private, offline AI-powered code generation without external API calls. **Skill Type**: Code Generation & Assistance **Language**: Rust **Runtime**: Tokio async/await **Model Backend**: Ollama REST API **Privacy**: 100% local (no data sent to external APIs) --- ## Capabilities ### 1. **Prompt-Based Code
npx skillsauth add lornu-ai/ai-coder ai-coderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
ai-coder is a local, GPU-accelerated AI-assisted coding CLI tool that runs large language models (LLMs) on your machine using Ollama. It enables private, offline AI-powered code generation without external API calls.
Skill Type: Code Generation & Assistance Language: Rust Runtime: Tokio async/await Model Backend: Ollama REST API Privacy: 100% local (no data sent to external APIs)
Example Usage:
ai-coder "Write a fast Fibonacci sequence generator in Rust"
ai-coder "Implement binary search in Python"
ai-coder --model deepseek-coder-v2 "Create a web scraper for news articles"
qwen2.5-coder--model flagOLLAMA_MODEL environment variableAvailable Model Categories:
http://localhost:11434--host flag or OLLAMA_HOST environment variableExample:
# Local GPU
OLLAMA_HOST=http://localhost:11434 ai-coder "Your prompt"
# Remote GPU server
ai-coder --host http://192.168.1.50:11434 "Your prompt"
# AWS/GCP cloud instance
ai-coder -H http://gpu-instance.cloud.provider:11434 "Your prompt"
0: Success1: Error (connection, parsing, model timeout, etc.)./ai-coder "prompt" [--model MODEL] [--host HOST]
OLLAMA_HOST # Default Ollama instance (e.g., http://localhost:11434)
OLLAMA_MODEL # Default model (currently must be set via --model flag)
-m, --model <MODEL> # Model to use (default: qwen2.5-coder)
-H, --host <HOST> # Ollama host URL (overrides OLLAMA_HOST)
--help # Show help
--version # Show version
| Model | Size | VRAM | Speed | Quality | |-------|------|------|-------|---------| | qwen2.5-coder:7b | 7B | 6GB | Fast | Good | | codegemma:7b | 7B | 6GB | Fast | Very Good | | deepseek-coder-v2:16b | 16B | 10GB | Moderate | Excellent | | mistral:7b | 7B | 6GB | Fast | Good |
Example:
ai-coder "Generate a struct for representing a 3D point in Rust"
Example:
ai-coder "Implement quicksort in Python with comments"
Example:
ai-coder "Why would this Rust code fail with a borrow checker error?"
Example:
ai-coder "Show an example of the builder pattern in Rust"
Example:
ai-coder "Explain this async/await pattern in Rust"
| Error | Cause | Solution |
|-------|-------|----------|
| "Failed to connect" | Ollama not running | ollama serve in another terminal |
| "Model not found" | Model not pulled | ollama pull qwen2.5-coder |
| "Timeout" | Model too large for GPU | Try smaller model or increase timeout |
| "Invalid JSON" | Ollama API response issue | Check Ollama version and logs |
cargo fmtcargo clippy -- -D warningscargo test --releasename: ai-coder
version: "0.1.0"
type: code-generation
language: rust
license: MIT
repository: https://github.com/lornu-ai/ai-coder
keywords:
- ai
- coding
- ollama
- local-inference
- privacy-first
- gpu-acceleration
dependencies:
required:
- rust: "1.70+"
- ollama: "any"
optional:
- cuda: "for nvidia gpu"
- rocm: "for amd gpu"
- metal: "for apple silicon"
maturity: alpha
status: active-development
git clone https://github.com/lornu-ai/ai-coder.git
cd ai-coder
cargo build --release
./target/release/ai-coder "Your prompt here"
ollama serveollama pull qwen2.5-coderai-coder "Hello world in Python"Contributions welcome! Areas for contribution:
See GitHub issues for planned work.
MIT License - See LICENSE file Built by Lornu AI team Uses Ollama for local LLM inference
tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.