Skip to main content

adding-copyright-headers

Adds copyright headers to files based on file type. Use when creating new files or when asked to verify copyright headers.

소스 정보

저장소
flutter/devtools
최근 소스 활동
2026년 4월 17일 22:05
감지된 SKILL.md 언어
영어
스타
1,736
포크
417

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
adding-copyright-headers
description
Adds copyright headers to files based on file type. Use when creating new files or when asked to verify copyright headers.
# Adding Copyright Headers ## Formats ### Dart Files (`.dart`) ```dart // Copyright 20?? The Flutter Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd. ``` ### YAML Files (`.yaml`) ```yaml # Copyright 20?? The Flutter Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd. ``` ### HTML Files (`.html`) and Markdown Files (`.md`) ```html <!-- Copyright 20?? The Flutter Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd. --> ``` ### Shell Scripts (`.sh`) ```bash # Copyright 20?? The Flutter Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd. ``` ## Instructions 1. **New Files**: When creating a new file, you MUST add the appropriate copyright header based on its file extension. - Replace `20??` with the current year (e.g., 2026). 2. **Placement**: - The copyright header should be at the very top of the file by default. - **Exception**: If the file requires a shebang (e.g., `#!/bin/bash` in `.sh` files) or other necessary frontmatter, the copyright header must come **after** the frontmatter, separated by a blank line. 3. **Exclusions**: Copyright headers are **not necessary** in directories that begin with a dot (`.`), such as: - `.agents/` - `.gemini/` - `.github/` 4. **Existing Files**: When editing an existing file, do NOT modify the year in the copyright header. Leave it as it is. 5. **Subsequent Edits**: Subsequent edits should not modify the year. ## Examples (for 2026) ### Shell Script with Shebang ```bash #!/bin/bash # Copyright 2026 The Flutter Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd. ``` ### Dart File ```dart // Copyright 2026 The Flutter Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd. ```
GitHub에서 보기