一键导入
fix-license-headers
Normalize Xerxes Apache-2.0 headers with the native Bun maintenance command and verify TypeScript sources.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Normalize Xerxes Apache-2.0 headers with the native Bun maintenance command and verify TypeScript sources.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add a Bun-native YAML agent definition with inheritance, tool policy, and subagent references.
Add a Bun-native messaging channel adapter with lifecycle, webhook, and configuration coverage.
Add a Bun-native LLM provider entry with routing, pricing, headers, limits, and Bun tests.
Add a Bun-native TypeScript tool with schema, registry wiring, policy boundaries, and Bun tests.
Author a Bun-native Xerxes SKILL.md bundle with valid metadata, safe assets, and discovery tests.
Manage Apple Notes via the memo CLI on macOS (create, view, search, edit).
| name | fix-license-headers |
| description | Normalize Xerxes Apache-2.0 headers with the native Bun maintenance command and verify TypeScript sources. |
| version | 2.0.0 |
| tags | ["license","headers","hygiene","typescript","bun","xerxes"] |
| required_tools | ["exec_command","ReadFile"] |
Use this skill when a source, shell, YAML, or Docker file needs the repository Apache-2.0 copyright header, or when a review reports a malformed header.
The maintenance entry point is TypeScript and runs with Bun:
bun run --cwd xerxes fix-license-headers -- --root . --dry-run
Review the output, then run it without --dry-run only when the listed changes
are in scope:
bun run --cwd xerxes fix-license-headers -- --root .
The command normalizes the repository's comment-style Apache header in the file
kinds it manages and skips generated directories such as node_modules,
dist, build, and .git.
Every TypeScript source file begins with the same compact native header used by adjacent modules:
// Copyright 2026 The Xerxes-Agents Author @erfanzar (Erfan Zare Chavoshi).
// Licensed under the Apache License, Version 2.0.
The maintenance scanner does not insert TypeScript headers automatically, so
copy this header into a new .ts or .tsx file at creation time and review it
as part of the source change.
For a focused TypeScript tree, list files that lack the canonical copyright line:
rg -L "^// Copyright 2026 The Xerxes-Agents Author" xerxes/src -g '*.ts' -g '*.tsx'
bun test xerxes/test/maintenanceScripts.test.ts
git diff --check
The rg command should produce no paths for a fully normalized tree. Inspect
the diff before any commit; the maintenance command must not rewrite generated
output or unrelated user changes.
---.