-
-
Notifications
You must be signed in to change notification settings - Fork 10
Add AGENTS.md with AI coding agent guidelines #4102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,221 @@ | ||||||||||||
| # Agent Guidelines for The Combine | ||||||||||||
|
|
||||||||||||
| This document provides guidelines for AI coding agents working on The Combine codebase. Following these guidelines ensures consistency, quality, and compatibility with the project's development workflow. | ||||||||||||
|
|
||||||||||||
| ## Table of Contents | ||||||||||||
|
|
||||||||||||
| 1. [Commit Messages](#commit-messages) | ||||||||||||
| 2. [Code Style](#code-style) | ||||||||||||
| 3. [Formatting](#formatting) | ||||||||||||
| 4. [Dependency Management](#dependency-management) | ||||||||||||
| 5. [Backend Controllers](#backend-controllers) | ||||||||||||
| 6. [Localization](#localization) | ||||||||||||
|
|
||||||||||||
| --- | ||||||||||||
|
|
||||||||||||
| ## Commit Messages | ||||||||||||
|
|
||||||||||||
| All commit messages must satisfy the defaults of [gitlint](https://jorisroovers.com/gitlint/). | ||||||||||||
|
|
||||||||||||
| **Key requirements:** | ||||||||||||
| - Minimum title length: 4 characters (as configured in `.gitlint`) | ||||||||||||
| - Follow conventional commit message format | ||||||||||||
| - Keep the title concise and descriptive | ||||||||||||
| - Add detailed explanations in the commit body when necessary | ||||||||||||
|
|
||||||||||||
| **Example:** | ||||||||||||
| ``` | ||||||||||||
| Add user authentication endpoint | ||||||||||||
|
|
||||||||||||
| Implements JWT-based authentication for user login. | ||||||||||||
| Includes validation and error handling. | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| --- | ||||||||||||
|
|
||||||||||||
| ## Code Style | ||||||||||||
|
|
||||||||||||
| Follow the project's established style guides: | ||||||||||||
|
|
||||||||||||
| ### TypeScript/JavaScript | ||||||||||||
| - Refer to [`docs/style_guide/ts_style_guide.md`](docs/style_guide/ts_style_guide.md) for comprehensive TypeScript and JavaScript conventions | ||||||||||||
| - Key points include: | ||||||||||||
| - Use `camelCase` for variables and functions | ||||||||||||
| - Use `PascalCase` for components, classes, and interfaces | ||||||||||||
| - Prefer `const` over `let`, avoid `var` | ||||||||||||
| - Use semicolons | ||||||||||||
| - Use single quotes for strings | ||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Incorrect quote style guidance. This line states "Use single quotes for strings," but the TypeScript style guide at line 343 specifies: "Prefer double quotes ( Proposed fix- - Use single quotes for strings
+ - Use double quotes for strings📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||||||||
| - Use single quotes for strings | |
| - Use single quotes for strings | |
| - Alphabetize component props in interfaces and JSX |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add language identifier to code fence.
The commit message example should specify a language identifier for proper syntax highlighting.
Proposed fix
🧰 Tools
🪛 markdownlint-cli2 (0.18.1)
27-27: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
🤖 Prompt for AI Agents