knowledge-account-builder

IMA knowledge-account content creation and bulk upload workflow: collects enterprise/personal information, uses AI to generate a suite of business documents (business plan, product list, price list, publicity plan, founder bio), and follows a 5-step SOP to batch upload to the knowledge base—completing knowledge-account content setup in one flow. Trigger phrases include “create knowledge account content,” “supplement knowledge account materials,” “upload documents to knowledge account,” “batch upload to knowledge base,” “write business plan for knowledge account,” “enterprise knowledge base construction,” and “knowledge account content generation.” Not for pure knowledge-file upload, pure document writing, or note management.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "knowledge-account-builder" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-345f6da8105ba53b4c6374578f9315b7007df7262ec0c75179bf4ed30fd01c92. Verify the upstream source and version against https://skillhub.cn/skills/user_f12a44b7/knowledge-account-builder before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

IMA knowledge-account content creation and bulk upload workflow: collects enterprise/personal information, uses AI to generate a suite of business documents (business plan, product list, price list, publicity plan, founder bio), and follows a 5-step SOP to batch upload to the knowledge base—completing knowledge-account content setup in one flow. Trigger phrases include “create knowledge account content,” “supplement knowledge account materials,” “upload documents to knowledge account,” “batch upload to knowledge base,” “write business plan for knowledge account,” “enterprise knowledge base construction,” and “knowledge account content generation.” Not for pure knowledge-file upload, pure document writing, or note management.

0 Downloads

Introduction source: third_party · user_f12a44b7 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: knowledge-account-builder
description: IMA 知识号内容创建与批量上传工作流。从企业/个人信息采集 → AI生成商业文档套件(商业计划书、产品清单、价格清单、宣发方案、创始人简介)→ 5步SOP批量上传到知识库,一站式完成知识号内容建设。当用户说"创建知识号内容"、"补充知识号资料"、"知识号上传文档"、"批量上传到知识库"、"给知识号写商业计划书"、"企业知识库建设"、"知识号内容生成"时触发。不适用于:纯知识库文件上传(用 ima-knowledge skill)、纯文档写作(用通用写作)、笔记管理。

IMA 知识号内容创建与批量上传

将"理解企业定位 → 生成全套商业文档 → 批量上传到知识库"串联为一步到位的工作流。

适用场景

  • 新建知识号后需要快速填充内容
  • 为企业/个人知识号补充商业文档
  • 根据政策风向(如 OPC、AI 服务商)定制内容方向
  • 创始人/核心人物资料撰写与迭代扩充

工作流总览

Phase 1: 信息采集 → Phase 2: 内容生成 → Phase 3: 批量上传 → Phase 4: 迭代优化

Phase 1:信息采集(10分钟)

1.1 采集清单

向用户确认以下信息(已有则直接用,缺失则问):

维度 必填 示例
企业/品牌名称 ✅ 鸿爪派智能科技有限公司
主营方向 ✅ 腾讯WorkBuddy服务商
政策/市场风向 ○ 2026 OPC政策、AI服务商生态
创始人/核心人物 ○ 姓名、背景、技术栈、行业经验
目标知识库 ID ✅ 通过 search_knowledge_base 查找
文档深度 ○ 标准版(8000-12000字/篇) / 旗舰版(20000+字/篇)

1.2 定位知识库

# 按名称搜索知识库获取 kb_id
node ima_api.cjs 'openapi/wiki/v1/search_knowledge_base' '{
  "query": "知识号名称",
  "cursor": "",
  "limit": 5
}'

如果用户说"知识号"但搜索不到,可能是知识号类型的知识库——用空 query 列出全部后人工匹配。


Phase 2:内容生成

2.1 标准文档套件(5篇)

按以下顺序生成,每篇独立保存为 .md 文件到 /sandbox/workspace/outputs/{项目名}/:

序号 文件名 内容要点 参考模板
00 00-创始人简介-{姓名}.md 个人背景、能力矩阵、创业历程、独创方法论、行业洞察 assets/templates/founder-bio.md
01 01-商业计划书.md 市场分析、产品矩阵、商业模式、财务预测、风险分析 assets/templates/business-plan.md
02 02-产品清单.md 产品矩阵、核心功能、技术架构、交付方式 assets/templates/product-list.md
03 03-价格清单.md 定价策略、套餐设计、优惠政策、报价说明 assets/templates/price-list.md
04 04-产品宣发策划清单.md 传播策略、渠道矩阵、内容日历、转化路径 assets/templates/marketing-plan.md

