lion-writing-skills

lion-writing-skills is a skill for Claude Code from Lion-1209/Lion-Skills. It costs 18 tokens per session (1,695 once invoked), scanned A, a copy of lion-writing-skills, MIT.

A guide for creating or changing reusable skills in the Lion-Skills repository. A skill is an instruction manual that helps a coding agent perform a repeated workflow consistently.

In plain words
What is it for?
Use it to add, revise, or review skills, including their names, trigger descriptions, templates, and validation cases.
Why use it?
It helps decide when a workflow deserves a skill and keeps the resulting files structured and easy for future agents to use.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions subagents.

Part of the lion-skills plugin — 13 skills shipped together

Good fit Use it to add, revise, or review skills, including their names, trigger descriptions, templates, and validation cases.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lion-1209/lion-skills/lion-writing-skills
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 Lion-1209/Lion-Skills --skill lion-writing-skills
Clone the repo
git clone --depth 1 https://github.com/Lion-1209/Lion-Skills

Made for: Claude Code.

Or install lion-skills, the plugin that ships this one along with the rest of its 13 skills.

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 lion-writing-skills

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/lion-1209/lion-skills/lion-writing-skills"><img src="https://agentmods.dev/badge/skills/lion-1209/lion-skills/lion-writing-skills.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,695 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 100% copy Near-identical to another mod 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.00018 $0.01695
Opus 5 $0.00009 $0.00847
Sonnet 5 $0.00004 $0.00339
Haiku 4.5 $0.00002 $0.00169

Measured 12d ago against content hash 7c036c454ee0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

lion-writing-skills 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 12d 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.

Origin

This is a copy

100% identical to lion-writing-skills — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/lion-writing-skills/SKILL.md · 86 lines

How it starts

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

Lion Writing Skills

概述

Lion-Skills 的"造 skill 流水线":按本仓库规范,把一个重复的工作流沉淀成可复制、经验证的 skill。

核心原则:skill 是给未来 Claude 读的"操作手册"——它的价值不在于你写了什么,而在于未来的 Claude 在触发它时,能照着做出正确的事。

何时使用

  • 用户想新增一个 skill("帮我加个 X 的 skill")
  • 用户想修改/优化现有 skill
  • 用户想检查某个 skill 写得是否符合规范
  • 想把对话里反复出现的工作流沉淀成 skill

不该做成 skill 的情况:一次性的、项目特定的约定(放 CLAUDE.md)、能用简单校验自动化的(写成校验脚本而不是文档)。

只是审查/优化现有 skill 时:直接对照下文相关规则做合规判断即可,不必每次重走第 1 步"值不值得做"四问——那是新增 skill 的决策;现有 skill 要不要继续存在,是另一个问题。

核心内容

第 1 步:判断值不值得做

回答四个问题(都"是"才值得做):

  1. 高频吗?(反复出现,不是一次性的)
  2. 跨项目吗?(不止一个代码库用得到)
  3. 有判断空间吗?(需要决策/经验,不是机械操作——机械操作写成脚本)
  4. 未来 Claude 不读这个 skill,会做错或做差吗?

任何一个答"否",就别做成独立 skill:项目特定的约定放 CLAUDE.md,能机械自动化的写成校验脚本,一次性的直接在对话里处理。

第 2 步:复制模板,填 frontmatter

新 skill 建在 skills/<name>/SKILL.md(同名目录,里面放 SKILL.md,可选再放 evals/ 存验证用例)。复制 template/SKILL.md 过去,填两个字段:

  • name:全小写、连字符,用 skill 的核心动作或概念命名(如 commit-messageerror-handlingonboarding-unknown-codebase)。不要下划线或驼峰(commit_messageCommitMessage 都错)
  • description只写"何时触发",第三人称,中文,用三段式——①触发场景("当用户……时使用")+ ②典型信号(把用户实际会说的原话尽量列全)+ ③涉及关键词(中文说法 + 常见英文术语)。这样覆盖面广、不易漏触发。上限 1024 字符

关键:description 绝不能写工作流("先做 A 再做 B")。原因——测试发现 Claude 会偷懒只读 description 跳过正文。把流程留给正文。

第 3 步:写正文

按这个骨架:概述 / 何时使用 / 核心内容 / 常见错误(参考 template/SKILL.md)。

