AGENTS.md overview GitHub Copilot Instructions Cursor Rules Accessibility specific instructions Download instruction files Installation steps
AGENTS.md is a tool-agnostic standard for providing AI agents with repository context. It should be the canonical
source of instructions, with package-specific AGENTS.md files used to add scoped guidance.packages/
├── package1/AGENTS.md
├── package2/AGENTS.md
└── ...
AGENTS.md concise and link to detailed documentation. Use package-level files for deeper,
context-specific rules (e.g., accessibility, build steps, test expectations).AGENTS.md as the canonical source for repository guidance..github/copilot-instructions.md in sync with AGENTS.md for Copilot compatibility..github/instructions/ for file-type specific rules (like accessibility)..github/copilot-instructions.md in your repository root. This file applies to all Copilot
interactions in your project..github/
└── copilot-instructions.md
.github/instructions/ and include frontmatter specifying the
target files using glob patterns:.github/
└── instructions/
├── accessibility.instructions.md # Applies to all frontend files
└── project.instructions.md # Project-specific rules
applyTo frontmatter that uses glob patterns:applyTo pattern determines which files these instructions apply to. For accessibility rules, we recommend applying
them to all frontend file types.---
applyTo: '**/*.{html,css,scss,js,ts,tsx,jsx,vue,mdx}'
---
.cursor/rules/ directory structure for custom AI instructions:.cursor/
└── rules/
├── accessibility.mdc # Accessibility rules
└── project.mdc # Project-specific rules
.mdc extension (Markdown with Cursor metadata). The format is similar to GitHub Copilot
instructions:---
description: Accessibility rules for frontend code
globs: ['**/*.{html,css,scss,js,ts,tsx,jsx,vue}']
---
button, a, input, select, details/summary, dialog) over custom div/span
widgetsheader, nav, main, footer) and maintain consistent heading order<label>, aria-label, or
aria-labelledbyEnter/Space for buttons, arrow keys for roving focus patterns:focus-visible for custom focus styling@media (forced-colors: active)@porsche-design-system/components-{react|angular|vue} for UI primitivesaria property according to PDS documentationaria attributes on PDS components :host elements directlyAGENTS.md in the repository rootAGENTS.md files where needed (e.g., packages/package1/AGENTS.md)AGENTS.md in sync with Copilot/Cursor instruction filesaccessibility.instructions.md.github/instructions/ directory in your repository root.github/instructions/accessibility.instructions.mdaccessibility.mdc.cursor/rules/ directory in your project root.cursor/rules/accessibility.mdc