Skip to content
Back to skills

File Header Guardian

ASecurity

文件头三行契约注释。触发:create file、新建文件、编写代码。

  • 416 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 7, 2026
developmenttypescriptpythonshellbashnode

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add aiskillstore/marketplace --skill file-header-guardian --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of File Header Guardian?

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

Security grade badge for File Header Guardian
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aiskillstore-file-header-guardian/badge)](https://www.skillsdirectory.com/skills/aiskillstore-file-header-guardian)

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: file-header-guardian
description: 文件头三行契约注释。触发:create file、新建文件、编写代码。
---

# 文件头注释守护者

触发:创建代码文件,修改文件后检查头注释准确性。

## 模板

**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 管目录。

Files in this skill

  • SKILL.md1.1 KB
  • skill-report.json8.9 KB

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…