agentleFS
jdevalkjdevalk/skills/github-repo/AGENTS.md

skills / github-repo

AGENTS.md100 starsChanged 7 months agoMITView on GitHub

Detailed recipes for Phase 2 (Generate or Improve Files). Read this file when you need to implement a specific fix flagged by the audit. The parent SKILL.md has the workflow and audit checklist. When writing or rewriting a README: When generating these files, tailor them to the specific project — avoid generic boilerplate that ignores the project's language, tooling, and conventions. Should cover: Should include: Use the Contributor Covenant 2.1 unless the user has a different preference. Generate YAML-based issue…

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

13 rules. About 0 are common, 9 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When writing or rewriting a README:

    line 7
  2. Distinctive:

    Start with the project name and a one-liner that clearly states what it does

    line 9
  3. Distinctive:

    Add a quick start section that gets someone running in 3 steps or fewer

    line 11
  4. Distinctive:

    If the project has a visual component, strongly recommend adding a screenshot or GIF

    line 13
  5. Very specific:

    Keep it under 500 lines; point to /docs for detailed documentation

    line 14
  6. Very specific:

    Use collapsible <details> sections for optional/advanced content

    line 15
  7. Distinctive:

    When generating these files, tailor them to the specific project — avoid generic boilerplate that ignores the project's language, tooling, …

    line 19
  8. Distinctive:

    Use the Contributor Covenant 2.1 unless the user has a different preference.

    line 42
  9. Distinctive:

    If the user mentions they're setting up an organization (not just a single repo), guide them through:

    line 104
  10. Very specific:

    Create profile/README.md in the .github repo — this is the organization's public profile page.

    line 119
  11. Distinctive:

    Should explain what the organization does

    line 121
  12. Very specific:

    Create a .github-private repository with profile/README.md — visible only to org members.

    line 128
  13. Distinctive:

    Consider repository rulesets — the newer, more flexible alternative to branch protection.

    line 136

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

GitHub Repository Optimizer — Implementation recipes

Detailed recipes for Phase 2 (Generate or Improve Files). Read this file when you need to implement a specific fix flagged by the audit. The parent SKILL.md has the workflow and audit checklist.

README generation

When writing or rewriting a README:

  • Start with the project name and a one-liner that clearly states what it does
  • Include a badge row — at minimum: build status, license, version. Use shields.io format
  • Add a quick start section that gets someone running in 3 steps or fewer
  • Code examples should be complete, copy-pasteable, and use appropriate syntax highlighting
  • If the project has a visual component, strongly recommend adding a screenshot or GIF
  • Keep it under 500 lines; point to /docs for detailed documentation
  • Use collapsible <details> sections for optional/advanced content

Community health files

When generating these files, tailor them to the specific project — avoid generic boilerplate that ignores the project's language, tooling, and conventions.

CONTRIBUTING.md

Should cover:

  • How to set up the development environment
  • Code style and linting rules (reference actual tools the project uses)
  • How to run tests
  • PR process and expectations
  • Issue labeling conventions if applicable

SECURITY.md

Should include:

  • Supported versions (which versions receive security fixes)
  • How to report a vulnerability (private email or GitHub Private Vulnerability Reporting)
  • Expected response timeline
  • Explicit instruction to NOT use the public issue tracker for security issues

CODE_OF_CONDUCT.md

Use the Contributor Covenant 2.1 unless the user has a different preference.

Issue templates

Generate YAML-based issue forms, not markdown templates. Example structure for a bug report:

name: Bug Report
description: Report a bug to help us improve
title: "[Bug]: "
labels: ["bug", "triage"]
body:
  - type: markdown
    attributes:
      value: Thanks for reporting a bug! Please fill out the sections below.
  - type: textarea
    id: description
    attributes:
      label: Bug Description
      description: A clear description of what the bug is
    validations:
      required: true
  - type: textarea
    id: steps
    attributes:
      label: Steps to Reproduce
      description: Steps to reproduce the behavior
      placeholder: |
        1. Go to '...'
        2. Click on '...'
        3. See error
    validations:
      required: true
  - type: textarea
    id: expected
    attributes:
      label: Expected Behavior
      description: What you expected to happen
    validations:
      required: true
  - type: dropdown
    id: severity
    attributes:
      label: Severity
      options:
        - Low (cosmetic, minor inconvenience)
        - Medium (feature partially broken)
        - High (feature completely broken)
        - Critical (data loss, security issue)
    validations:
      required: true
  - type: textarea
    id: environment
    attributes:
      label: Environment
      description: Version, OS, browser, etc.

Adapt the fields to the specific project type (e.g., a CLI tool wouldn't ask for browser info).

Organization-level setup

If the user mentions they're setting up an organization (not just a single repo), guide them through:

1. Create a .github repository

Public, with default community health files that apply org-wide:

  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md (generic enough for all repos)
  • SECURITY.md
  • SUPPORT.md
  • FUNDING.yml
  • Issue and PR templates (note: if an individual repo has ANY files in .github/ISSUE_TEMPLATE/, none of the org defaults apply for that repo)

2. Organization profile README

Create profile/README.md in the .github repo — this is the organization's public profile page. Different from personal profiles:

  • Should explain what the organization does
  • Link to key repositories
  • Include contact/social links
  • Can use the same enhancement tools as personal profiles (badges, stats)

3. Private member profile (optional)

Create a .github-private repository with profile/README.md — visible only to org members. Use this for internal resources, onboarding links, and private repo navigation.

4. Verify the organization's domain

Settings -> Verified & approved domains. This displays a verified badge that significantly boosts credibility.

5. Repository rulesets

Consider repository rulesets — the newer, more flexible alternative to branch protection. They support multiple concurrent rulesets, Evaluate mode for testing, and can be imported/exported as JSON. Start in Evaluate mode, track violations, then enforce.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.