AGENT SKILL

agents-md-author

Bootstrap or update project AI-agent instruction files (AGENTS.md for Codex, CLAUDE.md for Claude Code, or both) from the current project's structure. Triggers on: write AGENTS.md, write CLAUDE.md, generate AGENTS.md, agent instructions, project conventions for AI, bootstrap agent docs, set up project memory for Codex/Claude, document dev/test/build commands for AI coding tools, single-source project instructions for any AI agent.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 47
Forks
5

01 前言 Front Matter

name
agents-md-author
version
1.0.1
description
Bootstrap or update project AI-agent instruction files (AGENTS.md for Codex, CLAUDE.md for Claude Code, or both) from the current project's structure. Triggers on: write AGENTS.md, write CLAUDE.md, generate AGENTS.md, agent instructions, project conventions for AI, bootstrap agent docs, set up project memory for Codex/Claude, document dev/test/build commands for AI coding tools, single-source project instructions for any AI agent.

02 资源文件 2

03 SKILL.md 正文

agents-md-author

Generate cross-vendor project instruction files: AGENTS.md for Codex (and most other tools), CLAUDE.md for Claude Code, or both kept in sync. Load references/agents-md-spec.md if you need the cross-vendor convention details.

When to activate

  • User asks to "write AGENTS.md", "create CLAUDE.md", or "set up project instructions for AI"
  • User wants the same project doc to work in Codex, Claude Code, Cursor, or any tool that follows the AGENTS.md convention
  • User mentions onboarding a new AI tool to an existing repo and wants conventions captured

Procedure

1. Detect project context (always do this first)

Read the project root and determine:

  • Project name — from package.json name, pyproject.toml [project].name, go.mod module, Cargo.toml [package].name, or fallback to repo dir name
  • Language & runtime — package.json (Node + lockfile flavor), requirements.txt / pyproject.toml (Python), go.mod (Go), Cargo.toml (Rust), pom.xml / build.gradle (JVM), *.csproj (.NET)
  • Common scripts — Node scripts.{dev,build,test,lint,typecheck}; Python tox.ini / Makefile; Go/Rust task tools
  • Test framework — vitest, jest, pytest, go test, cargo test, etc.
  • Repo conventions — existing .editorconfig, .prettierrc, eslint.config.*, pre-commit-config.yaml

If the user provided context (e.g., "this is a Next.js + Prisma app"), use it; otherwise infer from files. Don't ask questions you can answer from disk.

2. Decide the target file(s)

User wants Write
Codex / OpenAI tools only AGENTS.md
Claude Code only CLAUDE.md
Both, kept in sync AGENTS.md + CLAUDE.md (identical content), or AGENTS.md plus a one-line CLAUDE.md that says "See AGENTS.md"
Single source (recommended) AGENTS.md + CLAUDE.md symlink → AGENTS.md

Default to "both, identical content" unless the user specifies — it's the lowest-risk option and works everywhere.

3. Compose content

Use this canonical structure (load references/agents-md-spec.md if you need the field-by-field rationale or cross-vendor details):

# <Project name>

<one-sentence description>

## Tech stack

- <language + version>
- <framework + version>
- <database / runtime / deployment>

## Dev commands

- Install: `<command>`
- Dev server: `<command>`
- Build: `<command>`
- Test: `<command>` (unit) / `<command>` (e2e)
- Lint / typecheck: `<command>`

## Code conventions

- <indent + line length>
- <import style>
- <naming conventions>
- <test colocation>
- <commit style>

## Architecture notes

<2-5 bullets on layout — where routes live, where business logic lives, what's shared>

## Out of scope for AI agents

<deliberate "don't touch" list — generated files, secrets, migrations, etc.>

Keep it under ~150 lines. AI agents skim — verbose docs are skipped or ignored.

4. Write files

  • Use canonical line endings for the OS (LF on macOS/Linux)
  • Don't add a trailing summary or "generated by" footer — the file is now the user's
  • If a file already exists, read it first, propose a diff, and ask the user before overwriting

5. Verify

  • Print the relative paths written
  • If both AGENTS.md and CLAUDE.md were written, confirm they're byte-identical (or show the symlink)
  • Suggest the user commit the files

References

04 同仓库更多 Skills

anton-abyzov
anton-abyzov/vskill

x-reply-drafts

Find live X threads where a product genuinely fits, and draft truthful, humanized replies for the owner to review and post by hand. Human pace only: max 5 replies a day, never two within 20 minutes, no automated posting. Use when the user asks to 'find threads to reply to', 'draft X replies', 'reply-guy session', 'join trending conversations', 'engage on Twitter about <product>', or wants a daily batch of reply drafts. Not for scheduling original posts (social-media-posting) or bulk publishing (blotato).

★ 47
anton-abyzov
anton-abyzov/vskill

hello-world

A tiny test skill used by the 0853 verify-runtime harness. Says hello. No external calls. Use when the user asks for a sanity-check skill in a verify-harness fixture.

★ 47
anton-abyzov
anton-abyzov/vskill

existing-skill

Lint markdown files for style and grammar issues.

★ 47
anton-abyzov
anton-abyzov/vskill

remotion-best-practices

Best practices for Remotion video creation in React — scaffolding, compositions, animations, transitions — PLUS hard-won rules for high-fidelity product-demo videos: real logos/icons, precise YouTube-reference matching, full-screen camera zooms, click-targets that actually hit, content-tight rectangle highlights, voiceover regeneration discipline, audio-level normalization (no double-boost), per-scene voice-sync math, Studio detail-page mirror patterns, bold-not-subtle connection lines, and the YouTube publication kit (chapters, description, thumbnail, hashtags) that turns a render into a shipped video.

★ 47
anton-abyzov
anton-abyzov/vskill

rea

Find out exactly how a feature is implemented in a shipped tool or app you don't have the source for (desktop apps, Electron apps like Claude desktop, native CLIs like Codex, websites, APKs, .NET assemblies) using REA - Reverse Engineer Anything (github.com/morluto/rea). Sets REA up when it is missing (CLI, MCP registration, Hopper or Ghidra), routes the target to the right REA tool, keeps evidence out of the context window, and turns findings into a clean-room spec before any rebuild. Use when the user says 'use REA', 'reverse engineer', 'how does <app> do X', 'how is this feature implemented in <tool>', 'clone this feature', 'decompile', 'look inside the app', or asks how a closed-source competitor works. Skip it when the source is available - read the repo instead.

★ 47
anton-abyzov
anton-abyzov/vskill

motion-graphics-promo

After Effects-style motion graphics for short product promos (15-45 s, vertical or landscape), built as code with HyperFrames + GSAP. Covers a story-first brief, motion grammar (energetic entry, one transition per task, spring settle, 2-3 s of stable proof), a 32-second promo timeline, device-frame and kinetic-type recipes, vertical-first composition, evidence rules (real UI only, no fake clicks), music licensing and encoded-frame verification. Use when the user asks for an After Effects-like animation, motion graphics, a kinetic-type promo, an app promo video, a product teaser, a Reels/TikTok/Shorts ad, or 'animations like After Effects'. Also covers short explainers, tutorials and 15-second vertical ads: a design kit (footage beds, condensed caps in a marker box, white device frames, falling stickers, voice-over with music ducking) and HyperFrames render traps that silently break output. Pairs with hyperframes-best-practices (screencast pipeline) and remotion-best-practices.

★ 47