xiaohu-gen

An optional script-based image-generation client: prefer the agent runtime's built-in image tool; only call scripts in this directory when the runtime lacks that capability and an AGNES_API_KEY is configured; intended as a fallback for pipeline cover or inline images, without specifying other providers.

Last repository push
GitHub Stars
146
Forks
30
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "xiaohu-gen" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-8e36591e772e6f20562603c31488dbeb3b5e2b3f5a2a749ae9c0602b9bc8adf0. Verify the upstream source and version against https://github.com/843645440/wechat-skill before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

An optional script-based image-generation client: prefer the agent runtime's built-in image tool; only call scripts in this directory when the runtime lacks that capability and an AGNES_API_KEY is configured; intended as a fallback for pipeline cover or inline images, without specifying other providers.

0 Downloads

Introduction source: third_party · 843645440 · 0.0.1 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: xiaohu-gen
description: 可选的脚本生图客户端。优先使用 Agent 运行时自带的生图工具;没有自带能力且配置了 AGNES_API_KEY 时,才调用本目录脚本。用于流水线封面或正文配图的脚本降级,不指定其它供应商。

可选生图客户端

先用当前 Agent 自带的生图能力。提示词和设计说明里不要写供应商名。

没有自带生图、也没有 AGNES_API_KEY 时:正文不配图。封面由流水线继续走 HTML / Pillow / 账号默认素材,不能空封面。

免费 API Key:https://platform.agnes-ai.cn

何时用这个脚本

只有流水线脚本或用户明确要求走脚本后端时才调用:

python3 <this-skill>/scripts/agnes_generate.py \
  --prompt-file <绝对路径> \
  --output <输出.png> \
  --ratio <16:9|2.35:1|21:9> \
  --size 1K
  • 环境变量:AGNES_API_KEY(必需)
  • 默认接口:https://api.agnes-ai.cn/v1/images/generations
  • 可用 AGNES_IMAGE_ENDPOINT / AGNES_IMAGE_MODEL 覆盖,不要把 Key 写进命令行

封面比例 2.35:1 会映射为 21:9。公众号插图用 1K 即可。

流水线约定

  • 用户已给图或 Agent 已写入 imgs/ 并插入正文引用:脚本视为已有图,不再生成。
  • 公共事件 / 正式报道:禁止 AI 正文插画;封面走准确标题 HTML。
  • 生成失败、超时、缺 Key:正文 skipped,封面降级,不把整篇任务标失败。

Version history

  1. v1.1.0 GitHub ↗
    Original release notes

    流水线与文档同步到当前 `release` 分支(`8ae1abe`)。 ## 这条发行版包含什么 - 两条入口:成稿只排版(`manuscript`)、给主题由 AI 写(`brief`) - 编辑稿主题池不含通报皮;伤亡/案件才进专电 / 素笺 / 文告 - `prepare` 自动定主题、信息模块;正文未引用的图不算供图 - brief 通道 2500–5000 字,并卡本篇 `body_band`;score ≥75 - 12 套主题 gallery(霓灰 / 陶然 / 金石替换旧票根、红白) - GitHub 文档与运行时契约对齐 ## 安装 完整工具包请克隆本仓库并以 `release` 分支作为 Agent 工作区。

  2. v1.0.0 GitHub ↗
    Original release notes

    优化使用优化使用优化使用优化使用优化使用优化使用优化使用优化使用优化使用优化使用优化使用

Current listing version

0.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 提供明确的生图降级方案,解决流水线封面和配图需求
  • 区分了正文配图和封面的不同处理策略
Trigger Precision90/100

Highlights

  • 触发词精准完整,覆盖多种使用场景
  • 边界条件清晰定义,避免误触
Structure and Standards95/100

Highlights

  • 执行流程清晰,包含完整的参数说明和示例代码
  • frontmatter完整,文档结构规范
Execution Reliability90/100

Highlights

  • 工具来源明确,参数说明完整
  • 覆盖主要异常情况并有降级处理机制
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 12
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • api.agnes-ai.cn
  • platform.agnes-ai.cn

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.