← 返回 Skills 市场
aimedialab

Risha.ai Content Generation

作者 aimedialab · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
36
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install risha-content-generation
功能描述
Discover, prepare, and execute any Risha.ai capability available to the authenticated account. Use when Codex needs to authenticate to a Risha workspace, loa...
使用说明 (SKILL.md)

Risha Content Generator

Use this skill to drive Risha's capability workflow from discovery through final output retrieval. Prefer the bundled helper script for repeated API work so the request flow stays consistent and the payload shape remains inspectable.

Workflow

  1. Gather credentials and decide the auth mode.
  2. Load the bundled capability catalog or refresh it from the live account.
  3. Inspect the chosen capability's manual fields to build valid prompt_data.
  4. Optionally inspect creator choices for creator-backed text workflows.
  5. Estimate credits before submitting.
  6. Submit a generation request and poll until it finishes.
  7. Return the final generated content or explain the failure clearly.

Choose Auth Mode

Prefer one of these auth approaches:

  • RISHA_AUTH_HEADER when the caller already has a working header such as Bearer ... or Basic ....
  • RISHA_EMAIL and RISHA_PASSWORD when the skill can log in directly through /api/auth/login/.

Set RISHA_API_BASE_URL only if the host changes. The default is https://adminxcore-api.risha.ai/api.

Before doing generation work, validate auth with the helper:

python3 scripts/risha_api.py me

If login succeeds but the script cannot derive a reusable auth token/header from the response, stop guessing and ask the user for the exact header format that works in their environment.

Load The Capability Catalog First

Never hardcode prompt_data blindly. The valid keys come from each capability's linked manual definition.

This skill now ships with a current account snapshot:

Refresh that snapshot in one step when needed:

python3 scripts/risha_api.py catalog \
  --quiet \
  --write-json references/current-capabilities.json \
  --write-markdown references/current-capabilities.md

Use the catalog for:

  • capability IDs
  • category and output type
  • async vs sync behavior
  • required inputs
  • field choice sources
  • current input and output schemas

When you need one capability in full detail, inspect it directly:

python3 scripts/risha_api.py capability 123

Use the capability manual to inspect:

  • manual.fields
  • each field's field_path
  • json_type
  • is_required
  • choice_model
  • enum_values
  • credit rules when present

Build prompt_data from those manual fields. Use the field path exactly as Risha expects. For nested paths such as input.text, create nested JSON objects.

The current account snapshot includes 17 accessible capabilities across:

  • multimodal
  • text_generation
  • tts

Treat the snapshot as the fast path and the live catalog command as the refresh path.

Inspect Creator Choices When Needed

For creator-backed writing flows, inspect available creators before choosing one:

python3 scripts/risha_api.py creators

If the relevant manual field uses choice_model: creators, pass the creator's field_value, not just its label.

Use the same pattern for dialects and voices when the manual points to those choice models.

Generate Content

The helper now includes credit preview by default. Before every generate request, it fetches:

  • current available credits
  • estimated cost for the selected capability and prompt_data
  • projected remaining credits after submission

If you want the preview without creating anything, use:

python3 scripts/risha_api.py estimate \
  --capability-id 123 \
  --prompt-data-file /absolute/path/prompt-data.json

Pass either inline JSON or a JSON file:

python3 scripts/risha_api.py generate \
  --capability-id 123 \
  --title "LinkedIn post draft" \
  --prompt-data '{"input":{"topic":"AI adoption","tone":"confident"}}'

Or:

python3 scripts/risha_api.py generate \
  --capability-id 123 \
  --prompt-data-file /absolute/path/prompt-data.json \
  --wait

Use --wait to poll until the request reaches a terminal state. Terminal states are:

  • completed
  • failed
  • cancelled

When completed, prefer returning:

  • generated_content.content for text
  • generated_content.asset or thumbnail URLs for media
  • generated_content.content_metadata when it contains useful structured extras

