License header adder

From phenobarbital/navigator · View interactive version

License header adder is an AI agent skill from the GitHub repository phenobarbital/navigator. Adds the standard open-source license header to new source files. Use involves creating new code files that require copyright attribution.

How to use this skill

Skill file

License Header Adder Skill

This skill ensures that all new source files have the correct copyright header.

Instructions

  1. Read the Template:

First, read the content of the header template file located at resources/HEADER.txt.

```python

# Pseudocode for agent understanding

template_content = view_file("resources/HEADER.txt")

```

  1. Prepend to File:

When creating a new file (e.g., .py, .java, .js, .ts, .go), prepend the target_file content with the template content.

  1. Modify Comment Syntax:

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")
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.