Token导航 LogoToken导航TokenDH.com
研究检索只读clawhub未标认证来源可访问clear审计通过

writing-better-skills写作更好的技巧

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

6,985

周安装

297

GitHub Stars

公开资料未说明

下载量

2,447
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:writing-better-skills(写作更好的技巧)
来源仓库:https://github.com/zenchantlive/writing-better-skills
安装命令:
openclaw skills install writing-better-skills
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install writing-better-skills

简介

专为改进 AI 代理技能文档而设计,强化触发词识别与本地上下文整合能力。

  • 适用于技能开发者优化 README 结构与工作流程说明,提高执行效率与成功率。
  • 输出 YAML 格式的规范模板与常见错误示例,支持红绿重构循环迭代。
  • 需遵循字数限制与交叉引用原则,避免过度冗长影响大模型解析效果。
  • 建议结合真实失败案例编写测试场景,确保技能覆盖核心违规点与边界条件。

SKILL.md

name
writing-better-skills
description
Use when creating or improving a skill for an AI agent, especially when the skill needs strong trigger wording, project-local context, references, scripts, tests, self-healing rules, or a completion gate another agent could follow without guessing.
license
Complete terms in LICENSE.txt

Writing Better Skills

Create better skills for agents.

A skill helps an agent do work. It is reusable operational guidance plus optional references, scripts, tests, and narrow remediation. It is not something that "turns an agent into a skill."

This skill is the control plane for authoring other skills:

  • it tells the agent when to use the skill-creation framework
  • what laws must not be violated
  • which references to read for each decision
  • when scripts, tests, and self-healing are justified
  • what completion means

When to Use

Use this when authoring or revising a skill and you need to decide:

  • what belongs in SKILL.md
  • what should move into references/
  • when project-local context is needed
  • when to add scripts and tests
  • whether self-healing is justified
  • whether a fresh agent could use the skill without guessing

The Iron Laws

NO PROJECT-SPECIFIC CONTEXT IN THE GLOBAL SKILL

If a path, command, constraint, or convention belongs to one repository, it goes in project.skill.md, not in the reusable skill.

NO SKILL IS COMPLETE UNTIL A FRESH AGENT COULD USE IT WITHOUT GUESSING CRITICAL FACTS

If another agent would have to invent project-local commands, output paths, trigger conditions, or completion criteria, the skill is incomplete.

Violating the letter of these laws is violating the spirit of the skill.

Project-Local Context Comes First

The global skill must stay reusable.

Before doing substantial work with a skill in a repository:

  1. Look for project.skill.md in the project root.
  2. If it exists, read it before taking action.
  3. If it does not exist and local context is needed, create it from project.skill.template.md.
  4. Put environment-specific paths, commands, constraints, and conventions in project.skill.md, not in the global skill.
  5. Treat project.skill.md as overriding generic guidance in SKILL.md when local details differ.

Read references/project-skill-context.md before defining or revising that contract.

Skill Organization Model

SKILL.md = the router

SKILL.md is the main behavioral document. It should tell the agent:

  • when to use the skill
  • what laws and stop conditions apply
  • what order to follow
  • which references to read
  • which scripts to run
  • what completion requires

references/ = deep guidance

References hold heavier, conditional, or decision-specific material.

Use references for:

  • description-writing rules
  • project-local context rules
  • architecture-level decisions
  • script/test conventions
  • self-healing rules
  • behavioral validation
  • completion gates

scripts/ = deterministic helpers

Use scripts for repeated deterministic work the agent should not keep re-deriving.

tests/ = proof

Use tests to prove shipped scripts or promised behaviors work.

self-healing/ = narrow remediation

Use self-healing only for safe, local, repeatable fixes.

Architecture Levels

Choose the smallest structure that reliably supports the work.

Minimal skill

my-skill/
└── SKILL.md

Reference-backed skill

my-skill/
├── SKILL.md
├── project.skill.template.md
└── references/

Operational skill

my-skill/
├── SKILL.md
├── project.skill.template.md
├── references/
├── scripts/
└── tests/

Resilient operational skill

my-skill/
├── SKILL.md
├── project.skill.template.md
├── references/
├── scripts/
├── tests/
└── self-healing/

Read references/skill-architecture-levels.md before deciding how much structure to add.

