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

authoring-skills创作技巧

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

371

周安装

15

GitHub Stars

3

下载量

116
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/lidessen/moniro --skill authoring-skills

简介

用于辅助安全审计、权限检查和常见漏洞排查。

  • 适用于 Codex、Claude、Cursor、Gemini CLI,通过 GitHub 安装。
  • 适合梳理敏感配置和生成安全复核清单。authoring-skills 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 使用时不能将工具输出直接作为最终结论。
  • 涉及密钥或生产系统时应先确认最小权限和操作边界。

SKILL.md

Authoring Agent Skills

The Goal: Efficient Context Usage

Every skill you create will be loaded into Claude's limited context window. The fundamental challenge is:

Every unnecessary token wastes limited context space, slows processing, costs money, and reduces room for actual work.

Everything else—structure, naming, content—follows from this goal. Understanding *why* these patterns matter allows you to make good decisions in novel situations, rather than mechanically following rules.

Three Core Principles

1. Progressive Disclosure: Load Only What's Needed

The Intent: Don't force Claude to read 5000 lines when it needs 100.

Why It Matters: When a skill is triggered, SKILL.md loads entirely into context. If you put everything in one file, every query wastes tokens on irrelevant content. A finance query shouldn't load sales data. A basic usage shouldn't load advanced edge cases.

How to Apply:

  • Keep SKILL.md as a navigation hub (~500 lines)
  • Defer detailed content to reference files
  • Link directly from SKILL.md (avoid nested references that trigger partial reads)

The Trade-off: More files vs. larger context. Always choose more files.

See best-practices/progressive-disclosure.md for patterns.

2. Respect Intelligence: Assume Claude Is Smart

The Intent: Don't explain what Claude already knows.

Why It Matters: Explaining "PDF stands for Portable Document Format" wastes tokens and provides zero value. Claude understands file formats, programming concepts, standard tools, and industry patterns. Token space is precious—use it for your domain-specific knowledge, not computer science 101.

How to Apply:

  • Skip explanations of common concepts (file formats, imports, package managers)
  • Provide code and commands, not tutorials
  • Challenge each sentence: "Does Claude really need this?"

The Trade-off: Brevity vs. completeness. Trust Claude's knowledge.

See best-practices/conciseness.md for examples.

3. Enable Discovery: Make Skills Findable

The Intent: Help Claude choose the right skill from potentially 100+ options.

Why It Matters: A vague description means your skill won't trigger when needed. "Helps with documents" doesn't tell Claude when to use it. "Extract text from PDF and Word documents" with triggers like "PDF,.docx, extraction" ensures discovery.

