About license-header-adder
license-header-adder is a skill for adding a project’s copyright header to newly created source files. It reads a template and adapts its comment syntax to the file type.
Key features
- 01Reads resources/HEADER_TEMPLATE.txt
- 02Prepends the header to new files
- 03Adapts comments to supported file types
Use cases
- 01Add a copyright header to a new Python file
- 02Apply the template to JavaScript or Go source
- 03Format a header for YAML or HTML files
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ rominirani/ antigravity-skills --skill license-header-adderAfter installing, type/license-header-adderin Claude Code to confirm it loaded.
Bundled filesresources/HEADER_TEMPLATE.txt
Details
From the project READMELicense Header Adder Skill
This skill ensures that all new source files have the correct copyright header.
Instructions
-
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") -
Prepend to File: When creating a new file (e.g.,
.py,.java,.js,.ts,.go), prepend thetarget_filecontent with the template content. -
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
<!-- ... -->.
- For C-style languages (Java, JS, TS, C++), keep the
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")