All skills
rominirani avatar

/license-header-adder

@ffaedb3

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

This session only. Nothing lands on disk.

SKILL.md

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

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

1 warning14d4 checks · Risk SAFE
  • Gen Agent Trust Hub14d

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

  • Socket14d

    No alerts

  • Snyk14d

    Risk: LOW · No issues

  • Runlayer7mo

    1/2 files flagged

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

Last checked against GitHub 2 months ago.

Steadyupdated 4 months ago

README badge

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