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 (2,458 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 2,458 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.02458
Opus 5.5 $0.00031 $0.00983
Sonnet 5.5 $0.00015 $0.00492
Haiku 4.5 $0.00008 $0.00246

Measured 14d ago against content hash 8a0b6332daf5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 14d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/sync.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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 · 199 lines

How it starts

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

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

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

入口 用途
scripts/sync.py 本地 -> iWiki 上传,含映射回写、冲突检测和回读校验
MCP Server user-iWiki 下载、目录巡检和脚本未覆盖的单点操作

0x00 前置约束

  1. 同步范围从 knowledge/<project>/ 或 private/knowledge/<project>/ 开始,不同步整个仓库。
  2. 只同步 Markdown:INDEX.md、代码、实验结果和 docx 等附件不上传。
  3. 所有路径使用工作区根目录相对路径。
  4. 同步前必须先读取 .iwiki-sync.json。
  5. 调用 iWiki MCP 工具前,必须先用 GetDynamicTools 读取对应工具 schema。

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": {
    "AI 工作区/bkmonitor/issues/": {
      "docid": 4018554737,
      "type": "FOLDER"
    },
    "knowledge/bkmonitor/issues/2026-03-03-apm-shared-datasource/": {
      "docid": 4018554741,
      "type": "FOLDER",
      "iwiki_title": "2026-03-03-APM 支持跨应用共享数据源",
      "status": "active"
    },
    "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",
      "remote_sha256": "de59ac11⋯⋯",
      "status": "active"
    }
  }
}
字段 说明
space_id / homepage_id iWiki 空间与首页定位
sync_policy.conflict_mode manual(默认)、local_wins 或 remote_wins
sync_policy.deletion_mode 固定为 tombstone,只标记删除,不删除远端
mappings 键 目录骨架用 AI 工作区/<project>/<category>/,实体目录和文档用本地相对路径
mappings[*].last_local_updated 本地 frontmatter 的 updated,缺失时取文件修改日期
mappings[*].remote_sha256 上次同步后远端正文去空白的 SHA-256,冲突检测的基线
mappings[*].status active 或 tombstone

0x02 命名与目录映射

目录骨架固定为 AI 工作区 → <project> → <category> → 实体目录。实体目录内的 Markdown 平铺为同级文档。

本地对象 iWiki 标题
实体目录,例如 issue {目录名日期}-{README.md frontmatter.title}
README.md 需求
PLAN.md 实施方案
PROGRESS.md 进展
REPORT.md 调研报告
validation/README.md 实验说明
其他 Markdown,或分类下的单篇文档 frontmatter title,缺失时取一级标题

Read the full file on GitHub · 199 lines

Files

What ships with it

1 file 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. 14d ago Changed · +45 lines 8a0b6332daf5
  2. 2mo 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 today), licensed MIT. It adds 77 tokens to every session and 2,458 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

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

apify-youtube-transcript-scraper

Get YouTube captions, timestamped quotations, SRT/VTT and translated transcripts for videos, channels and playlists through the harshmaur/youtube-transcript-scraper Apify Actor.

sickn33/agentic-awesome-skills · 48 tokens

legal-hold

Issue, refresh, release, or report on legal holds — drafts the hold notice as .docx, updates legalhold fields in log.yaml, and calendars the next refresh. Use when the user says "issue a hold", "refresh hold", "release hold", or asks for a portfolio-wide hold status report.

anthropics/claude-for-legal · 68 tokens

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

feishu

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

Hmbown/CodeWhale · 33 tokens