Agent skill

Webnovel Learn

by lujih in lujih/webnovel-writer-opencode

“从当前会话提取成功模式并写入 project_memory.json”

— description from SKILL.md by lujih
GPL-3.0Auto-check passedAgent Workflows

Install Webnovel Learn

skills CLI
$ npx skills add lujih/webnovel-writer-opencode --skill webnovel-learn -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install lujih/webnovel-writer-opencode webnovel-learn --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/lujih/webnovel-writer-opencode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.opencode/skills/webnovel-learn .claude/skills/webnovel-learn && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
webnovel-learn
GitHub stars
214
Token cost
~405 tokens
SKILL.md length
69 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
GPL-3.0

At a glance

  • Works in 3 steps: 读取… → 解析用户输入,归类… → 必须调用脚本写入,不得手写或拼接 JSON
  • SKILL.md covers Project Root Guard(必须先确认), 目标, 执行流程 and 约束, plus 2 more sections
  • Calls python

About this skill

Webnovel Learn is a skill in lujih/webnovel-writer-opencode (214 stars). Its SKILL.md is about 405 tokens. Licence: GPL-3.0.

Requirements

  • Compatibility (from SKILL.md): opencode

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. 读取 "$PROJECT_ROOT/.webnovel/state.json",获取当前章节号(progress.current_chapter)
  2. 解析用户输入,归类 pattern_type(hook/pacing/dialogue/payoff/emotion/format/other)
  3. 必须调用脚本写入,不得手写或拼接 JSON

What it can do on your machine

Read from SKILL.md and the folder at commit da00b7a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    opencode

    From compatibility in the SKILL.md frontmatter.

Context cost

Webnovel Learn loads about 405 tokens when it runs. Until then it costs about 12 tokens; SKILL.md has 69 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~12
When it runs · the whole SKILL.md, loaded when a task matches
~405

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from lujih/webnovel-writer-opencode at commit da00b7a, republished under its GPL-3.0 licence (© lujih). 69 words, ~405 tokens.

