okp-import

okp-import is a skill for Claude Code, Codex from talesofai/okp. It costs 42 tokens per session (2,080 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,080 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.02080
Opus 5 $0.00021 $0.01040
Sonnet 5 $0.00008 $0.00416
Haiku 4.5 $0.00004 $0.00208

Measured 10d ago against content hash 9d6c5c6369e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 10d 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 · 250 lines

How it starts

The opening of the file, as written. The whole thing — 250 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
    
  2. 当前用户接受:
    okp invite accept OKP-XXXX-XXXX
    
  3. 确认成员身份:
    okp invite members <domain>
    

公开 domain 邀请码授予 writer。private domain 可邀请 readerwriter,不能授予 hostadmin

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 · 250 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. 10d 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 15d ago), licensed MIT. It adds 42 tokens to every session and 2,080 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

gap-to-topic

Turn a research area into a go/no-go decision dossier for ONE candidate thesis/proposal topic — a 3-gate verdict (is the gap open? is it a contribution? is it feasible?) with the evidence laid out so the researcher can verify it. Use when the user asks "is this gap worth pursuing", "help me pick a thesis topic", "is…

WenyuChiou/research-hub · 182 tokens

research-design-helper

Guide a researcher through 5 Socratic segments — research question sharpening, expected mechanism, identifiability check, validation plan, risk register — and produce .research/designbrief.md. Use when the user asks to "frame this research question", "design my study", "help me think through what model to build"…

WenyuChiou/research-hub · 163 tokens

paper-memory-builder

Convert a paper draft + figures + Zotero metadata into reusable .paper/claims.yml and .paper/figures.yml files so the academic-writing-skills skill can do writing, revision, and audit passes without re-reading the manuscript every time. Use when the user asks to "build paper memory", "extract claims from this…

WenyuChiou/research-hub · 122 tokens

research-workflow-orchestrator

Run a resumable end-to-end research workflow that automates low-risk work, pauses at explicit human decision gates, records provenance, and routes each stage to the appropriate research-hub skill or MCP tool.

WenyuChiou/research-hub · 48 tokens

literature-triage-matrix

Turn a list of papers (Zotero collection, Obsidian cluster, manual list) into a compact comparison matrix written to .research/literaturematrix.md, instead of generic per-paper summaries. Use when the user asks to "make a literature matrix", "compare these papers by method/data/limitations", or "decide which papers…

WenyuChiou/research-hub · 162 tokens

paper-summarize

After research-hub ingests a cluster of cited papers, fill the per-paper Key Findings + Methodology + Relevance sections in BOTH Obsidian markdown and the Zotero child note. Use when the user says "fill the TODO Key Findings/Methodology blocks left by research-hub auto", "I just ran auto and don't know what these…

WenyuChiou/research-hub · 195 tokens