dx-toolkit
AGENTS.md2 starsChanged 8 months agoMITView on GitHub
Agents are specialized AI personas that you can assign to GitHub issues or invoke in VS Code/JetBrains/CLI. Each agent has focused expertise, specific tool access, and tailored behavioral instructions. Location: templates/agents/*.agent.md These agents handle common development tasks regardless of the tech stack. Purpose: Diagnoses and fixes bugs reported in issues. When to use: Assign to any bug report issue. Works best with clear reproduction steps and error messages. Example issue: "The /api/users/:id endpoint returns 500 when the user has no…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- templates/copilot-instructions.mdCopilot instructions
The file
We split this agents.md into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
When assigned to an issue on GitHub.com, the agent autonomously reads the issue, explores the codebase, implements a solution, and creates …
- Distinctive: line 104
Key behavior: Always writes characterization tests FIRST, never changes behavior.
- Distinctive: line 119
When to use: When you need better coverage for a module, or when coverage reports show gaps.
- Distinctive: line 121
Key behavior: NEVER modifies production code — only creates/modifies test files.
- Distinctive: line 310
Expertise: Commit standards, semantic versioning, changelog generation, Git workflows
- Distinctive: line 618
Create an issue: "Fix the N+1 query in the posts listing endpoint"
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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.
Files
🤖 Agents
Agents are specialized AI personas that you can assign to GitHub issues or invoke in VS Code/JetBrains/CLI. Each agent has focused expertise, specific tool access, and tailored behavioral instructions.
Location: templates/agents/*.agent.md
How Agents Work
- An agent is a Markdown file with YAML frontmatter defining its name, description, and tools
- The body contains behavioral instructions — what the agent does, how it works, and what it must NOT do
- When assigned to an issue on GitHub.com, the agent autonomously reads the issue, explores the codebase, implements a solution, and creates a PR
- In VS Code, agents appear in the Copilot Chat agent dropdown
Agent Anatomy
---
name: agent-name # kebab-case, matches filename
description: "Clear description" # Used for discovery and selection
tools: ["read", "edit", "search", "execute", "github/*"]
---
You are a [role]. Your job is to [purpose].
## Workflow
1. [Step-by-step procedure]
## Constraints
- DO NOT [restriction]Available Tools
| Tool Alias | Purpose |
read | Read file contents |
edit | Edit files |
search | Text and file search |
execute | Run shell commands |
github/* | GitHub MCP Server (issues, PRs, API) |
agent | Invoke other agents as subagents |
web | Fetch URLs and web search |
todo | Manage task lists |
General-Purpose Agents
These agents handle common development tasks regardless of the tech stack.
🐛 Bug Fixer (bug-fixer)
Purpose: Diagnoses and fixes bugs reported in issues.
Workflow:
- Reads the issue and extracts error details, reproduction steps
- Searches the codebase for the relevant code
- Identifies the root cause
- Implements the fix
- Adds regression tests
- Creates a PR
When to use: Assign to any bug report issue. Works best with clear reproduction steps and error messages.
Example issue:
"The
/api/users/:idendpoint returns 500 when the user has no profile photo. Stack trace attached."
✨ Feature Implementer (feature-implementer)
Purpose: Implements new features from issue specifications.
Workflow:
- Reads the issue requirements and acceptance criteria
- Explores the codebase architecture
- Plans the implementation following existing patterns
- Implements the feature
- Writes tests
- Updates documentation
- Creates a PR
When to use: Well-defined feature requests with clear requirements. The more detail in the issue, the better the result.
🔄 Refactorer (refactorer)
Purpose: Safely refactors code while preserving exact behavior.
Workflow:
- Reads the issue (what to refactor and why)
- Writes characterization tests for existing behavior
- Applies refactoring incrementally
- Verifies all tests pass after each step
- Creates a PR
When to use: Code quality improvements, extracting abstractions, simplifying complex functions.
Key behavior: Always writes characterization tests FIRST, never changes behavior.
🧪 Test Writer (test-writer)
Purpose: Adds comprehensive test coverage without modifying production code.
Workflow:
- Analyzes the code to understand what needs testing
- Identifies untested paths, edge cases, and error scenarios
- Writes tests using the project's existing framework and patterns
- Verifies all tests pass
When to use: When you need better coverage for a module, or when coverage reports show gaps.
Key behavior: NEVER modifies production code — only creates/modifies test files.
📝 Docs Updater (docs-updater)
Purpose: Creates and updates project documentation.
Workflow:
- Reads existing documentation structure
- Identifies gaps or outdated content
- Writes/updates READMEs, API docs, guides, changelogs
- Creates a PR
When to use: Documentation refresh, new feature documentation, README improvements.
🛡️ Security Fixer (security-fixer)
Purpose: Fixes security vulnerabilities following OWASP best practices.
Workflow:
- Reads the security finding (CVE, audit result, vulnerability report)
- Analyzes the vulnerable code
- Implements a fix following security best practices
- Adds tests to verify the fix
- Verifies no new vulnerabilities introduced
When to use: Dependabot alerts, security audit findings, manually reported vulnerabilities.
⚡ Performance Optimizer (performance-optimizer)
Purpose: Profiles bottlenecks and implements performance improvements.
Workflow:
- Reads the performance issue (slow endpoint, memory usage, etc.)
- Profiles the code to identify bottlenecks
- Implements optimizations
- Measures improvement
- Adds benchmarks
When to use: Slow queries, high memory usage, response time issues.
📦 Dependency Updater (dependency-updater)
Purpose: Upgrades project dependencies safely.
Workflow:
- Reads the update requirements (specific package or all)
- Updates dependencies
- Resolves breaking changes
- Runs tests to verify stability
- Creates a PR with a detailed changelog
When to use: Scheduled dependency updates, major version upgrades, security patches.
✍️ Docs Humanizer (docs-humanizer)
Purpose: Rewrites AI-sounding documentation, PR descriptions, and issue comments into natural, human prose.
Workflow:
- Reads the target text (file, PR, or issue)
- Scans for anti-patterns: filler phrases, passive voice, vague adjectives
- Determines format and audience
- Rewrites using the
humanize-writingskill - Verifies no technical information was lost
When to use: Documentation that sounds generic, PR descriptions full of filler, any text flagged as "sounds like AI".
Technology-Specialized Agents
These agents bring deep domain expertise for specific technologies. They enforce the latest best practices and target the latest stable versions.
💧 Elixir Expert (elixir-expert)
Expertise: OTP patterns, GenServer, supervision trees, pattern matching, pipe operator
Target: Elixir 1.18+ / OTP 27+
Best for: Designing OTP architectures, idiomatic Elixir, concurrency patterns, ExUnit testing
🔥 Phoenix Expert (phoenix-expert)
Expertise: Context-based architecture, LiveView 1.0+, Ecto, PubSub, Channels
Target: Phoenix 1.8+ / LiveView 1.0+ / Ecto 3.12+
Best for: Web applications with real-time features, context design, LiveView UIs
🔷 TypeScript Expert (typescript-expert)
Expertise: Strict mode, discriminated unions, branded types, satisfies, conditional types
Target: TypeScript 5.7+ / ES2024+
Best for: Type system design, refactoring JS to TS, complex generic patterns
▲ Next.js Expert (nextjs-expert)
Expertise: App Router, Server Components, Server Actions, caching, streaming
Target: Next.js 15+
Best for: Full-stack React with SSR/SSG, API routes, middleware, ISR
🐘 PostgreSQL Expert (postgresql-expert)
Expertise: Schema design, query optimization, indexing, RLS, partitioning, window functions
Target: PostgreSQL 17+
Best for: Schema design, slow query optimization, advanced query patterns
⚡ Supabase Expert (supabase-expert)
Expertise: RLS policies, Auth, Edge Functions, Realtime, Storage, typed client
Target: Supabase platform (latest)
Best for: Building on Supabase, RLS policy design, real-time features
🐳 Docker Expert (docker-expert)
Expertise: Multi-stage builds, BuildKit, security hardening, Compose V2
Target: Docker with BuildKit
Best for: Containerizing applications, optimizing image size, Compose setups
🎨 Design Systems Expert (design-systems-expert)
Expertise: Atomic design, design tokens, theming, WCAG 2.2 AA, component API design
Target: Framework-agnostic
Best for: Building component libraries, implementing design tokens, accessibility
🖥️ Frontend Expert (frontend-expert)
Expertise: Core Web Vitals, state management, responsive design, error boundaries
Target: Framework-agnostic
Best for: Performance optimization, architecture decisions, complex UIs
⚙️ Backend Expert (backend-expert)
Expertise: API design, observability, resilience patterns, database patterns, security
Target: Framework-agnostic
Best for: Service architecture, production readiness, observability setup
📋 Conventional Commits Expert (conventional-commits-expert)
Expertise: Commit standards, semantic versioning, changelog generation, Git workflows
Target: Conventional Commits spec 1.0
Best for: Setting up commit standards, configuring release automation
🌐 Web Development Expert (web-development-expert)
Expertise: Semantic HTML, modern CSS, browser APIs, SEO, progressive enhancement
Target: Web platform (latest standards)
Best for: Accessibility, SEO, modern CSS features, web performance
⚛️ React Expert (react-expert)
Expertise: Hooks, Server Components, concurrent features, composition, Testing Library
Target: React 19+
Best for: Component architecture, state management, React 19 migration
📱 React Native Expert (react-native-expert)
Expertise: New Architecture (Fabric + TurboModules), navigation, animations, native modules
Target: React Native 0.77+
Best for: Cross-platform mobile development, performance tuning, native integration
📲 Expo Expert (expo-expert)
Expertise: Expo Router v4, EAS Build/Submit/Update, Config Plugins, SDK modules
Target: Expo SDK 52+
Best for: Managed workflow mobile apps, EAS pipeline setup, Expo module usage
🔴 TDD Expert (tdd-expert)
Expertise: Red-Green-Refactor cycle, test design, Transformation Priority Premise
Target: Language-agnostic
Best for: Driving implementation through tests, test design decisions
🟢 BDD Expert (bdd-expert)
Expertise: Gherkin scenarios, ubiquitous language, outside-in development
Target: Language-agnostic (Cucumber, Wallaby, Cypress)
Best for: Defining behavior from user perspective, Gherkin scenario design
🔵 WordPress Expert (wordpress-expert)
Expertise: Theme and plugin development, WP-CLI, WooCommerce, performance, security hardening
Target: WordPress (latest stable) / PHP 8.2+
Best for: Custom theme/plugin development, WooCommerce integrations, WordPress site architecture
💳 Payments Expert (payments-expert)
Expertise: Stripe, PayPal, webhooks, PCI compliance, subscriptions, Apple Pay, Google Pay
Target: Provider-agnostic (Stripe, PayPal, Square, Braintree)
Best for: Payment integration, webhook handling, subscription billing, PCI compliance
🐍 Python Expert (python-expert)
Expertise: Type hints, async/await, data classes, pattern matching, Django/FastAPI
Target: Python 3.12+
Best for: Idiomatic Python, async services, data processing, type safety
🔵 Go Expert (go-expert)
Expertise: Goroutines, channels, error handling, interfaces, testing, modules
Target: Go 1.22+
Best for: Concurrent services, CLI tools, microservices, idiomatic Go
🦀 Rust Expert (rust-expert)
Expertise: Ownership, lifetimes, traits, async with Tokio, error handling
Target: Rust 2024 edition
Best for: Systems programming, performance-critical code, safe concurrency
🍎 Swift Expert (swift-expert)
Expertise: Structured concurrency, SwiftUI, Combine, protocol-oriented design
Target: Swift 6+
Best for: iOS apps, SwiftUI layouts, async patterns, Apple platform APIs
🟣 Kotlin Expert (kotlin-expert)
Expertise: Coroutines, Flow, Jetpack Compose, multiplatform, sealed classes
Target: Kotlin 2.0+
Best for: Android apps, Compose UI, coroutine patterns
🦋 Flutter Expert (flutter-expert)
Expertise: Widget composition, state management (Riverpod/BLoC), platform channels, animations
Target: Flutter 3.24+ / Dart 3.5+
Best for: Cross-platform mobile with Flutter, custom widgets, state patterns
💎 Rails Expert (rails-expert)
Expertise: Convention over configuration, ActiveRecord, Hotwire/Turbo, Stimulus, ActiveJob
Target: Rails 8+ / Ruby 3.3+
Best for: Full-stack web apps, Hotwire UIs, background jobs
💚 Vue Expert (vue-expert)
Expertise: Composition API, <script setup>, Pinia, Vue Router 4, Nuxt 3
Target: Vue 3.5+
Best for: Component design, state management, Nuxt server routes
🅰️ Angular Expert (angular-expert)
Expertise: Signals, standalone components, NgRx SignalStore, control flow syntax
Target: Angular 19+
Best for: Enterprise apps, signal-based reactivity, standalone components
🔶 Svelte Expert (svelte-expert)
Expertise: Runes, SvelteKit, $state/$derived, server routes, form actions
Target: Svelte 5+ / SvelteKit 2+
Best for: Reactive UIs, SvelteKit full-stack apps, rune-based state
◆ GraphQL Expert (graphql-expert)
Expertise: Schema design, resolvers, DataLoader, subscriptions, federation
Target: GraphQL spec (latest)
Best for: API design, resolver patterns, caching, N+1 prevention
🏗️ Terraform Expert (terraform-expert)
Expertise: HCL modules, state management, provider patterns, workspaces
Target: Terraform 1.7+ / OpenTofu
Best for: Infrastructure as Code, multi-cloud, module design
Content-Specialized Agents
These agents handle content creation, strategy, and marketing with domain-specific expertise.
✍️ SEO Writer (seo-writer)
Purpose: Writes blog articles and posts optimized for traditional search engines and LLM-powered search.
Workflow:
- Fetches reference URLs or reads local files to build a style and tone profile
- Analyzes voice, structure, audience, and SEO patterns from reference content
- Confirms the detected style profile with the user before writing
- Researches the topic — primary keyword, secondary keywords, and search intent
- Plans the article structure with headings, FAQ section, and meta data
- Writes the article following SEO and LLM-SEO best practices
- Delivers the article with full SEO metadata
When to use: Writing new blog posts, refreshing existing content, or any SEO-focused writing task. Works best when you provide reference URLs from the existing blog to match tone and style.
Example request:
"Write a 1500-word article about 'TypeScript strict mode'. Here's our blog for reference: https://blog.example.com"
📈 Marketing Expert (marketing-expert)
Purpose: Develops marketing strategy, campaign plans, growth tactics, and analytics frameworks.
Workflow:
- Identifies the marketing objective and target audience
- Audits existing assets and funnel performance when available
- Develops the requested deliverable — strategy, campaign plan, automation workflow, A/B test plan, or analysis
- Prioritizes recommendations by impact and effort
- Delivers a structured, actionable output
When to use: Campaign planning, funnel optimization, A/B test design, marketing automation, email marketing, social media strategy, or analytics setup. Complements seo-writer for content; focuses on strategy, channels, and measurement.
Example request:
"Design an email nurture sequence for leads who downloaded our pricing page but didn't book a demo."
Composing Agents
Agents work well together. Chain them for multi-step workflows where each agent handles what it does best.
Issue → Plan → Implement → Review
A full feature lifecycle using four agents:
- feature-implementer reads the issue, explores the codebase, and produces an implementation plan
- typescript-expert (or the relevant language expert) implements the code following the plan
- test-writer adds unit and integration tests for the new code
- refactorer reviews the result for unnecessary complexity and cleans it up
@feature-implementer Plan the implementation for #142
@typescript-expert Implement the plan from #142
@test-writer Add tests for the auth module changes
@refactorer Review the changes in this branch for simplification opportunitiesSecurity Hardening
Combine security-focused agents for a thorough sweep:
- security-fixer audits the codebase for OWASP vulnerabilities
- dependency-updater patches outdated packages with known CVEs
- docker-expert hardens Dockerfiles and Compose configs
@security-fixer Audit the authentication flow for vulnerabilities
@dependency-updater Update all packages with known security advisories
@docker-expert Harden our production DockerfileMobile Feature
Build a mobile feature with platform and tooling experts:
- react-native-expert implements the feature with proper native patterns
- expo-expert configures EAS builds and OTA updates
- test-writer adds component and integration tests
@react-native-expert Build the push notification preferences screen
@expo-expert Set up EAS Update for the notifications feature
@test-writer Add tests for the notification preferences flowUsage Examples
On GitHub.com (Issue Assignment)
- Create an issue: "Fix the N+1 query in the posts listing endpoint"
- Open the Copilot coding agent panel
- Select bug-fixer (or postgresql-expert for query-focused fixes)
- The agent autonomously creates a PR
In VS Code (Chat)
@bug-fixer Fix the null pointer exception in src/services/auth.ts:42
@typescript-expert Refactor this module to use discriminated unions instead of type guards
@react-expert Convert this class component to a modern functional component with hooksVia Copilot CLI
copilot /agent bug-fixer "Fix the authentication timeout issue"Creating Your Own Agents
See Customization for how to create custom agents for your specific needs.
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
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.