Download SKILL.mdSave it as .claude/skills/webnovel-learn/SKILL.md (or your agent's skills folder).
name
webnovel-learn
description
从当前会话提取成功模式并写入 project_memory.json
compatibility
opencode

/webnovel-learn

Project Root Guard(必须先确认)

  • 必须在项目根目录执行(需存在 .webnovel/state.json)
  • 使用统一入口解析项目根,避免写错目录:
bash
export WORKSPACE_ROOT="${PWD}"
export SCRIPTS_DIR="${PWD}/.opencode/scripts"
export PROJECT_ROOT="$(python -X utf8 "${SCRIPTS_DIR}/webnovel.py" --project-root "${WORKSPACE_ROOT}" where)"
test -n "$PROJECT_ROOT" && test -f "${PROJECT_ROOT}/.webnovel/state.json" || { echo "❌ PROJECT_ROOT 解析失败"; exit 1; }

目标

  • 提取可复用的写作模式(钩子/节奏/对话/微兑现等)
  • 追加到 .webnovel/project_memory.json

执行流程

  1. 读取 "$PROJECT_ROOT/.webnovel/state.json",获取当前章节号(progress.current_chapter)
  2. 解析用户输入,归类 pattern_type(hook/pacing/dialogue/payoff/emotion/format/other)
  3. 必须调用脚本写入,不得手写或拼接 JSON:
bash
python -X utf8 "${SCRIPTS_DIR}/webnovel.py" --project-root "${PROJECT_ROOT}" project-memory add-pattern \
  --pattern-type "{pattern_type}" \
  --description "{用户输入或提炼后的完整描述}" \
  --category "{分类,可空}" \
  --importance "{high|medium|low}"

脚本会自动读取/初始化 .webnovel/project_memory.json,并用 JSON 序列化写回,自动转义英文双引号、换行等字符。

约束

  • 不删除旧记录,仅追加
  • 追加前扫描已有 patterns,pattern_type + description 完全相同则跳过
  • 禁止使用 Write 或手工编辑 .webnovel/project_memory.json

成功标准

  • project_memory.json 存在且格式合法
  • 新 pattern 已追加到 patterns 数组
  • 输出包含 status: success 和完整 learned 对象

失败恢复

故障恢复方式
project_memory.json 不存在自动初始化 {"patterns": []} 后继续
JSON 解析失败不写入脏数据,告知用户文件损坏并建议手动修复
state.json 缺失导致无法获取章节号使用 source_chapter: null,不阻断
用户输入无法归类使用 pattern_type: "other",不阻断

© lujih, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .opencode/skills/webnovel-learn of lujih/webnovel-writer-opencode.

Open the folder on GitHubat commit da00b7a

Compare with similar skills

Webnovel Learn next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Webnovel Learn compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Webnovel Learn this skilllujih/webnovel-writer-opencode214—~405Automated safety check: PassGPL-3.0
Weekly Project Digeststhedotmack/claude-mem99k—~3.5kAutomated safety check: PassApache-2.0
Summarizationdigipulse-engineering/GAAI-framework163—~863Automated safety check: PassCustom licence
Custom Mode Creator for claude-memthedotmack/claude-mem99k—~2.4kAutomated safety check: PassApache-2.0
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
Beads Task Memorygastownhall/beads28k—~1.2kAutomated safety check: PassMIT

Similar skills

  • Weekly Project Digests

    thedotmack/claude-mem

    Turns a project's claude-mem timeline into a week-by-week narrative, splitting it by ISO week and running one subagent per week that receives the prior week's carry-forward block.

    99k GitHub stars~3.5k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Summarization

    digipulse-engineering/GAAI-framework

    Transform large, noisy, or short-term memory into compact, durable, high-signal summaries.

    163 GitHub stars~863 tokensUpdated 10 days ago
    Writing & ContentAuto-check passed
  • Walks you through creating, installing and verifying a custom claude-mem mode, including note types, tags and optional Telegram alerts for chosen memories.

    99k GitHub stars~2.4k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 8 days ago
    Agent WorkflowsAuto-check passed
  • Beads Task Memory

    gastownhall/beads

    Tracks multi-session work with dependencies in the bd issue tracker so the agent can find ready tasks and recover its context after conversation compaction.

    28k GitHub stars~1.2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Official

    Starts three parallel reviewer subagents over the current conversation transcript, then turns their findings into concrete edits to existing skills.

    10k GitHub starsUsed in 5 repos~1.2k tokens
    Agent WorkflowsAuto-check passed

More from lujih/webnovel-writer-opencode

All 15 skills in this repo
  • Webnovel Init

    lujih/webnovel-writer-opencode

    深度初始化网文项目。通过分阶段交互收集完整创作信息,生成可直接进入规划与写作的项目骨架与约束文件. An agent skill from lujih/webnovel-writer-opencode.

    214 GitHub stars~2.8k tokensUpdated 3 days ago
    Auto-check passed
  • Webnovel Query

    lujih/webnovel-writer-opencode

    查询项目设定、角色、力量体系、势力、伏笔等信息。支持紧急度分析与金手指状态查询. An agent skill from lujih/webnovel-writer-opencode.

    214 GitHub stars~846 tokensUpdated 3 days ago
    Auto-check passed
  • Webnovel Write Batch

    lujih/webnovel-writer-opencode

    连续写作多章。当用户要求多章写作时必须使用此 skill. An agent skill from lujih/webnovel-writer-opencode.

    214 GitHub stars~3.8k tokensUpdated 3 days ago
    Auto-check passed
  • Webnovel Export

    lujih/webnovel-writer-opencode

    将网文正文导出为 Markdown/TXT/EPUB/HTML/DOCX/PDF 格式。立即使用此 skill 当用户说:导出、导出小说、导出章节、生成电子书、导出 TXT、导出 Markdown、导出 EPUB、导出 HTML、导出 Word、导出 PDF、下载小说、输出正文。

    214 GitHub stars~1.1k tokensUpdated 3 days ago
    Auto-check passed
  • Webnovel Heal

    lujih/webnovel-writer-opencode

    修复问题章节——诊断、清理脏实体、重审查、重提交。触发:章节断裂、OOC偏离、设定矛盾修复. An agent skill from lujih/webnovel-writer-opencode.

    214 GitHub stars~524 tokensUpdated 3 days ago
    Auto-check passed
  • Webnovel Publish

    lujih/webnovel-writer-opencode

    将小说章节自动发布到国内主流小说平台(番茄等)。触发条件:"发布小说"、"发布章节"、"上传到番茄"、"自动发布"、"清理草稿"、"发布草稿"。

    214 GitHub stars~1.5k tokensUpdated 3 days ago
    Auto-check passed

Questions about Webnovel Learn

How do I install Webnovel Learn in Claude Code?

Run `npx skills add lujih/webnovel-writer-opencode --skill webnovel-learn -a claude-code`. Or copy the skill folder (.opencode/skills/webnovel-learn in lujih/webnovel-writer-opencode) into .claude/skills/webnovel-learn in your project. Claude Code loads it when a task matches its description.

How do I install Webnovel Learn in Codex?

Run `npx skills add lujih/webnovel-writer-opencode --skill webnovel-learn -a codex`. Or copy the skill folder (.opencode/skills/webnovel-learn in lujih/webnovel-writer-opencode) into .agents/skills/webnovel-learn in your project. Codex loads it when a task matches its description.

Can I use Webnovel Learn in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lujih/webnovel-writer-opencode --skill webnovel-learn -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/webnovel-learn, .gemini/skills/webnovel-learn, .github/skills/webnovel-learn and .opencode/skills/webnovel-learn in your project.

What does Webnovel Learn need to run?

Going by SKILL.md and its folder, Webnovel Learn needs the command-line tools its instructions call (python). Compatibility (from SKILL.md): opencode.

Does Webnovel Learn access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Webnovel Learn safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Webnovel Learn use?

Webnovel Learn is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Webnovel Learn use?

About 405 tokens (SKILL.md is roughly 1.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Webnovel Learn?

Skills that share tags, products or a category with Webnovel Learn: Weekly Project Digests (thedotmack/claude-mem, 99k stars), Summarization (digipulse-engineering/GAAI-framework, 163 stars), Custom Mode Creator for claude-mem (thedotmack/claude-mem, 99k stars) and Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Webnovel Learn?

lujih (a GitHub user) maintains it in lujih/webnovel-writer-opencode, which has 214 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 6, 2026.

Source: lujih/webnovel-writer-opencode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.