Check License
| This documentation was generated with the assistance of AI. Please report any inaccuracies. |
Verify that source and test files in this repository carry a license header consistent with the repository’s license, and add one to any file that’s missing it or has it wrong. This skill only adds/fixes header comments — it never changes code logic, signatures, formatting, or existing non-header comments.
Purpose
iru-check-license closes the gap between a repository’s declared license and what its individual files actually
say at the top. It never assumes a fixed license or a fixed header format: it reads the repository’s own
LICENSE-family file (and any license identifier declared in pom.xml/package.json/etc.) to know which
license applies, then learns the exact header wording and comment-syntax convention from files that already
carry one — falling back to drafting a standard header, shown to the user for explicit accept/reject, only when
no file in the repository has one yet. It makes no assumption about language or project layout, discovering the
real source/test roots and file extensions present each run.
Inputs
| Argument | Required | Description | Default |
|---|---|---|---|
|
No |
Scopes the check to specific files or directories instead of the whole repository. |
None — defaults to every source and test file in the repository’s discovered source roots, skipping generated/vendored directories and non-code files. |
Outputs
-
A per-file status recorded before any edit: missing header, wrong/stale header, or already compliant.
-
License headers inserted (via Edit, or Write only for brand-new files) into every file found missing one, and corrected in every file whose header diverges in substance from the learned/accepted template — with the rest of each file, including any code-level Javadoc/docstring, left untouched.
-
A final report stating which license was identified, where the header template came from (learned from an existing file, with an example path, or drafted fresh and accepted by the user, noting how many revision rounds it took), a grouped list of compliant vs. fixed files, any header-format inconsistency spotted across existing files, and any file skipped as ambiguous.
-
If no license file/identifier exists anywhere in the repository, or the user chose to skip header generation with no pre-existing header to learn from: no files are checked or modified, and the report says so plainly.
Execution flow
Dependencies
Invoked by
-
Java Code One Task Group — Step 3, once per task group’s bucket, run via a
iru-gate-runnersub-agent scoped to every file the bucket touched, to add or fix license headers on the code it just changed. -
.NET Code One Task Group — the same role, for tasks in the .NET/C# language/framework key.
-
Code One Task Group — for tasks whose language/framework has no matching
<key>-code-one-task-groupskill installed, as part of its best-effort direct implementation path.
Related agents
-
iru-gate-runner— see the note in Java Code One Task Group, .NET Code One Task Group, and Agents about the sub-agent wrapper each caller uses to invoke it.
Source
SKILL.md on GitHub — the file this page was generated from.