How to Apply:

  • Write descriptions in third person (they're injected into system prompts)
  • Include specific capabilities (WHAT) and trigger scenarios (WHEN)
  • Use concrete terms: file types, technology names, activity phrases

The Trade-off: Specificity vs. flexibility. Be specific about triggers.

See best-practices/description.md for examples.

Quick Start Workflow

When creating a skill, apply these principles:

  1. Understand the goal - What problem does this solve? Who will use it?
  2. Draft metadata - Name (lowercase-with-hyphens) and description (WHAT + WHEN)
  3. Design for disclosure - What goes in SKILL.md vs. reference files?
  4. Write concisely - Assume Claude is smart. Skip the obvious.
  5. Test with sub-agent - Dry-run discovery, execution, and boundary tests (see Testing)

Essential Constraints

Some requirements exist for technical reasons:

Name Format

  • Lowercase letters, numbers, hyphens only (parsing requirement)
  • Max 64 characters (system limit)
  • No XML tags, no "anthropic" or "claude" (reserved terms)
  • Prefer gerund form: processing-pdfs, analyzing-data (consistency)

Description Format

  • Max 1024 characters (system limit)
  • Third person: "Processes files..." not "I process..." (system prompt injection)
  • Include capabilities + triggers (discovery mechanism)

Good example:

description: Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.

File Organization

  • Forward slashes in paths (cross-platform compatibility)
  • One-level references from SKILL.md (avoid partial reads)
  • Reference files >100 lines need TOC (enables preview scanning)

Common Patterns

These patterns emerge from the core principles:

  1. Template Pattern: Provide output format templates when consistency matters
  2. Workflow Pattern: Multi-step checklists for complex processes
  3. Feedback Loop: Validate → fix → repeat for quality-critical tasks
  4. Conditional Pattern: Decision branches for context-dependent logic

See patterns/ for detailed examples.

Degrees of Freedom

Match specificity to task fragility:

  • High freedom (instructions): Multiple valid approaches, Claude chooses based on context
  • Medium freedom (templates): Preferred pattern, acceptable variation
  • Low freedom (scripts): Fragile operations requiring exact execution

*Why this matters*: Over-specifying simple tasks wastes tokens. Under-specifying fragile tasks causes errors.

See best-practices/degrees-of-freedom.md.

Understanding Anti-Patterns

Rather than memorizing rules, understand *why* certain patterns fail:

  • Windows paths (\) → Parser must handle both styles, adds cognitive load
  • Nested references → Triggers partial reads, loses information
  • Time-based conditions → Becomes wrong after dates pass
  • Vague names → Poor discoverability, unclear purpose

The pattern: They all violate efficient context usage or discoverability.

See anti-patterns.md for detailed explanations.

Quality Self-Check

Before finalizing, ask yourself:

Core Principles:

  • Does this minimize context usage? (Progressive disclosure)
  • Am I explaining things Claude knows? (Respect intelligence)
  • Will Claude discover this skill correctly? (Enable discovery)

Technical Constraints:

  • Name/description follow format requirements?
  • SKILL.md under 500 lines?
  • References one level deep?
  • All paths use forward slashes?

Content Quality:

  • Consistent terminology?
  • Concrete examples over abstract descriptions?
  • No time-sensitive information?

Testing with Sub-Agent

Use Task tool to dry-run test your skill before finalizing.

1. Discovery Test

Verify the description triggers correctly:

Task tool → Explore agent:
"Given this user request: '[typical trigger phrase]',
which skill would you recommend and why?"

Pass criteria: Agent identifies your skill for the right scenarios.

2. Execution Test

Verify the skill content is actionable:

Task tool → General-purpose agent:
"Using the [skill-name] skill located at [path],
perform this task: [realistic task]"

Pass criteria: Agent follows the workflow without confusion or asking for clarification on skill instructions.

3. Boundary Test

Verify the skill doesn't over-trigger:

Task tool → Explore agent:
"Given this user request: '[edge case that should NOT trigger]',
which skill would you recommend?"

Pass criteria: Agent recommends a different skill or no skill.

Quick Test Checklist

TestPrompt ExampleExpected
Discovery"How do I [trigger phrase]?"Recommends this skill
Execution"[Realistic task]"Completes using skill workflow
Boundary"[Similar but different task]"Recommends other skill

Storage Locations

Determine location based on your environment:

  1. Check existing setup - Look for existing skill directories:

- Cursor: ~/.cursor/skills/ (personal) or .cursor/skills/ (project) - Codex/Claude: $CODEX_HOME/skills/ (personal) or project-specific location - Other tools: Check tool-specific documentation

  1. If no existing setup, use standard locations:

- Project-level: .agents/skills/ (standard Agent Skills format) - Personal: ~/.agents/skills/ or tool-specific home directory

  1. For project instructions (not skills), use AGENTS.md in project root

Important:

  • Never use ~/.cursor/skills-cursor/ (reserved for Cursor built-ins)
  • Prefer project-level storage for team collaboration

Learning Resources

Start Here:

Core Philosophy:

Practical Patterns:

Examples:

Reference:

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.06%
按下载量换算42

Claude

28.31%
按下载量换算33

Cursor

21.59%
按下载量换算25

Gemini CLI

9.91%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills