← Back to Skills Marketplace
juanjuan2538

xingtuTaskAuthor

by juanjuan2538 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
82
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install xingtutaskauthor
Description
Query and export the registered influencer list of a XingTu task by task ID, including detailed author info like nickname, ID, level, fans, pricing, city, We...
README (SKILL.md)

\r \r

XingTu Task Author Fetcher\r

\r Fetch the complete list of registered authors/influencers for a XingTu (星图) recruitment task and export to a well-formatted Excel file.\r \r

Workflow\r

\r

Step 1: Obtain Task ID\r

\r If the user has already provided a XingTu task ID in their message, use it directly. Otherwise, ask the user to provide the task ID.\r \r The task ID is a long numeric string (e.g., 7642279680695484426). If the user provides a URL or screenshot, extract the ID from it.\r \r

Step 2: Check Cookie\r

\r The cookie file is stored at ~/.xingtuCookie.txt. Use os.path.expanduser("~") to resolve the home directory on any OS.\r \r If the file exists:\r

  • Read the cookie content.\r
  • Validate the cookie by running:\r
    python "\x3Cskill-base>/scripts/fetch_xingtu_authors.py" --task-id "\x3Ctask_id>" --cookie "\x3Ccookie>" --validate\r
    ```\r
    
  • If the script exits with code 0 (prints [OK]), the cookie is valid. Proceed to Step 4.\r
  • If the script exits with code 1 (prints [FAIL]), the cookie is invalid. Go to Step 3 with the message: "星图后台登录失效"\r \r If the file does NOT exist:\r
  • Go to Step 3 with the message: "星图后台还未登录"\r \r

Step 3: Login Flow\r

\r When the cookie is missing or invalid:\r \r

  1. First, check if the user's current message contains a cookie string. If yes:\r
    • Validate it using the --validate command from Step 2.\r
    • If valid: write it to ~/.xingtuCookie.txt and proceed to Step 4.\r
    • If invalid: continue below.\r \r
  2. Tell the user the login is required. Use the appropriate message:\r
    • No cookie file: "星图后台还未登录,需要先登录星图后台。"\r
    • Invalid cookie: "星图后台登录失效,需要重新登录。"\r \r
  3. Open the login page in the built-in browser:\r
    https://sso.oceanengine.com/xingtu/login?role=7\r
    ```\r
    Use the `agent-browser` skill or `preview_url` tool to open this URL.\r
    

\r 4. Instruct the user:\r

  • "请在打开的浏览器中完成星图后台登录。"\r
  • "登录成功后,请从浏览器中复制完整的 Cookie 字符串发给我。"\r
  • Provide guidance: In Chrome DevTools, go to Application > Cookies > www.xingtu.cn, or use the Network tab to copy the Cookie header from any API request.\r \r
  1. When the user provides the cookie string:\r
    • Save it to ~/.xingtuCookie.txt\r
    • Validate it using the --validate command\r
    • If valid: proceed to Step 4\r
    • If still invalid: ask the user to double-check the cookie and try again\r \r

Step 4: Fetch Authors\r

\r Run the fetch script to get all authors across all pages:\r \r