Authoring Phases

You must complete each phase before moving on.

Phase 1: Define the boundary

Decide:

  • what problem the skill solves
  • what belongs in the reusable global skill
  • what must remain project-local
  • whether local context actually matters

If local commands, paths, outputs, or constraints vary by project, plan for project.skill.template.md.

Phase 2: Define trigger and routing

Write the frontmatter and top of SKILL.md.

Requirements:

  • description says when to use the skill
  • SKILL.md routes the agent to project.skill.md early when local context matters
  • SKILL.md tells the agent which references/scripts matter at which step

Read references/description-writing.md before finalizing the description.

Phase 3: Add only justified structure

Add references, scripts, tests, and self-healing only when earned.

Use these references:

  • references/script-test-conventions.md before shipping scripts
  • references/self-healing-rules.md before adding self-healing
  • references/skill-testing.md before deciding what to validate

Phase 4: Validate fresh-agent usability

Before calling the skill complete, test whether a fresh agent could:

  • identify when to use the skill
  • find the right local context file
  • choose the right reference or script
  • know what completion means

Read references/behavioral-validation-checklist.md.

Phase 5: Apply the completion gate

Do not claim the skill is complete until it passes the completion gate.

Read references/completion-gate.md.

Routing Map

Use this map while authoring:

  • Need to define project-local context? → references/project-skill-context.md
  • Need to choose architecture level? → references/skill-architecture-levels.md
  • Need to write a better trigger description? → references/description-writing.md
  • Need to add or test scripts? → references/script-test-conventions.md
  • Need to decide whether healing is allowed? → references/self-healing-rules.md
  • Need to validate fresh-agent usability? → references/behavioral-validation-checklist.md
  • Need to decide if the skill is complete? → references/completion-gate.md
  • Need general workflow or output guidance? → references/workflows.md, references/output-patterns.md

Scripts in This Repo

Use the shipped scripts when they reduce repeated, deterministic work:

  • scripts/quick_validate.py — fast validation of frontmatter and core structural promises

If you find yourself manually re-checking the same structural conditions repeatedly, prefer strengthening this validator rather than rewriting the checks ad hoc.

Reference Skill

See reference-skills/release-notes-generator/ for a canonical reference skill authored using this framework.

Use it as a model implementation of:

  • a reusable global skill
  • a shipped project.skill.template.md
  • references routed from SKILL.md
  • a deterministic script with a paired test
  • narrow self-healing

It is a specimen of the framework, not a substitute for the framework.

Red Flags — STOP

Stop and correct course if you are thinking:

  • "I’ll just put this command/path in SKILL.md"
  • "The agent can infer the local commands"
  • "This script is too small to test"
  • "I’ll add the test later"
  • "This self-healing is probably safe"
  • "The example will clarify the missing instructions"
  • "A fresh agent will figure it out"
  • "Close enough"

All of these usually mean you are about to violate one of the iron laws.

Common Rationalizations

ExcuseReality
"It’s faster to put the path in SKILL.md"That contaminates the global skill with local assumptions. Use project.skill.md.
"Agents can infer the local commands"Guessing local commands is exactly what project-local context is for.
"This script is simple, it doesn’t need a test"If it is worth shipping, it is usually worth validating.
"Self-healing can just fix a bunch of stuff"Broad auto-fixes are risk, not resilience.
"The worked example will show the pattern"The skill itself must be usable without depending on an example.
"The structure looks right, so the skill is done"Organization alone does not prove fresh-agent usability.

Completion Gate

Before claiming a skill is complete, verify all of these:

  • the description says when to use the skill
  • the global skill contains no project-specific commands, paths, or constraints
  • SKILL.md routes the agent to project.skill.md early when local context matters
  • references are clearly named and linked from SKILL.md
  • shipped scripts are justified and paired with tests, or explicitly exempted with a reason
  • self-healing is narrow and safe
  • a fresh agent could use the skill without guessing critical facts

Bottom Line

A better skill is not just more elaborate.

A better skill:

  • stays reusable at the global level
  • pushes local facts into project.skill.md
  • routes the agent clearly through references and scripts
  • validates what it ships
  • resists rationalization
  • is complete only when a fresh agent could use it without guessing

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

91.83%
按下载量换算2,247

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills