编程

人生说明书

试用

把一个人,认真地,写成一本书。 把人生里反复发生的模式,整理成一套可执行的说明书。它不替你预测命运,而是帮助你看清优势、代价、环境与当下选择。 感情有没有结果、工作要不要换、钱会不会出问题、今年适不适合动。Life Book 先回答这些真正困住你的问题,再告诉你背后的结构为什么这样判断。 Life Book 不承诺替代医疗、法律、投资等专业建议,也不会把未来说成宿命铁律。它真正做的是:帮你看清优势、代价、环境与当下选择,让你知道该在哪些地方发力、在哪些地方设限、什么信号出现时该调整判断。 换句话说,人生说明书的价值不在“神秘”,而在“可复盘”。它让一个人第一次较为完整地看见自己.

它能做什么

把一个人,认真地,写成一本书。 把人生里反复发生的模式,整理成一套可执行的说明书。它不替你预测命运,而是帮助你看清优势、代价、环境与当下选择。 感情有没有结果、工作要不要换、钱会不会出问题、今年适不适合动。Life Book 先回答这些真正困住你的问题,再告诉你背后的结构为什么这样判断。 Life Book 不承诺替代医疗、法律、投资等专业建议,也不会把未来说成宿命铁律。它真正做的是:帮你看清优势、代价、环境与当下选择,让你知道该在哪些地方发力、在哪些地方设限、什么信号出现时该调整判断。 换句话说,人生说明书的价值不在“神秘”,而在“可复盘”。它让一个人第一次较为完整地看见自己.

技能文档

Life Book Generator

Use this skill to create and deliver Life Book full-report tasks through the official Agent API.

The paid product is only the complete 18-chapter Life Book report:

  • lite: 标准版, about 30,000 Chinese characters, CNY 69.9
  • pro: 典藏版, about 100,000 Chinese characters, CNY 699

What This Skill Can Do

  1. Check whether the deployed Life Book service is healthy.
  2. Collect and validate a complete intake@1 payload.
  3. Create a full-report Agent task through /api/agent/report-tasks.
  4. Return payment information when the task is awaiting payment.
  5. Submit manual payment confirmation after the user pays by WeChat, Alipay, or EVM.
  6. Poll task status without using website cookies.
  7. Retrieve the final report through the task bearer token when ready.

Important Payment Boundary

Do not claim payment has succeeded unless the API returns a paid/queued/processing/ready task.

Current supported paths:

  • If LIFE_BOOK_AGENT_API_KEY is configured by the platform operator, the skill can create a controlled paid Agent task and the report enters the generation queue.
  • If no private key is configured, the task may return awaiting_payment plus payment details from the deployed payment provider.
  • If the server returns 402 PAYMENT_REQUIRED, explain that x402 payment verification is required and has not been completed in this chat yet.

Never fabricate OKX.AI, Hermes, x402, or external payment success.

Required Environment

export LIFE_BOOK_BASE_URL="https://your-life-book-domain.com"

For controlled internal Agent integration:

export LIFE_BOOK_AGENT_API_KEY="..."

For existing tasks:

export LIFE_BOOK_TASK_TOKEN="lbat_..."

Core Agent Workflow

1. Health Check

node scripts/check-health.mjs

Stop if health is not ok.

2. Collect Intake

Gather a complete payload matching intake@1. Use the example only as shape reference:

cat examples/intake.example.json

Verify:

  • displayName
  • birth.localDate, birth.localTime, birth.timezone, birth.latitude, birth.longitude
  • birth.accuracy, birth.dayBoundarySect, birth.sex
  • primaryQuestion
  • optionalQuestions with at most 2 items
  • full tradeoffs
  • exactly 2 lifeEvidence items
  • 2 to 6 milestones
  • consent: true

3. Create Full-Report Task

node scripts/create-report-task.mjs \
  --input-file /absolute/path/to/intake.json \
  --edition lite \
  --idempotency-key user-unique-report-key

Use --edition pro for 典藏版.

The command returns:

  • task.id
  • task.status
  • access.token when a new task is created
  • payment details if payment is required
  • status/result/stream endpoint URLs

