Token导航 LogoToken导航

Agent Skill · 研究检索

writing-skills(写作技巧)

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

writing-skills 是研究检索类 Agent Skill,可用宿主为 Local Agent,通过unknown获取,权限为只读;许可证信息还不明确,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 43,364。

总安装 989周安装 40下载 310核验 2026-05-01
研究检索只读unknown未标认证来源可访问许可证需确认审计未展示Local Agent

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助文档与 Markdown 内容的整理与改写,提升内容结构化水平。适合提炼章节结构、统一术语或检查链接有效性。使用时应保留项目已有事实和路径,避免虚构未确认信息。涉及对外文案时需控制语气,防止过度营销或夸大能力。安装前建议确认是否会修改或覆盖现有文件。

writing-skills 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:writing-skills

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Local Agent;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    没有现成安装命令,按unknown的说明从来源页面获取,仓库路径是 writing-skills。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

writing-skills 怎么安装?

公开资料没有给出可以直接复制的命令,需要按来源页面说明手动安装,仓库内路径为 writing-skills。

writing-skills 支持哪些 AI 工具?

公开资料标注支持 Local Agent。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

writing-skills 需要什么权限?

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

writing-skills 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

writing-skills 用的人多吗?

公开数据是累计安装 989 次,近一周安装 40 次,下载 310 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

writing-skills 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 Local Agent 一种宿主,触发方式和使用习惯不用来回切换。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Local Agent,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
writing-skills

写作技巧 · 本页

989—只读未明确未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Writing Claude Code Skills for HASH

Purpose

Comprehensive guide for creating and managing skills in Claude Code with auto-activation system, following Anthropic's official best practices including the 500-line rule and progressive disclosure pattern.

When to Use This Skill

Automatically activates when you mention:

  • Creating or adding skills
  • Modifying skill triggers or rules
  • Understanding how skill activation works
  • Debugging skill activation issues
  • Working with skill-rules.json
  • Hook system mechanics
  • Claude Code best practices
  • Progressive disclosure
  • YAML frontmatter
  • 500-line rule

System Overview

Current Implementation

