SuperAPI AI Directory

agent-publisher-admin

Writing & research

View repository

Updated 10-16 09:20

About this skill

Agent Publisher Admin — Admin Console

Manage backend features such as writing identities (Agents), AI generation, style rewriting, permissions, and data sources.

Prerequisites

  • Agent Publisher backend is running
  • Email is an admin or whitelisted user
  • Already installed uv

Environment Variables

Variable Description Default Value
AP_URL Backend Address http://localhost:9099
AP_EMAIL Admin Email —

Command Quick Reference

The prefix is omitted below uv run {baseDir}/scripts/agent_publisher_admin.py。

Authentication

Command Description
auth --email <email> Admin Authentication
whoami View Identity

Agent (Writing Identity)

Command Description
agents List all Agents
create-agent --name <名称> --topic <主题> --account-id <ID> Create Agent
update-agent <ID> --name/--topic/--default-style/--cron Update Agent

AI Generation

Command Description
generate <agent_id> [--wait] Trigger AI article generation
task <task_id> View task status
collect <agent_id> Collect materials (without generating an article)

Style Presets

Command Description
list-styles [--full] View style presets
create-style <id> --name <名称> --prompt <提示词> Create custom style
edit-style <id> --prompt <提示词> Edit style
delete-style <id> Delete style

Multi-Style Rewriting

Command Description
generate-variants <article_id> --agents 1,2 --styles tech,humor [--wait] Batch rewriting
variants <article_id> View rewritten versions

Permission Management

Command Description
list-admins View admin list
add-admin <email> Add admin
remove-admin <email> Remove admin
accounts-all View all official accounts

Typical Workflow

# 1. 认证
uv run {baseDir}/scripts/agent_publisher_admin.py auth --email "admin@company.com"

# 2. 创建 Agent
uv run {baseDir}/scripts/agent_publisher_admin.py create-agent --name "科技观察" --topic "AI" --account-id 1

# 3. 配置风格
uv run {baseDir}/scripts/agent_publisher_admin.py update-agent 1 --default-style tech

# 4. AI 生成
uv run {baseDir}/scripts/agent_publisher_admin.py generate 1 --wait

# 5. 批量改写
uv run {baseDir}/scripts/agent_publisher_admin.py generate-variants 42 --agents 1,2 --styles tech,humor --wait