2.2 内容生成提示词框架

每篇文档使用以下结构化提示词(根据文档类型调整):

你是{行业}资深商业文案专家。请为「{企业名称}」撰写一份{文档类型}。

背景信息:
- 企业定位:{主营方向}
- 政策风向:{政策/市场背景}
- 创始人背景:{已知信息}
- 技术栈/优势:{核心竞争力}

要求:
1. 篇幅:{字数范围}
2. 风格:专业但不空洞,数据驱动,避免AI味
3. 结构:{文档对应的标准章节}
4. 密级标注:内部
5. 版本号:V1.0
6. 日期:{当前年月}

2.3 内容质量检查清单 — 数据真实性的平衡

⚠️ 关键原则:文档中的金额/数字/数据,应优先使用用户提供的具体值。如用户未提供具体数据,可使用行业基准/市场参考区间,必须在括号内标注「行业参考估算」或「示例数值」,禁止凭空编造。例如:「基础套餐定价 ¥9,800/年(行业参考估算)」或「团队规模 15-30人(示例数值,请根据实际情况调整)」。

每篇文档生成后逐项检查:

  • [ ] 标题含企业全称 + 文档类型
  • [ ] 首行有版本号、日期、密级
  • [ ] 无 [TODO]、[placeholder]、XXX 等占位符
  • [ ] 金额/数字优先使用用户提供值;如用行业参考值,标注「行业参考估算」
  • [ ] 产品名/服务名前后一致
  • [ ] 交叉引用正确(如价格清单引用产品清单的SKU)

2.4 创始人简介专项(迭代扩充模式)

创始人简介是最常需要迭代扩充的文档。使用渐进式深度策略:

轮次 目标字数 新增维度
V1 初版 3000-5000字 简介、核心能力、理念、联系方式
V2 扩充 15000-25000字 + 创业历程、独创方法论、战略规划、竞争壁垒、行业洞察
V3 深度 30000+字 + 案例细节、客户证言、技术深度解析、未来路线图

扩充提示词模板:

基于已知的用户信息(用户档案、历史对话、公开资料),将创始人文档从V{N}扩充到V{N+1}。
保留原有结构和已有内容,在以下维度补充详细信息:
{新增维度列表}
要求:
- 基于已知事实,不编造;具体数字优先用已知事实,无确切数据时标注「行业参考估算」
- 每个方法论/模型需要有名称、定义、应用场景、预期效果

Phase 3:批量上传到知识库

3.1 前置准备

确认 ima-knowledge skill(final-skill)已安装,路径在 /sandbox/workspace/ima-skills/final-skill/。

统一调用入口:

cd /sandbox/workspace/ima-skills/final-skill
node ima_api.cjs '{api_path}' '{json_params}'

3.2 批量上传流程(每篇文档5步)

对 outputs/{项目名}/ 下的每个 .md 文件执行:

FILE="/sandbox/workspace/outputs/{项目名}/{文件名}.md"
KB_ID="{知识库ID}"

# Step 1: preflight-check(类型+大小检查)
PREFLIGHT=$(node knowledge-base/scripts/preflight-check.cjs --file "$FILE")
# 解析 media_type, file_size, content_type, file_name, file_ext

# Step 2: check_repeated_names(重名检查)
node ima_api.cjs 'openapi/wiki/v1/check_repeated_names' "{
  \"params\": [{\"name\": \"$FILE_NAME\", \"media_type\": $MEDIA_TYPE}],
  \"knowledge_base_id\": \"$KB_ID\"
}"
# is_repeated=true → 文件名追加 _YYYYMMDDHHmmss 时间戳

# Step 3: create_media(获取上传凭证)
CREATE_RESP=$(node ima_api.cjs 'openapi/wiki/v1/create_media' "{...}")
# 解析 media_id, cos_credential.{secret_id, secret_key, token, bucket, region, cos_key}

# Step 4: cos-upload(实际上传文件到COS)
node knowledge-base/scripts/cos-upload.cjs \
  --file "$FILE" \
  --secret-id "$SECRET_ID" \
  --secret-key "$SECRET_KEY" \
  --token "$TOKEN" \
  --bucket "$BUCKET" \
  --region "$REGION" \
  --cos-key "$COS_KEY" \
  --content-type "$CONTENT_TYPE" \
  --start-time "$START_TIME" \
  --expired-time "$EXPIRED_TIME"
# 非零退出 → 立即停止,排查错误

