zsxq-skill: Instructions file for Claude Code

CLAUDE.md

zsxq-skill CLAUDE.md is an instructions file for Claude Code from unnoo/zsxq-skill. It costs 2,486 tokens per session, scanned A, original, MIT.

A project instruction document for agents working on zsxq-skill, a package that teaches coding agents to use the 知识星球 command-line tool.

In plain words
What is it for?
Use it when adding or updating documentation, operation guides, command references, or scripted workflows for zsxq-cli.
Why use it?
It gives agents one shared description of the project structure, operating modes, conventions, safety rules, and reference documents.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

This is unnoo/zsxq-skill's own configuration. It tells Claude Code how to work on zsxq-skill 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 zsxq-skill configures →

Reuse

Borrowing it

Nothing to install: this file belongs to unnoo/zsxq-skill. 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/unnoo/zsxq-skill/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/unnoo/zsxq-skill

Made for: Claude Code.

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 zsxq-skill CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/unnoo/zsxq-skill/claude-md.svg)](https://agentmods.dev/instructions/unnoo/zsxq-skill/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/unnoo/zsxq-skill/claude-md"><img src="https://agentmods.dev/badge/instructions/unnoo/zsxq-skill/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,486 This file is loaded in full into every session.
When invoked 2,486 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.02486 $0.02486
Opus 5 $0.01243 $0.01243
Sonnet 5 $0.00497 $0.00497
Haiku 4.5 $0.00249 $0.00249

Measured 9d ago against content hash 17849c8a86a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

zsxq-skill CLAUDE.md 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 9d 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.md · 162 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

zsxq-skill is the official skill package for zsxq-cli (知识星球 CLI). It contains documentation-only skill definitions — no application code, no build system, no tests. All files are Markdown (scenario scripts under scripts/, when added, are the only executable code).

The skill is consumed by AI agents (Claude Code, Codex, Cursor, OpenClaw) to learn how to operate the 知识星球 platform via zsxq-cli.

Codex/Cursor/OpenClaw 等 agent 通过 AGENTS.md 指向本文件;本文件是面向所有 agent 的唯一开发指南,文中 "Claude Code" 可泛指当前所用 agent。

Architecture

只发布一个 zsxq skill:

skills/zsxq/
├── SKILL.md                 # 触发、执行模式路由、能力索引、全局安全规则
├── references/
│   ├── auth-errors.md       # 认证、通用错误表、CLI 未安装恢复
│   ├── cli-exploration.md   # 探索模式:--help / api list / api call / api raw
│   ├── share-links.md       # 分享链接拼接模板
│   ├── <domain>-<verb>.md   # 原子操作 reference(group-list、topic-create …)
│   └── scenarios/
│       └── <scenario-id>.md # 场景入口(如 migrate-legacy-skills.md)
├── scripts/scenarios/<scenario-id>/   # 场景脚本(确定性代码,按需)
└── assets/scenarios/<scenario-id>/    # 场景模板/静态资源(按需)
  • SKILL.md 只负责触发、路由、能力索引和全局安全规则;命令细节全部在 reference 按需加载
  • 场景目录中不得创建 SKILL.md,避免被识别为独立 skill

执行模式(写文档时须维持这个路由结构)

命中场景 -> 按场景入口文档编排
否则命中原子操作 -> 读对应 reference 直接执行
否则 -> 探索模式(cli-exploration.md)

原子操作和场景执行时不得预先运行无关的 doctor--helpapi list;仅在能力不匹配或调用失败时回退到探索模式。

Key Conventions

SKILL.md frontmatter format

---
name: zsxq
description: "触发描述(中文,含关键词以便 AI 匹配触发)"
metadata:
  version: 2.1.0
  requires:
    bins: ["zsxq-cli"]
  cliHelp: "zsxq-cli --help"
---

description 字段直接决定 AI 何时触发该 skill,修改时确保包含所有相关操作的关键词(含场景触发语)。

Reference doc 统一模板

reference 顶部不加"前置条件"行;认证/登录相关内容统一在 auth-errors.md,不在各 reference 重复。

写入/删除类(create / edit / reply / answer / delete / nps)顺序:

# 标题(如 # topic +create(发布主题))
描述(一句话说明做什么)

> [!CAUTION]   <-- 写入/删除必须有,列出执行前需向用户确认的项目
> [!IMPORTANT] <-- 如有特殊约束(如"只能编辑自己的"、"每题只能回答一次")

## 命令              <-- 至少给一个最小可用示例;多文件、多形式按需补充
## 参数              <-- 表格:参数 / 必填 / 说明
## 输出              <-- 如非纯成功提示则给示例(JSON 示例避免 // 注释)
## 推荐工作流        <-- 一个标准流程;过渡步骤("获取 X"、"查找待 X")作为这一节的子步骤
## 失败语义          <-- 一句话描述失败是否原子回滚
## 错误说明          <-- 仅列特有错误;末尾 fallback 一行到 auth-errors.md#常见错误处理
## 参考              <-- 相关 reference / SKILL.md 链接

Read the full file on GitHub · 162 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. 9d ago First seen · 162 lines · 2,486 tokens per session scan A 17849c8a86a8

Subscribe to this mod's changes

zsxq-skill CLAUDE.md is an instructions file published in the GitHub repository unnoo/zsxq-skill (277 stars, last pushed 11d ago), licensed MIT. It adds 2,486 tokens to every session, about $0.0124 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 instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens