license-header-adder

Prepends the standard license header from resources/HEADER.txt to newly created source files.

13|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/phenobarbital/antigravity-config --skill license-header-adder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: license-header-adder
Source: https://github.com/phenobarbital/antigravity-config/tree/main/backend/.agent/skills/license-header-adder
Command: npx skills add https://github.com/phenobarbital/antigravity-config --skill license-header-adder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the enforcement of standard open-source license headers on all new source files, ensuring consistent attribution and compliance across projects.

Core Features & Use Cases

  • Header templating: Reads the header template from resources/HEADER.txt and prepends it to new code files.
  • Language-aware formatting: Adapts comment syntax for C-style languages, Python, Shell, YAML, and HTML/XML as needed.
  • Non-destructive operation: Prepends headers without modifying existing content beyond insertion.

Quick Start

Run the license-header-adder when creating a new source file to automatically apply the header from resources/HEADER.txt.

Frequently Asked Questions about license-header-adder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically add license headers to new source files?

To automatically add license headers to new source files, you can use a tool that prepends a standard template from a designated file (like resources/HEADER.txt) during file creation. This ensures consistent copyright attribution without manual copy-pasting.

What is the best way to enforce open-source copyright headers across a codebase?

The best way to enforce open-source copyright headers across a codebase is to automate the insertion process. By using a template-based header adder, you ensure every new file receives the correct license text, maintaining compliance and saving development time.

Does the license header adder support different comment syntaxes for Python, Shell, and C-style languages?

Yes, the license header adder supports language-aware formatting. It automatically adapts the comment syntax for C-style languages, Python, Shell, YAML, and HTML/XML files, ensuring the header is correctly commented out in each specific format.

Can I prepend copyright headers without modifying existing code content?

Yes, you can prepend copyright headers without modifying existing code content. The process is non-destructive, meaning it only inserts the template at the top of the file and leaves the rest of your source code untouched.

What happens if the header template file is missing when creating a new file?

If the header template file is missing, the tool validates the template's availability and will not proceed with applying the header. This prevents malformed or empty headers from being inserted into your newly created source files.

When do I need to use a standard license header template in my projects?

You need to use a standard license header template when you want to enforce consistent attribution and open-source compliance across all new source files. This is essential for projects that require strict copyright management and licensing standards.