Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

writing-skills写作技巧

Agent Skill

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

总安装

682

周安装

29

GitHub Stars

1

下载量

239
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/pixel-process-ug/superkit-agents --skill writing-skills

简介

writing-skills 用于辅助文档、README 和内容稿件的整理与改写,适合提炼结构和统一术语。

  • 适用于写作技巧相关的辅助工作,可检查链接和补齐章节。
  • 使用时应保留项目已有事实和路径,不要写成确定结论。
  • 涉及对外文案时需要控制语气,避免过度营销或夸大能力。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Writing Skills

Overview

Create effective, well-tested Claude Code skills that trigger reliably, load efficiently, and produce consistent results. This skill enforces a TDD approach to skill creation — define test prompts first, write the minimal skill, then harden against misfire and rationalization.

This is a RIGID skill. Every step must be followed exactly. No shortcuts.

Phase 1: Define Test Prompts (RED)

[HARD-GATE] Before writing any skill content, define the prompts that should trigger it.

Write 3-5 test prompts:

#Test TypePurposeExample
1Obvious triggerShould clearly match"Create a new React component with tests"
2Subtle triggerShould also match"I need a reusable button"
3Near-missShould NOT match"Review this component code"
4Edge caseDefine expected behavior"Create a component and write its docs"
5AmbiguousDefine which skill wins"Set up the frontend"

Document expected behavior for each:

Test prompt: "Create a new React component with tests"
Expected: Should trigger component-creation skill
Should NOT trigger: testing-strategy, code-review, writing-skills

STOP — Do NOT proceed to Phase 2 until all test prompts are documented.

Phase 2: Write Minimal SKILL.md (GREEN)

Create the minimum skill definition that passes all test prompts from Phase 1.

Required Structure

Every SKILL.md MUST contain ALL of these elements:

ElementRequiredPurpose
Frontmatter (name, description)YesIdentification and trigger matching
CSO-optimized descriptionYesStarts with "Use when...", lists trigger conditions
Overview (2-3 sentences)YesPurpose and value
Multi-phase process with STOP markersYesNumbered phases with clear actions
Decision tablesYesTables for choosing between approaches
Anti-patterns / Common mistakes tableYes"What NOT to do" section
Anti-rationalization guardsYesHARD-GATE or "Do NOT skip" markers
Integration points tableYesHow skill connects to other skills
Concrete examplesYesCode/command examples where non-obvious
Skill type declarationYesRIGID or FLEXIBLE at the end

Frontmatter Rules

---
name: skill-name          # lowercase with hyphens, unique identifier
description: "Use when [trigger conditions]"  # Max 1024 chars
---

[HARD-GATE] The description field MUST start with "Use when".

CSO (Claude Search Optimization) Rules

The description field determines when a skill is selected. Optimize it like a search query.

RuleExplanation
Start with "Use when..."Trigger condition format
List specific conditions, not capabilitiesWhat activates the skill, not what it teaches
Maximum 1024 charactersBe concise
Use action verbs"creating", "debugging", "designing", "reviewing"

Good:

description: "Use when creating database migrations, designing table schemas, adding indexes, or optimizing SQL queries"

Bad:

description: "A comprehensive guide to database design covering normalization, indexing, query optimization, and migration strategies"

Trigger Condition Patterns

PatternFormatExample
Action-based"Use when creating..., updating..., deleting..."CRUD operations
Problem-based"Use when debugging..., fixing..., resolving..."Bug fixes
Artifact-based"Use when working with Docker files, CI configs..."File types
Phase-based"Use when starting a project, finishing a feature..."Workflow stage

STOP — Verify the description would match test prompts from Phase 1 before proceeding.

Phase 3: Harden the Skill (REFACTOR)

Review and close loopholes:

CheckQuestionFix If Failing
Over-triggeringDoes it match prompts it should NOT?Narrow the description
Under-triggeringDoes it miss valid prompts?Add missing trigger conditions
RationalizationWould an agent find a way to skip steps?Add "Do NOT skip" constraints
AmbiguityAre instructions interpretable multiple ways?Make them concrete with examples
Token bloatIs it over 500 lines?Move reference material to separate files
Missing gatesAre there checkpoints between phases?Add STOP markers

Token Efficiency Targets

Skill TypeTarget LinesStrategy
Getting-started workflows< 100 linesMinimal steps
Frequently-loaded skills< 200 linesTables over prose
Comprehensive reference skills< 400 linesSplit into phases
Maximum allowed500 linesMove extras to separate files

