← Back to list

license-header-adder
by xingxerx
⭐ 0🍴 0📅 Jan 21, 2026
SKILL.md
name: license-header-adder description: Scans files and inserts the appropriate legal/license headers.
License Header Adder
This skill automates the process of adding license headers to source files.
Usage
When the user asks to "add license headers" or "check licenses":
- Identify License: Check
LICENSEfile orpackage.json/Cargo.tomlto determine the project's license (e.g., MIT, Apache 2.0). - Scan Files: Look for source files (e.g.,
.rs,.py,.js,.ts,.c,.cpp,.go) that correspond to the project's main languages. - Check Headers: Read the first few lines of each file to see if a license header exists.
- Add Header: If missing, prepend the appropriate comment block.
Logic
- MIT:
/* * Copyright (c) [Year] [Owner] * * Permission is hereby granted, free of charge, to any person obtaining a copy... * [Standard MIT Text] */ - Apache 2.0:
/* * Copyright [Year] [Owner] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * ... */
Configuration
- Prefer using existing comment styles for the language (e.g.,
//for Rust/JS,#for Python). - Be careful not to disrupt shebangs (
#!) or encoding declarations.
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon