file-header-guardian
文件头三行契约注释。触发:create file、新建文件、编写代码。
Best use case
file-header-guardian is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
文件头三行契约注释。触发:create file、新建文件、编写代码。
Teams using file-header-guardian should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/file-header-guardian/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How file-header-guardian Compares
| Feature / Agent | file-header-guardian | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
文件头三行契约注释。触发:create file、新建文件、编写代码。
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 文件头注释守护者
触发:创建代码文件,修改文件后检查头注释准确性。
## 模板
**TS/JS:**
```typescript
/**
* @input 依赖什么
* @output 提供什么
* @pos 系统地位
* ⚠️ 修改后同步:文件头 + 目录 CLAUDE.md
*/
```
**Python:**
```python
"""
@input 依赖什么
@output 提供什么
@pos 系统地位
⚠️ 修改后同步:文件头 + 目录 CLAUDE.md
"""
```
**Shell:**
```bash
# @input 依赖什么
# @output 提供什么
# @pos 系统地位
# ⚠️ 修改后同步:文件头 + 目录 CLAUDE.md
```
## 示例
```typescript
/**
* @input prisma.service 数据库连接
* @output UserService: create/update/delete
* @pos 用户模块核心
* ⚠️ 修改后同步:文件头 + 目录 CLAUDE.md
*/
export class UserService { }
```
## 豁免
配置文件(json/yaml)、样式(css)、生成文件(*.d.ts)、node_modules。
协作:本 skill 管文件,fractal-docs-generator 管目录。Related Skills
security-headers-generator
Security Headers Generator - Auto-activating skill for Security Fundamentals. Triggers on: security headers generator, security headers generator Part of the Security Fundamentals skill category.
analyzing-security-headers
This skill analyzes HTTP security headers of a given domain to identify potential vulnerabilities and misconfigurations. It provides a detailed report with a grade, score, and recommendations for improvement. Use this skill when the user asks to "analyze security headers", "check HTTP security", "scan for security vulnerabilities", or requests a "security audit" of a website. It will automatically activate when security-related keywords are used in conjunction with domain names or URLs.
memory-profiler-setup
Memory Profiler Setup - Auto-activating skill for Performance Testing. Triggers on: memory profiler setup, memory profiler setup Part of the Performance Testing skill category.
makefile-generator
Makefile Generator - Auto-activating skill for DevOps Basics. Triggers on: makefile generator, makefile generator Part of the DevOps Basics skill category.
inference-latency-profiler
Inference Latency Profiler - Auto-activating skill for ML Deployment. Triggers on: inference latency profiler, inference latency profiler Part of the ML Deployment skill category.
http-header-security-audit
Http Header Security Audit - Auto-activating skill for Security Fundamentals. Triggers on: http header security audit, http header security audit Part of the Security Fundamentals skill category.
generating-docker-compose-files
Execute use when you need to work with Docker Compose. This skill provides Docker Compose file generation with comprehensive guidance and automation. Trigger with phrases like "generate docker-compose", "create compose file", or "configure multi-container app".
file-format-converter
File Format Converter - Auto-activating skill for Data Pipelines. Triggers on: file format converter, file format converter Part of the Data Pipelines skill category.
dockerfile-generator
Dockerfile Generator - Auto-activating skill for DevOps Basics. Triggers on: dockerfile generator, dockerfile generator Part of the DevOps Basics skill category.
database-query-profiler
Database Query Profiler - Auto-activating skill for Performance Testing. Triggers on: database query profiler, database query profiler Part of the Performance Testing skill category.
cpu-profiler-config
Cpu Profiler Config - Auto-activating skill for Performance Testing. Triggers on: cpu profiler config, cpu profiler config Part of the Performance Testing skill category.
box-cloud-filesystem
Cloud filesystem operations via Box CLI. Use when the user mentions Box, cloud files, cloud storage, uploading to the cloud, sharing files, document management, or syncing project files offsite. Trigger with "upload to box", "save to cloud", "pull from box", "search my box files", "share this file", "box sync", "cloud backup", or "box filesystem".