写作约定:

  • 解释 why,少用全大写 MUST(讲道理比下命令管用)
  • 一个优秀例子 > 多语言版本;例子尽量覆盖该 skill 最核心的 2–3 类场景,而非只示范单类
  • 正文 < 500 行;超了拆 references/
  • 中文为主,工具名/术语保留英文

第 4 步:轻量验证

前置:先确认目标 SKILL.md 在手(文件路径或正文)。用户只说"帮我验证"却没给内容时,先向用户要;skill 还在草稿态没落盘时,把全文直接贴进 subagent 的 prompt 即可,效果等同落盘。

写 2–3 个真实测试 prompt,用 subagent 带着新 skill 跑,看产出对不对。这一步最容易被跳过,但也最能发现问题,别省。

怎么算"真实" prompt:要像真实用户会说的、带具体细节——好的如"我把组件状态从 useState 换成 useReducer,还修了个内存泄漏,写个 commit message";坏的如"测一下你的能力"(太抽象,既测不出触发、也测不出指引力)。

范式:派一个 general-purpose subagent(让它只读 skill、把产出放进报告,不要改动仓库——除非任务就是要它落地文件),prompt 写「读取 skills/<name>/SKILL.md,然后按其指引处理这个需求:<测试 prompt>。完成后报告:你走了哪些步骤、产出什么、哪里卡壳」。多个 prompt 可以并行派。

通过标准:subagent 的产出 (a) 解决了用户问题,且 (b) 遵循 skill 的设计意图。把该 skill 正文里"该走的流程""该遵循的约定"抽成几条可勾选项来核(如 description 没写工作流、正文解释了 why、例子覆盖核心场景)。跑偏长这样:该走五步的跳过了验证、该三段式的 description 写成了能力清单、该按维度系统的退化成逐条枚举——出现这些就改正文重跑。

Read the full file on GitHub · 86 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. 12d ago First seen · 86 lines · 18 tokens per session scan A 7c036c454ee0

Subscribe to this mod's changes

lion-writing-skills is a skill published in the GitHub repository Lion-1209/Lion-Skills (5 stars, last pushed 2mo ago), licensed MIT. It adds 18 tokens to every session and 1,695 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to lion-writing-skills, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

cosmosdb-datamodeling

Step-by-step guide for capturing key application requirements for NoSQL use-case and produce Azure Cosmos DB Data NoSQL Model design using best practices and common patterns, artifactsproduced: "cosmosdbrequirements.md" file and "cosmosdbdatamodel.md" file.

boshi-xixixi/TraeSkill · 62 tokens

geofeed-tuner

Use this skill whenever the user mentions IP geolocation feeds, RFC 8805, geofeeds, or wants help creating, tuning, validating, or publishing a self-published IP geolocation feed in CSV format. Intended user audience is a network operator, ISP, mobile carrier, cloud provider, hosting company, IXP, or satellite…

boshi-xixixi/TraeSkill · 136 tokens

arize-evaluator

INVOKE THIS SKILL for LLM-as-judge evaluation workflows on Arize: creating/updating evaluators, running evaluations on spans or experiments, tasks, trigger-run, column mapping, and continuous monitoring. Use when the user says: create an evaluator, LLM judge, hallucination/faithfulness/correctness/relevance, run eval…

boshi-xixixi/TraeSkill · 112 tokens

copilot-cli-quickstart

Use this skill when someone wants to learn GitHub Copilot CLI from scratch. Offers interactive step-by-step tutorials with separate Developer and Non-Developer tracks, plus on-demand Q&A. Just say "start tutorial" or ask a question! Note: This skill targets GitHub Copilot CLI specifically and uses CLI-specific tools…

boshi-xixixi/TraeSkill · 85 tokens

fireworks-tech-graph

A generator for technical diagrams that exports them as SVG and PNG images. It is intended for architecture, data-flow, flowchart, sequence, agent, memory, and concept-map diagrams.

boshi-xixixi/TraeSkill · 105 tokens

adobe-illustrator-scripting

Write, debug, and optimize Adobe Illustrator automation scripts using ExtendScript (JavaScript/JSX). Use when creating or modifying scripts that manipulate documents, layers, paths, text frames, colors, symbols, artboards, or any Illustrator DOM objects. Covers the complete JavaScript object model, coordinate system…

boshi-xixixi/TraeSkill · 80 tokens