Index of every page on this site: llms.txt
All skills
rominirani avatar

/license-header-adder

@731acca
Run it yourself

Adds the standard open-source license header to new source files. Use involves creating new code files that require copyright attribution.

Use this Skill: https://skilld.dev/gh/rominirani/antigravity-skills/license-header-adder

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈40 tokens for metadata: the name and description. ≈247 when used: this file.

Description uses 2.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈161 characters, or 2.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

License Header Adder Skill

This skill ensures that all new source files have the correct copyright header.

Instructions

  1. Read the Template: First, read the content of the header template file located at resources/HEADER_TEMPLATE.txt.

    # Pseudocode for agent understanding
    template_content = view_file("resources/HEADER_TEMPLATE.txt")
  2. Prepend to File: When creating a new file (e.g., .py, .java, .js, .ts, .go), prepend the target_file content with the template content.

  3. Modify Comment Syntax:

    • For C-style languages (Java, JS, TS, C++), keep the /* ... */ block as is.
    • For Python, Shell, or YAML, convert the block to use # comments.
    • For HTML/XML, use <!-- ... -->.

Example Usage

If the user asks to "create a python script for hello world", you should generate:

# Copyright (c) 2026 MyCompany LLC
# ... (rest of license text) ...

def main():
    print("Hello World")

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo4 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    No security issues detected. The skill safely manages license headers using a local template file to prepend to new source code.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer9mo

    1/2 files flagged

Signed by skilld at 731acca. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 5 months ago

README badge

README badge for rominirani/antigravity-skills/license-header-adder