Agent skill

Agnes AI Generation

by Yacey in Yacey/agnes-ai-generation-skill

Call Agnes AI / Sapiens AI generation APIs for text, image, and video.

MITAuto-check passedMedia & Creative

Install Agnes AI Generation

skills CLI
$ npx skills add Yacey/agnes-ai-generation-skill --skill agnes-ai-generation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Yacey/agnes-ai-generation-skill agnes-ai-generation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
agnes-ai-generation
GitHub stars
419
Token cost
~1.7k tokens
SKILL.md length
656 words
Files
8 (incl. scripts, references)
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Call Agnes AI / Sapiens AI generation APIs for text, image, and video.

  • Works in 4 steps: Read references/api.md when endpoint… → Use scripts/agnes_api.py for real API… → Require an API key in AGNES_API_KEY,… → …
  • The user asks to use Agnes models
  • SKILL.md covers Quick Start, Commands, Workflow and Current Validation Notes, plus 1 more section
  • Runs Python scripts from its folder; calls python; reaches apihub.agnes-ai.com; needs AGNES_API_KEY and AGNES_API_TOKEN

What it does

Agnes AI Generation is an agent skill from Yacey/agnes-ai-generation-skill. Call Agnes AI / Sapiens AI generation APIs for text, image, and video. Use when the user asks to use Agnes models, Agnes Image, Agnes Video, Agnes 2.0 Flash, apihub.agnes-ai.com, or to generate text, images, edit images, create videos, animate images, create keyframe videos, or test Agnes API calls.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including scripts and reference files (for example `README.md`, `README_EN.md` and `agents/openai.yaml`).

It sits in Media & Creative, covering AI video generation and Image editing. The repository describes itself as: Agent Skill for Agnes AI text, image, and video generation APIs. The licence is MIT.

When your agent uses it

  • The user asks to use Agnes models
  • Agnes 2.0 Flash
  • Apihub.agnes-ai.com
  • Create keyframe videos

Example prompts

  • “/agnes-ai-generation”

Requirements

  • Python 3
  • A credential in AGNES_API_KEY
  • A credential in AGNES_API_TOKEN

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Read references/api.md when endpoint details, parameters, or response fields are needed.
  2. Use scripts/agnes_api.py for real API calls instead of rewriting curl by hand.
  3. Require an API key in AGNES_API_KEY, AGNES_API_TOKEN, or APIHUB_AGNES_API_KEY. Never print the key.
  4. For light live verification, run smoke-test; it avoids video creation by default. Add --include-image-edit for image-to-image, and add…

What it can do on your machine

Read from SKILL.md and the folder at commit e41a012. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • apihub.agnes-ai.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • AGNES_API_KEY
    • AGNES_API_TOKEN
    • APIHUB_AGNES_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Agnes AI Generation loads about 1.7k tokens when it runs, and up to ~2.5k if it reads all its reference files. Until then it costs about 80 tokens; SKILL.md has 656 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~80
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from Yacey/agnes-ai-generation-skill at commit e41a012, republished under its MIT licence (© Yacey). 656 words, ~1,717 tokens.

Download SKILL.mdSave it as .claude/skills/agnes-ai-generation/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
agnes-ai-generation
description
Call Agnes AI / Sapiens AI generation APIs for text, image, and video. Use when the user asks to use Agnes models, Agnes Image, Agnes Video, Agnes 2.0 Flash, apihub.agnes-ai.com, or to generate text, images, edit images, create videos, animate images, create keyframe videos, or test Agnes API calls.

Agnes AI Generation

Use this skill to call Agnes text, image, and video generation APIs through https://apihub.agnes-ai.com.

Quick Start

  1. Read references/api.md when endpoint details, parameters, or response fields are needed.
  2. Use scripts/agnes_api.py for real API calls instead of rewriting curl by hand.
  3. Require an API key in AGNES_API_KEY, AGNES_API_TOKEN, or APIHUB_AGNES_API_KEY. Never print the key.
  4. For light live verification, run smoke-test; it avoids video creation by default. Add --include-image-edit for image-to-image, and add --video-case <case> explicitly for video modes. Treat the skill as fully tested only when basic text, text streaming, text tool calling, text-to-image, image-to-image, text-to-video, image-to-video, multi-image video, keyframe video, and video retrieval return successful responses.

Commands

Text generation:

bash
python scripts/agnes_api.py text --prompt "Write a concise product tagline for an AI assistant."

Streaming text:

bash
python scripts/agnes_api.py text --prompt "Write a short product intro." --stream

Streaming output is normalized and includes aggregated content, events, done, and a short raw_prefix.

Image generation:

bash
python scripts/agnes_api.py image --prompt "A luminous floating city above a misty canyon at sunrise, cinematic realism" --size 1024x768

Image-to-image:

bash
python scripts/agnes_api.py image --prompt "Turn the scene into a rainy cyberpunk night while preserving composition" --image https://example.com/input.png --size 1024x768

