Output
Add the project's canonical SPDX license header to source files that are missing one. Use when asked to add a license header to a file or directory, e.g. "add the license header to src/foo.ts" or "make sure every file in src/ has our license header."From its SKILL.md
npx -y skills add sociotechnica-org/skillmaker-studio --skill outputAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 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.
SKILL.md
1.3 KB, as published. Nobody here has run it
Follow this procedure exactly.
-
Identify targets. From the user's request, determine the file(s) to process -- either a single path or every source file under a given directory.
-
Check each file for an existing header. Read the first 20 lines and look for the string
SPDX-License-Identifier. -
Skip files that already have a header. If
SPDX-License-Identifierappears in the first 20 lines, do NOT touch that file. Never add a second header to a file that already has one. -
Insert the header at the very top of the file. For files missing a header, insert these exact two lines as the first two lines of the file, above ALL existing content (including shebangs, comments, or blank lines):
// SPDX-License-Identifier: Apache-2.0 // Copyright (c) 2026 Acme CorpThe header MUST be the very first thing in the file. Never insert it after existing content.
-
Report results. List which files were changed and which were skipped (already had a header).