multiAI Summary Pending
file-header-guardian
文件头三行契约注释。触发:create file、新建文件、编写代码。
231 stars
Installation
Claude Code / Cursor / Codex
$curl -o ~/.claude/skills/file-header-guardian/SKILL.md --create-dirs "https://raw.githubusercontent.com/aiskillstore/marketplace/main/skills/dimon94/file-header-guardian/SKILL.md"
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 | multi | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
文件头三行契约注释。触发:create file、新建文件、编写代码。
Which AI agents support this skill?
This skill is compatible with multi.
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 管目录。