Text-to-video with polling:

bash
python scripts/agnes_api.py video --prompt "A cinematic shot of a cat walking on the beach at sunset" --poll

Image-to-video:

bash
python scripts/agnes_api.py video --prompt "Animate subtle camera movement and natural lighting" --image https://example.com/image.png --poll

Keyframe / multi-image video:

bash
python scripts/agnes_api.py video --prompt "Create a smooth cinematic transition between the two keyframes" --image https://example.com/a.png --image https://example.com/b.png --mode keyframes --poll

Retrieve a video task:

bash
python scripts/agnes_api.py video-get video_123456

Light live smoke test:

bash
python scripts/agnes_api.py smoke-test

Image edit smoke test:

bash
python scripts/agnes_api.py smoke-test --include-image-edit

Single video smoke test:

bash
python scripts/agnes_api.py smoke-test --video-case text-to-video

Workflow

  • Prefer agnes-2.0-flash for text chat/completions.
  • Do not use Agnes Responses API multi-turn function calling for autonomous tool workflows. Live testing showed the provider can return function_call with overall status=completed, and submitting function_call_output with previous_response_id may fail. Use this skill's chat completions path for text generation and treat tool-calling as best-effort request-shape compatibility only.
  • Prefer agnes-image-2.1-flash for text-to-image, image-to-image, and high-information-density image generation. High-density generation is prompt-driven; include subject hierarchy, environment, secondary details, lighting, composition, and quality requirements.
  • Prefer agnes-video-v2.0 for text-to-video, image-to-video, multi-image video, keyframe animation, prompt-based motion and scene control, cinematic output, asynchronous task creation, polling-based result retrieval, and seed-based reproducibility.
  • For image and video generation, convert any non-English user prompt to a fluent English generation prompt before calling the image/video API. English prompts are more stable for Agnes video generation. Preserve concrete visual details, style, lighting, composition, motion, camera instructions, and constraints during translation.
  • For videos, remember the API is asynchronous: create a task first, then poll or retrieve by video_id when the create response includes it. The script falls back to legacy task_id lookup only when video_id is absent.
  • The script validates image sizes, video frame counts, frame rates, and dimensions before sending requests. num_frames must be 8n + 1 and <= 441; 81 or 121 are good short values.
  • The video command defaults to num_frames=121 and frame_rate=24 for more stable generation. Video smoke tests default to num_frames=81 and frame_rate=24.
  • Warn the user before costly or long-running live video generation unless they explicitly asked to test or generate video.
  • Test video capabilities one at a time with smoke-test --video-case <case> to avoid creating many tasks at once. Supported cases are text-to-video, image-to-video, multi-image, and keyframes.
Show full SKILL.md (222 more words)Show less

Current Validation Notes

  • Confirmed locally: skill metadata validation and Python syntax.
  • Confirmed by live API: basic text, streaming text, tool-calling request shape, text-to-image, image-to-image, high-information-density text-to-image, Chinese prompt translation for image/video, completed text-to-video URL retrieval, and completed image-to-video URL retrieval.
  • Caveat: Agnes may accept tool-calling request parameters without consistently returning tool_calls; use smoke-test --strict-tools when strict tool-call validation is required.
  • Caveat: Agnes Responses API multi-turn function calling is not reliable for agent tool loops; do not rely on it for Codex/Claude-style automatic tool continuation.
  • Supported by the script and smoke-test selector, but not re-run end-to-end in the latest pass: multi-image video and keyframe animation.
  • Not yet confirmed end-to-end: completed URL retrieval for every multi-image video and keyframe animation task. A previous text-to-video task returned a provider-side division by zero error, so keep video retries visible and report provider errors clearly.

Output Handling

  • Return generated image/video URLs directly by default. Do not download, save, open, or inspect generated media unless the user explicitly asks for a local file or visual inspection.
  • For image responses, expect URL-style results when extra_body.response_format is url.
  • For video responses, extract URLs from video_url, url, or remixed_from_video_id when status is completed.
  • For video retrieval, prefer GET /agnesapi?video_id=...&model_name=agnes-video-v2.0; legacy GET /v1/videos/{task_id} remains a fallback.
  • If a request fails, report HTTP status and provider error body without exposing the API key.

© Yacey, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (scripts, references) in the repository root of Yacey/agnes-ai-generation-skill.

  • SKILL.md
  • .gitignore
  • LICENSE
  • README.md
  • README_EN.md
  • agents/openai.yaml
  • references/api.md
  • scripts/agnes_api.py

Open the folder on GitHubat commit e41a012

Compare with similar skills

