agents-config 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/AGENTS.md +490 -0
  2. package/LICENSE +21 -0
  3. package/README.md +254 -0
  4. package/adapters/claude.template.md +77 -0
  5. package/adapters/codex.template.md +72 -0
  6. package/adapters/copilot.template.md +68 -0
  7. package/adapters/cursor.template.md +69 -0
  8. package/adapters/gemini.template.md +73 -0
  9. package/adapters/windsurf.template.md +81 -0
  10. package/bin/agents-init.js +699 -0
  11. package/bin/postinstall.js +28 -0
  12. package/instructions/development-standards.instructions.md +47 -0
  13. package/instructions/github-issue.instructions.md +324 -0
  14. package/instructions/github-release-notes.instructions.md +888 -0
  15. package/instructions/mui.instructions.md +50 -0
  16. package/instructions/storybook.instructions.md +55 -0
  17. package/instructions/web-interface-guidelines.instructions.md +331 -0
  18. package/package.json +56 -0
  19. package/prompts/create-pr.prompt.md +78 -0
  20. package/prompts/scaffold-component.prompt.md +57 -0
  21. package/rules/accessibility.md +36 -0
  22. package/rules/component-architecture.md +34 -0
  23. package/rules/gemini.md +547 -0
  24. package/rules/mui.md +491 -0
  25. package/rules/react-19-compiler.md +26 -0
  26. package/rules/spec-driven-development.md +36 -0
  27. package/rules/supabase.md +40 -0
  28. package/rules/tailwind-v4.md +29 -0
  29. package/rules/three-js-react.md +76 -0
  30. package/rules/web-performance.md +29 -0
  31. package/schemas/agents-project.schema.json +78 -0
  32. package/skills/accessibility-audit/SKILL.md +39 -0
  33. package/skills/integrate-gemini/SKILL.md +124 -0
  34. package/skills/scaffold-component/SKILL.md +77 -0
  35. package/skills/vercel-react-best-practices/AGENTS.md +2719 -0
  36. package/skills/vercel-react-best-practices/SKILL.md +125 -0
  37. package/skills/vercel-react-best-practices/rules/advanced-event-handler-refs.md +55 -0
  38. package/skills/vercel-react-best-practices/rules/advanced-use-latest.md +39 -0
  39. package/skills/vercel-react-best-practices/rules/async-api-routes.md +38 -0
  40. package/skills/vercel-react-best-practices/rules/async-defer-await.md +80 -0
  41. package/skills/vercel-react-best-practices/rules/async-dependencies.md +51 -0
  42. package/skills/vercel-react-best-practices/rules/async-parallel.md +28 -0
  43. package/skills/vercel-react-best-practices/rules/async-suspense-boundaries.md +99 -0
  44. package/skills/vercel-react-best-practices/rules/bundle-barrel-imports.md +59 -0
  45. package/skills/vercel-react-best-practices/rules/bundle-conditional.md +31 -0
  46. package/skills/vercel-react-best-practices/rules/bundle-defer-third-party.md +49 -0
  47. package/skills/vercel-react-best-practices/rules/bundle-dynamic-imports.md +35 -0
  48. package/skills/vercel-react-best-practices/rules/bundle-preload.md +50 -0
  49. package/skills/vercel-react-best-practices/rules/client-event-listeners.md +74 -0
  50. package/skills/vercel-react-best-practices/rules/client-localstorage-schema.md +71 -0
  51. package/skills/vercel-react-best-practices/rules/client-passive-event-listeners.md +48 -0
  52. package/skills/vercel-react-best-practices/rules/client-swr-dedup.md +56 -0
  53. package/skills/vercel-react-best-practices/rules/js-batch-dom-css.md +107 -0
  54. package/skills/vercel-react-best-practices/rules/js-cache-function-results.md +80 -0
  55. package/skills/vercel-react-best-practices/rules/js-cache-property-access.md +28 -0
  56. package/skills/vercel-react-best-practices/rules/js-cache-storage.md +70 -0
  57. package/skills/vercel-react-best-practices/rules/js-combine-iterations.md +32 -0
  58. package/skills/vercel-react-best-practices/rules/js-early-exit.md +50 -0
  59. package/skills/vercel-react-best-practices/rules/js-hoist-regexp.md +45 -0
  60. package/skills/vercel-react-best-practices/rules/js-index-maps.md +37 -0
  61. package/skills/vercel-react-best-practices/rules/js-length-check-first.md +49 -0
  62. package/skills/vercel-react-best-practices/rules/js-min-max-loop.md +82 -0
  63. package/skills/vercel-react-best-practices/rules/js-set-map-lookups.md +24 -0
  64. package/skills/vercel-react-best-practices/rules/js-tosorted-immutable.md +57 -0
  65. package/skills/vercel-react-best-practices/rules/rendering-activity.md +26 -0
  66. package/skills/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
  67. package/skills/vercel-react-best-practices/rules/rendering-conditional-render.md +40 -0
  68. package/skills/vercel-react-best-practices/rules/rendering-content-visibility.md +38 -0
  69. package/skills/vercel-react-best-practices/rules/rendering-hoist-jsx.md +46 -0
  70. package/skills/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
  71. package/skills/vercel-react-best-practices/rules/rendering-svg-precision.md +28 -0
  72. package/skills/vercel-react-best-practices/rules/rendering-usetransition-loading.md +75 -0
  73. package/skills/vercel-react-best-practices/rules/rerender-defer-reads.md +39 -0
  74. package/skills/vercel-react-best-practices/rules/rerender-dependencies.md +45 -0
  75. package/skills/vercel-react-best-practices/rules/rerender-derived-state.md +29 -0
  76. package/skills/vercel-react-best-practices/rules/rerender-functional-setstate.md +74 -0
  77. package/skills/vercel-react-best-practices/rules/rerender-lazy-state-init.md +58 -0
  78. package/skills/vercel-react-best-practices/rules/rerender-memo-with-default-value.md +38 -0
  79. package/skills/vercel-react-best-practices/rules/rerender-memo.md +44 -0
  80. package/skills/vercel-react-best-practices/rules/rerender-simple-expression-in-memo.md +35 -0
  81. package/skills/vercel-react-best-practices/rules/rerender-transitions.md +40 -0
  82. package/skills/vercel-react-best-practices/rules/server-after-nonblocking.md +73 -0
  83. package/skills/vercel-react-best-practices/rules/server-auth-actions.md +96 -0
  84. package/skills/vercel-react-best-practices/rules/server-cache-lru.md +41 -0
  85. package/skills/vercel-react-best-practices/rules/server-cache-react.md +76 -0
  86. package/skills/vercel-react-best-practices/rules/server-dedup-props.md +65 -0
  87. package/skills/vercel-react-best-practices/rules/server-parallel-fetching.md +83 -0
  88. package/skills/vercel-react-best-practices/rules/server-serialization.md +38 -0
  89. package/skills/workflows/sdd-workflow.md +49 -0
  90. package/skills/workflows/setup-orchestration.md +18 -0