python "\x3Cskill-base>/scripts/fetch_xingtu_authors.py" --task-id "\x3Ctask_id>" --cookie "\x3Ccookie>"\r
```\r
\r
The script will:\r
- Paginate through all results automatically (page by page until `has_more` is false)\r
- Print progress for each page (e.g., "Got 10 authors, cumulative: 10/45")\r
- Export all data to a formatted Excel file\r
- Print a JSON summary with `task_id`, `total_authors`, and `output` path\r
\r
The default output path is: `xingtu_authors_\x3Ctask_id>_\x3Ctimestamp>.xlsx` in the current working directory.\r
\r
Optional: Use `--output \x3Cpath>` to specify a custom output path.\r
\r
### Step 5: Present Results\r
\r
After the script completes successfully:\r
\r
1. Show the summary to the user (total authors count)\r
2. Call `deliver_attachments` to deliver the Excel file\r
3. Call `open_result_view` to open the Excel file for the user\r
\r
### Step 6: Memory Update\r
\r
Append a note to the daily memory file recording:\r
- Task ID processed\r
- Number of authors fetched\r
- Output file path\r
\r
## Excel Output Columns\r
\r
| Column | Source Field |\r
|--------|-------------|\r
| 序号 | Auto-increment |\r
| 达人昵称 | `author_base_info.nick_name` |\r
| 作者ID | `author_base_info.author_id` |\r
| 达人等级 | `author_base_info.ecom_author_level` |\r
| 粉丝数 | `author_base_info.follower` |\r
| 主推类目(30天) | `author_base_info.all_ecom_top3_category_30d_desc` (joined) |\r
| 带货GMV(30天) | `author_base_info.all_ecom_gmv_30d_desc` |\r
| 视频GMV(30天) | `author_base_info.ecom_video_gmv_30d_desc` |\r
| 1-20s报价 | `recruit_author_order_info.recruit_cpt_info.author_price` |\r
| 21-60s报价 | `author_base_info.price_21_60` |\r
| 60s+报价 | `author_base_info.price_60` |\r
| 预期CPM | `author_base_info.prospective_cpm` |\r
| 预期播放量 | `author_base_info.expected_play_num` |\r
| 完播率 | `author_base_info.author_recruit_video_cpt_fulfillment_rate_desc` |\r
| 所在城市 | `author_base_info.author_resident_city` |\r
| 内容标签 | `author_base_info.content_tags` (joined) |\r
| 微信号 | `author_base_info.wechat` |\r
| 报名状态 | `recruit_author_order_info.enroll_status` (mapped) |\r
| 报名时间 | `recruit_author_order_info.time_info.enroll_time` (timestamp to datetime) |\r
| 推荐理由 | `recruit_author_order_info.recommend_reason` (formatted) |\r
| 合作优势 | `recruit_author_order_info.coop_advantage` |\r
| 创作思路 | `recruit_author_order_info.creation_idea` |\r
| 补充说明 | `recruit_author_order_info.extra_note` |\r
\r
## API Reference\r
\r
- **Endpoint**: `POST https://www.xingtu.cn/gw/api/challenge/provider_get_task_author_list`\r
- **Auth**: Cookie-based (from browser login at `https://sso.oceanengine.com/xingtu/login?role=7`)\r
- **Pagination**: Query parameter `page` (int, starts at 1), response field `pagination.has_more` (bool)\r
- **Required headers**: `Accept`, `Content-Type`, `agw-js-conv: str`, `Cookie`, `User-Agent`, `Host`\r
\r
## Error Handling\r
\r
- **Cookie expired mid-fetch**: If any page returns a non-zero `status_code`, report the error and suggest re-login\r
- **Empty result**: If `total_count` is 0, inform the user that no authors have registered for this task\r
- **Network errors**: Retry once; if still failing, report the error to the user\r
- **openpyxl not installed**: Install it with `pip install openpyxl requests`\r
Usage Guidance
Install only if you are comfortable giving the agent access to a live XingTu session and exporting creator contact information to a local spreadsheet. Prefer a version that uses a secure credential flow or secret store, avoids pasting full cookies into chat, masks WeChat/contact fields by default, and clearly warns before exporting personal data.
Capability Assessment
Purpose & Capability
The core purpose is coherent: use a XingTu task ID, call the documented XingTu author-list API, paginate results, and export an Excel file. The concern is that the workflow includes live session-cookie handling and export of influencer contact fields such as WeChat IDs, which are high-impact data flows for a convenience skill.
Instruction Scope
The instructions explicitly tell the user to copy a full browser Cookie string into the chat and save it to ~/.xingtuCookie.txt. Authentication is expected for this task, but this method is overbroad and exposes reusable session material to the agent conversation and local plaintext storage.
Install Mechanism
The artifact contains a markdown skill and one Python script. It does not show an automatic installer or hidden startup behavior, but it may require users to install Python packages such as requests and openpyxl.
Credentials
Network calls to www.xingtu.cn are purpose-aligned, and writing an Excel file is expected. However, exporting personal/contact information by default without masking, warning, minimization, or access-control guidance is under-scoped for the sensitivity of the data.
Persistence & Privilege
The skill persists the raw authentication cookie in ~/.xingtuCookie.txt and asks to append task metadata to a daily memory file. The plaintext cookie persistence is the main privilege concern because it can preserve account access beyond the immediate task.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install xingtutaskauthor
  3. After installation, invoke the skill by name or use /xingtutaskauthor
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- Initial release of xingtuTaskAuthor skill. - Enables fetching registered author/influencer lists for XingTu (星图) recruitment tasks. - Supports login and cookie management, with built-in instructions for users to provide or update cookies. - Automatically paginates and collects all author data, exporting results to a formatted Excel file. - Handles errors such as invalid or expired cookies, network issues, and empty results. - Delivers the Excel file to the user and records task results in memory.
v1.0.0
- Initial release of xingtuTaskAuthor skill. - Allows users to fetch and export the full list of registered authors/influencers for a XingTu (星图) recruitment task to a formatted Excel file. - Handles XingTu backend login and cookie validation, including guidance for users to obtain and provide valid cookies. - Supports automatic pagination to retrieve all authors and displays progress. - Provides clear error handling for login issues, empty results, and network problems. - Uploads and presents the resulting Excel file and records completed tasks in the daily memory file.
Metadata
Slug xingtutaskauthor
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is xingtuTaskAuthor?

Query and export the registered influencer list of a XingTu task by task ID, including detailed author info like nickname, ID, level, fans, pricing, city, We... It is an AI Agent Skill for Claude Code / OpenClaw, with 82 downloads so far.

How do I install xingtuTaskAuthor?

Run "/install xingtutaskauthor" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is xingtuTaskAuthor free?

Yes, xingtuTaskAuthor is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does xingtuTaskAuthor support?

xingtuTaskAuthor is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created xingtuTaskAuthor?

It is built and maintained by juanjuan2538 (@juanjuan2538); the current version is v1.0.1.

💬 Comments