Token Reduction Strategies

  • Use tables instead of prose for structured information
  • Use terse imperative sentences, not explanatory paragraphs
  • Move reference material to separate files (loaded only when needed)
  • Eliminate redundancy — say it once
  • Use code examples only when the pattern is non-obvious

STOP — Re-run test prompts mentally. Does the skill trigger correctly for all 5? Does it NOT trigger for near-misses?

Phase 4: Validate and Save

  1. Verify all 10 required elements from Phase 2 are present
  2. Verify token budget is within target
  3. Verify STOP markers exist between phases
  4. Save the SKILL.md file
  5. Test by invoking the skill with each test prompt

Validation Checklist

#CheckStatus
1Frontmatter has name and description[]
2Description starts with "Use when"[]
3Overview is 2-3 sentences[]
4Phases are numbered with STOP markers[]
5Decision tables present (not prose)[]
6Anti-patterns table present[]
7Anti-rationalization guards present[]
8Integration points table present[]
9Concrete examples present[]
10Skill type declared (RIGID/FLEXIBLE)[]
11Under 500 lines total[]

Skill Types and Testing

Testing by Skill Type

Skill TypeTest MethodWhat to Verify
Technique (TDD, debugging)Apply to problem X and unusual problem YProduces right steps; adapts correctly
Pattern (design patterns)Show code X (matches) and code Y (near-miss)Identifies correctly; rejects correctly
Reference (API docs, checklists)Ask "what is the rule for X?" and "what about edge case Z?"Finds right answer; handles gaps
Discipline (security review)Review correct code, then review under time pressurePasses clean code; enforces all rules even under pressure

Anti-Patterns / Common Mistakes

MistakeWhy It Is WrongWhat To Do Instead
Description describes content, not triggersSkill never gets selectedStart with "Use when..." and list trigger conditions
Too broad — triggers on everythingUseful for nothingNarrow to specific actions and artifacts
Too long — 1000+ linesWastes context tokens every invocationStay under 500 lines; split reference material
Missing constraintsAgents rationalize skipping stepsAdd "Do NOT" rules and HARD-GATE markers
Untested against real promptsWill misfire in productionWrite test prompts BEFORE writing the skill
External file dependenciesFragile — files may not existSelf-contained or check file existence first
Prose where tables workHarder to scan, more tokensUse tables for structured comparisons
No STOP markers between phasesAgent blasts through without checkpointsAdd STOP after each phase

Anti-Rationalization Guards

  • [HARD-GATE] Do NOT write a skill without defining test prompts first (Phase 1)
  • [HARD-GATE] Do NOT omit the description field or use a non-"Use when" format
  • Do NOT skip the hardening phase — every skill needs rationalization review
  • Do NOT skip the validation checklist — all 11 items must pass
  • Do NOT create skills over 500 lines — split into skill + reference file
  • Do NOT use prose where a table would be clearer

Integration Points

SkillRelationship
self-learningSkills are discovered and loaded via the skill system
auto-improvementTracks skill effectiveness and suggests improvements
spec-writingSkills can be specified using JTBD methodology
code-reviewSkills should be reviewed for quality before deployment
testing-strategyTest prompts follow testing methodology

Concrete Example: Complete Minimal Skill

---
name: docker-setup
description: "Use when creating Dockerfiles, docker-compose configurations, or containerizing an application for development or production"
---

# Docker Setup

## Overview

Guide the creation of Docker configurations for development and production environments. Produces Dockerfiles, docker-compose files, and .dockerignore with best practices.

## Phase 1: Discovery
[Ask about: runtime, ports, volumes, env vars, multi-stage needs]
STOP — confirm requirements.

## Phase 2: Generate Configuration
[Create Dockerfile, docker-compose.yml, .dockerignore]
STOP — present for review.

## Phase 3: Verify
[Build image, run container, verify health check]

## Anti-Patterns
| Mistake | Fix |
|---------|-----|
| Running as root | Use non-root USER |
| No .dockerignore | Always create one |

## Skill Type
**Flexible**

Skill Type

Rigid — The TDD approach (test prompts first), required structure elements, and validation checklist must be followed exactly. No elements may be skipped.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.42%
按下载量换算80

Claude

31.48%
按下载量换算75

Cursor

19.71%
按下载量换算47

Gemini CLI

8.66%
按下载量换算21

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills