License header adder
Skill ComeOnOliver/skillshub/skills/rominirani/antigravity-skills/license-header-adder
🧠The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.
npx -y skills add ComeOnOliver/skillshub --skill license-header-adderAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.0 KB, as published. Nobody here has run it
License 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) 2024 Google LLC
# ... (rest of license text) ...
def main():
print("Hello World")