# Step 5: add_knowledge(入库)
node ima_api.cjs 'openapi/wiki/v1/add_knowledge' "{
  \"media_type\": $MEDIA_TYPE,
  \"media_id\": \"$MEDIA_ID\",
  \"title\": \"$FILE_NAME\",
  \"knowledge_base_id\": \"$KB_ID\",
  \"file_info\": {
    \"cos_key\": \"$COS_KEY\",
    \"file_size\": $FILE_SIZE,
    \"file_name\": \"$FILE_NAME\"
  }
}"

3.3 批量优化策略

先批量重名检查:一次 check_repeated_names 可检查最多2000个文件名,避免逐个检查。

# 批量检查所有文件
node ima_api.cjs 'openapi/wiki/v1/check_repeated_names' '{
  "params": [
    {"name": "00-创始人简介-何云.md", "media_type": 7},
    {"name": "01-商业计划书.md", "media_type": 7},
    {"name": "02-产品清单.md", "media_type": 7}
  ],
  "knowledge_base_id": "<kb_id>"
}'

顺序执行 Step 3-5:重名检查通过后,对每个文件依次执行 create_media → cos-upload → add_knowledge。

3.4 常见错误处理

错误 原因 解决方案
COS 403 InvalidAccessKeyId COS临时凭证过期 重新调用 create_media 获取新凭证
is_repeated: true 知识库已有同名文件 文件名追加 _YYYYMMDDHHmmss 时间戳
preflight pass=false 不支持的文件类型 检查文件扩展名,参考 references/api.md 支持类型表
add_knowledge 返回错误 COS上传未完成或cos_key不匹配 确认 Step 4 返回 HTTP 200 后再执行 Step 5

3.5 Markdown 文件 media_type

Markdown 文件统一使用 media_type: 7,content_type: text/markdown。


Phase 4:迭代优化

4.1 用户反馈处理

用户反馈 执行动作
"还需要更详细" 进入下一轮扩充(V1→V2→V3),重新上传(带时间戳)
"修改某篇" 读取原文 → 修改 → 重新上传(带时间戳)
"再加一篇XX" 按 Phase 2 流程新增
"旧版删掉" 知识库不支持删除,告知用户在客户端手动操作

4.2 版本管理

  • 每次修改产生新版本,通过文件名时间戳区分
  • 在文档头部标注版本号(V1.0 → V2.0 → V3.0)
  • 旧版本保留在知识库中,用户可在客户端删除

依赖

  • ima-knowledge skill(final-skill):提供知识库 API 调用能力
    • 安装路径:/sandbox/workspace/ima-skills/final-skill/
    • 脚本:preflight-check.cjs、cos-upload.cjs、ima_api.cjs
    • 凭证:~/.config/ima/client_id 和 ~/.config/ima/api_key

工作流示例

示例 1:新建知识号完整内容建设

用户:"帮我给知识号'XX公司'补充商业资料"

  1. 搜索知识库获取 kb_id
  2. 采集企业信息(主营方向、政策背景、创始人信息)
  3. 生成5篇标准文档(Phase 2)
  4. 批量重名检查
  5. 逐篇上传(Phase 3 Step 3-5 × 5)
  6. 报告上传结果

示例 2:创始人文档迭代扩充

用户:"创始人文档还需要更详细"

  1. 读取当前版本,确认当前字数和章节
  2. 确定目标版本(V1→V2 或 V2→V3)
  3. 基于已知信息扩充(Phase 2.4)
  4. 上传新版本(文件名带时间戳)
  5. 报告:知识库中现有 N 个版本,最新版 V{x}

参考文档

  • references/upload-sop.md — 知识库上传5步SOP详解(含每步参数和错误处理)
  • references/content-framework.md — 5篇文档的内容框架和章节结构
  • assets/templates/ — 各文档类型的 Markdown 模板

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 提供 IMA 知识号内容创建与批量上传的完整工作流,一站式解决企业/个人知识库内容建设需求
  • 覆盖信息采集、AI生成商业文档套件、批量上传、迭代优化全流程,显著提升高频场景效率
Trigger Precision95/100

Highlights

  • 触发词精准覆盖核心使用场景,边界清晰,明确排除不适用场景
Structure and Standards90/100

Highlights

  • Phase 划分清晰,步骤详细,包含端到端示例和完整 frontmatter
Execution Reliability92/100

Highlights

  • 工具来源明确,参数正确,覆盖主要异常场景,批量上传流程有详细错误处理机制
Evidence Verifiability (mean of the first four)92/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 246

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.