okp-import

okp-import is a skill for Claude Code, Codex from talesofai/okp. It costs 42 tokens per session (2,133 once invoked), scanned A, original, MIT.

A workflow for cleaning, checking, and importing domain knowledge into Open Knowledge Protocol, a system for storing structured knowledge by subject area.

In plain words
What is it for?
Use it to read a domain guide, distill its contents, verify access and data quality, and import the resulting concepts into Open Knowledge Protocol.
Why use it?
It adds duplicate checks, permission checks, validation, and a defined process before knowledge is written to a shared domain.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to read a domain guide, distill its contents, verify access and data quality, and import the resulting concepts into Open Knowledge Protocol.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/talesofai/okp/okp-import
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add talesofai/okp --skill okp-import
Clone the repo
git clone --depth 1 https://github.com/talesofai/okp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for okp-import

README.md
[![agentmods](https://agentmods.dev/badge/skills/talesofai/okp/okp-import/github.svg)](https://agentmods.dev/skills/talesofai/okp/okp-import)
Your own site
<a href="https://agentmods.dev/skills/talesofai/okp/okp-import"><img src="https://agentmods.dev/badge/skills/talesofai/okp/okp-import/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for okp-import

Your own site · 80×15
<a href="https://agentmods.dev/skills/talesofai/okp/okp-import"><img src="https://agentmods.dev/badge/skills/talesofai/okp/okp-import.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,133 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.02133
Opus 5.5 $0.00017 $0.00853
Sonnet 5.5 $0.00008 $0.00427
Haiku 4.5 $0.00004 $0.00213

Measured 1mo ago against content hash 21ab58cff020, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

okp-import scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/okp-import/SKILL.md · 252 lines

How it starts

The opening of the file, as written. The whole thing — 252 lines — stays where its author put it; the contents beside it link to each section on GitHub.

okp-import — 知识导入 Skill

CRITICAL — 开始前 MUST 确认 okp CLI 已安装并可连接 API:

npm install -g @markbangwu/okp
okp domains    # 确认 API 可达

权限模型

public: admin/host > writer > reader

private: host > writer > reader

  • admin:全局管理员,可管理公开 domain。对 private domain 没有任何旁路权限,必须接受 reader/writer 邀请后才能读取或写入,且仍不能管理 private domain。
  • host:每个 domain 有且只有一个 host,由 domain 创建者自动获得。负责管理 domain README、成员和邀请码。host 不可转让。
  • writer:domain 写入者。可通过 invitation 获得。可写入概念,不能管理成员和邀请码。
  • reader:公开 domain 的默认只读权限;在 private domain 中必须通过邀请显式获得。

domain 默认公开。创建者可选择 private;private domain 不会向非成员出现在 domains、search、sample、links 或 export 中。

新建 domain → 自动成为 host

写 README 即创建 domain,创建者自动成为该 domain 唯一 host:

okp domain <domain> --set readme.md

返回 201 即创建成功,创建者已持有 host 角色。

创建 private domain:

okp domain <domain> --set readme.md --visibility private

获得 writer 权限

若 put / batch / domain --set 返回 403(write access denied):

  1. 让该 domain 的 host(公开 domain 也可由 admin)生成邀请码:
    okp invite create <domain> --expires-hours 72 --max-uses 1
    # 多人共用同一码时:--unlimited
    
  2. 当前用户接受:
    okp invite accept OKP-XXXX-XXXX
    
  3. 确认成员身份:
    okp invite members <domain>
    

公开 domain 邀请码授予 writer。private domain 可邀请 reader 或 writer,不能授予 host 或 admin:

okp invite create <private-domain> --role reader
okp invite create <private-domain> --role writer

邀请码是短码,不是链接路由。门户右上角「邀请」也可输入同一邀请码。

工作流(严格按顺序)

Step 1: 读 domain README

每个 domain 有自己的 README,定义了 frontmatter 字段规范。必须先读。

okp domain <domain>          # 打印 README(含 schema 定义)
okp domains                  # 查看所有 domain
okp domains -q <keyword>     # 模糊搜索领域名

如果是新 domain,先写 README 再导入(写 README 即定义 domain,之后 okp domains 立即可见):

okp domain <domain> --set readme.md

README 格式(YAML frontmatter 定义 schema):

---
fields:
  sender:
    type: string
    required: true
    description: 飞书发送者用户名
  group:
    type: string
    required: true
    description: 来源飞书群
  platform:
    type: enum
    required: false
    enum: [bilibili, douyin, xiaohongshu, github, youtube]
  date:
    type: string
    required: false
    description: 发布日期 YYYY-MM-DD
---

# feishu-social

飞书社媒分享数据...

## How to contribute
每条 concept 的 frontmatter 必须包含 sender 和 group。

Read the full file on GitHub · 252 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +2 lines 21ab58cff020
  2. 2mo ago First seen · 250 lines · 42 tokens per session scan A 9d6c5c6369e6

Subscribe to this mod's changes

okp-import is a skill published in the GitHub repository talesofai/okp (5 stars, last pushed 1mo ago), licensed MIT. It adds 42 tokens to every session and 2,133 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

okp-import compared with skills from other repositories

okp-import next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
okp-importtalesofai/okpSkill51mo agoMITA42Claude Code, Codex
novel-writer-cliwpsnote/wpsnote-skillsSkill18411d agoMITA157Claude Code
novel-writerwpsnote/wpsnote-skillsSkill18411d agoMITA141Claude Code
wps-notewpsnote/wpsnote-skillsSkill18411d agoMITA109Claude Code
live-transcript-summarywpsnote/wpsnote-skillsSkill18411d agoMITA147Claude Code
xiaohongshu-note-creatorwpsnote/wpsnote-skillsSkill18411d agoMITA204Claude Code
content-digestwpsnote/wpsnote-skillsSkill18411d agoMITA254Claude Code