返回顶部
x

xiaojia-skills

Call the JustAI openapi async chat endpoints and return structured JSON results. Use when Codex needs to invoke the deployed JustAI agent for marketing plans, Xiaohongshu notes, image generation, collect-info turns, confirm-info card generation, or follow-up turns through `/openapi/agent/chat_submit` and `/openapi/agent/chat_result` instead of reasoning locally.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
77
下载量
0
收藏
概述
安装方式
版本历史

xiaojia-skills

# Xiaojia Skills Use the bundled scripts to inspect available projects and skills, then call the deployed JustAI openapi endpoint in two steps: 1. `list_projects.py` lists your available资料库 folders/projects 2. `list_skills.py` lists your available skill IDs 3. `chat.py` submits the task and returns `conversation_id` 4. `chat_result.py` polls `chat_result` until the task is `completed` or `failed` This keeps the interface stable for slower branches such as card generation, plan generation, notes generation, and image generation. When running inside Claude Code, `${CLAUDE_SKILL_DIR}` resolves to this skill directory. Use that path when invoking the bundled scripts. In Codex or a plain shell, run the same scripts from the installed skill directory. ## Workflow 1. Ensure these environment variables are set before using the script: - `JUSTAI_OPENAPI_BASE_URL` - `JUSTAI_OPENAPI_API_KEY` - Optional: `JUSTAI_OPENAPI_TIMEOUT` 2. If the task should be scoped to a specific资料库, run `scripts/list_projects.py` first and choose one or more `project_id`. 3. If the task should preload a specific skill, run `scripts/list_skills.py` first and choose one or more `skill_id`. 4. Run `scripts/chat.py` with `--message`, optional `--conversation-id`, optional repeated `--project-id`, and optional repeated `--skill-id`. 5. Preserve the returned `conversation_id`. 6. Run `scripts/chat_result.py --conversation-id ...` to poll the task result. 7. Read the returned JSON and use it directly: - `branch` tells which real path ran, such as `collect_info`, `confirm_info`, `generate_plan`, `generate_notes`, or `generate_image` - `result` is the primary payload - `text` is the human-readable summary or fallback text - `conversation_id` must be preserved for follow-up turns 8. If the user asks to continue an existing conversation, pass the previous `conversation_id` back into `scripts/chat.py` together with the new `--message`. 9. For `confirm_info` results: - To accept the card and continue, send a natural-language follow-up such as `这些信息没问题,继续生成方案`. - To revise the card, send a natural-language correction such as `预算改成3万,目标用户改成25到30岁女性,请更新资料卡片`. - Do not attempt structured form submission yet; the openapi layer currently supports message-based continuation only. ## Commands List projects: ```bash python3 "${CLAUDE_SKILL_DIR}/scripts/list_projects.py" ``` List skills: ```bash python3 "${CLAUDE_SKILL_DIR}/scripts/list_skills.py" ``` Run a new turn: ```bash python3 "${CLAUDE_SKILL_DIR}/scripts/chat.py" --message "帮我做一份小红书运营方案" ``` Poll the result: ```bash python3 "${CLAUDE_SKILL_DIR}/scripts/chat_result.py" \ --conversation-id "existing-conversation-id" ``` Continue an existing turn: ```bash python3 "${CLAUDE_SKILL_DIR}/scripts/chat.py" \ --conversation-id "existing-conversation-id" \ --message "继续展开第二部分" ``` Continue after a confirmation card: ```bash python3 "${CLAUDE_SKILL_DIR}/scripts/chat.py" \ --conversation-id "existing-conversation-id" \ --message "这些信息没问题,继续生成方案" ``` Revise a confirmation card in natural language: ```bash python3 "${CLAUDE_SKILL_DIR}/scripts/chat.py" \ --conversation-id "existing-conversation-id" \ --message "预算改成3万,目标用户改成25到30岁女性,其他不变,请更新资料卡片" ``` Run a turn scoped to a selected project/folder: ```bash python3 "${CLAUDE_SKILL_DIR}/scripts/chat.py" \ --project-id "fld_demo" \ --message "请参考这个资料库里的内容,帮我写一篇港理工校园生活图文笔记" ``` Run a turn with a manually selected skill: ```bash python3 "${CLAUDE_SKILL_DIR}/scripts/chat.py" \ --skill-id "skill_demo" \ --message "使用这个技能继续分析" ``` Run a turn with both selected project and skill: ```bash python3 "${CLAUDE_SKILL_DIR}/scripts/chat.py" \ --project-id "fld_demo" \ --skill-id "skill_demo" \ --message "优先参考这个资料库并使用这个 skill 帮我生成方案" ``` Override the timeout for slower branches: ```bash python3 "${CLAUDE_SKILL_DIR}/scripts/chat.py" \ --message "我是做敏感肌护肤的品牌,先帮我整理资料卡片" ``` Control polling interval: ```bash python3 "${CLAUDE_SKILL_DIR}/scripts/chat_result.py" \ --conversation-id "existing-conversation-id" \ --poll-interval 2 \ --timeout 300 ``` ## Guardrails - Prefer the scripts over hand-written `curl` so submit and polling stay consistent. - When the task depends on a specific资料库 or手动技能, list them first and pass the exact IDs. The openapi request now统一使用 `project_id` 和 `skill_id` 两个字段,值都是字符串数组。 - Keep `conversation_id` from the last successful submit response and reuse it for polling and follow-up requests. - Treat `result` as the primary machine-readable payload. Use `text` only as fallback when `result` is plain text. - `confirm_info` currently continues through natural-language follow-up on the same `conversation_id`; there is no structured `form_data` submission path in openapi yet. - If the endpoint returns `status=failed`, surface `message` directly instead of retrying blindly.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 xiaojia-skills-1776057782 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 xiaojia-skills-1776057782 技能

通过命令行安装

skillhub install xiaojia-skills-1776057782

下载 Zip 包

⬇ 下载 xiaojia-skills v1.0.0

文件大小: 8.29 KB | 发布时间: 2026-4-14 11:02

v1.0.0 最新 2026-4-14 11:02
- Initial release of xiaojia-skills for structured marketing and content automation via JustAI openapi async chat endpoints.
- Provides Python scripts to list projects, list skills, submit chat tasks, and poll results with clear CLI workflows.
- Supports asynchronous, two-step chat operations (submit and poll) for tasks like marketing plan generation, Xiaohongshu notes, image generation, collect-info and confirm-info flows.
- Standardizes use of environment variables and enforces use of project_id and skill_id arrays for scoping requests.
- Introduces guardrails: conversation_id management, natural-language continuation for card confirmation, and error surfacing on failed tasks.
- Includes detailed usage examples for running all supported operations from the shell.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部