Ai agent
Use aux4/ai-agent to delegate tasks to LLMs, generate images, manage document knowledge, and run semantic search — with configurable models.From its SKILL.md
npx -y skills add aux4/agent-skills --skill ai-agentAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.8 KB, as published. Nobody here has run it
AI Agent
Use aux4/ai-agent to delegate work to LLMs, generate images, and manage a vector knowledge store: $ARGUMENTS
Ask Questions to an LLM
aux4 ai agent ask "What is the capital of France?"
With instructions file
aux4 ai agent ask --instructions prompt.md "Analyze this code"
With model selection
aux4 ai agent ask --useModel fast "Simple question"
aux4 ai agent ask --useModel strong "Complex reasoning task"
With config file
aux4 ai agent ask --configFile config.yaml --config agent "Your question"
With image input
aux4 ai agent ask "Describe this image" --image screenshot.png
Streaming output
aux4 ai agent ask --stream true "Explain AI agents in two sentences"
With conversation history
aux4 ai agent ask --history conversation.json "Follow-up question"
Key parameters
| Parameter | Default | Description |
|---|---|---|
--instructions | instructions.md | Prompt instructions file |
--history | "" | Conversation history JSON file |
--image | "" | Image path(s), comma-separated |
--storage | .llm | Vector store directory |
--stream | false | Stream tokens as they arrive |
--useModel | "" | Named model from registry |
--configFile | "" | Path to config.yaml |
--config | "" | Config section name |
--outputSchema | schema.json | JSON schema for structured output |
Generate Images
aux4 ai agent image --prompt "A red circle on white background" --image output.png
Multiple images
aux4 ai agent image --prompt "Geometric shapes" --image shapes.png --quantity 3
Output: 1-shapes.png, 2-shapes.png, 3-shapes.png
With specific model and quality
aux4 ai agent image --prompt "Logo design" --image logo.png --quality hd --size 1792x1024
Key parameters
| Parameter | Default | Description |
|---|---|---|
--prompt | (required) | Text description of the image |
--image | (required) | Output file path |
--size | 1024x1024 | Resolution |
--quality | auto | Quality: standard, hd, low, medium, high, auto |
--quantity | 1 | Number of images to generate |
--model | {} | Model config JSON |
Document Learning & Semantic Search
Learn from documents
aux4 ai agent learn document.txt
aux4 ai agent learn ./docs/
Search learned documents
aux4 ai agent search "How does authentication work?" --limit 3
Forget (reset vector store)
aux4 ai agent forget
Key parameters
| Command | Parameters |
|---|---|
learn | --storage .llm, --doc <path>, --type <type> |
search | --storage .llm, --format text|json, --limit 1, --source <path> |
forget | --storage .llm |
Model Selection
Configure named models in config.yaml:
config:
agent:
models:
strong:
type: bedrock
config:
model: global.anthropic.claude-sonnet-4-5-20250929-v1:0
description: "Complex reasoning, code generation"
fast:
type: bedrock
config:
model: global.anthropic.claude-haiku-4-5-20251001-v1:0
description: "Simple questions, formatting"
model:
type: bedrock
config:
model: global.anthropic.claude-sonnet-4-5-20250929-v1:0
List available models
aux4 ai agent models --configFile config.yaml --config agent
Use a named model
aux4 ai agent ask --configFile config.yaml --config agent --useModel fast "Quick question"
Fallback: if --useModel name isn't found in registry, silently uses the default model.
Conversation Management
| Command | Description |
|---|---|
aux4 ai agent history | Display formatted conversation history |
aux4 ai agent summarize --historyFile h.json | Summarize history as markdown |
aux4 ai agent remember --historyFile h.json | Generate concise memory entry from history |
aux4 ai agent compact --historyFile h.json | Compact history by summarizing older messages |
When to Use
- Delegate reasoning to a different model (e.g., use a fast model for summaries, strong for analysis)
- Generate images from text prompts
- Build a RAG pipeline — learn documents, then search them semantically
- Structured output — use
--outputSchemato get JSON responses matching a schema - Analyze images — pass screenshots or diagrams with
--imagefor visual Q&A