new-module

A guide for creating a new learning module in the zero2Agent project, including its folder, entry page, and navigation links.

In plain words
What is it for?
It is for adding a module directory and index page, then updating the site’s top navigation and sidebar in the correct order.
Why use it?
It removes the need to remember every project file that must be updated when adding a new chapter or subject area.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/ranxi2001/zero2agent/new-module
Any agent
npx skills add ranxi2001/zero2Agent --skill new-module
Clone the repo
git clone --depth 1 https://github.com/ranxi2001/zero2Agent

Made for: Claude Code, Codex.

Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 871 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00095 $0.00871
Opus 5 $0.00048 $0.00436
Sonnet 5 $0.00019 $0.00174
Haiku 4.5 $0.00010 $0.00087

Measured 2d ago against content hash 704ed7c4eaf7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

new-module 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 2d 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.

.claude/skills/new-module/SKILL.md · 97 lines

What it actually says

new-module:创建新学习模块

本技能用于在 zero2Agent 项目中新建一个学习模块,并同步更新所有相关导航。

现有模块结构(参考)

zero2Agent/
├── learn-agent-basic/       # Module 01 — 08 篇文章
├── learn-agent-survey/      # Module 02 — 13 篇文章
├── learn-agent-training/    # Module 03 — 06 篇文章
├── learn-langgraph/         # Module 04 — 07 篇文章
├── learn-claude-code/       # Module 05 — 12 篇文章
├── learn-sdk-frameworks/    # Module 06 — 04 篇文章
├── learn-openclaw/          # Module 07 — 09 篇文章
├── learn-agent-interview/   # Module 09 — 08 篇(维度拆解 + 面经实录)
└── final-project/           # Module 10 — 占位符

每个模块是根目录下的一个子目录,包含 index.md 作为模块入口。

模块 index.md 结构

---
layout: default
title: {module-dir-name}
description: {模块一句话描述,15–30 字}
eyebrow: Module {NN}
---

# {module-dir-name}

{2–3 句话:这个模块解决什么问题,适合什么阶段的读者}

## 这部分的主线

{3–5 个 bullet,说明核心学习路径}

## 建议阅读顺序

{初始为空,随文章增加而补充}

## 后续可补充的文章

- [ ] {建议文章1}
- [ ] {建议文章2}
- [ ] {建议文章3}

需要同步更新的位置

创建新模块时,必须更新以下 3 处:

1. _layouts/default.html — 顶部导航

<nav class="doc-nav"> 中添加链接:

<a href="{module-dir}/index.html">{显示名称}</a>

2. _layouts/default.html — 侧边栏

<aside class="doc-sidebar"> 中添加链接(按编号顺序):

<a href="{module-dir}/index.html">{NN}. {module-dir-name}</a>

3. index.html 主页 — 模块卡片

在主页的模块列表区域添加新卡片。参考现有卡片的 HTML 结构,保持格式一致。

执行步骤

  1. 收集信息:如果用户没有提供,先确认:

    • 模块编号(NN,当前最大为 10)
    • 模块目录名(如 learn-mcp
    • 模块显示名(如 MCP
    • 模块描述(一句话)
    • 模块主线(预期涵盖哪些主题)
  2. 创建目录和文件

    mkdir -p {module-dir}/
    

    写入 {module-dir}/index.md

  3. 更新 _layouts/default.html

    • <nav class="doc-nav"> 中添加导航链接
    • <aside class="doc-sidebar"> 中添加侧边栏链接
  4. 更新 index.html:在主页模块卡片区域追加新模块的卡片 HTML。

  5. 输出确认:列出创建/修改的所有文件,说明模块编号和导航位置。

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. 2d ago First seen · 97 lines · 95 tokens per session scan A 704ed7c4eaf7

Subscribe to this mod's changes

new-module is a skill published in the GitHub repository ranxi2001/zero2Agent (367 stars, last pushed 2d ago), licensed MIT. It adds 95 tokens to every session and 871 once invoked, about $0.0005 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

hive.browser-automation

Required before any hive-browser CLI command. The browser is driven from the terminal by running hive-browser ... --json via terminalexec — not via MCP tools. Teaches the browser lifecycle rules (the bridge attaches to the USER'S running Chrome — never kill or launch browser processes; timeouts are transport issues…

aden-hive/hive · 142 tokens

hive.linkedin-automation

Read before automating LinkedIn with browser tools. LinkedIn combines shadow DOM (#interop-outlet), strict Trusted Types CSP that silently drops innerHTML, Lexical composer, native beforeunload dialogs that hang the bridge, and aggressive spam filters — each has bitten us at least once. Verified flows for profile…

aden-hive/hive · 99 tokens

hive.slack-notifications-setup

Set up a Slack notification channel (Sentinel) for a colony by driving the browser — reuse or create the "Hive Sentinel" Slack app from a JSON manifest, install it, capture the bot + app tokens, create/select the channel via the Slack API, and turn Sentinel on so the colony can ping the user on Slack and accept…

aden-hive/hive · 136 tokens

hive.writing-hive-skills

Author a new Agent Skill for a Hive agent that conforms to the Agent Skills specification (SKILL.md with YAML frontmatter, optional scripts/references/assets directories). Use when the user asks to create, scaffold, add, or package a new skill for a Hive agent.

aden-hive/hive · 63 tokens

hive.chart-creation-foundations

Required reading whenever any chart tool is available. Teaches the one-tool embedding contract (call chartrender → live chart appears in chat AND a downloadable PNG lands in the queen session dir), the ECharts (data viz) vs Mermaid (structural diagrams) decision, the BI/financial-grade aesthetic baseline (no…

aden-hive/hive · 133 tokens

browser-edge-cases

SOP for debugging browser automation failures on complex websites. Use when browser tools fail on specific sites like LinkedIn, Twitter/X, SPAs, or sites with Shadow DOM.

aden-hive/hive · 40 tokens