💡 摘要
该技能为AI编码代理生成和维护AGENTS.md文件,增强项目上下文。
🎯 适合人群
🤖 AI 吐槽: “看起来很能打,但别让配置把人劝退。”
风险:Medium。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发)。以最小权限运行,并在生产环境启用前审计代码与依赖。
AGENTS.md Generator Skill
Netresearch AI skill for generating and maintaining AGENTS.md files following the agents.md specification.
What is AGENTS.md? A context file written for AI coding agents, not humans. Human readability is a side effect, not a goal. Adopted by 60,000+ open-source projects. See the official specification and best practices from 2,500+ repositories.
Standards Compliance
This skill implements two complementary standards:
-
agents.md - The file format this skill generates. A simple Markdown convention for guiding AI coding agents, supported by Claude Code, GitHub Copilot, Cursor, and 60,000+ open-source projects.
-
Agent Skills - How this skill is packaged and distributed. A portable format for procedural knowledge that works across AI agents.
Supported Platforms:
- ✅ Claude Code (Anthropic)
- ✅ Cursor
- ✅ GitHub Copilot
- ✅ Other skills-compatible AI agents
Features
- Thin Root Files - ~30 lines with precedence rules and global defaults
- Scoped Files - Automatic subsystem detection (backend/, frontend/, internal/, cmd/)
- Auto-Extraction - Commands from Makefile, package.json, composer.json, go.mod
- Multi-Language - Templates for Go, PHP, TypeScript, Python, and hybrid projects
- Idempotent Updates - Preserve existing structure while refreshing content
- Managed Headers - Mark files as agent-maintained with timestamps
Installation
Option 1: Via Netresearch Marketplace (Recommended)
claude mcp add-json netresearch-skills-bundle '{"type":"url","url":"https://raw.githubusercontent.com/netresearch/claude-code-marketplace/main/.claude-plugin/marketplace.json"}'
Then browse skills with /plugin.
Option 2: Download Release
Download the latest release and extract to ~/.claude/skills/agents/
Option 3: Composer (PHP projects)
composer require netresearch/agent-agents
Requires: netresearch/composer-agent-skill-plugin
Usage
The skill triggers on keywords like:
- "AGENTS.md", "agents file"
- "agent documentation", "AI onboarding"
- "project context for AI"
Example Prompts
"Generate AGENTS.md for this project"
"Update the agents documentation"
"Create scoped AGENTS.md files for each subsystem"
"Validate AGENTS.md structure"
Supported Projects
| Type | Detection | Features |
|------|-----------|----------|
| Go | go.mod | Version extraction, CLI tool detection |
| PHP | composer.json | TYPO3/Laravel/Symfony detection |
| TypeScript | package.json | React/Next.js/Vue/Express detection |
| Python | pyproject.toml | Poetry/Ruff/Django/Flask detection |
| Hybrid | Multiple markers | Auto-creates scoped files per stack |
Structure
agents/
├── SKILL.md # AI instructions
├── README.md # This file
├── LICENSE # GPL-2.0-or-later
├── composer.json # PHP distribution
├── references/ # Convention documentation
├── scripts/ # Generator scripts
│ ├── generate-agents.sh
│ ├── validate-structure.sh
│ └── detect-scopes.sh
└── templates/ # Language-specific templates
├── go/
├── php/
├── typescript/
└── python/
Contributing
Contributions welcome! Please submit PRs for:
- Additional language templates
- Detection signal improvements
- Script enhancements
- Documentation updates
License
GPL-2.0-or-later - See LICENSE for details.
Credits
Developed and maintained by Netresearch DTT GmbH.
Made with ❤️ for Open Source by Netresearch
优点
- 自动生成AGENTS.md
- 支持多种编程语言
- 幂等更新保留结构
- 与流行的AI工具集成
缺点
- 仅限于特定的AI代理
- 需要熟悉Markdown
- 可能不涵盖所有项目类型
- PHP需要依赖外部插件
相关技能
免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。
版权归原作者所有 netresearch.
