nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:LJH-snow/dsh-tool-notion
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A Cordis tool plugin that gives DeepSeek Harness (dsh) Notion knowledge-base capabilities. Agents can search pages, read document content, create and update pages, append blocks, query databases and inspect their schemas, read and write comments, and list users.
It follows the official "everything is a plugin" architecture with ctx.tools.register(defineTool(...)) and the adding-a-tool contract.
Install directly from GitHub:
npm install github:LJH-snow/dsh-tool-notion
Or from a local checkout:
git clone https://github.com/LJH-snow/dsh-tool-notion
cd dsh-tool-notion
npm install && npm run build
npm install /path/to/dsh-tool-notion
Requires @deepseek-ai/cordis (^4.0.1) and @deepseek-ai/dsh-tools (^0.1.0-rc.6) as peer dependencies, provided by the host dsh runtime.
Load the plugin in a dsh composition config (cordis.yml):
- name: 'github:LJH-snow/dsh-tool-notion'
config:
apiToken: 'ntn_xxx_secret' # required: Notion integration token
baseUrl: 'https://api.notion.com' # optional
notionVersion: '2022-06-28' # optional
timeoutMs: 15000 # optional, default 15000
Full example: examples/cordis.yml.
Security: create an internal integration under Notion My integrations, allow only the workspaces/pages it needs, and never commit the token. Every tool requires a token because Notion workspace access and write permissions are controlled by the integration.
The baseUrl override must be an absolute http:// or https:// root URL. Only publicly reachable hosts are allowed: localhost, loopback, private, link-local, CGNAT, multicast, reserved/documentation/benchmark ranges, and every IANA special-purpose block are rejected, and a hostname whose DNS results contain any such address fails closed before the request is sent. Credentials, query strings, fragments, and non-root paths are not allowed.
| Tool | Description | Credentials |
|---|---|---|
notion_search_pages |
Search pages by text; empty query lists recently edited pages | yes |
notion_get_page |
Read a page title, properties, and readable block content | yes |
notion_create_page |
Create a page under a page or database parent | yes |
notion_update_page |
Update title, properties, or archived state | yes |
notion_append_blocks |
Append Notion blocks or plain text paragraphs | yes |
notion_list_databases |
List databases accessible to the integration | yes |
notion_get_database_schema |
Get database property names, types, selectable options, and relation/formula details | yes |
notion_query_database |
Query a database with filter and sort JSON | yes |
notion_list_page_comments |
List comments on a page | yes |
notion_add_comment |
Add a comment to a page | yes |
notion_list_users |
List users and bots visible to the integration | yes |
For Notion-specific structured inputs, the plugin accepts JSON strings:
propertiesJson: Notion page properties object, required for database parents.childrenJson: Notion block objects as a JSON array.content: plain text lines converted to paragraph blocks as a convenience.filterJson / sortsJson: Notion database query filter and sort objects.notion_search_pages, notion_list_databases, and notion_query_database accept startCursor from a previous response and return nextCursor plus hasMore. Pass nextCursor back as startCursor to continue paginating.
{ authenticated: false, ... }, write tools return { created: false, reason } or { ok: false, reason }.{ found: false }.{ created: false, reason } or { ok: false, reason }.NotionError.exec.signal and uses a configurable timeout (default 15 seconds).npm install
npm run typecheck
npm test
npm run build
See DEVELOPMENT.md for the architecture and test coverage.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: agent。