Skip to content

Commit 4f16752

Browse files
docs: Update Markdown standards to prohibit HTML usage and enhance documentation clarity (#240)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent bee0a5e commit 4f16752

File tree

4 files changed

+35
-1
lines changed

4 files changed

+35
-1
lines changed

AGENTS.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
# AGENTS.md
22

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+
35
## Purpose
46

57
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.
68

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+
718
---
819

920
## Quick Reference for AI Agents
@@ -45,6 +56,7 @@ make collectstatic # After editing static files
4556
- ❌ Don't skip type hints - They're required
4657
- ❌ Don't use bare `except:` - Always catch specific exceptions
4758
- ❌ Don't hardcode paths - Use environment variables or Django settings
59+
- ❌ Don't use HTML in Markdown files - Use pure Markdown syntax only
4860

4961
---
5062

@@ -610,6 +622,17 @@ class PortfolioEntry:
610622
- **Auto-fix Markdown files:**
611623
- `make markdown-fix` — Automatically fix Markdown style issues.
612624

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+
613636
### Additional Useful Commands
614637

615638
- `make help` — List all available Makefile commands.
@@ -859,6 +882,12 @@ def test_fetch_data():
859882
- [ ] `make check-dependencies` passes (if dependencies changed)
860883
- [ ] `make pre-commit-run` passes (all hooks green)
861884

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+
862891
### Compatibility & Best Practices
863892
- [ ] Changes are backward compatible (unless explicitly breaking)
864893
- [ ] No commented-out code (Git tracks history)

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ class PortfolioService:
268268
- **Error handling**: Use custom exceptions with proper error messages
269269
- **Logging**: Use structured logging with appropriate log levels
270270

271+
> **Note for AI Agents:** See [`AGENTS.md`](../AGENTS.md) for detailed architecture patterns, code examples, and AI-specific guidance.
272+
271273
## Testing
272274

273275
### Test Requirements

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Stonks Overwatch
22

3-
![Stonks Overwatch Logo](src/icons/stonks_overwatch.png)
3+
![Stonks Overwatch Logo](src/icons/stonks_overwatch-256.png)
44

55
**A privacy-first, open-source investment portfolio tracker**
66

@@ -111,6 +111,7 @@ For detailed installation instructions, see the [Quickstart Guide](docs/Quicksta
111111
- **🚀 [Quickstart Guide](docs/Quickstart.md)** - Get up and running in minutes
112112
- **🖥️ [Desktop App Guide](docs/Application.md)** - Native application installation and updates
113113
- **🔧 [Developer Guide](docs/Developing-Stonks-Overwatch.md)** - Contributing and development setup
114+
- **🤖 [AI Agent Guide](AGENTS.md)** - Guidelines for AI assistants working on this project
114115
- **🏦 Broker Setup**: [DEGIRO](docs/DEGIRO.md)[Bitvavo](docs/Bitvavo.md)[IBKR](docs/IBKR.md)
115116
- **[FAQ](docs/FAQ.md)** - Frequently asked questions
116117

docs/Developing-Stonks-Overwatch.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
> **Audience:** Developers, contributors
44
>
55
> **Summary:** This guide explains how to set up the development environment and contribute to Stonks Overwatch.
6+
>
7+
> **Note for AI Agents:** For AI-specific guidance, code patterns, and validation workflows, see [`AGENTS.md`](../../AGENTS.md) in the project root.
68
79
Stonks Overwatch is a portfolio tracker integrating with multiple brokers (DEGIRO, Bitvavo, IBKR). The system features a **unified broker architecture** with factory patterns, dependency injection, interface-based design, and a centralized broker registry that simplifies development and maintenance.
810

0 commit comments

Comments
 (0)