License header adder
Skill Melmonster13/antigravity-skills-project/.agents/skills/license-header-adder
Test bench for custom developer-agent skills: SQL schema validation, Conventional Commits formatting, JSON-to-Pydantic conversion, and license-header injection.
npx -y skills add Melmonster13/antigravity-skills-project --skill license-header-adderAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Adds the standard open-source license header to new source files. Use involves creating new code files that require copyright attribution.
SKILL.md
1.1 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")