license-header-adder

Prepends Apache 2.0 license headers to new source files with language-appropriate comment syntax.

1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/tottenjordan/me-skittles --skill license-header-adder-tottenjordan
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: license-header-adder
Source: https://github.com/tottenjordan/me-skittles/tree/main/gemini/license-header-adder
Command: npx skills add https://github.com/tottenjordan/me-skittles --skill license-header-adder-tottenjordan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? New source files often ship without the required copyright and license attribution, creating legal and compliance gaps that must be fixed retroactively across a codebase. ## Core Features & Use Cases - Template-Based Headers: Reads a standard Apache 2.0 header template from a resource file and prepends it to newly created source files. - Language-Aware Comment Syntax: Adapts the header format per language, using block comments for C-style languages (Java, JS, TS, C++), hash comments for Python, Shell, and YAML, and XML comments for HTML. - Use Case: When asked to create a new Python script, the agent automatically prepends the copyright header before the code, ensuring every generated file carries proper attribution from the start. ## Quick Start Create a new Python script for hello world with the standard license header included.

Frequently Asked Questions about license-header-adder

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

FAQPage Schema
How do I add a license header to new source files automatically?▼

Read the header template from the resources file and prepend it to each new file when it is created. The header content is inserted before any code so attribution is present from the first commit.

How to format license headers for different programming languages?▼

Use block comments (/* ... */) for C-style languages like Java, JavaScript, TypeScript, and C++. Convert the header to hash (#) comments for Python, Shell, and YAML, and use <!-- ... --> for HTML and XML files.

Which license does the header template use?▼

The included template applies the Apache License, Version 2.0, with a copyright line for the owning company. The template text can be edited in the resources file to change the copyright holder or year.

Does this add headers to existing files or only new ones?▼

The skill is designed for newly created files, prepending the header at file creation time. Applying headers retroactively to existing files would require a separate batch process not covered by these instructions.