スキル一覧に戻る
xingxerx

license-header-adder

by xingxerx

0🍴 0📅 2026年1月21日
GitHubで見るManusで実行

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":

  1. Identify License: Check LICENSE file or package.json/Cargo.toml to determine the project's license (e.g., MIT, Apache 2.0).
  2. Scan Files: Look for source files (e.g., .rs, .py, .js, .ts, .c, .cpp, .go) that correspond to the project's main languages.
  3. Check Headers: Read the first few lines of each file to see if a license header exists.
  4. 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.

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

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

レビュー

💬

レビュー機能は近日公開予定です