UserPromptSubmit Hook (Proactive Suggestions)

  • File: .claude/hooks/skill-activation-prompt.ts
  • Trigger: BEFORE Claude sees user's prompt
  • Purpose: Suggest relevant skills based on keywords + intent patterns
  • Method: Injects formatted reminder as context (stdout → Claude's input)
  • Use Cases: Topic-based skills, implicit work detection
  • Debug: Run with SKILL_DEBUG=true to see matching logic
  • Validation: Run with --validate flag to check configuration

Configuration File

Location: .claude/skills/skill-rules.json

Defines:

  • All skills and their trigger conditions
  • Enforcement levels (currently only "suggest" is implemented)
  • Keyword triggers (exact substring matching)
  • Intent pattern triggers (regex matching)

Skill Types

Domain Skills (Currently Implemented)

Purpose: Provide comprehensive guidance for specific areas

Characteristics:

  • Type: "domain"
  • Enforcement: "suggest" (advisory, non-blocking)
  • Priority: "high" or "medium"
  • Activated by keyword or intent pattern matching
  • Topic or domain-specific
  • Comprehensive documentation with progressive disclosure

Examples in HASH:

  • rust-error-stack - Error handling with error-stack crate
  • cargo-dependencies - Cargo.toml dependency management patterns
  • rust-documentation - Rust doc comment best practices
  • writing-skills - This skill! Meta-guidance for creating skills

When to Use:

  • Complex systems requiring deep knowledge
  • Best practices documentation
  • Architectural patterns
  • How-to guides

Future: Guardrail Skills (Not Yet Implemented)

Guardrail skills with blocking enforcement ("block") are designed but not yet implemented. These would enforce critical patterns and prevent common mistakes.


Quick Start: Creating a New Skill

Step 1: Create Skill File

Location: .claude/skills/{skill-name}/SKILL.md

Template:

---
name: my-new-skill
description: Brief description including keywords that trigger this skill. Mention topics, file types, and use cases. Be explicit about trigger terms.
---

# My New Skill

## Purpose
What this skill helps with

## When to Use
Specific scenarios and conditions

## Key Information
The actual guidance, documentation, patterns, examples

Best Practices:

  • ✅ Name: Lowercase, hyphens, gerund form (verb + -ing) preferred
  • ✅ Description: Include ALL trigger keywords/phrases (max 1024 chars)
  • ✅ Content: Under 500 lines - use reference files for details
  • ✅ Examples: Real code examples
  • ✅ Structure: Clear headings, lists, code blocks

Step 2: Add to skill-rules.json

See SKILL_RULES_REFERENCE.md for complete schema.

Basic Template:

{
  "my-new-skill": {
    "type": "domain",
    "enforcement": "suggest",
    "priority": "medium",
    "promptTriggers": {
      "keywords": ["keyword1", "keyword2"],
      "intentPatterns": ["(create|add).*?something"]
    }
  }
}

Step 3: Test and Validate

Test with specific prompt:

echo '{"session_id":"test","prompt":"your test prompt","cwd":".","permission_mode":"auto","transcript_path":""}' | \
  yarn workspace @local/claude-hooks run:skill

Validate configuration:

yarn lint:skill

Debug matching logic:

echo '{"session_id":"test","prompt":"your test prompt","cwd":".","permission_mode":"auto","transcript_path":""}' | \
  yarn workspace @local/claude-hooks dev:skill

Step 4: Refine Patterns

Based on testing:

  • Add missing keywords that should trigger the skill
  • Refine intent patterns to reduce false positives
  • Use word boundaries in regex: \\b(keyword)\\b instead of just keyword

Step 5: Follow Anthropic Best Practices

✅ Keep SKILL.md under 500 lines ✅ Use progressive disclosure with reference files ✅ Add table of contents to reference files > 100 lines ✅ Write detailed description with trigger keywords ✅ Test with 3+ real scenarios before documenting ✅ Iterate based on actual usage


Current Implementation Details

Enforcement

Currently only SUGGEST enforcement is implemented:

  • Suggestion injected before Claude sees prompt via UserPromptSubmit hook
  • Claude becomes aware of relevant skills
  • Not enforced or blocking - purely advisory
  • All existing skills use this pattern

Future: Blocking enforcement ("block") and warning enforcement ("warn") are designed in the schema but not yet implemented.

Debugging and Validation

Yarn Commands:

  • yarn lint:skill - Validate configuration
  • yarn workspace @local/claude-hooks run:skill - Run skill activation with test prompt
  • yarn workspace @local/claude-hooks dev:skill - Run with debug output enabled

Environment Variables:

  • SKILL_DEBUG=true - Show detailed matching logic to stderr (automatically set by yarn dev:skill)
  • CLAUDE_PROJECT_DIR - Override project directory (auto-detected if not set)

Validation shows:

  • Project directory
  • Rules file location
  • Configured skills with trigger counts
  • Verification that SKILL.md files exist

Testing Checklist

When creating a new skill, verify:

  • Skill file created in .claude/skills/{name}/SKILL.md
  • Proper frontmatter with name and description
  • Entry added to skill-rules.json
  • Keywords tested with real prompts
  • Intent patterns tested with variations
  • Priority level matches importance
  • No false positives in testing (use yarn workspace @local/claude-hooks dev:skill)
  • No false negatives in testing
  • JSON syntax validated: jq..claude/skills/skill-rules.json
  • Validation passes: yarn lint:skill
  • SKILL.md under 500 lines ⭐
  • Reference files created if needed
  • Table of contents added to files > 100 lines

Reference Files

For detailed information on specific topics, see:

trigger-types.md

Complete guide to trigger types (currently implemented):

  • Keyword triggers (explicit topic matching)
  • Intent patterns (implicit action detection)
  • Best practices and examples for each
  • Common pitfalls and testing strategies

Note: File path and content pattern triggers are documented but not yet used by the hook.

skill-rules-reference.md

Complete skill-rules.json schema:

  • Full TypeScript interface definitions
  • Field-by-field explanations
  • Complete guardrail skill example
  • Complete domain skill example
  • Validation guide and common errors

hook-mechanisms.md

Deep dive into hook internals:

  • UserPromptSubmit flow (detailed)
  • Hook architecture and implementation
  • Exit code behavior
  • Performance considerations

Note: PreToolUse hooks and session state management are documented but not yet implemented.

troubleshooting.md

Comprehensive debugging guide:

  • Skill not triggering (use SKILL_DEBUG=true)
  • False positives (too many triggers)
  • Hook not executing at all
  • Configuration validation
  • Performance issues

patterns-library.md

Ready-to-use pattern collection:

  • Intent pattern library (regex)
  • Keyword pattern examples
  • Organized by use case
  • Copy-paste ready

future-enhancements.md

Ideas for expanding the skill system:

  • File-based triggers and guardrail enforcement
  • Session tracking and analytics
  • Advanced matching (fuzzy, multi-language)
  • Developer experience improvements
  • Priority recommendations

Quick Reference Summary

Create New Skill (5 Steps)

  1. Create .claude/skills/{name}/SKILL.md with frontmatter
  2. Add entry to .claude/skills/skill-rules.json
  3. Test with yarn lint:skill and yarn workspace @local/claude-hooks dev:skill
  4. Refine patterns based on testing
  5. Keep SKILL.md under 500 lines

Trigger Types (Currently Implemented)

  • Keywords: Explicit topic mentions (substring matching)
  • Intent: Implicit action detection (regex patterns)

See trigger-types.md for complete details.

Enforcement (Current)

  • SUGGEST: Inject context before prompt - only implemented enforcement level
  • BLOCK/WARN: Designed but not yet implemented

Debugging

  • yarn workspace @local/claude-hooks dev:skill - Show detailed matching logic
  • yarn lint:skill - Validate configuration
  • Check .claude/hooks/skill-activation-prompt.ts for implementation

Anthropic Best Practices

✅ 500-line rule: Keep SKILL.md under 500 lines ✅ Progressive disclosure: Use reference files for details ✅ Table of contents: Add to reference files > 100 lines ✅ One level deep: Don't nest references deeply ✅ Rich descriptions: Include all trigger keywords (max 1024 chars) ✅ Test first: Build 3+ evaluations before extensive documentation ✅ Gerund naming: Prefer verb + -ing (e.g., "processing-pdfs")

Troubleshoot

Test hooks manually:

# Test with prompt
echo '{"session_id":"test","prompt":"test","cwd":".","permission_mode":"auto","transcript_path":""}' | \
  yarn workspace @local/claude-hooks run:skill

# Validate configuration
yarn lint:skill

# Debug matching
echo '{"session_id":"test","prompt":"test","cwd":".","permission_mode":"auto","transcript_path":""}' | \
  yarn workspace @local/claude-hooks dev:skill

See troubleshooting.md for complete debugging guide.


Related Files

Configuration:

  • .claude/skills/skill-rules.json - Master configuration
  • .claude/hooks/state/ - Session tracking
  • .claude/settings.json - Hook registration

Hooks:

  • .claude/hooks/skill-activation-prompt.ts - UserPromptSubmit
  • .claude/hooks/error-handling-reminder.ts - Stop event (gentle reminders)

All Skills:

  • .claude/skills/*/SKILL.md - Skill content files

Skill Status: COMPLETE - Restructured following Anthropic best practices ✅ Line Count: < 500 (following 500-line rule) ✅ Progressive Disclosure: Reference files for detailed information ✅

Next: Create more skills, refine patterns based on usage

平台分布

Local Agent

76.32%
按下载量换算237

安全审计

暂无安全审计结果可展示。

权限和风险

只读

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

安装前确认

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

继续浏览同类 Skills