一键导入
agents-md
Generate, review, and maintain AGENTS.md (or CLAUDE.md) files. Use when creating, auditing, or updating AI agent instruction files for a codebase.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate, review, and maintain AGENTS.md (or CLAUDE.md) files. Use when creating, auditing, or updating AI agent instruction files for a codebase.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate premium SwiftUI animations in the legendary-Animo style — spring physics, CoreHaptics, glass morphism, SF Symbols 7 draw animations, complete compilable files.
Audit macOS AppKit interfaces for accessibility, focusing on VoiceOver, keyboard navigation, and semantics
Apply platform accessibility best practices to SwiftUI, UIKit, and AppKit code. Essential companion to any SwiftUI, UIKit, or AppKit skill — always use together. Use whenever writing, editing, or reviewing ANY SwiftUI views, UIKit view controllers, AppKit views/window controllers, or platform UI — even when the user doesn't mention accessibility. Also use when the user mentions VoiceOver, Voice Control, Dynamic Type, Reduce Motion, screen reader, a11y, WCAG, accessibility audit, Nutrition Labels, accessibilityLabel, UIAccessibility, NSAccessibility, assistive technologies, or Switch Control. Not for server-side Swift, non-UI packages, or CLI tools.
Reviews, writes, and fixes focus management code for all Apple platforms (tvOS, iOS/iPadOS, watchOS, visionOS, macOS), covering SwiftUI, UIKit, AppKit, and RealityKit. Use when reading, writing, or reviewing apps that handle focus, hover, key view loops, or Digital Crown navigation.
Writes, reviews, and improves Swift Testing code using modern APIs and best practices. Use when reading, writing, or reviewing projects that use Swift Testing.
Audit SwiftUI views for accessibility (iOS + macOS) with patch-ready fixes
| name | agents-md |
| description | Generate, review, and maintain AGENTS.md (or CLAUDE.md) files. Use when creating, auditing, or updating AI agent instruction files for a codebase. |
| disable-model-invocation | true |
Generate, review, and maintain AGENTS.md files optimized for AI coding agents.
Determine the task type:
Before writing anything, analyze and report:
Present findings to the user before generating files. Ask about any gaps.
Filter ruthlessly: Most of what you discover does NOT belong in the AGENTS.md. Models can read package.json, explore file trees, and grep codebases on their own. Only carry forward information the model can't discover or consistently gets wrong. When in doubt, leave it out — you can always add it later when a real problem surfaces.
Check for existing files at the project root:
CLAUDE.md with @AGENTS.md. Continue to Phase 3.@AGENTS.md → Already correct. Continue.CLAUDE.md to AGENTS.md, create new CLAUDE.md with @AGENTS.md. Treat the renamed file as an existing AGENTS.md (switch to Update workflow).The end state is always: CLAUDE.md starts with @AGENTS.md, and all agent-agnostic instructions live in AGENTS.md. Claude Code-specific instructions (hooks, MCP servers, slash commands, permissions, rules files, etc.) go in CLAUDE.md after the @AGENTS.md line.
Target: 30-60 lines for the root file. Maximum 300 lines. Instruction-following quality degrades as document length increases — keep it tight. Every line must be universally applicable — no task-specific content in the root.
Include all essential sections:
# Project Name
## Stack
[Tech stack with specific versions: "React 18, TypeScript 5.3, Vite 5, Tailwind 3.4"]
## Commands
[Copy-paste ready commands with full flags — build, test, lint, typecheck]
## File-Scoped Commands
[Per-file test/lint/typecheck commands — faster and cheaper than full project builds]
| Task | Command |
|------|---------|
| Typecheck | `pnpm tsc --noEmit path/to/file.ts` |
| Lint | `pnpm eslint path/to/file.ts` |
| Test | `pnpm jest path/to/file.test.ts` |
## Structure
[Directory layout with purposes and access levels (read/write/never modify)]
## Conventions
[Code style via concrete examples referencing actual project files, not prose]
[Naming: functions, classes, constants with real examples from the codebase]
## Git
[Commit format, branching strategy, PR process]
## Boundaries
### Always
[Mandatory practices for every session]
### Ask First
[Actions requiring human approval]
### Never
[Absolute prohibitions — always include "Never commit secrets"]
Key rules:
src/components/Button.tsx), not hypothetical onesfile:line references instead of embedding code snippetsFor each major subsystem (app, service, package), create a scoped AGENTS.md:
# Package Name
## Purpose
[1-2 lines: what it does, primary tech]
## Commands
[Package-specific: dev, build, test, lint]
## Patterns
[Concrete examples with actual file paths]
- DO: Pattern from `src/components/Button.tsx`
- DON'T: Anti-pattern like `src/legacy/OldButton.tsx`
## Key Files
[Important files to understand the package]
## Gotchas
[Non-obvious pitfalls specific to this package]
Sub-files should have MORE detail than the root — they're only loaded when the agent works in that directory.
Present files in order with paths:
--- File: AGENTS.md (root) ---
[content]
--- File: apps/web/AGENTS.md ---
[content]
Avoid these in generated AGENTS.md files:
Writing style:
Content quality:
Structure:
file:line references (snippets go stale)Before presenting, verify:
CLAUDE.md exists with @AGENTS.mdPresent the proposed rewrite as a complete file (or files), not a report card. Precede it with a short summary of what changed and why.