wenlan-sync

wenlan-sync is a skill for Claude Code, Codex from wenlan-app/wenlan. It costs 55 tokens per session (1,409 once invoked), scanned A, original, Apache-2.0.

Keep this app's copy of the person's Wenlan rules and skills up to date. A daily run only pulls. When the person says "sync Wenlan now", also send their edits back to Wenlan as suggestions they approve in the Wenlan app.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Install with agentmods
npx agentmods add skills/wenlan-app/wenlan/wenlan-sync
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 wenlan-app/wenlan --skill wenlan-sync
Clone the repo
git clone --depth 1 https://github.com/wenlan-app/wenlan

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/wenlan-app/wenlan/wenlan-sync"><img src="https://agentmods.dev/badge/skills/wenlan-app/wenlan/wenlan-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,409 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 unknown 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.00055 $0.01409
Opus 5.5 $0.00022 $0.00564
Sonnet 5.5 $0.00011 $0.00282
Haiku 4.5 $0.00006 $0.00141

Measured today against content hash ab2fadf87c84, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wenlan-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 today.

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.

crates/wenlan-mcp/skills/wenlan-sync/SKILL.md · 101 lines

How it starts

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

Keep Wenlan rules and skills in step

Wenlan holds the person's working rules and skills. This app keeps a copy so it can follow them. Wenlan's copy is the real one. When the person edits a rule or skill here, send the edit to Wenlan as a suggestion. Only the person approves or declines it, in the Wenlan app. Never approve anything yourself.

Two kinds of run:

  • Daily run (scheduled, nobody watching): only pull. Bring unchanged copies up to date, apply answers the person already gave, and send nothing.
  • "Sync Wenlan now" (the person asked): do everything a daily run does, and also suggest the person's edits.

End every run with one or two lines saying what changed and what waits for the person.

Where things live

  • Rules: in ~/AGENTS.md, the lines between <!-- wenlan:begin --> and <!-- wenlan:end -->. Each marker is a line of its own. Everything outside them is the person's own notes for this app: never change it.
  • Skills: ~/workspace/custom-skills/<name>/SKILL.md. A folder made from Wenlan holds a file named .wenlan. A folder without .wenlan is this app's own skill: never change, suggest or delete it. Only SKILL.md is kept in step.
  • Pristine copies: ~/workspace/custom-skills/.wenlan-rules.base holds the rules text exactly as you last wrote it from Wenlan; <name>/.wenlan-base.md holds that skill's SKILL.md as you last wrote it.
  • State: ~/workspace/custom-skills/.wenlan-rules for the rules and .wenlan in each skill folder. Each is JSON: {"version": "...", "suggested": null}. version is Wenlan's version you last wrote. suggested is the content_hash Wenlan returned for your last suggestion, or null.

First run

Before writing anything, list the layout: ls ~ ~/workspace/custom-skills. If ~/AGENTS.md or ~/workspace/custom-skills is missing, or the layout is not what this skill describes, stop and tell the person. Change nothing.

Steps

  1. Read Wenlan: read_personal_rules with layer {"kind":"shared"}, and read_skill with no name. Each item has version and last_suggestion (null, or {content_hash, status} with status pending, accepted or declined). If any call fails or an answer looks incomplete, stop and change nothing.
  2. Check the rules markers in ~/AGENTS.md:
    • Neither marker, and no .wenlan-rules state yet (first run): append the two marker lines with Wenlan's text between them at the end of the file.
    • Markers missing after the first run, either marker more than once, or end before begin: write nothing for the rules and tell the person.
    • Never rewrite anything outside the block.
  3. For the rules, and for each listed skill, compare this app's copy with its pristine copy (cmp -s):
    • No copy yet: write Wenlan's text (for a skill, read_skill with its name), the pristine copy, and the state with suggested: null.
    • Copy unchanged (same as pristine): if version differs from the state, write Wenlan's text, the pristine copy and the new version. Else nothing.
    • Copy edited here (differs from pristine):
      • suggested equals last_suggestion.content_hash:
        • pending: the person has not answered. Keep this app's copy.
        • accepted: write Wenlan's current text, the pristine copy and the new version; set suggested: null.
        • declined: the person said no to this exact edit. Write Wenlan's current text over this app's copy, the pristine copy and the new version; set suggested: null. Tell the person in one line which edit was replaced. Keep no copy of it anywhere.
      • Otherwise (no suggestion yet, or Wenlan does not know it):
        • Daily run: keep this app's copy and send nothing. Mention it.
        • "Sync Wenlan now": suggest it once. Rules: propose_personal_rules with rules_block = the block text between the markers and base_version = the state's version. Skill: save_skill with the skill's name, skill_md = the whole edited SKILL.md, and base_version = the state's version. Store the returned content_hash in suggested. Keep this app's copy. If Wenlan refuses, change nothing and tell the person why.
        • Send the edited copy as it is, even when Wenlan's version differs from the state's. Never copy Wenlan's newer text into it first. When the two changes touch different lines, Wenlan puts them together; when they touch the same lines, the card says Apply would replace Wenlan's newer lines. When the versions differ, tell the person in one line that Wenlan also changed and the card in the Wenlan app shows what Apply would do.
  4. A missing or unknown last_suggestion is not an answer: never overwrite an edited copy because of it, because of an error, or because time passed.

Read the full file on GitHub · 101 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. today First seen · 101 lines · 55 tokens per session scan A ab2fadf87c84

Subscribe to this mod's changes

wenlan-sync is a skill published in the GitHub repository wenlan-app/wenlan (502 stars, last pushed today), licensed Apache-2.0. It adds 55 tokens to every session and 1,409 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-11-30.

Related

wenlan-sync compared with skills from other repositories

wenlan-sync next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
wenlan-syncwenlan-app/wenlanSkill502todayApache-2.0A55Claude Code, Codex
run-wenlan-app7xuanlu/wenlanSkill791mo agoApache-2.0A71Claude Code
help7xuanlu/wenlanSkill791mo agoApache-2.0A39Claude Code, Codex
verify7xuanlu/wenlanSkill791mo agoApache-2.0A63Claude Code
statskalinbogatzevski/captain-memoSkill56d agoApache-2.0A36Claude Code
searchkalinbogatzevski/captain-memoSkill56d agoApache-2.0A49Claude Code
doctorkalinbogatzevski/captain-memoSkill56d agoApache-2.0A52Claude Code