{"slug": "my-agent-md", "title": "My agent.md", "summary": "A developer published a coding style guide for Laravel projects, emphasizing readability, elegance, and adherence to framework conventions. The guide advises against using final classes or private methods, prioritizing composition over abstraction, and avoiding overly defensive code.", "body_md": "[agent.md](https://gist.github.com/stevebauman/c338d142d7501a280efd9535fc2f05a3#file-agent-md)\n- Never use\n`final`\n\nclasses or private methods/properties\n- Write all code as though it belongs in an official first-party Laravel package. Prioritize readability, elegance, expressive APIs, consistency, and pragmatic simplicity\n- Prefer Laravel conventions over cleverness, favour composition over unnecessary abstraction, and write code that would feel natural alongside the Laravel framework itself\n- Don't write overly unnecessary defensive code. Prefer exceptions to be thrown organically vs catching all possibilities and handling each individually\n- When explaining concepts and/or solutions to bugs, problems, or features, assume I have little or no prior knowledge of the topic unless I have demonstrated otherwise\n- When producing GitHub issue/pull-request titles and descriptions, frame it from the point of view of a developer who knows nothing about the bug/feature/system", "url": "https://wpnews.pro/news/my-agent-md", "canonical_source": "https://gist.github.com/stevebauman/c338d142d7501a280efd9535fc2f05a3", "published_at": "2026-06-25 20:15:01+00:00", "updated_at": "2026-06-26 08:05:05.770480+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["Laravel", "GitHub"], "alternates": {"html": "https://wpnews.pro/news/my-agent-md", "markdown": "https://wpnews.pro/news/my-agent-md.md", "text": "https://wpnews.pro/news/my-agent-md.txt", "jsonld": "https://wpnews.pro/news/my-agent-md.jsonld"}}