Skip to content
Back to skills

Hpe Copyright

ASecurity

Check, add, or fix HPE copyright headers in source files. Use this skill when (1) Adding copyright headers to new files, (2) Checking if files have valid copyright headers, (3) Updating outdated copyright years, (4) Preparing code for CI that enforces copyright headers, (5) User mentions "copyright", "HPE header", or "copyright check". Format is "Copyright YYYY-YYYY Hewlett Packard Enterprise Development LP" as a comment on the first line.

  • 666 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 9, 2026
developmentjavascripttypescriptpythongojavaswiftbashsqlvuegit

Security analysis

A100/100

Scanned February 10, 2026

npx -y skills add majiayu000/claude-skill-registry --skill hpe-copyright --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hpe Copyright?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Hpe Copyright
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-hpe-copyright/badge)](https://www.skillsdirectory.com/skills/majiayu000-hpe-copyright)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: hpe-copyright
description: >
  Check, add, or fix HPE copyright headers in source files. Use this skill when
  (1) Adding copyright headers to new files, (2) Checking if files have valid
  copyright headers, (3) Updating outdated copyright years, (4) Preparing code
  for CI that enforces copyright headers, (5) User mentions "copyright", "HPE
  header", or "copyright check". Format is "Copyright YYYY-YYYY Hewlett Packard
  Enterprise Development LP" as a comment on the first line.
---

# 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 | `# Copyright 2024-2025 Hewlett Packard Enterprise Development LP` |
| JavaScript/TypeScript | `// Copyright 2024-2025 Hewlett Packard Enterprise Development LP` |
| Go | `// Copyright 2024-2025 Hewlett Packard Enterprise Development LP` |
| SQL | `-- Copyright 2024-2025 Hewlett Packard Enterprise Development LP` |
| HTML/XML | `<!-- Copyright 2024-2025 Hewlett Packard Enterprise Development LP -->` |
| CSS | `/* Copyright 2024-2025 Hewlett Packard Enterprise Development LP */` |

## Quick Reference

### Check all files (dry run)

```bash
python scripts/copyright_check.py /path/to/repo --dry-run
```

### Fix all files

```bash
python scripts/copyright_check.py /path/to/repo
```

### CI check mode (fails if issues found)

```bash
python scripts/copyright_check.py /path/to/repo --check-only
```

## Rules

1. **Missing header**: Add `Copyright CURRENT_YEAR-CURRENT_YEAR Hewlett Packard Enterprise Development LP`
2. **Outdated year**: Update only the second year to current year (e.g., `2024-2024` → `2024-2025`)
3. **Exclusions**: Respects both `.gitignore` and `.copyrightignore` files (gitignore-style patterns)

## Manual Fixes

When manually adding or fixing a copyright header:

1. Determine the correct comment syntax for the file type
2. Add as the **very first line** of the file
3. Use current year for both years if creating new: `Copyright 2025-2025 Hewlett Packard Enterprise Development LP`
4. 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
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.