Yao copyright skill

From yaojingang/yao-open-skills · View interactive version

Yao copyright skill is an AI agent skill from the GitHub repository yaojingang/yao-open-skills. Use when adding or auditing Yao copyright comment headers for an agent skill package, especially SKILL.md, README.md, references, prompts, templates, examples, scripts, YAML, or TOML files.

How to use this skill

Skill file

<!--

Copyright © 2026 姚金刚. All rights reserved.

Project: yao-copyright-skill

Created by: 姚金刚

Date: 2026-05-16

X: https://x.com/yaojingang

-->

Yao Copyright Skill

Overview

Add copyright comment headers to a specified skill package without breaking route metadata, executable shebangs, or strict data formats.

When To Use

Use this when the user asks to:

Do not use this for legal drafting, license selection, or visible website footer copy unless the user explicitly asks for that output.

Workflow

  1. Identify the target skill directory. If the user only names a skill, resolve its installed path before editing.
  2. Read references/copyright-comment-policy.md for target files, skip rules, and comment styles.
  3. Run a dry run first:
python3 scripts/add_copyright_comments.py /path/to/target-skill --dry-run
  1. Apply the core Markdown pass unless the user requested a broader scope:
python3 scripts/add_copyright_comments.py /path/to/target-skill
  1. For scripts and YAML/TOML configs, use the full scope:
python3 scripts/add_copyright_comments.py /path/to/target-skill --scope all
  1. Verify with git diff or a targeted file read. Confirm SKILL.md frontmatter still starts at line 1.

Defaults

Output Contract

Report which files changed, which files were skipped because they already had a notice, and any files deliberately left untouched because comments would be unsafe.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.