|
1 | 1 | # AGENTS.md |
2 | 2 |
|
| 3 | +> **⚠️ IMPORTANT FOR AI AGENTS:** This file is automatically loaded as workspace rules in Cursor. Always refer to this document when making code changes, answering questions, or planning features. Follow the guidelines, workflows, and checklists provided here. |
| 4 | +
|
3 | 5 | ## Purpose |
4 | 6 |
|
5 | 7 | This document provides a concise, structured reference for AI agents (such as GPT, Claude, Gemini, etc.) to understand and assist with the Stonks Overwatch project. It summarizes the architecture, extension points, and key development practices, enabling agents to answer questions, generate code, or plan enhancements effectively. |
6 | 8 |
|
| 9 | +**For AI Agents:** This file contains critical information about: |
| 10 | +- Code style and standards |
| 11 | +- Architecture patterns (Factory, Registry, Dependency Injection) |
| 12 | +- Validation workflows |
| 13 | +- Self-review checklists |
| 14 | +- Common pitfalls to avoid |
| 15 | + |
| 16 | +**Always consult this file before making changes.** |
| 17 | + |
7 | 18 | --- |
8 | 19 |
|
9 | 20 | ## Quick Reference for AI Agents |
@@ -45,6 +56,7 @@ make collectstatic # After editing static files |
45 | 56 | - ❌ Don't skip type hints - They're required |
46 | 57 | - ❌ Don't use bare `except:` - Always catch specific exceptions |
47 | 58 | - ❌ Don't hardcode paths - Use environment variables or Django settings |
| 59 | +- ❌ Don't use HTML in Markdown files - Use pure Markdown syntax only |
48 | 60 |
|
49 | 61 | --- |
50 | 62 |
|
@@ -610,6 +622,17 @@ class PortfolioEntry: |
610 | 622 | - **Auto-fix Markdown files:** |
611 | 623 | - `make markdown-fix` — Automatically fix Markdown style issues. |
612 | 624 |
|
| 625 | +### Markdown Standards |
| 626 | + |
| 627 | +- **HTML is NOT allowed** - Use pure Markdown syntax only |
| 628 | +- Markdown files are linted using `pymarkdown` (run `make markdown-check` to verify) |
| 629 | +- **Image sizing:** Standard Markdown does not support image sizing. To resize images: |
| 630 | + - Resize the actual image file itself using image editing tools |
| 631 | + - Use a smaller version of the image file if available |
| 632 | + - Do NOT use HTML `<img>` tags with width/height attributes |
| 633 | +- Follow standard Markdown conventions for consistency |
| 634 | +- Run `make markdown-fix` to auto-fix common Markdown style issues |
| 635 | + |
613 | 636 | ### Additional Useful Commands |
614 | 637 |
|
615 | 638 | - `make help` — List all available Makefile commands. |
@@ -859,6 +882,12 @@ def test_fetch_data(): |
859 | 882 | - [ ] `make check-dependencies` passes (if dependencies changed) |
860 | 883 | - [ ] `make pre-commit-run` passes (all hooks green) |
861 | 884 |
|
| 885 | +### Documentation |
| 886 | +- [ ] Markdown files use pure Markdown syntax (no HTML) |
| 887 | +- [ ] `make markdown-check` passes (no Markdown linting errors) |
| 888 | +- [ ] `make markdown-fix` run if needed (auto-fix Markdown style issues) |
| 889 | +- [ ] Documentation is clear and helpful for users |
| 890 | + |
862 | 891 | ### Compatibility & Best Practices |
863 | 892 | - [ ] Changes are backward compatible (unless explicitly breaking) |
864 | 893 | - [ ] No commented-out code (Git tracks history) |
|
0 commit comments