dsh-plugin-chuhai 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +24 -2
- package/books/ai-global-media/BOOK.md +119 -0
- package/books/ai-global-media/poster.jpg +0 -0
- package/cordis.patch.yml +8 -0
- package/lib/index.js +245 -0
- package/package.json +51 -4
- package/skills/zimeiti-chuhai.md +28 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# 更新记录
|
|
2
|
+
|
|
3
|
+
## 0.2.0(2026-11-12)
|
|
4
|
+
|
|
5
|
+
- 能单独用了:前半段的书「AI全球自媒体」0.2.3 随插件带着(含体验卡海报),不用先装工具包;装了工具包多一份记忆交接。
|
|
6
|
+
- 两本书都按段取:新工具 `chuhai_main_book`,`chuhai_book` 加 `part` 参数;先 `toc` 看目录,再取 head、各模块、tail。原因:DSH 把超过 8192 字符的工具结果截成头尾,两本书都比这长。后半段十分钟内只取一次网络。
|
|
7
|
+
- 技能正文照着改:第一段读插件里的书,工作区缺的文件夹自己建。
|
|
8
|
+
|
|
9
|
+
## 0.1.0(2026-11-12)
|
|
10
|
+
|
|
11
|
+
- 首发:技能 `zimeiti-chuhai` 加工具 `chuhai_book`(带密码去 dsh.chuhai.express 取后半段)。
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 adsorgcn
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-plugin-chuhai · 自媒体出海
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
iLang DSH 工具包的第一个官方插件,也能单独用。装上以后,对你的 DeepSeek Harness 说一句:
|
|
4
|
+
|
|
5
|
+
> 自媒体出海
|
|
6
|
+
|
|
7
|
+
它就从零带你做:写作人格、内容源、知识库、出文章、公众号走通,再到买海外服务器、配好设备、注册 X、开 Premium。你只做付款、扫码、登录、授权这几件事,其余它做。
|
|
8
|
+
|
|
9
|
+
目前进度:到 X 开 Premium。再往后的环在更新中,插件更新后再说一句就接着走。
|
|
10
|
+
|
|
11
|
+
## 怎么装
|
|
12
|
+
|
|
13
|
+
最短的路:装好 DeepSeek Harness(0.2.1-rc.5 及以上的 0.2.x),侧栏「插件」→「添加插件」填 `dsh-plugin-chuhai`,装好说一句「自媒体出海」。命令行:`dsh plugin --profile desktop add dsh-plugin-chuhai`。
|
|
14
|
+
|
|
15
|
+
照 https://dsh.ilang.guide/ 上的三步装 iLang DSH 工具包,会顺手把这个插件装上,还多一份记忆交接(窗口关了进度还在)。
|
|
16
|
+
|
|
17
|
+
## 它做了什么
|
|
18
|
+
|
|
19
|
+
- 注册一个技能 `zimeiti-chuhai`:说「自媒体出海」时模型自己加载。
|
|
20
|
+
- 注册两个工具:`chuhai_main_book` 取前半段的书(随插件带着,不走网络);`chuhai_book` 取后半段(放在 dsh.chuhai.express,带访问密码,插件替你的 DSH 带上密码)。书比一次工具结果能装的长,所以一次取一段:先看目录,再按段取。
|
|
21
|
+
- 不收集任何东西,不带你的钥匙,不改你的记忆。不调用取书工具就没有任何网络请求。
|
|
22
|
+
|
|
23
|
+
## 许可
|
|
24
|
+
|
|
25
|
+
MIT。前半段那本书「AI全球自媒体」同样 MIT,和 iLang DSH 工具包里的是同一份。
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
::ILANG::v5.0::ENGINEERING_BOOK
|
|
2
|
+
[TYPE:engineering_book]
|
|
3
|
+
[ID:AI-GLOBAL-MEDIA]
|
|
4
|
+
[VERSION:0.2.3]
|
|
5
|
+
[DATE:2026-11-10]
|
|
6
|
+
[LANG:zh]
|
|
7
|
+
|
|
8
|
+
::STATE{@USER, role:decision_maker, is:只会用豆包问问题的新手, does:说一句话 点头 扫码 粘贴 自己付钱}
|
|
9
|
+
::STATE{@AGENT, role:you_the_user_s_own_AI_running_in_DeepSeek_Harness_with_the_iLang_DSH_kit, does:everything_the_user_does_not_have_to_do, never:替用户扫码 登录 授权 付款}
|
|
10
|
+
::STATE{@KIT, persona_slot:soul/agent.md 第一部分 整段原样保存 换新版整块替换 并在文件头记 soul_id soul_version soul_sha256, skills_dir:.dsh/skills, poster:.dsh/books/ai-global-media/poster.jpg, profile:soul/soul.md 装工具包时问出来的用户档案, trail:handoff 与 log 里从第一天起记下的经过}
|
|
11
|
+
::STATE{@EXPERT, name:公众号爆文专家, repo:https://github.com/adsorgcn/WorkBuddy, mirror:https://gitee.com/monetize/WorkBuddy, text:experts/ilang-wechat-awesome/agents/ilang-wechat-awesome.md 开头两行分隔线之后的全部, skills:experts/ilang-wechat-awesome/skills 下的文件夹 至少 wechat-article wechat-draft-push wechat-topic-hunter}
|
|
12
|
+
::STATE{@SCYS, what:生财有术的官方 MCP, auth:OAuth 网页授权 用户自己用生财账号登录 配置里没有密钥, mode:只读, trial:体验卡用户也能接 开放搜索和阅读 每天有使用额度 卡只有三天, limit:同一个生财账号可以同时接 7 个 Agent DeepSeek Harness 与豆包各占一个 互不影响, manage:https://scys.com/mcp 生财的接入管理页 用户可以在那里查看和撤销自己的连接, tools:工具名都以 mcp__scys-mcp__ 开头 搜帖用 searchTopic 看全文用 topicDetail 问 AI 亦仁用 startAiYiRenChat 再用 queryAiYiRenChat 取回答}
|
|
13
|
+
::STATE{@PLUGIN, what:生财有术官方给 DeepSeek Harness 出的插件 许可 MIT, name:dsh-plugin-scys-mcp, source:npm, install:用 plugin_manager 工具安装这个组合包并启用, by_hand:左侧菜单 插件 右上角 添加插件 填 dsh-plugin-scys-mcp 点 安装 再点 立即启用, after:启用后它自动打开浏览器授权页 授权成功后几秒内工具出现, reauth:调用 mcp__scys-mcp__auth 重新打开授权页}
|
|
14
|
+
::STATE{@DOUBAO, what:豆包电脑版 搬飞书稿用 接法照生财官方教程, path:左侧 技能 连接器 伙伴 再点右上角 新建 选 新建自定义连接器, name:scys-mcp, transport:HTTP, url:https://mcp.scys.com/shengcai-web/mcp, then:点保存 弹出 连接器需要授权 点 去授权 在浏览器里同意 连接器就自动加好, use:对话时选 本地电脑}
|
|
15
|
+
::STATE{@STORE, what:用户自己的货仓 先落在本机 再进他选的那个库, dir:library, posts:library/posts 每条货一份 Markdown 文件名就用帖子的中文标题 去掉不能做文件名的符号 不用拼音或英文代号 文件头记标题 来源链接 类目 取回日期, links:library/links.md 外部文档的链接清单 飞书 石墨这一类 每行记标题 链接 类目 再标 已有正文 或 待搬, cards:library/cards 放 ip.md 与 lens.md, articles:library/articles 成稿与母稿, retro:library/retro 用户自己的复盘, pending:library/pending.md 还没进库的货, private:这个文件夹不进版本库 不推送到任何地方}
|
|
16
|
+
::STATE{@LIB_IMA, what:腾讯 ima 知识库, cost:免费 建好后设成私有, official:https://ima.qq.com/agent-interface, how:官方的 ima 技能包 加 API Key 把技能包装进 skills_dir 照包里自带的说明配置, skill_zip:https://app-dl.ima.qq.com/skills/ima-skills-1.1.10.zip 这是那一页上写的地址 页面换了新版就用新版, note:那一页是脚本渲染的 直接抓多半只抓到标题 抓不到就用这里的 skill_zip 再不行请用户把页面上那段提示词复制给你, before:用户先在 ima 里建好一个知识库 设成私有 接口不能替他建库, user_gives:在那一页登录后拿到的两样 Client ID 与 API Key, keys_go:放在技能包自己规定的位置 照它自带的说明, then:用技能包列出他能往里加内容的知识库 把库名说给他听 让他点一个 只有一个也要他说一声行 不往他没点头的库里放, put:posts 里的文件按上传文件的做法一份一份加进库, verify:送完用列表接口数一遍 份数对得上就算进了库;再按标题里的一个词搜一下 这个库的搜索是按标题搜的}
|
|
17
|
+
::STATE{@LIB_LEXIANG, what:腾讯乐享知识库, cost:要交会员费, official:https://lexiangla.com/mcp, how:官方 MCP 用静态令牌 不走 OAuth 传输是 streamable-http 地址是 mcp.lexiang-app.com 下的 mcp 带 preset 等于 meta 与 company_from 两个参数 请求头带 Authorization Bearer 令牌, user_gives:那一页显示的企业标识 与 访问令牌}
|
|
18
|
+
::STATE{@LIB_WEKNORA, what:腾讯开源的 WeKnora 知识库, cost:要自己有服务器, official:https://github.com/Tencent/WeKnora, how:它内置 MCP 服务 每个端点有自己的地址和令牌 传输是 Streamable HTTP, user_gives:自己服务器上那个端点的地址和令牌}
|
|
19
|
+
::STATE{@HAUL_ORDER, first:公众号 起号 写稿 流量主, second:个人 IP 与辨识度, third:出海与各平台, fourth:知识付费与卖课, from:精华帖 航海手册 项目库案例 成体系的先搬 零散的后搬}
|
|
20
|
+
::STATE{@SCHEDULE, what:DeepSeek Harness 自带的提醒, tools:schedule_create schedule_list schedule_view schedule_edit, use:每天一条提醒 把一句指令投递进新对话}
|
|
21
|
+
::STATE{@LENS, what:写作视角 默认取自 AI 亦仁, ask:如果我想具备你的分析与判断能力,以及拆解项目能力,我应该怎么做?, card:拆五层 账号 内容 流量 变现 数据;必答一问 如果我来复刻我会怎么做;项目默认是通的 数据默认是假的 所以数字只写查得到出处的和自己亲手测到的;只拆正在赚钱的 离现在近的 当事人自己讲细节的案例}
|
|
22
|
+
::STATE{@WECHAT, register:https://mp.weixin.qq.com 用户自己注册个人号, limit:一张身份证只能注册 1 个个人类型的公众号, publish:个人号由你推进草稿箱 用户自己在后台点发布, ad_owner:粉丝过 100 且实名认证之后 在后台 收入变现 流量主 申请开通}
|
|
23
|
+
::STATE{@SCOPE, covers:装写作专家定成人格 接上内容源 建知识库 出文章 公众号走通, later:出海 一稿多发 变现 以后逐版加}
|
|
24
|
+
|
|
25
|
+
::OBJECTIVE{id:first_article_published|owner:user|trust:trusted|version:2|status:active}
|
|
26
|
+
target: 用户说一句 AI全球自媒体 之后 人格装好 内容源接上 货仓里有货 写出带用户自己辨识度的成稿 推进公众号草稿箱 用户点发布 回查数据 复盘进库
|
|
27
|
+
ACCEPT: RUBRIC 每项通过
|
|
28
|
+
NON_GOALS: 出海及以后各步;生财的任何写操作;替用户注册 付款 扫码 授权或点发布
|
|
29
|
+
DONE_WHEN: 第一篇发出去了 回查到了数据 复盘进了库 你把做到哪一环记进交接单
|
|
30
|
+
|
|
31
|
+
::BOUNDARY{never:call_any_scys_write_tool_like_favorite_coin_feedback_or_publish|scope:permanent}
|
|
32
|
+
::BOUNDARY{never:open_scys_pages_with_a_browser_tool_or_a_crawler_yourself;use_the_mcp_tools_only|scope:permanent}
|
|
33
|
+
::BOUNDARY{never:print_a_key_a_token_or_a_password_in_chat_or_write_one_into_memory_handoff_library_or_this_book;they_live_only_in_the_kit_ledger_the_DeepSeek_Harness_credential_store_or_the_place_an_official_skill_itself_prescribes|scope:permanent}
|
|
34
|
+
::BOUNDARY{never:change_one_character_of_the_expert_text_or_of_the_expert_skill_files|scope:permanent}
|
|
35
|
+
::BOUNDARY{never:scan_a_code_log_in_authorize_pay_or_press_publish_for_the_user|scope:permanent}
|
|
36
|
+
::BOUNDARY{never:commit_or_push_the_library_folder_anywhere|scope:permanent}
|
|
37
|
+
|
|
38
|
+
::RULE{one_question then 一次只问用户一件事 等他答了再往下|source:kit_onboarding}
|
|
39
|
+
::RULE{resume then 每做完一环在交接单里记一行;下次用户再说 AI全球自媒体 从没做完的那一环接着做|source:kit_handoff}
|
|
40
|
+
::RULE{least_hands then 用户能不动手的都由你做 不让他复制配置 不让他找地址 不让他填表;只有扫码 登录 授权 付款 点发布必须他本人|source:owner_2026-11-10}
|
|
41
|
+
::RULE{official_first then 接别家的东西一律照那一家官方页面写的做 一个字段都不自己编;官方写明的直接照做 不用再试|source:owner_2026-11-10}
|
|
42
|
+
::RULE{never_wait then 某一样东西用户暂时给不出来 不停下来等;能往下做的先往下做 把欠着的记进 pending 与交接单|source:owner_2026-11-10}
|
|
43
|
+
::RULE{own_voice then 每一篇都得有只有这个用户写得出来的一段 他自己做这件事的经过 数据 踩的坑;没有就不算成稿|source:owner_2026-11-10}
|
|
44
|
+
::RULE{expert_as_is then 选题 写稿 配图 推草稿 回查 节奏 都照人格里那位专家和它的技能原样做;这本书只在它外面加货仓 身份 视角与复盘|source:owner_2026-11-10}
|
|
45
|
+
::RULE{utf8_always then 读文件 写文件一律按 UTF-8;在 Windows 上读出来的中文是乱码 就是读错了编码 换 UTF-8 重读 绝不把乱码写回文件|source:test_run_2026-11-10}
|
|
46
|
+
::RULE{clean_workspace then 下载的压缩包 解压出来的临时文件 都放系统的临时目录 用完就删;工作区里只留工具包 人格 技能与 library|source:test_run_2026-11-10}
|
|
47
|
+
|
|
48
|
+
::MODULE{PERSONA|title:第一环 装写作专家定成人格}
|
|
49
|
+
[STEP] 1 persona_slot 里已经有公众号爆文专家的正文:告诉用户已装好 跳到 SOURCE
|
|
50
|
+
[STEP] 2 从 repo 取最新发布的专家包 取到系统的临时目录;取不到就从 mirror 取同一份;两处都取不到:用一句话告诉用户 然后停
|
|
51
|
+
[STEP] 3 把 skills 的文件夹原样拷进 skills_dir
|
|
52
|
+
[STEP] 4 把 text 整段放进 persona_slot 不删不改 只换 Part one 这一节里面的内容 这一节的标题行和文件里别的部分一个字不动;在文件头记下 soul_id 与 soul_version 与 soul_sha256。soul_sha256 记的是放进去的那段正文的 sha256 换行统一成 LF 去掉首尾空白 按 UTF-8 算
|
|
53
|
+
[STEP] 5 删掉临时目录里的专家包;报三行:技能装到了哪 哪几个在技能列表里 人格放在哪
|
|
54
|
+
|
|
55
|
+
::MODULE{SOURCE|title:第二环 内容源}
|
|
56
|
+
[STEP] 1 先把 poster 那张海报打开给用户看 说一句:用微信扫码领三天体验卡 再点开通链接;你本身是生财会员就说 跳过
|
|
57
|
+
[STEP] 2 用户说领好了或跳过:接下来的配置全由你做 不让用户复制或填写任何东西。照 @PLUGIN 的 install 把 name 这个插件装上并启用;这一步要用户点一次批准 就告诉他点哪一项
|
|
58
|
+
[STEP] 3 插件启用后会自动打开浏览器授权页;没打开就照 @PLUGIN 的 reauth 再开一次 把授权链接给用户 请他用电脑上的浏览器打开 微信里打不开
|
|
59
|
+
[STEP] 4 用户自己用生财账号登录 手机扫码 点同意;你不代扫码不代登录
|
|
60
|
+
[STEP] 5 授权后只读搜一次最近加精的帖 列出标题;列得出就告诉用户内容源接好了
|
|
61
|
+
[STEP] 6 说一句:搬飞书稿要用豆包 请在本机装好豆包电脑版。装好后带他把生财也接进豆包:照 @DOUBAO 的 path 走到填写框 你把 name transport url 三项打出来让他照着填 再照 then 授权;最后提醒 use。用户说以后再装:记进 pending 接着往下走
|
|
62
|
+
|
|
63
|
+
::MODULE{LIBRARY|title:第三环 知识库 三天内把货搬回自己家}
|
|
64
|
+
[STEP] 1 弹一张卡片让用户三选一 不设默认 把各自的代价写在选项上:@LIB_IMA 的 cost;@LIB_LEXIANG 的 cost;@LIB_WEKNORA 的 cost
|
|
65
|
+
[STEP] 2 建好 @STORE 的各个文件夹;在工作区的 .gitignore 里加一行 library/ ;已经有了就跳过
|
|
66
|
+
[STEP] 3 接上用户选的那个库:读它 official 那一页 照 how 接;那个库写了 before 的 先请用户把 before 做了;user_gives 里的东西一次只向用户要一样 一开始就说清一共要几样 拿到就存好 不在对话里复述。用户暂时给不出来:照 never_wait 先往下走 货都先落本机
|
|
67
|
+
[STEP] 4 搬第一轮:照 @HAUL_ORDER 的先后 用生财 MCP 只读地找。正文就写在帖子里的:存成 posts 里的一份文件。正文在外部文档里的:生财 MCP 把那篇正文一起带回来了 就照样存成 posts 的一份文件 并在 links 里记一行 标 已有正文;没带回来的 不去读 在 links 里记一行 标 待搬。碰到限流就照返回的秒数等;当天额度用完就停 在交接单里记下搬到哪一类哪一条
|
|
68
|
+
[STEP] 5 库已经接上:把本机新增的货送进库 送一条在 pending 里划掉一条 送完照那个库的 verify 核一遍。库还没接上:货留在本机 都记在 pending 里
|
|
69
|
+
[STEP] 6 照 @SCHEDULE 建一条每天的提醒:指令是 照 AI全球自媒体 的第三环再搬一轮。告诉用户体验卡到期前它每天自己搬 不用管
|
|
70
|
+
[STEP] 7 links 里有标着 待搬 的链接:告诉用户一句话怎么用 把这些链接丢给豆包 说 把这些文档读出来存进我的知识库。标着 已有正文 的不用再搬。这些链接不随体验卡到期 卡过期以后也能搬 所以这件事不催
|
|
71
|
+
[STEP] 8 过关:货仓里找得到第一篇要用的素材。告诉用户货仓有货了 一边搬一边写 接着走 ARTICLE
|
|
72
|
+
|
|
73
|
+
::MODULE{ARTICLE|title:第四环 出文章 专家原样用 外面加身份 视角与复盘}
|
|
74
|
+
[STEP] 1 立身份卡 只做一次:照 @KIT 的 profile 起草 一句话定位 我是谁 写给谁 讲什么;固定的名字与简介;固定的栏目名。给用户看 他说行或改一句 存成 cards 里的 ip.md。新手的定位就是他自己这一路:一个只会用豆包的人 用 AI 把自媒体从零做起 每一步公开拆解 公开复盘
|
|
75
|
+
[STEP] 2 立视角卡 只做一次:用 @SCYS 的工具把 @LENS 的 ask 原样问 AI 亦仁 一两分钟后取回答 存进 posts;再照 @LENS 的 card 写成 cards 里的 lens.md。问不了:改用搜帖工具找亦仁本人讲判断与拆解的帖子 照同一个 card 写。用户另外说了想学谁:这一版先用默认的这一张 记进 pending
|
|
76
|
+
[STEP] 3 选题:照专家的两边对上原样做 再加一个条件 货仓里有一个能拆的真实案例才选 按 lens.md 最后一条挑。查公众号上有没有人写爆要花用户的钱:先报价 他点头才查 不点头就只用免费的热点清单
|
|
77
|
+
[STEP] 4 排内容清单:照专家的做法 骨架用 lens.md 五层各有什么素材 复刻那一问怎么答。素材只从货仓和库里取;没有就换题 不硬写
|
|
78
|
+
[STEP] 5 写稿:照专家的流程原样走。每篇三段货 拆别人的案例;如果我来做 怎么做;我真做了哪一步 结果怎样。专家留给作者补的地方 用 @KIT 的 trail 与 retro 里的东西去填;实在没有对得上的 才问用户一句
|
|
79
|
+
[STEP] 6 辨识度检查 成稿之前过一道:有没有答 如果我来复刻我会怎么做;有没有一段只有这个用户写得出来的东西;署名 定位 口吻跟 ip.md 对不对得上;标题和正文里有没有漏出这本书自己的说法 像 货仓 身份卡 视角卡 第几环 这一类 读者看不懂的词要换成平常话;说的是 照着做 复刻 不是 照抄 搬运。有一条不过就回去补
|
|
80
|
+
[STEP] 7 配图:照专家的做法
|
|
81
|
+
[STEP] 8 成稿存进 articles 文件名带日期。告诉用户成稿好了 接着走 PUBLISH
|
|
82
|
+
|
|
83
|
+
::MODULE{PUBLISH|title:第五环 公众号走通}
|
|
84
|
+
[STEP] 1 备号 只做一次:用户没有公众号 就带他照 @WECHAT 的 register 注册一个个人号 一步一步告诉他点哪 注册由他本人做
|
|
85
|
+
[STEP] 2 接上推草稿的权限 只做一次:照专家推草稿那个技能写的前置做。向用户要后台的两串凭据 一次要一样 存进账本;你查出本机的公网 IP 打出来 告诉他贴进后台的白名单。用户暂时不给凭据:成稿留在 articles 告诉他拿到凭据再说一句 AI全球自媒体 然后停在这里
|
|
86
|
+
[STEP] 3 推草稿箱:照专家的技能把成稿和配图推进草稿箱
|
|
87
|
+
[STEP] 4 人审人发:请用户在后台或手机上读一遍 自己点发布
|
|
88
|
+
[STEP] 5 回查:请用户把发出去的文章链接丢给你 照专家的做法回查数据
|
|
89
|
+
[STEP] 6 复盘进库:把这一篇从选题到数据的经过写成一份复盘 存进 retro 并送进库。下一篇里 我真做了哪一步 那一段就从这里取
|
|
90
|
+
[STEP] 7 把发出去的这一版在 articles 里标成母稿。以后发到别的平台 都从母稿改
|
|
91
|
+
[STEP] 8 节奏:照专家的节奏持续发。不停在这里等 下一篇回到 ARTICLE 的选题
|
|
92
|
+
[STEP] 9 回查时看到粉丝过了 100:照 @WECHAT 的 ad_owner 提醒用户去申请 这是第一笔保底收入
|
|
93
|
+
|
|
94
|
+
::MODULE{REPORT|title:每做完一环告诉用户什么}
|
|
95
|
+
[LINE] 做到哪一环了 这一环做成了什么
|
|
96
|
+
[LINE] 用户接下来要亲手做的一件事 没有就说没有
|
|
97
|
+
[LINE] pending 里还欠着什么
|
|
98
|
+
|
|
99
|
+
::RUBRIC{B1: 人格位置里是公众号爆文专家的正文|check:cmd|run:"python -c \"import io,sys;s=io.open('soul/agent.md',encoding='utf-8').read();sys.exit(0 if '[PROJECT:wechat_awesome]' in s else 1)\""|expect:0}
|
|
100
|
+
::RUBRIC{B2: 三个写作技能在技能目录里|check:cmd|run:"python -c \"import os,sys;sys.exit(0 if all(os.path.isdir(os.path.join('.dsh','skills',n)) for n in ('wechat-article','wechat-draft-push','wechat-topic-hunter')) else 1)\""|expect:0}
|
|
101
|
+
::RUBRIC{B3: 生财接上之后只读搜一次列出了标题 全程没有调用写操作|check:human}
|
|
102
|
+
::RUBRIC{B4: 接进 DeepSeek Harness 这一段用户没有复制或填写任何配置 只做了点批准 扫码 登录 授权|check:human}
|
|
103
|
+
::RUBRIC{B5: 本机货仓建好了 且不进版本库|check:cmd|run:"python -c \"import io,os,sys;ok=os.path.isdir('library') and os.path.exists('.gitignore') and 'library/' in io.open('.gitignore',encoding='utf-8').read();sys.exit(0 if ok else 1)\""|expect:0}
|
|
104
|
+
::RUBRIC{B6: 货仓里有货 帖子或飞书链接至少一样|check:cmd|run:"python -c \"import os,sys;p='library/posts';n=len(os.listdir(p)) if os.path.isdir(p) else 0;l=os.path.getsize('library/links.md') if os.path.exists('library/links.md') else 0;sys.exit(0 if n or l else 1)\""|expect:0}
|
|
105
|
+
::RUBRIC{B7: 身份卡与视角卡都在|check:cmd|run:"python -c \"import os,sys;sys.exit(0 if all(os.path.exists(os.path.join('library','cards',n)) for n in ('ip.md','lens.md')) else 1)\""|expect:0}
|
|
106
|
+
::RUBRIC{B8: 成稿在 articles 里 且过了辨识度检查的三条|check:human}
|
|
107
|
+
::RUBRIC{B9: 第一篇由用户本人点了发布 回查到了数据 复盘进了 retro|check:human}
|
|
108
|
+
::RUBRIC{B10: 从第三环到第五环 用户亲手做的只有 选库 交钥匙 说行 挑标题 贴白名单 读稿 点发布 丢链接|check:human}
|
|
109
|
+
::RUBRIC{B11: 人格文件没有被写坏 里面没有读错编码留下的乱码|check:cmd|run:"python -X utf8 -c \"import io,sys;s=io.open('soul/agent.md',encoding='utf-8').read();sys.exit(0 if 'Part one \\u00b7 given soul' in s and '\\u8def given soul' not in s else 1)\""|expect:0}
|
|
110
|
+
::RUBRIC{B14: 人格正文和文件头记的 soul_sha256 对得上|check:cmd|run:"python -X utf8 -c \"import io,re,hashlib,sys;s=io.open('soul/agent.md',encoding='utf-8').read().replace('\\r\\n','\\n');m=re.search(r'^soul_sha256:\\s*[\\x22\\x27]?([0-9a-f]+)',s,re.M);a=s.find('## Part one');b=s.find('## Part two');blk=s[s.find('\\n',a)+1:b];blk=re.sub(r'^\\s*<!--.*?-->\\s*','',blk,count=1,flags=re.S).strip();sys.exit(0 if m and a>=0 and b>a and hashlib.sha256(blk.encode('utf-8')).hexdigest()==m.group(1) else 1)\""|expect:0}
|
|
111
|
+
::RUBRIC{B12: 工作区里没有留下下载的压缩包和解压出来的临时文件夹|check:human}
|
|
112
|
+
::RUBRIC{B13: 成稿的标题和正文里没有这本书自己的说法 也没有 照抄 搬运 这类字眼|check:human}
|
|
113
|
+
|
|
114
|
+
::FALLBACK{expert_package_unreachable_on_both_sources then 用一句话告诉用户网络取不到专家包 然后停|user_has_no_scys_account_and_skips_the_card then 再给他看一次海报 说没有体验卡就接不上生财|plugin_cannot_be_installed_by_you then 把报错原样给用户看 请他照 @PLUGIN 的 by_hand 点一遍 这是生财官方教程的装法 还不行就停在这一环并记进交接单|mcp_authorization_fails then 把屏幕上的报错原样给用户看 请他重新授权一次 还不行就停在这一环并记进交接单|library_cannot_be_connected then 把报错原样给用户看 货照常落本机 记进 pending 接着走下一环|scys_quota_used_up_or_card_expired then 用货仓里已有的货接着写 告诉用户想继续拿新内容可以用海报上的码开通会员|no_case_in_the_library_fits_today then 换一个题 还没有就告诉用户今天先搬货 明天再写|draft_push_fails then 把报错原样给用户看 成稿留在 articles 记进交接单 不重试超过两次}
|
|
115
|
+
|
|
116
|
+
::PRIORITY{
|
|
117
|
+
user_decision > BOUNDARY > OBJECTIVE > RUBRIC > RULE > MODULE
|
|
118
|
+
}
|
|
119
|
+
::ILANG::v5.0::ENGINEERING_BOOK
|
|
Binary file
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# 自媒体出海:注册一个 skill「zimeiti-chuhai」和一个取书工具「chuhai_book」。
|
|
2
|
+
# pass 是 dsh.chuhai.express 的访问密码,插件替用户的 DSH 前置带上;bookUrl 一般不用改。
|
|
3
|
+
- insert:
|
|
4
|
+
- id: dsh-plugin-chuhai
|
|
5
|
+
name: 'dsh-plugin-chuhai'
|
|
6
|
+
config:
|
|
7
|
+
bookUrl: https://dsh.chuhai.express/book
|
|
8
|
+
pass: 8Jupj8VhBxZFD5vFylhmq2vp
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* dsh-plugin-chuhai — 自媒体出海 for DeepSeek Harness.
|
|
3
|
+
*
|
|
4
|
+
* One skill, `zimeiti-chuhai`, loaded when the user says 自媒体出海 / AI全球自媒体.
|
|
5
|
+
* Two tools that hand the model a book one part at a time (DSH trims tool results
|
|
6
|
+
* past 8192 characters, both books are longer than that):
|
|
7
|
+
* - `chuhai_main_book`: the first half, shipped inside this package (public).
|
|
8
|
+
* - `chuhai_book`: the second half, fetched from dsh.chuhai.express with the key
|
|
9
|
+
* this plugin carries; no network traffic unless it is called.
|
|
10
|
+
* No keys of the user's, nothing collected, nothing written outside the workspace.
|
|
11
|
+
*/
|
|
12
|
+
import fs from 'node:fs';
|
|
13
|
+
import path from 'node:path';
|
|
14
|
+
import { fileURLToPath } from 'node:url';
|
|
15
|
+
|
|
16
|
+
export const name = 'chuhai';
|
|
17
|
+
export const inject = ['skills', 'tools'];
|
|
18
|
+
|
|
19
|
+
const SKILL_NAME = 'zimeiti-chuhai';
|
|
20
|
+
const DEFAULT_BOOK_URL = 'https://dsh.chuhai.express/book';
|
|
21
|
+
const MARKER = '::ILANG::v5.0::ENGINEERING_BOOK';
|
|
22
|
+
const PART_LIMIT = 8000; // stay under the 8192-character tool-result trim
|
|
23
|
+
const CACHE_MS = 10 * 60 * 1000; // the remote book is fetched once per ten minutes
|
|
24
|
+
const VERSION = readVersion();
|
|
25
|
+
|
|
26
|
+
function here() {
|
|
27
|
+
return path.dirname(fileURLToPath(import.meta.url));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function pkgRoot() {
|
|
31
|
+
return path.join(here(), '..');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function readVersion() {
|
|
35
|
+
try {
|
|
36
|
+
return JSON.parse(fs.readFileSync(path.join(pkgRoot(), 'package.json'), 'utf8')).version ?? '0.0.0';
|
|
37
|
+
} catch {
|
|
38
|
+
return '0.0.0';
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function mainBookPath() {
|
|
43
|
+
return path.join(pkgRoot(), 'books', 'ai-global-media', 'BOOK.md');
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function posterPath() {
|
|
47
|
+
return path.join(pkgRoot(), 'books', 'ai-global-media', 'poster.jpg');
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** The skill body ships as a Markdown file so it can be read and edited as text. */
|
|
51
|
+
export function skillContent() {
|
|
52
|
+
return fs.readFileSync(path.join(pkgRoot(), 'skills', SKILL_NAME + '.md'), 'utf8');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function normalize(config = {}) {
|
|
56
|
+
const bookUrl = typeof config.bookUrl === 'string' && config.bookUrl ? config.bookUrl : DEFAULT_BOOK_URL;
|
|
57
|
+
if (!/^https:\/\//.test(bookUrl)) throw new Error('chuhai: bookUrl must be https');
|
|
58
|
+
const pass = typeof config.pass === 'string' ? config.pass : '';
|
|
59
|
+
const timeoutMs = Number(config.timeoutMs ?? 30_000);
|
|
60
|
+
return { bookUrl, pass, timeoutMs: Number.isFinite(timeoutMs) && timeoutMs > 0 ? timeoutMs : 30_000 };
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* ---------- book splitting ---------- */
|
|
64
|
+
|
|
65
|
+
/** Split an iLang engineering book into head / modules / tail by its top-level blocks. */
|
|
66
|
+
export function splitBook(text) {
|
|
67
|
+
const lines = text.replace(/\r\n/g, '\n').split('\n');
|
|
68
|
+
const starts = [];
|
|
69
|
+
for (let i = 0; i < lines.length; i++) {
|
|
70
|
+
const l = lines[i];
|
|
71
|
+
if (l.startsWith('::') && !l.startsWith(MARKER)) starts.push(i);
|
|
72
|
+
}
|
|
73
|
+
const blocks = starts.map((s, k) => {
|
|
74
|
+
const end = k + 1 < starts.length ? starts[k + 1] : lines.length;
|
|
75
|
+
const header = lines[s];
|
|
76
|
+
const m = /^::([A-Z]+)\{([^|}]*)/.exec(header);
|
|
77
|
+
return { kind: m ? m[1] : 'BLOCK', id: m ? m[2].trim() : header.slice(2, 40), start: s, end, text: lines.slice(s, end).join('\n').replace(/\n+$/, '') };
|
|
78
|
+
});
|
|
79
|
+
const firstModule = blocks.findIndex((b) => b.kind === 'MODULE');
|
|
80
|
+
const lastModule = blocks.map((b) => b.kind).lastIndexOf('MODULE');
|
|
81
|
+
const preamble = lines.slice(0, blocks.length ? blocks[0].start : lines.length).join('\n').replace(/\n+$/, '');
|
|
82
|
+
const headBlocks = firstModule < 0 ? blocks : blocks.slice(0, firstModule);
|
|
83
|
+
const modules = firstModule < 0 ? [] : blocks.slice(firstModule, lastModule + 1).filter((b) => b.kind === 'MODULE');
|
|
84
|
+
const tailBlocks = firstModule < 0 ? [] : blocks.slice(lastModule + 1);
|
|
85
|
+
const head = [preamble, ...headBlocks.map((b) => b.text)].filter(Boolean).join('\n\n');
|
|
86
|
+
const tail = tailBlocks.map((b) => b.text).join('\n\n');
|
|
87
|
+
const title = (/^\[ID:([^\]]+)\]/m.exec(text) || [])[1] || '';
|
|
88
|
+
const version = (/^\[VERSION:([^\]]+)\]/m.exec(text) || [])[1] || '';
|
|
89
|
+
return { title, version, head, modules, tail, chars: text.length };
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function moduleTitle(b) {
|
|
93
|
+
const m = /\|title:([^|}]*)/.exec(b.text.split('\n')[0]);
|
|
94
|
+
return m ? m[1].trim() : '';
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function toc(book, extra = []) {
|
|
98
|
+
const out = [];
|
|
99
|
+
out.push(`书:${book.title || '?'} 版本 ${book.version || '?'} 共 ${book.chars} 字符;一次取一段,part 填下面的名字。`);
|
|
100
|
+
out.push(`- head (${book.head.length} 字符):角色、目标、边界、规矩。先读它。`);
|
|
101
|
+
for (const b of book.modules) {
|
|
102
|
+
const t = moduleTitle(b);
|
|
103
|
+
out.push(`- ${b.id} (${b.text.length} 字符)${t ? ':' + t : ''}`);
|
|
104
|
+
}
|
|
105
|
+
out.push(`- tail (${book.tail.length} 字符):验收项(RUBRIC)、兜底(FALLBACK)、优先级。每一环做完对照一次。`);
|
|
106
|
+
for (const line of extra) out.push(line);
|
|
107
|
+
out.push('顺序:head → 模块按列出的次序 → tail。');
|
|
108
|
+
return out.join('\n');
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function part(book, which) {
|
|
112
|
+
const w = String(which || 'toc').trim();
|
|
113
|
+
if (w === 'toc') return null;
|
|
114
|
+
if (w === 'head') return book.head;
|
|
115
|
+
if (w === 'tail') return book.tail;
|
|
116
|
+
const b = book.modules.find((x) => x.id === w || x.id.toLowerCase() === w.toLowerCase());
|
|
117
|
+
if (b) return b.text;
|
|
118
|
+
const ids = book.modules.map((x) => x.id).join('、');
|
|
119
|
+
throw new Error(`chuhai: 没有叫「${w}」的段。可取的是 toc、head、tail 和模块:${ids}`);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function render(text, name) {
|
|
123
|
+
if (text.length > PART_LIMIT) {
|
|
124
|
+
return text.slice(0, PART_LIMIT) + `\n\n[chuhai: ${name} 超过 ${PART_LIMIT} 字符,这里截断了;请按 toc 一段一段取]`;
|
|
125
|
+
}
|
|
126
|
+
return text;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* ---------- the shipped first half ---------- */
|
|
130
|
+
|
|
131
|
+
export function mainBookText() {
|
|
132
|
+
return fs.readFileSync(mainBookPath(), 'utf8');
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function mainBookDefinition() {
|
|
136
|
+
return {
|
|
137
|
+
name: 'chuhai_main_book',
|
|
138
|
+
description: '取「自媒体出海」前半段的工程书(AI全球自媒体:装写作专家、接内容源、建知识库、出文章、公众号走通)。书随插件带着,不走网络。先 part=toc 看目录,再按段取:head、各模块、tail。只在 zimeiti-chuhai 技能让你取的时候调用。',
|
|
139
|
+
parameters: {
|
|
140
|
+
type: 'object',
|
|
141
|
+
properties: { part: { type: 'string', description: 'toc(目录,默认)、head、tail,或模块名(如 PERSONA)' } },
|
|
142
|
+
additionalProperties: false,
|
|
143
|
+
},
|
|
144
|
+
output: {
|
|
145
|
+
schema: { type: 'object', properties: { content: { type: 'array', items: {} } }, required: ['content'], additionalProperties: false },
|
|
146
|
+
render(_args, value) { return value.content; },
|
|
147
|
+
},
|
|
148
|
+
async execute(args) {
|
|
149
|
+
const book = splitBook(mainBookText());
|
|
150
|
+
const which = args?.part;
|
|
151
|
+
const extra = [`- 海报(第二环要亮给用户的三天体验卡)在:${posterPath()}`];
|
|
152
|
+
const text = part(book, which);
|
|
153
|
+
return { content: [{ type: 'text', text: text === null ? toc(book, extra) : render(text, String(which)) }] };
|
|
154
|
+
},
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* ---------- the gated second half ---------- */
|
|
159
|
+
|
|
160
|
+
/** Fetch the book once; the caller owns retries. */
|
|
161
|
+
export async function fetchBook(options, fetchImpl = globalThis.fetch, signal) {
|
|
162
|
+
const controller = new AbortController();
|
|
163
|
+
const timer = setTimeout(() => controller.abort(), options.timeoutMs);
|
|
164
|
+
if (signal) signal.addEventListener('abort', () => controller.abort(), { once: true });
|
|
165
|
+
try {
|
|
166
|
+
let res;
|
|
167
|
+
try {
|
|
168
|
+
res = await fetchImpl(options.bookUrl, {
|
|
169
|
+
method: 'GET',
|
|
170
|
+
headers: { 'X-Pass': options.pass, 'Accept': 'text/markdown, text/plain;q=0.9, */*;q=0.1', 'User-Agent': 'dsh-plugin-chuhai/' + VERSION },
|
|
171
|
+
redirect: 'follow',
|
|
172
|
+
signal: controller.signal,
|
|
173
|
+
});
|
|
174
|
+
} catch (err) {
|
|
175
|
+
const cause = err?.cause?.code ?? err?.code ?? (err?.name === 'AbortError' ? 'TIMEOUT' : err?.message ?? String(err));
|
|
176
|
+
throw new Error('chuhai: 连不上 dsh.chuhai.express(' + cause + ')。先看这台电脑能不能打开网页,稍后再试一次;一直连不上就到 dsh.ilang.guide 看公告。');
|
|
177
|
+
}
|
|
178
|
+
if (res.status === 401) throw new Error('chuhai: 取书被拒(401)。插件带的密码和站上的不一致,请把插件更新到最新版本;更新后还不行就到 dsh.ilang.guide 看公告。');
|
|
179
|
+
if (!res.ok) throw new Error('chuhai: 取书失败,HTTP ' + res.status + '。稍后再试一次;一直失败就到 dsh.ilang.guide 看公告。');
|
|
180
|
+
const text = await res.text();
|
|
181
|
+
if (!text.includes('::ILANG::')) throw new Error('chuhai: 取回的不是工程书(没有 ::ILANG:: 标记)。稍后再试一次。');
|
|
182
|
+
return text;
|
|
183
|
+
} finally {
|
|
184
|
+
clearTimeout(timer);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export function toolDefinition(options, fetchImpl) {
|
|
189
|
+
let cached = null; // { at, text }
|
|
190
|
+
async function text(signal) {
|
|
191
|
+
if (cached && Date.now() - cached.at < CACHE_MS) return cached.text;
|
|
192
|
+
const t = await fetchBook(options, fetchImpl, signal);
|
|
193
|
+
cached = { at: Date.now(), text: t };
|
|
194
|
+
return t;
|
|
195
|
+
}
|
|
196
|
+
return {
|
|
197
|
+
name: 'chuhai_book',
|
|
198
|
+
description: '取「自媒体出海」后半段的工程书(出海:买海外服务器、装加速、客户端、注册 X、开 Premium)。书放在 dsh.chuhai.express,插件带密码取。先 part=toc 看目录,再按段取:head、各模块、tail。只在 zimeiti-chuhai 技能让你取的时候调用。',
|
|
199
|
+
parameters: {
|
|
200
|
+
type: 'object',
|
|
201
|
+
properties: { part: { type: 'string', description: 'toc(目录,默认)、head、tail,或模块名(如 M1_DEPLOY_SERVER)' } },
|
|
202
|
+
additionalProperties: false,
|
|
203
|
+
},
|
|
204
|
+
output: {
|
|
205
|
+
schema: { type: 'object', properties: { content: { type: 'array', items: {} } }, required: ['content'], additionalProperties: false },
|
|
206
|
+
render(_args, value) { return value.content; },
|
|
207
|
+
},
|
|
208
|
+
async execute(args, exec) {
|
|
209
|
+
const book = splitBook(await text(exec?.signal));
|
|
210
|
+
const which = args?.part;
|
|
211
|
+
const t = part(book, which);
|
|
212
|
+
return { content: [{ type: 'text', text: t === null ? toc(book) : render(t, String(which)) }] };
|
|
213
|
+
},
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* ---------- skill + plugin ---------- */
|
|
218
|
+
|
|
219
|
+
export function skillDefinition() {
|
|
220
|
+
return {
|
|
221
|
+
name: SKILL_NAME,
|
|
222
|
+
description: '自媒体出海:用户说「自媒体出海」或「AI全球自媒体」、想做海外自媒体、想上 X 开蓝 V 时加载。从零一环一环带,先国内公众号走通,再走到海外平台。书随插件带着,不用先装别的。',
|
|
223
|
+
whenToUse: '用户提到自媒体出海、AI全球自媒体、出海、海外平台、X、推特、蓝 V、Premium,或问「接下来怎么做」时。',
|
|
224
|
+
source: 'runtime',
|
|
225
|
+
content: skillContent(),
|
|
226
|
+
metadata: { plugin: 'dsh-plugin-chuhai', version: VERSION },
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export function apply(ctx, config = {}) {
|
|
231
|
+
const options = normalize(config);
|
|
232
|
+
ctx.effect(() => {
|
|
233
|
+
const disposers = [];
|
|
234
|
+
try {
|
|
235
|
+
disposers.push(ctx.skills.register(skillDefinition()));
|
|
236
|
+
disposers.push(ctx.tools.register(mainBookDefinition()));
|
|
237
|
+
disposers.push(ctx.tools.register(toolDefinition(options)));
|
|
238
|
+
ctx.logger?.info?.('chuhai: skill ' + SKILL_NAME + ', tools chuhai_main_book and chuhai_book registered');
|
|
239
|
+
} catch (err) {
|
|
240
|
+
for (const d of disposers) { try { d(); } catch { /* ignore */ } }
|
|
241
|
+
throw err;
|
|
242
|
+
}
|
|
243
|
+
return () => { for (const d of disposers) { try { d(); } catch { /* ignore */ } } };
|
|
244
|
+
});
|
|
245
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-chuhai",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "自媒体出海 for DeepSeek Harness — 说一句「自媒体出海」,DSH 从零带你做到海外平台:写作人格、内容源、知识库、出文章、公众号走通,再到 X 开蓝 V。前半段的书随插件带着,能单独用;iLang DSH 工具包的第一个官方插件。",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./lib/index.js",
|
|
9
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
10
|
+
"./package.json": "./package.json"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"lib/*.js",
|
|
14
|
+
"skills/*.md",
|
|
15
|
+
"books/**",
|
|
16
|
+
"cordis.patch.yml",
|
|
17
|
+
"README.md",
|
|
18
|
+
"CHANGELOG.md",
|
|
19
|
+
"LICENSE"
|
|
20
|
+
],
|
|
21
|
+
"keywords": [
|
|
22
|
+
"dsh",
|
|
23
|
+
"dsh-plugin",
|
|
24
|
+
"deepseek-harness",
|
|
25
|
+
"ilang",
|
|
26
|
+
"自媒体",
|
|
27
|
+
"出海",
|
|
28
|
+
"自媒体出海",
|
|
29
|
+
"AI全球自媒体"
|
|
30
|
+
],
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"author": "adsorgcn",
|
|
33
|
+
"homepage": "https://dsh.ilang.guide/",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/adsorgcn/dsh-plugin-chuhai.git"
|
|
37
|
+
},
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=20",
|
|
40
|
+
"dsh": ">=0.2.1-rc.5 <0.3.0"
|
|
41
|
+
},
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"dsh": {
|
|
46
|
+
"bundle": {
|
|
47
|
+
"patch": "./cordis.patch.yml"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"test": "node --test test/plugin.test.mjs"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# 自媒体出海
|
|
2
|
+
|
|
3
|
+
你在带一个人从零做海外自媒体,走到 X 开蓝 V。这条路分两段,两段各有一本工程书,都由这个插件给你,书里的规矩高于这里的话。书比工具结果的上限长,所以一次只取一段:先 `part=toc` 看目录,再按目录一段一段取。
|
|
4
|
+
|
|
5
|
+
## 第一段:AI全球自媒体(插件自带)
|
|
6
|
+
|
|
7
|
+
1. 调用工具 `chuhai_main_book`,`part=toc`。目录会列出 head、各模块、tail。
|
|
8
|
+
2. 先取 `head`:角色、目标、边界、规矩,照着立规矩。
|
|
9
|
+
3. 按目录次序一个模块一个模块取、做:装写作专家当人格 → 接内容源 → 建知识库 → 出文章 → 公众号走通 → 汇报。每一环做完取一次 `tail`,对照验收项。
|
|
10
|
+
4. 书里要的文件夹(soul、library、handoff 这几个)工作区里没有就建。装了 iLang DSH 工具包的工作区本来就有这些,还多一份记忆交接;没装也能走,不用先去装。
|
|
11
|
+
5. 中途断过的,下次用户再说「自媒体出海」,从没做完的那一环接着做。
|
|
12
|
+
6. 用户只做付款、扫码、登录、授权这几件事;能你做的都你做。
|
|
13
|
+
|
|
14
|
+
## 第二段:出海(从 dsh.chuhai.express 取)
|
|
15
|
+
|
|
16
|
+
7. 第一段五环都走通了,或者用户明确说现在就要出海、要上 X:调用工具 `chuhai_book`,`part=toc`,然后同样先 `head`,再按模块次序取、做:买海外服务器、装加速、在用户的设备上配客户端、注册 X、开 Premium,最后汇报。
|
|
17
|
+
8. 取不回来:把工具返回的那句话原样告诉用户,别自己编一套步骤。
|
|
18
|
+
9. 这段里的秘密(服务器密码、钥匙)只在命令行或密码框里传,不进对话、不写明文文件。连接链接可以给用户看。
|
|
19
|
+
10. 连通与否只认真实页面:打开了 x.com 或 youtube.com 的真实页面才算,图标变绿不算;断开再连仍通才算稳定。
|
|
20
|
+
|
|
21
|
+
## 进度
|
|
22
|
+
|
|
23
|
+
- 目前到:X 开 Premium。再往后的环(用 Grok 做事、一稿多发、广告分成、卖课)在更新中。
|
|
24
|
+
- 插件更新以后,用户再说一句「自媒体出海」,你就按新书走。
|
|
25
|
+
|
|
26
|
+
## 汇报
|
|
27
|
+
|
|
28
|
+
每段做完照书里的汇报格式说;第二段是六行:结果、验了什么、改了什么、怎么用和怎么还原、剩什么、得分。
|