Claude-skill-registry hpe-copyright
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/hpe-copyright" ~/.claude/skills/majiayu000-claude-skill-registry-hpe-copyright && rm -rf "$T"
manifest:
skills/data/hpe-copyright/SKILL.mdsource content
HPE Copyright Header Management
Ensure all source files have the required HPE copyright header to pass CI checks.
Copyright Format
Copyright {start_year}-{end_year} Hewlett Packard Enterprise Development LP
- start_year: Year the file was created
- end_year: Current year (must be updated annually)
- Placement: First line of the file, as a comment
Examples by Language
| Language | Copyright Line |
|---|---|
| Python | |
| JavaScript/TypeScript | |
| Go | |
| SQL | |
| HTML/XML | |
| CSS | |
Quick Reference
Check all files (dry run)
python scripts/copyright_check.py /path/to/repo --dry-run
Fix all files
python scripts/copyright_check.py /path/to/repo
CI check mode (fails if issues found)
python scripts/copyright_check.py /path/to/repo --check-only
Rules
- Missing header: Add
Copyright CURRENT_YEAR-CURRENT_YEAR Hewlett Packard Enterprise Development LP - Outdated year: Update only the second year to current year (e.g.,
→2024-2024
)2024-2025 - Exclusions: Respects both
and.gitignore
files (gitignore-style patterns).copyrightignore
Manual Fixes
When manually adding or fixing a copyright header:
- Determine the correct comment syntax for the file type
- Add as the very first line of the file
- Use current year for both years if creating new:
Copyright 2025-2025 Hewlett Packard Enterprise Development LP - If updating existing, only change the second year
Supported File Types
The script supports 50+ file extensions including:
- Hash (#):
,.py
,.sh
,.rb
,.pl
,.r.jl - Double-slash (//):
,.js
,.ts
,.jsx
,.tsx
,.go
,.c
,.cpp
,.java
,.kt
,.swift.rs - Dash-dash (--):
,.sql
,.lua.hs - Block comments:
,.html
,.xml
,.css.vue
Exclusion Patterns
The script automatically reads patterns from both
.gitignore and .copyrightignore in the repo root. Use .copyrightignore for additional exclusions specific to copyright checking:
# Directories vendor/** third_party/** # File types not in .gitignore *.generated.go # Specific files Makefile