The generate response now includes a credit_preview block alongside the request or final generation result.

Chat Endpoint

Risha also exposes /api/chat/ and /api/chat/stream/, but the schema does not currently describe their request bodies. Treat those endpoints as exploratory only unless the user provides working payload examples. Prefer the capability plus generation-request flow for reliable automation.

Troubleshooting

  • If /auth/login/ returns 400 with Invalid email or password, confirm credentials before retrying.
  • If a generation request fails, inspect error_message on the request record.
  • If a capability detail lacks enough manual information, read references/risha-api.md and inspect the live capability JSON with the helper before constructing payloads.
  • If the API host returns intermittent 502 Bad Gateway, retry with backoff instead of rewriting the workflow.

Resources

安全使用建议
Use this skill only if you want your agent to access your Risha account. Provide credentials carefully, confirm credit estimates before generation, and only upload files you are comfortable sending to Risha.ai. Since the registry source is listed as unknown, install from a trusted copy and review the helper script if you will use it for paid or sensitive media workflows.
功能分析
Type: OpenClaw Skill Name: risha-content-generation Version: 1.0.0 The skill bundle provides a comprehensive interface for the Risha.ai API, but it is classified as suspicious due to the presence of 'risky capabilities' and a minor vulnerability in the helper script (scripts/risha_api.py). The script performs network requests to an external domain (adminxcore-api.risha.ai), handles sensitive credentials from environment variables, and includes functionality to write files to the local system. Specifically, the 'catalog' command lacks path sanitization for its output flags (--write-json and --write-markdown), which represents an arbitrary file write vulnerability that could be exploited via prompt injection. While these capabilities are plausibly needed for the skill's stated purpose and no intentional malice was detected, they meet the threshold for a suspicious classification under the provided criteria.
能力标签
cryptorequires-walletrequires-sensitive-credentials
能力评估
Purpose & Capability
The stated purpose, bundled catalog, API reference, and helper script align around Risha capability discovery, credit estimation, generation, and polling. The capability is broad because it can execute available Risha generation workflows, including media workflows.
Instruction Scope
The instructions tell the agent to inspect capability schemas and estimate credits before generation, which is a useful guardrail. They do not themselves enforce a separate user approval gate after the estimate, so users should require confirmation for paid or media-upload jobs.
Install Mechanism
There is no install spec or package dependency; the skill invokes a bundled Python helper script. The provided display of scripts/risha_api.py is marked truncated even though the static scan is clean, so this review has medium rather than high confidence.
Credentials
Registry requirements list no required env vars or primary credential, while the artifacts clearly use Risha auth headers or email/password. This is an under-declared metadata issue, but the credential use is disclosed and purpose-aligned.
Persistence & Privilege
No background service, privilege escalation, or autonomous persistence is shown. The optional catalog refresh can write an account-specific capability snapshot under references/ for later reuse.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install risha-content-generation
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /risha-content-generation 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the risha-content-generator skill. - Enables discovery, preparation, and execution of any Risha.ai capability for authenticated users. - Includes authenticated capability catalog loading, manual field inspection, creator/dialect/voice selection, credit estimation, job polling, and content retrieval. - Ships with an account capability snapshot and helper scripts for consistent API requests and troubleshooting.
元数据
Slug risha-content-generation
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Risha.ai Content Generation 是什么?

Discover, prepare, and execute any Risha.ai capability available to the authenticated account. Use when Codex needs to authenticate to a Risha workspace, loa... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 36 次。

如何安装 Risha.ai Content Generation?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install risha-content-generation」即可一键安装,无需额外配置。

Risha.ai Content Generation 是免费的吗?

是的,Risha.ai Content Generation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Risha.ai Content Generation 支持哪些平台?

Risha.ai Content Generation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Risha.ai Content Generation?

由 aimedialab(@aimedialab)开发并维护,当前版本 v1.0.0。

💬 留言讨论