Agnes AI Generation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Agnes AI Generation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agnes AI Generation this skillYacey/agnes-ai-generation-skill419—~1.7kAutomated safety check: PassMIT
Gc Still Image Motion DirectorLiamGvchi/gc-still-image-motion-director152—~1.4kAutomated safety check: PassMIT
Media Genclacky-ai/openclacky1.2k—~7.5kAutomated safety check: PassMIT
Mdbox Mediahi5jeff/deepclonewebsite94—~993Automated safety check: NotesCustom licence
Character Design with genmediafal-ai-community/skills251—~1.3kAutomated safety check: PassNone
Grok Mediacalesthio/OpenMontage66k—~950Automated safety check: PassAGPL-3.0

Similar skills

  • Gc Still Image Motion Director

    LiamGvchi/gc-still-image-motion-director

    Analyze still images and design restrained, image-specific motion for image-to-video generation.

    152 GitHub stars~1.4k tokensUpdated 2 mo ago
    Media & CreativeAuto-check passed
  • Media Gen

    clacky-ai/openclacky

    Generate or edit images, videos, or audio in the current task.

    1.2k GitHub stars~7.5k tokensUpdated today
    Media & CreativeAuto-check passed
  • Mdbox Media

    hi5jeff/deepclonewebsite

    Generate and process media — images, video, audio, music — and read text from images (OCR).

    94 GitHub stars~993 tokensUpdated 2 mo ago
    Media & CreativeAuto-check: notes
  • Character Design with genmedia

    fal-ai-community/skills

    Builds consistent characters, reference and expression sheets, outfit variations and character-to-video shots with the genmedia CLI while keeping identity stable.

    251 GitHub stars~1.3k tokensUpdated 12 days ago
    Media & CreativeAuto-check passed
  • Grok Media

    calesthio/OpenMontage

    xAI Grok image and video generation guide covering authentication, endpoints, prompt structure, image editing, reference-image video, and async polling.

    66k GitHub stars~950 tokensUpdated 7 days ago
    Media & CreativeAuto-check passed
  • Clean Audio

    hassancs91/claude-youtube-editor

    Voice/audio cleanup step of the AI Video Editor pipeline — diagnose a video's background noise, pick the right denoise method, and produce a cleaned master (voice isolated, levels preserved, video…

    328 GitHub stars~1.8k tokensUpdated 1 mo ago
    Media & CreativeAuto-check passed

Questions about Agnes AI Generation

What does Agnes AI Generation do?

Call Agnes AI / Sapiens AI generation APIs for text, image, and video. Agnes AI Generation is an agent skill from Yacey/agnes-ai-generation-skill. Call Agnes AI / Sapiens AI generation APIs for text, image, and video.

When should I use Agnes AI Generation?

Agnes AI Generation fits situations like: the user asks to use Agnes models; agnes 2.0 Flash; apihub.agnes-ai.com; create keyframe videos.

How do I install Agnes AI Generation in Claude Code?

Run `npx skills add Yacey/agnes-ai-generation-skill --skill agnes-ai-generation -a claude-code`. Or copy the skill folder (the Yacey/agnes-ai-generation-skill repository) into .claude/skills/agnes-ai-generation in your project. Claude Code loads it when a task matches its description.

How do I install Agnes AI Generation in Codex?

Run `npx skills add Yacey/agnes-ai-generation-skill --skill agnes-ai-generation -a codex`. Or copy the skill folder (the Yacey/agnes-ai-generation-skill repository) into .agents/skills/agnes-ai-generation in your project. Codex loads it when a task matches its description.

Can I use Agnes AI Generation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Yacey/agnes-ai-generation-skill --skill agnes-ai-generation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agnes-ai-generation, .gemini/skills/agnes-ai-generation, .github/skills/agnes-ai-generation and .opencode/skills/agnes-ai-generation in your project.

What does Agnes AI Generation need to run?

Going by SKILL.md and its folder, Agnes AI Generation needs Python for the scripts in its folder, the command-line tools its instructions call (python) and credentials named AGNES_API_KEY, AGNES_API_TOKEN and APIHUB_AGNES_API_KEY. Our summary lists: Python 3; A credential in AGNES_API_KEY; A credential in AGNES_API_TOKEN.

Does Agnes AI Generation access the network?

SKILL.md names 1 domain. In commands or code: apihub.agnes-ai.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Agnes AI Generation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Agnes AI Generation use?

Agnes AI Generation is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Agnes AI Generation use?

About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 797 tokens, read only when the agent opens those files.

What are the alternatives to Agnes AI Generation?

Skills that share tags, products or a category with Agnes AI Generation: Gc Still Image Motion Director (LiamGvchi/gc-still-image-motion-director, 152 stars), Media Gen (clacky-ai/openclacky, 1.2k stars), Mdbox Media (hi5jeff/deepclonewebsite, 94 stars) and Character Design with genmedia (fal-ai-community/skills, 251 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agnes AI Generation?

Yacey (a GitHub user) maintains it in Yacey/agnes-ai-generation-skill, which has 419 GitHub stars. The repository was last updated on June 21, 2026.

Source: Yacey/agnes-ai-generation-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.