スキル一覧に戻る
bostonaholic

writing-agents-md

by bostonaholic

There's no place like ~

5🍴 0📅 2026年1月20日
GitHubで見るManusで実行

SKILL.md


name: writing-agents-md description: > Use when creating or updating AGENTS.md files. Provides the agents.md format specification and best practices for writing effective guidance for AI coding assistants.

Writing AGENTS.md Files

The Format

AGENTS.md is intentionally flexible—just standard Markdown. No mandatory fields or rigid structure. Write what an AI coding assistant needs to know.

Resolution Hierarchy

  1. Explicit user prompts override everything
  2. Nearest AGENTS.md to edited file wins (for monorepos)
  3. Root AGENTS.md applies to whole project

Standard Sections

Include these sections, tailored to what you discovered:

Project Overview

What is this? One paragraph max. Include primary language, framework, and purpose.

Build and Test Commands

# Install dependencies
npm install

# Run tests
npm test

# Build for production
npm run build

Use actual commands from the project. Be specific.

Code Style

  • Formatting tools (prettier, rubocop, etc.)
  • Naming conventions observed in the codebase
  • File organization patterns
  • Import/require conventions

Architecture

  • Key directories and their purposes
  • Important abstractions and patterns
  • Data flow overview
  • Where new code should go

Testing

  • Test framework and runner
  • Test file locations and naming
  • How to run specific tests
  • Coverage expectations if any

Security Considerations

  • Secrets handling (env vars, vaults)
  • Input validation patterns
  • Authentication/authorization approach
  • Areas requiring extra caution

PR Guidelines

  • Branch naming conventions
  • Commit message format
  • Review requirements
  • CI checks that must pass

Writing Principles

Be specific, not generic. Bad: "Follow best practices." Good: "Run npm test before committing. All tests must pass."

Commands over descriptions. Show the exact command to run, not prose about what should happen.

Reflect reality. Document what IS, not what should be. If the codebase has inconsistencies, note them.

Skip empty sections. If a project has no security considerations worth noting, omit that section entirely.

Anti-Patterns

AvoidWhy
"Use good coding practices"Meaningless—be specific
Documenting obvious thingsWastes tokens, adds noise
Aspirational guidelinesAgents work with what exists
Duplicating READMEAGENTS.md complements, not copies

Monorepo Considerations

For monorepos, consider nested AGENTS.md files in subdirectories with package-specific guidance. The root AGENTS.md covers shared conventions.

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です