ai-workspace: Skill for Claude Code

.agents/skills/iwiki-sync/SKILL.md

iwiki-sync is a skill for Claude Code, Codex from ZhuoZhuoCrayon/ai-workspace. It costs 77 tokens per session (1,516 once invoked), scanned A, original, MIT.

A two-way document synchronisation workflow between an AI workspace and iWiki, an internal wiki or document system.

In plain words
What is it for?
Use it to send documents to iWiki, pull them back locally, apply incremental updates, repair document mappings, resend documents, or align personal-space folders.
Why use it?
It keeps local project knowledge and iWiki documents aligned while tracking mappings, updates, conflicts, and marked deletions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is ZhuoZhuoCrayon/ai-workspace's own configuration. It tells Claude Code and Codex how to work on ai-workspace itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-workspace configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ZhuoZhuoCrayon/ai-workspace. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ZhuoZhuoCrayon/ai-workspace/main/.agents/skills/iwiki-sync/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ZhuoZhuoCrayon/ai-workspace

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 iwiki-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhuozhuocrayon/ai-workspace/iwiki-sync/github.svg)](https://agentmods.dev/skills/zhuozhuocrayon/ai-workspace/iwiki-sync)
Your own site
<a href="https://agentmods.dev/skills/zhuozhuocrayon/ai-workspace/iwiki-sync"><img src="https://agentmods.dev/badge/skills/zhuozhuocrayon/ai-workspace/iwiki-sync/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 iwiki-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhuozhuocrayon/ai-workspace/iwiki-sync"><img src="https://agentmods.dev/badge/skills/zhuozhuocrayon/ai-workspace/iwiki-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,516 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00077 $0.01516
Opus 5 $0.00039 $0.00758
Sonnet 5 $0.00015 $0.00303
Haiku 4.5 $0.00008 $0.00152

Measured 11d ago against content hash 2c3b7bd23b8d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

iwiki-sync 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 11d 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.

.agents/skills/iwiki-sync/SKILL.md · 154 lines

How it starts

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

iwiki-sync — AI 工作区与 iWiki 双向同步

目标:让 knowledge/ 与 iWiki 个人空间保持可持续、可回溯、可增量的双向同步。

MCP Server:user-iWiki

0x00 前置约束

  1. 同步范围默认从 knowledge/<project>/ 开始,不直接同步整个仓库。
  2. INDEX.md 默认不同步(仅同步 issue 实体文档)。
  3. 所有路径使用工作区根目录相对路径。
  4. 同步前必须先读取 .iwiki-sync.json
  5. 调用任何 iWiki MCP 工具前,必须先读取对应工具 schema(mcps/user-iWiki/tools/*.json)。

0x01 映射文件规范

位置:工作区根目录 .iwiki-sync.json(应被 .gitignore 忽略)。

建议结构:

{
  "space_id": 136740934,
  "homepage_id": 135057649,
  "root_title": "AI 工作区",
  "sync_policy": {
    "index_sync": false,
    "conflict_mode": "manual",
    "deletion_mode": "tombstone"
  },
  "mappings": {
    "knowledge/bkmonitor/issues/2026-03-03-apm-shared-datasource/README.md": {
      "docid": 4018554751,
      "type": "MD",
      "iwiki_title": "需求",
      "last_local_updated": "2026-03-03",
      "last_sync_at": "2026-03-08T12:30:00Z",
      "status": "active"
    }
  }
}

字段说明:

  • space_id / homepage_id: iWiki 定位信息。
  • root_title: iWiki 顶层目录名,固定为 AI 工作区
  • sync_policy.conflict_mode: manual | local_wins | remote_wins
  • sync_policy.deletion_mode: 推荐 tombstone(标记删除,不做远端删除)。
  • mappings[*].status: active | tombstone

0x02 命名与目录映射

目录骨架固定为:AI 工作区<project><category>

命名规则:

  • issue 文件夹:{date}-{frontmatter.title}
  • README.md需求
  • PLAN.md实施方案
  • PROGRESS.md进展
  • INDEX.md:默认不同步。

示例:

  • 本地 knowledge/bkmonitor/issues/2026-03-03-apm-shared-datasource/
  • iWiki 标题 2026-03-03-APM 支持跨应用共享数据源

0x03 上传流程(本地 -> iWiki)

  1. 读取 .iwiki-sync.json,确认 space_idhomepage_idroot_title
  2. 扫描本地目录,过滤掉 INDEX.md
  3. 对每个条目按映射判断:
    • 无映射:新增(createDocument)。
    • 有映射:更新(saveDocument)。
  4. 新增时先确保父目录存在,再创建子目录/文件。
  5. 每次创建或更新后立即回写 .iwiki-sync.json

新增操作规范:

  • FOLDER:contenttype="FOLDER"body" "
  • MD:contenttype="MD"body 传完整 Markdown。

更新操作规范:

  • 使用 saveDocument(docid, title, body)
  • 即使只改标题,也传非空 body

0x04 下载流程(iWiki -> 本地)

  1. 根据 .iwiki-sync.json 取目标 docid
  2. 调用 getDocument 获取远端正文。
  3. 写回本地对应路径(不存在则创建)。
  4. 更新映射项中的 last_sync_at 与状态字段。

Read the full file on GitHub · 154 lines

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. 11d ago First seen · 154 lines · 77 tokens per session scan A 2c3b7bd23b8d

Subscribe to this mod's changes

iwiki-sync is a skill published in the GitHub repository ZhuoZhuoCrayon/ai-workspace (27 stars, last pushed 4d ago), licensed MIT. It adds 77 tokens to every session and 1,516 once invoked, about $0.0004 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-30.

Related

Other skills, from other repositories

baoyu-youtube-transcript

A tool for downloading the written captions, subtitles, chapter information, speaker labels, and cover image from a YouTube video using its URL or ID.

JimLiu/baoyu-skills · 107 tokens

orbit-notion

Open Orbit briefing skill — selected by the Orbit pipeline when Notion is the user's only connected connector, or when the user explicitly scopes their daily digest to Notion. Pulls the past 24 hours of document edits, comments, mentions, and database row changes from the user's authenticated Notion connection and…

nexu-io/open-design · 117 tokens

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens

read

Reads URLs and PDFs by fetching source content, defaulting to concise summaries for plain read requests and clean Markdown when asked to convert, save, quote, cite, or feed downstream work. Use when users ask in any language to read, fetch, check, summarize, quote, cite, convert, or save a URL or PDF. Not for local…

tw93/Waza · 78 tokens

overleaf-sync

A two-way connection between a local paper folder and Overleaf, a web-based LaTeX editor for writing research papers. It lets you move changes between the local files and the shared Overleaf project.

wanshuiyin/Auto-claude-code-research-in-sleep · 97 tokens