If access.token is returned, keep it for later calls. It is returned once.

4. Handle Payment State

If task.status is awaiting_payment:

  • Present payment.manualPayment.options when provider is manual_qr.
  • For WeChat or Alipay, show the matching qrCodeUrl.
  • For EVM, show both the qrCodeUrl and walletAddress.
  • Tell the user generation starts only after the operator confirms receipt.

If HTTP status is 402:

  • Explain that x402 payment is required.
  • Do not continue to result polling until payment has been verified by the official API.

5. Submit Manual Payment Confirmation

After the user says they have paid with one of the displayed manual channels:

node scripts/confirm-manual-payment.mjs \
  --task-id  \
  --task-token  \
  --channel alipay

Use --channel wechat or --channel evm when appropriate.

This only marks the order as awaiting operator review. It does not auto-confirm receipt.

6. Check Task Status

node scripts/get-report-task.mjs \
  --task-id  \
  --task-token 

7. Retrieve Result

node scripts/get-report-result.mjs \
  --task-id  \
  --task-token 

This returns HTTP 202 with result:null until ready.

To wait until terminal state:

node scripts/wait-report-result.mjs \
  --task-id  \
  --task-token  \
  --poll-ms 5000 \
  --max-wait-ms 3600000

Website Checkout Fallback

If the Agent API is unavailable but the website remains healthy, the older website checkout scripts are still available:

  • create-intake.mjs
  • create-order.mjs
  • get-order.mjs

Use them only as a fallback. They hand the user to the official website flow and do not return the full report directly in chat.

Communication Rules

  • Speak Chinese unless the user asks otherwise.
  • Use 标准版 for lite and 典藏版 for pro.
  • Be explicit about the current state: awaiting payment, queued, processing, ready, failed, or canceled.
  • Never claim Hermes/OKX/x402 installation, listing, payment, or report readiness unless confirmed by real command/API output.
  • Treat the official Agent API response as the source of truth.

相关技能

A personal AI companion that gets to know ONE person over time and supports them through four lenses — 命理/destiny charts (八字 BaZi 四柱/命盘), daily fortune & journaling, career fit, and relationship reflection — grounded in a private on-device profile + journal.

全方位生活满意度与平衡优化助手。覆盖人生轮盘8维度评估(身体健康/心理情绪/人际关系/工作事业/财务状况/学习成长/休闲娱乐/生活环境)、倦怠预警检查、季度深度反思、习惯调整建议、历史趋势追踪。生成交互式HTML可视化报告,含雷达图、优劣势分析、P0-P2优先级行动计划。用于生活审计、季度回顾、预防倦怠、常规重置...

1 次安装

人生之路全维度智慧助手。基于孔子「论语·为政」六阶段人生论(志于学/而立/不惑/知天命/耳顺/从心所欲),覆盖六阶段深度解读、人生阶段定位评估、个性化行动指南、人生时间线可视化、经典金句、古今中外人生阶段理论对照(埃里克森/荣格/马斯洛/黄帝内经)、人生反思7大模块。输入年龄或人生困惑,自动匹配阶段智慧给出深度分...

萃书——书籍精华萃取与信息图生成。输入书名,自动获取书籍素材,生成:100字简介、3个核心观点、5条行动建议,并生成一张高质量信息图。适用于:(1) 用户说"萃书 + 书名" (2) 用户说"帮我萃取/总结/提炼某本书的精华" (3) 用户要求生成书籍信息图 (4) 用户想快速了解一本书的核心内容并落地为行动。

1 次安装

拆书家技能。输入一本书(PDF/EPUB/TXT/Markdown/书名/链接),输出结构化拆书笔记(总概括+核心提炼+逐章拆解+行动清单),并可一键生成美观的可视化 HTML 拆书报告。适合读书笔记、知识提炼、快速掌握一本书、做课程分享、写书评等场景。触发词:拆书、读书笔记、这本书讲了什么、帮我读一本书、书摘提炼、book breakdown、读书报告。

2 次安装1 星标

This skill should be used when the user provides an electronic book (PDF, EPUB, TXT, MD) and wants to automatically extract knowledge, analyze structure, and...

3 次安装