一键导入
copyright
Update copyright years in changed source files according to Huawei code style
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Update copyright years in changed source files according to Huawei code style
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
PCRE2 library integration for RegExp implementation in ETS stdlib. Use when implementing regex features, adding new regex flags, optimizing pattern matching, debugging native regex code, or extending RegExp API. Covers PCRE2 C API, pattern compilation, match execution, capture groups, UTF-8/UTF-16 handling, and native-ETS boundary.
Comprehensive RegExp implementation covering both ETS managed API and native C++ bindings. Use when implementing, debugging, or extending RegExp functionality. Covers the full stack from ETS stdlib API through ANI bindings to PCRE2 backend.
Run ets_func_tests using the Universal Runner (urunner) tool. Use when executing stdlib tests, running test suites, or testing ETS functionality. Handles running tests with runner.sh from ../../../tests/tests-u-runner-2/, selecting workflows and test suites, configuring test options, and running specific tests or full test suites.
Work with Ark static_core AOT PGO flows using `.ap` profiles, runtime saver flags, `ark_aptool dump`, and `ark_aot --paoc-use-profile:path=...`. Use when collecting profile data, validating saved profiles, reusing them in AOT compilation, or debugging class-context mismatch and current AOT PGO limitations.
Reproduce Ark static_core failures through checked tests or URunner v1/v2. Use when narrowing CI regressions, capturing exact `checker.rb`, `ark`, or `ark_aot` commands, authoring `RUN` or `RUN_PAOC` style repros, or deciding whether a bug belongs in checked, URunner, or raw tool-level reproduction.
Triage Ark static_core compiler issues with IR dumps, disassembly, `ark_aot --paoc-mode=jit|osr|aot|llvm`, `ark_aotdump`, compiler logs, and method narrowing through `--compiler-regex`. Use when comparing pass-local behavior, verifying code generation, or deciding whether a failure is compiler-local or belongs to the runtime boundary.
| name | copyright |
| description | Update copyright years in changed source files according to Huawei code style |
Updates copyright year headers in changed files only to comply with Huawei Device Co., Ltd. code style requirements.
/copyright
Automatically detects changed files via git and updates copyright years appropriately.
Analyzes git-changed files and updates copyright years based on file status:
New Files (added in git): Single year (current year)
Copyright (c) 2026 Huawei Device Co., Ltd.
Modified Files (existing files): Extend year range to include current year
Before: Copyright (c) 2024-2025 Huawei Device Co., Ltd.
After: Copyright (c) 2024-2026 Huawei Device Co., Ltd.
| File Type | Comment Prefix | Example |
|---|---|---|
Shell scripts (*.sh) | # | # Copyright (c) 2026 Huawei Device Co., Ltd. |
Python (*.py) | # | # Copyright (c) 2026 Huawei Device Co., Ltd. |
TypeScript/JavaScript (*.ts, *.tsx, *.js, *.jsx) | * | * Copyright (c) 2024-2026 Huawei Device Co., Ltd. |
ArkTS (*.ets) | * | * Copyright (c) 2024-2026 Huawei Device Co., Ltd. |
SCSS (*.scss, *.sass) | * | * Copyright (c) 2026 Huawei Device Co., Ltd. |
| Dockerfile | # | # Copyright (c) 2024-2026 Huawei Device Co., Ltd. |
| YAML/TOML | # | # Copyright (c) 2026 Huawei Device Co., Ltd. |
| Markdown | # | # Copyright (c) 2026 Huawei Device Co., Ltd. |
git diff --name-only to find modified/new filesThe full copyright header for Huawei Device Co., Ltd.:
Copyright (c) [YEAR] Huawei Device Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note: This skill only manages the year line. The full license header should be included in all source files.
Update copyright on staged files before committing:
# Stage your changes first
git add .
# Run copyright on changed files
/copyright
# Review and commit
git diff # Review copyright changes
git commit
Keep copyright current as you develop:
# After making changes
/copyright
# See what was updated
git status
Apply copyright updates to recent commits:
# Show files changed in lastest commit
git diff --name-only HEAD~1 HEAD
# Apply copyright to those files
/copyright HEAD~1
# Created: frontend/src/components/NewFeature.tsx
# Before: No copyright header
# After:
/*
* Copyright (c) 2026 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
# Modified: backend/src/api/endpoints.py
# Before: # Copyright (c) 2024-2025 Huawei Device Co., Ltd.
# After: # Copyright (c) 2024-2026 Huawei Device Co., Ltd.
# Modified: frontend/utils/helpers.ts
# Before: * Copyright (c) 2024 Huawei Device Co., Ltd.
# After: * Copyright (c) 2024-2026 Huawei Device Co., Ltd.
/copyright before every commit to keep years currentgit diff after copyright updates| Scenario | Current Copyright | Updated Copyright |
|---|---|---|
| New file (no copyright) | - | 2026 |
| Existing file | 2024 | 2024-2026 |
| Existing file | 2024-2025 | 2024-2026 |
| Already current | 2024-2026 | 2024-2026 (no change) |
git diff to detect changed files automatically/add-endpoint - Add new endpoints (files created need copyright)/docker - Docker files may need copyright updates/shellcheck - Validate shell scripts after copyright updatesNo files updated:
git status)Some files not updated:
Incorrect comment style:
New file got year range instead of single year:
File status confusion:
git diff --name-only to see what files will be processedThis skill would need to:
git diff --name-only to detect changed files