package/README.md ADDED
@@ -0,0 +1,254 @@
1
+ # agents-config
2
+
3
+ A comprehensive knowledge base and skill library for building production-grade React applications with AI-powered tools and best practices.
4
+
5
+ [![npm version](https://img.shields.io/npm/v/agents-config.svg)](https://www.npmjs.com/package/agents-config)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
7
+
8
+ ## Overview
9
+
10
+ This package provides curated guidelines, instructions, skills, and rules for developing React/TypeScript applications. It serves as a **single source of truth** for AI-powered development agents and human developers to ensure consistency, accessibility, and performance across all your projects.
11
+
12
+ ## Installation
13
+
14
+ ```bash
15
+ npm install agents-config --save-dev
16
+ ```
17
+
18
+ After installation, run the interactive setup:
19
+
20
+ ```bash
21
+ npx agents-init
22
+ ```
23
+
24
+ This will:
25
+ 1. Detect your project's framework, styling, and database
26
+ 2. Ask which AI agents you use (Copilot, Claude, Cursor, Gemini, etc.)
27
+ 3. Generate adapter files that reference the shared guidelines
28
+ 4. Create a `.agents-project.json` for project-specific configuration
29
+
30
+ ### CLI Options
31
+
32
+ ```bash
33
+ npx agents-init # Interactive mode
34
+ npx agents-init --dry-run # Preview without writing files
35
+ npx agents-init --force # Overwrite existing files
36
+ npx agents-init --help # Show help
37
+ ```
38
+
39
+ ## Supported AI Agents
40
+
41
+ | Agent | Config File | Notes |
42
+ |-------|-------------|-------|
43
+ | **GitHub Copilot** | `.github/copilot-instructions.md` | VS Code, JetBrains |
44
+ | **Claude** | `CLAUDE.md` | Anthropic's Claude |
45
+ | **Cursor** | `.cursorrules` | Cursor IDE |
46
+ | **Gemini** | `.gemini/config.md` | Google Gemini |
47
+ | **Codex** | `.codex/AGENTS.md` | OpenAI Codex |
48
+ | **Windsurf** | `.windsurfrules` | Codeium Windsurf |
49
+
50
+ ## IDE-Specific Caveats
51
+
52
+ ### GitHub Copilot
53
+ - Reads from `.github/copilot-instructions.md`
54
+ - **Context limit**: Keep under 8KB for optimal performance
55
+ - Works in VS Code, JetBrains IDEs, and Neovim
56
+
57
+ ### Claude (Anthropic)
58
+ - Reads `CLAUDE.md` from project root
59
+ - Supports rich markdown with tables and code blocks
60
+ - Excellent for multi-step reasoning tasks
61
+
62
+ ### Cursor
63
+ - Uses `.cursorrules` (no file extension, markdown format)
64
+ - **Context limit**: Keep under 10KB
65
+ - Uses Claude under the hood, same reasoning capabilities
66
+
67
+ ### Gemini (Google)
68
+ - Configuration at `.gemini/config.md`
69
+ - Handles long contexts well
70
+ - Strong multimodal capabilities (can reference images)
71
+
72
+ ### Codex (OpenAI)
73
+ - Reads from `.codex/AGENTS.md` directory
74
+ - Works best with explicit, step-by-step instructions
75
+
76
+ ### Windsurf (Codeium)
77
+ - Uses `.windsurfrules` in project root
78
+ - Fast autocomplete, respects existing code style
79
+
80
+ ## Directory Structure
81
+
82
+ ### 📋 `AGENTS.md`
83
+ Core guidelines for building React applications with AI-powered tools. Establishes the foundational principles and rules for development:
84
+ - Accessibility & performance as first-class features
85
+ - Component architecture patterns
86
+ - TypeScript strict typing
87
+ - State management strategies
88
+ - Form handling and validation
89
+ - Testing and documentation standards
90
+ - Web standards compliance
91
+
92
+ ### 📂 `instructions/`
93
+ Detailed operational guidelines for specific development tasks:
94
+
95
+ - **`development-standards.instructions.md`** - General development standards and best practices
96
+ - **`github-issue.instructions.md`** - Process for creating and managing GitHub issues
97
+ - **`github-release-notes.instructions.md`** - Guidelines for writing release notes
98
+ - **`mui.instructions.md`** - Material-UI (MUI v7+) specific patterns, theming, and dark mode implementation
99
+ - **`storybook.instructions.md`** - Setting up and maintaining Storybook documentation
100
+ - **`web-interface-guidelines.instructions.md`** - Accessibility and UX standards for web interfaces
101
+
102
+ ### 📂 `rules/`
103
+ Deep-dive technical rules and patterns for specific technologies and approaches:
104
+
105
+ - **`accessibility.md`** - Comprehensive accessibility guidelines and WCAG compliance
106
+ - **`component-architecture.md`** - Folder-per-component pattern and structure
107
+ - **`spec-driven-development.md`** - Creating technical specifications before implementation
108
+ - **`react-19-compiler.md`** - React 19 compiler integration and optimization
109
+ - **`gemini.md`** - Google Gemini AI integration rules, security constraints, and UX patterns
110
+ - **`mui.md`** - Material-UI architecture patterns, constraints, and anti-patterns
111
+ - **`supabase.md`** - Supabase backend integration patterns
112
+ - **`tailwind-v4.md`** - Tailwind CSS v4 usage and configuration
113
+ - **`three-js-react.md`** - Three.js integration with React
114
+ - **`web-performance.md`** - Performance optimization strategies
115
+
116
+ ### 📂 `prompts/`
117
+ Pre-written prompt templates for AI-powered code generation and assistance:
118
+
119
+ - **`create-pr.prompt.md`** - Template for generating pull request descriptions
120
+ - **`scaffold-component.prompt.md`** - Template for component scaffolding requests
121
+
122
+ ### 📂 `skills/`
123
+ Reusable skill modules for common development tasks. Each skill includes specific guidance and workflows:
124
+
125
+ #### **`accessibility-audit/`**
126
+ Verify components meet accessibility standards before marking features as "Done". Includes checklist for:
127
+ - Semantic HTML structure
128
+ - Focus management and keyboard navigation
129
+ - ARIA labels and form associations
130
+ - Dynamic content handling
131
+
132
+ #### **`scaffold-component/`**
133
+ Create new React components following project constraints. Implements:
134
+ - Spec-Driven Development workflow
135
+ - Framework detection (Tailwind, MUI, Vanilla)
136
+ - Component architecture patterns
137
+ - Framework-specific rules and conventions
138
+
139
+ #### **`integrate-gemini/`**
140
+ Implement Google Gemini API integration with:
141
+ - Secure API key handling
142
+ - Streaming response patterns
143
+ - Error handling and rate limiting
144
+ - Loading and streaming UI states
145
+ - Attribution and safety requirements
146
+
147
+ #### **`vercel-react-best-practices/`**
148
+ Performance optimization guidelines from Vercel Engineering. Covers 45+ rules across 8 categories:
149
+ - Eliminating waterfalls (async patterns)
150
+ - Bundle size optimization
151
+ - Server-side performance
152
+ - Client-side data fetching
153
+ - Rendering optimization
154
+ - Re-render prevention
155
+ - Event handling and refs
156
+ - JavaScript optimization
157
+
158
+ Includes subdirectories:
159
+ - **`rules/`** - Individual rule documents (45+ files organized by category)
160
+ - **`workflows/`** - Task-specific workflows:
161
+ - `sdd-workflow.md` - Spec-driven development workflow
162
+ - `setup-orchestration.md` - Project setup orchestration
163
+
164
+ ## Key Principles
165
+
166
+ 1. **Accessibility First** - WCAG compliance and inclusive design are non-negotiable
167
+ 2. **Performance Matters** - Optimize for real-world conditions and user experience
168
+ 3. **Spec-Driven** - Create specifications before implementation
169
+ 4. **Component-Focused** - Folder-per-component architecture for maintainability
170
+ 5. **Type Safety** - Strict TypeScript throughout
171
+ 6. **Web Standards** - Follow semantic HTML and platform conventions
172
+
173
+ ## Usage
174
+
175
+ ### For AI Agents
176
+ Reference the appropriate skill or rule based on the development task:
177
+ - Use `accessibility-audit` before marking features complete
178
+ - Use `scaffold-component` when creating new components
179
+ - Use `integrate-gemini` for AI feature implementation
180
+ - Reference `vercel-react-best-practices` for performance optimization
181
+
182
+ ### For Developers
183
+ - Start with [AGENTS.md](AGENTS.md) for core principles
184
+ - Reference relevant files in `rules/` and `instructions/` for specific guidance
185
+ - Use `prompts/` as templates for consistent communication
186
+ - Follow the workflows in `skills/` for common tasks
187
+
188
+ ## Integration
189
+
190
+ This repository is designed to be used as:
191
+ - A knowledge base for AI coding assistants (GitHub Copilot, Claude, etc.)
192
+ - A reference guide for development teams
193
+ - A configuration source for agent-based development workflows
194
+ - A source of truth for coding standards and best practices
195
+
196
+ ## Project Configuration
197
+
198
+ After running `npx agents-init`, a `.agents-project.json` file is created:
199
+
200
+ ```json
201
+ {
202
+ "$schema": "https://raw.githubusercontent.com/ericthayer/agents-config/main/schemas/agents-project.schema.json",
203
+ "version": "1.0.0",
204
+ "project": {
205
+ "name": "my-app",
206
+ "framework": "next",
207
+ "styling": "tailwind",
208
+ "database": "supabase"
209
+ },
210
+ "agents": ["copilot", "claude", "cursor"],
211
+ "rules": {
212
+ "include": ["accessibility", "component-architecture", "tailwind-v4"],
213
+ "exclude": []
214
+ },
215
+ "overrides": {}
216
+ }
217
+ ```
218
+
219
+ ### Customization
220
+
221
+ Add project-specific overrides in the generated adapter files or in `.agents-project.json`:
222
+
223
+ ```json
224
+ {
225
+ "overrides": {
226
+ "accessibility": {
227
+ "minContrastRatio": 7.0
228
+ },
229
+ "component-architecture": {
230
+ "maxComponentSize": 300
231
+ }
232
+ }
233
+ }
234
+ ```
235
+
236
+ ## Versioning
237
+
238
+ This package follows [Semantic Versioning](https://semver.org/):
239
+
240
+ - **Major** (1.0.0 → 2.0.0): Breaking changes to rules or agent configurations
241
+ - **Minor** (1.0.0 → 1.1.0): New rules, skills, or agent support added
242
+ - **Patch** (1.0.0 → 1.0.1): Bug fixes, typo corrections, clarifications
243
+
244
+ ## Contributing
245
+
246
+ Contributions welcome! Please read the guidelines in [AGENTS.md](AGENTS.md) before submitting.
247
+
248
+ ## License
249
+
250
+ MIT © Eric Thayer
251
+
252
+ ---
253
+
254
+ **Last Updated:** January 31, 2025
@@ -0,0 +1,77 @@
1
+ # CLAUDE.md
2
+
3
+ > Claude (Anthropic) configuration for **{{PROJECT_NAME}}**.
4
+ > Generated by `agents-config` - https://www.npmjs.com/package/agents-config
5
+
6
+ ## Project Context
7
+
8
+ | Aspect | Technology |
9
+ |--------|------------|
10
+ | Framework | {{FRAMEWORK}} |
11
+ | Styling | {{STYLING}} |
12
+ | Database | {{DATABASE}} |
13
+
14
+ ## Shared Guidelines Reference
15
+
16
+ This project uses shared agentic configuration. The following rules apply:
17
+
18
+ ### Included Rules
19
+ {{RULES_LIST}}
20
+
21
+ ### Available Skills (in .agents/skills/)
22
+
23
+ For complex tasks, use these specialized skill workflows:
24
+
25
+ - `.agents/skills/accessibility-audit/SKILL.md` - Comprehensive accessibility testing
26
+ - `.agents/skills/scaffold-component/SKILL.md` - Component scaffolding with specs
27
+ - `.agents/skills/integrate-gemini/SKILL.md` - AI integration patterns (if enabled)
28
+ - `.agents/skills/vercel-react-best-practices/SKILL.md` - Performance patterns
29
+
30
+ ### Instructions (in .agents/instructions/)
31
+
32
+ Process guidelines for specific workflows like MUI theming, Storybook, etc.
33
+
34
+ ## Agent Definitions
35
+
36
+ ### 🏗️ Component Scaffolding Agent
37
+ **Trigger**: "scaffold component", "create component"
38
+ **Workflow**: Generate spec → Create component → Add tests → Document in Storybook
39
+
40
+ ### 🔍 Accessibility Audit Agent
41
+ **Trigger**: "audit accessibility", "check a11y"
42
+ **Workflow**: Run automated checks → Manual review → Generate report
43
+
44
+ ### ⚡ Performance Optimization Agent
45
+ **Trigger**: "optimize performance", "improve speed"
46
+ **Workflow**: Analyze bundle → Check renders → Optimize
47
+
48
+ ## Project-Specific Context
49
+
50
+ <!-- Add project-specific context below -->
51
+
52
+ ### Key Directories
53
+
54
+ ```
55
+ .agents/ # Project's agent configuration
56
+ ├── AGENTS.md # Core guidelines
57
+ ├── rules/ # Coding standards for this stack
58
+ ├── skills/ # Specialized workflows
59
+ └── instructions/ # Process guidelines
60
+ ```
61
+
62
+ ### Development Workflow
63
+
64
+ 1. **Spec-Driven Development** - Write specs before implementation
65
+ 2. **Test Coverage** - Maintain 80%+ coverage
66
+ 3. **Accessibility** - WCAG 2.2 AA compliance required
67
+
68
+ ## IDE-Specific Caveats
69
+
70
+ > **Note**: Claude reads this file as `CLAUDE.md` in the project root.
71
+ > For VS Code with Claude extension, ensure this file exists at the root level.
72
+
73
+ ### Claude-Specific Tips
74
+
75
+ - Claude excels at multi-step reasoning - describe the full context
76
+ - Use structured formats (tables, lists) for clarity
77
+ - Reference specific files and line numbers when asking about code
@@ -0,0 +1,72 @@
1
+ # Codex Agents Configuration
2
+
3
+ > OpenAI Codex configuration for **{{PROJECT_NAME}}**.
4
+ > Generated by `agents-config` - https://www.npmjs.com/package/agents-config
5
+
6
+ ## Project Context
7
+
8
+ - **Framework**: {{FRAMEWORK}}
9
+ - **Styling**: {{STYLING}}
10
+ - **Database**: {{DATABASE}}
11
+
12
+ ## Shared Guidelines
13
+
14
+ This project follows shared agentic configuration:
15
+
16
+ ### Active Rules
17
+ {{RULES_LIST}}
18
+
19
+ ### Available Skills (in .agents/skills/)
20
+
21
+ - `.agents/skills/accessibility-audit/SKILL.md` - Accessibility compliance checking
22
+ - `.agents/skills/scaffold-component/SKILL.md` - Component scaffolding workflow
23
+ - `.agents/skills/integrate-gemini/SKILL.md` - AI integration patterns
24
+ - `.agents/skills/vercel-react-best-practices/SKILL.md` - Performance optimization
25
+
26
+ ## Agent Configuration
27
+
28
+ ### Default Behavior
29
+
30
+ - Follow TypeScript best practices
31
+ - Generate accessible code by default
32
+ - Include comprehensive error handling
33
+ - Add inline documentation
34
+
35
+ ### Code Style
36
+
37
+ - Use ESLint + Prettier configuration
38
+ - Prefer named exports
39
+ - Use async/await over .then() chains
40
+ - Destructure props in function signatures
41
+
42
+ ### Testing Requirements
43
+
44
+ - Write tests alongside implementation
45
+ - Use React Testing Library patterns
46
+ - Mock external dependencies
47
+ - Test accessibility with jest-axe
48
+
49
+ ## File Organization
50
+
51
+ ```
52
+ {{PROJECT_NAME}}/
53
+ ├── .codex/ # This configuration
54
+ ├── src/
55
+ │ ├── components/ # UI components
56
+ │ ├── features/ # Feature modules
57
+ │ ├── hooks/ # Custom hooks
58
+ │ └── lib/ # Utilities
59
+ └── tests/ # Test files
60
+ ```
61
+
62
+ ## IDE-Specific Caveats
63
+
64
+ > **Note**: Codex reads configuration from `.codex/AGENTS.md`.
65
+ > Ensure this directory exists at the project root.
66
+
67
+ ### Codex-Specific Tips
68
+
69
+ - Codex works well with explicit, step-by-step instructions
70
+ - Include example code when requesting similar patterns
71
+ - Specify language and framework versions explicitly
72
+ - Use comments to guide code generation
@@ -0,0 +1,68 @@
1
+ # GitHub Copilot Instructions
2
+
3
+ > This file configures GitHub Copilot for **{{PROJECT_NAME}}**.
4
+ > Generated by `agents-config` - https://www.npmjs.com/package/agents-config
5
+
6
+ ## Project Context
7
+
8
+ - **Framework**: {{FRAMEWORK}}
9
+ - **Styling**: {{STYLING}}
10
+ - **Database**: {{DATABASE}}
11
+
12
+ ## Shared Guidelines
13
+
14
+ This project follows shared agentic configuration guidelines. All rules, skills, and instructions are in the `.agents/` folder:
15
+
16
+ ### Core Rules
17
+ {{RULES_LIST}}
18
+
19
+ ### Skills (in .agents/skills/)
20
+
21
+ - **accessibility-audit/SKILL.md** - WCAG 2.2 AA compliance auditing
22
+ - **scaffold-component/SKILL.md** - Component scaffolding with accessibility built-in
23
+ - **integrate-gemini/SKILL.md** - AI feature integration patterns (if Gemini enabled)
24
+ - **vercel-react-best-practices/SKILL.md** - Performance optimization patterns
25
+
26
+ ### Instructions (in .agents/instructions/)
27
+
28
+ Process guidelines for development workflows.
29
+
30
+ ## Project-Specific Guidelines
31
+
32
+ <!-- Add project-specific guidelines below -->
33
+
34
+ ### Architecture
35
+
36
+ Follow component architecture patterns defined in the shared rules. Key principles:
37
+
38
+ 1. **Composition over inheritance** - Prefer composable components
39
+ 2. **Single responsibility** - Each component has one clear purpose
40
+ 3. **Accessibility first** - ARIA attributes and keyboard navigation built-in
41
+
42
+ ### Code Style
43
+
44
+ - Use TypeScript for type safety
45
+ - Follow React 19+ patterns (use hooks, avoid class components)
46
+ - Prefer Server Components where appropriate
47
+
48
+ ### File Organization
49
+
50
+ ```
51
+ src/
52
+ ├── components/ # Reusable UI components
53
+ ├── features/ # Feature-specific modules
54
+ ├── hooks/ # Custom React hooks
55
+ ├── lib/ # Utility functions
56
+ └── types/ # TypeScript type definitions
57
+ ```
58
+
59
+ ## IDE-Specific Caveats
60
+
61
+ > **Note**: GitHub Copilot reads this file from `.github/copilot-instructions.md`.
62
+ > Keep this file focused and under 8KB for optimal context usage.
63
+
64
+ ### Copilot-Specific Tips
65
+
66
+ - Copilot works best with clear, descriptive comments
67
+ - Use JSDoc annotations for better suggestions
68
+ - Keep files well-organized with clear naming conventions
@@ -0,0 +1,69 @@
1
+ # Cursor Rules
2
+
3
+ > Cursor configuration for **{{PROJECT_NAME}}**.
4
+ > Generated by `agents-config` - https://www.npmjs.com/package/agents-config
5
+
6
+ ## Project Context
7
+
8
+ - Framework: {{FRAMEWORK}}
9
+ - Styling: {{STYLING}}
10
+ - Database: {{DATABASE}}
11
+
12
+ ## Shared Guidelines
13
+
14
+ This project follows shared agentic configuration rules:
15
+
16
+ ### Active Rules
17
+ {{RULES_LIST}}
18
+
19
+ ### Skills (in .agents/skills/)
20
+
21
+ - `.agents/skills/accessibility-audit/SKILL.md` - WCAG compliance checking
22
+ - `.agents/skills/scaffold-component/SKILL.md` - Component generation
23
+ - `.agents/skills/integrate-gemini/SKILL.md` - AI feature patterns
24
+ - `.agents/skills/vercel-react-best-practices/SKILL.md` - Performance optimization
25
+
26
+ ## Code Generation Rules
27
+
28
+ When generating code, follow these principles:
29
+
30
+ ### Component Structure
31
+
32
+ - Export named components (not default exports)
33
+ - Use TypeScript with explicit prop types
34
+ - Include JSDoc comments for public APIs
35
+ - Add data-testid attributes for testing
36
+
37
+ ### Accessibility Requirements
38
+
39
+ - All interactive elements must be keyboard accessible
40
+ - Provide aria-labels for icon-only buttons
41
+ - Ensure color contrast meets WCAG 2.2 AA
42
+ - Include focus indicators
43
+
44
+ ### Performance Considerations
45
+
46
+ - Use React.memo() for expensive components
47
+ - Lazy load routes and heavy components
48
+ - Avoid inline object/function definitions in JSX
49
+
50
+ ## File Patterns
51
+
52
+ When creating files:
53
+
54
+ - Components: `PascalCase.tsx`
55
+ - Hooks: `useCamelCase.ts`
56
+ - Utils: `kebab-case.ts`
57
+ - Tests: `*.test.ts` or `*.spec.ts`
58
+
59
+ ## IDE-Specific Caveats
60
+
61
+ > **Note**: Cursor reads this file from `.cursorrules` in the project root.
62
+ > This file uses Markdown format but has no file extension.
63
+
64
+ ### Cursor-Specific Tips
65
+
66
+ - Cursor uses Claude under the hood - same reasoning capabilities
67
+ - Use @-mentions to reference files in chat
68
+ - Cursor's Composer works best with clear, scoped requests
69
+ - Keep .cursorrules under 10KB for optimal performance
@@ -0,0 +1,73 @@
1
+ # Gemini Configuration
2
+
3
+ > Google Gemini configuration for **{{PROJECT_NAME}}**.
4
+ > Generated by `agents-config` - https://www.npmjs.com/package/agents-config
5
+
6
+ ## Project Context
7
+
8
+ | Setting | Value |
9
+ |---------|-------|
10
+ | Framework | {{FRAMEWORK}} |
11
+ | Styling | {{STYLING}} |
12
+ | Database | {{DATABASE}} |
13
+
14
+ ## Shared Guidelines
15
+
16
+ This project uses shared agentic configuration:
17
+
18
+ ### Included Rules
19
+ {{RULES_LIST}}
20
+
21
+ ### AI Integration (Gemini-Specific)
22
+
23
+ When integrating Gemini features into this project, follow the patterns in:
24
+ - `.agents/rules/gemini.md` - Gemini integration guidelines
25
+ - `.agents/skills/integrate-gemini/SKILL.md` - Integration workflow
26
+
27
+ ## Code Generation Preferences
28
+
29
+ ### TypeScript Standards
30
+
31
+ - Use strict TypeScript configuration
32
+ - Prefer interfaces over type aliases for object shapes
33
+ - Use discriminated unions for state management
34
+ - Avoid `any` - use `unknown` with type guards
35
+
36
+ ### React Patterns
37
+
38
+ - Functional components with hooks only
39
+ - Server Components by default (Next.js)
40
+ - Client Components marked with 'use client'
41
+ - Suspense boundaries for async operations
42
+
43
+ ### Accessibility
44
+
45
+ All generated code must include:
46
+ - Semantic HTML elements
47
+ - ARIA attributes where needed
48
+ - Keyboard navigation support
49
+ - Screen reader friendly content
50
+
51
+ ## Project Structure
52
+
53
+ ```
54
+ src/
55
+ ├── app/ # Next.js app router
56
+ ├── components/ # Shared components
57
+ ├── features/ # Feature modules
58
+ ├── hooks/ # Custom hooks
59
+ ├── lib/ # Utilities
60
+ └── types/ # Type definitions
61
+ ```
62
+
63
+ ## IDE-Specific Caveats
64
+
65
+ > **Note**: Gemini in various IDEs may read configuration differently.
66
+ > This file is placed at `.gemini/config.md` for compatibility.
67
+
68
+ ### Gemini-Specific Tips
69
+
70
+ - Gemini excels at multimodal tasks - include images/screenshots when helpful
71
+ - Use structured prompts with clear sections
72
+ - Gemini handles long contexts well - include full file contents when needed
73
+ - For code generation, specify the exact file path and format expected
@@ -0,0 +1,81 @@
1
+ # Windsurf Rules
2
+
3
+ > Windsurf/Codeium configuration for **{{PROJECT_NAME}}**.
4
+ > Generated by `agents-config` - https://www.npmjs.com/package/agents-config
5
+
6
+ ## Project Context
7
+
8
+ | Aspect | Technology |
9
+ |--------|------------|
10
+ | Framework | {{FRAMEWORK}} |
11
+ | Styling | {{STYLING}} |
12
+ | Database | {{DATABASE}} |
13
+
14
+ ## Shared Guidelines
15
+
16
+ This project uses shared agentic configuration:
17
+
18
+ ### Included Rules
19
+ {{RULES_LIST}}
20
+
21
+ ### Specialized Skills (in .agents/skills/)
22
+
23
+ - `.agents/skills/accessibility-audit/SKILL.md` - WCAG 2.2 AA compliance
24
+ - `.agents/skills/scaffold-component/SKILL.md` - Component generation workflow
25
+ - `.agents/skills/integrate-gemini/SKILL.md` - AI integration patterns
26
+ - `.agents/skills/vercel-react-best-practices/SKILL.md` - Performance optimization
27
+
28
+ ## Code Generation Standards
29
+
30
+ ### Component Architecture
31
+
32
+ 1. Use functional components with TypeScript
33
+ 2. Define explicit prop interfaces
34
+ 3. Include default prop values where sensible
35
+ 4. Export named components
36
+
37
+ ### Accessibility (Required)
38
+
39
+ All generated components must include:
40
+ - Semantic HTML structure
41
+ - ARIA labels for interactive elements
42
+ - Keyboard navigation support
43
+ - Focus management
44
+ - Color contrast compliance
45
+
46
+ ### Performance
47
+
48
+ - Memoize expensive computations
49
+ - Lazy load non-critical components
50
+ - Optimize re-renders with proper dependencies
51
+ - Use appropriate loading states
52
+
53
+ ## Project Patterns
54
+
55
+ ### Naming Conventions
56
+
57
+ - Components: `PascalCase`
58
+ - Hooks: `useCamelCase`
59
+ - Utils: `camelCase`
60
+ - Constants: `SCREAMING_SNAKE_CASE`
61
+ - Files: Match export name
62
+
63
+ ### Import Order
64
+
65
+ 1. React/framework imports
66
+ 2. Third-party libraries
67
+ 3. Internal absolute imports
68
+ 4. Relative imports
69
+ 5. Styles/assets
70
+
71
+ ## IDE-Specific Caveats
72
+
73
+ > **Note**: Windsurf reads this file from `.windsurfrules` in the project root.
74
+ > Keep the file size reasonable for optimal context usage.
75
+
76
+ ### Windsurf-Specific Tips
77
+
78
+ - Windsurf (Codeium) provides fast autocomplete - write clear patterns
79
+ - Use descriptive variable names for better suggestions
80
+ - Include type annotations for improved accuracy
81
+ - Windsurf respects existing code style - maintain consistency