Intake any content type (project, skill, tool, article, concept, collection) for gegeewu-library. Classifies type, generates category/tags, checks duplicates, writes Obsidian archive. 用户说"归档"、"入库"、"收录"时触发。
Use this skill for any new content intake.
根据输入形态选择处理路径,目标是获取足够信息供 Step 2 分类。
必须获取页面正文内容,按优先级尝试:
Accept: text/markdown(首选)基于 Step 1 获取的内容,综合判断:
type: project / skill / tool / article / concept / collectioncategory: 从预设值选取tags: 3-8 个英文小写标签summary: 100 字以内中文摘要| Priority | Signal | → type |
|---|---|---|
| 1 | 有 SKILL.md + 触发条件 | skill |
| 2 | 仓库名含 awesome / curated list | collection |
| 3 | 协议规范 / 方法论 / 抽象概念 | concept |
| 4 | 博客文章 / 教程 / 技术分享 | article |
| 5 | SaaS / 商业产品 / 不可自部署 | tool |
| 6 | GitHub 仓库 + 可安装部署 / 开源库 | project |
reference/library-index.json for name/slug/aliases matchPOST /search/simple/?query=<keyword> for full-text search输出结构化摘要到终端,按 type 选择模板。
project: [project] <name> — <category> | <tags> | <summary>
skill: [skill] <name> — <category> | <tags> | <summary>
tool: [tool] <name> — <category> | <tags> | <summary>
article: [article] <title> — <category> | <tags> | <summary>
concept: [concept] <name> — <category> | <tags> | <summary>
collection: [collection] <name> — <category> | <tags> | <summary>
包含:类型、分类、标签、一句话摘要、核心功能(5-8条)、官方链接、Obsidian 路径。
Write full Markdown archive with YAML frontmatter via Obsidian REST API.
PUT /vault/knowledge-base/<types>/<slug>/README.md
Content-Type: text/markdown
Authorization: Bearer ${OBSIDIAN_REST_API_KEY}
Host: 127.0.0.1:27124 (HTTPS, skip TLS verify)
路径是 vault 相对路径:
PUT /vault/knowledge-base/projects/bb-browser/README.md
Update reference/library-index.json with all fields:
name, slug, type, category, tags, summary, aliases, official_url, github_url, obsidian_path, updated_at, source_captured.
https://127.0.0.1:27124)OBSIDIAN_REST_API_KEY must be available in environmentOBSIDIAN_REST_API_KEY is missing: stop archive writing and report