BMAD-METHOD/.claude/rules/python-llm-ml-workflow-curs...
oimiragieo 2c082180cb Build: bmad-spec-kit v1
Merged both the BMAD and Github SPEC frameworks into a single entity to see how Claude Code operates with subagents, and some detailed Claude rules.
2025-09-08 18:06:15 -04:00
..
.cursorrules Build: bmad-spec-kit v1 2025-09-08 18:06:15 -04:00
README.md Build: bmad-spec-kit v1 2025-09-08 18:06:15 -04:00
asynchronous-programming-preference.mdc Build: bmad-spec-kit v1 2025-09-08 18:06:15 -04:00
code-formatting-with-ruff.mdc Build: bmad-spec-kit v1 2025-09-08 18:06:15 -04:00
comprehensive-type-annotations.mdc Build: bmad-spec-kit v1 2025-09-08 18:06:15 -04:00
comprehensive-unit-testing-with-pytest.mdc Build: bmad-spec-kit v1 2025-09-08 18:06:15 -04:00
data-pipeline-management-with-dvc.mdc Build: bmad-spec-kit v1 2025-09-08 18:06:15 -04:00
data-validation-with-pydantic.mdc Build: bmad-spec-kit v1 2025-09-08 18:06:15 -04:00
detailed-docstrings.mdc Build: bmad-spec-kit v1 2025-09-08 18:06:15 -04:00
experiment-configuration-with-hydra-yaml.mdc Build: bmad-spec-kit v1 2025-09-08 18:06:15 -04:00
fastapi-web-framework.mdc Build: bmad-spec-kit v1 2025-09-08 18:06:15 -04:00
google-style-docstrings.mdc Build: bmad-spec-kit v1 2025-09-08 18:06:15 -04:00
llm-prompt-engineering.mdc Build: bmad-spec-kit v1 2025-09-08 18:06:15 -04:00
logging-module-usage.mdc Build: bmad-spec-kit v1 2025-09-08 18:06:15 -04:00
poetry-rye-dependency-management.mdc Build: bmad-spec-kit v1 2025-09-08 18:06:15 -04:00
prioritize-python-3-10-features.mdc Build: bmad-spec-kit v1 2025-09-08 18:06:15 -04:00
python-general-role-definition.mdc Build: bmad-spec-kit v1 2025-09-08 18:06:15 -04:00
testing-framework-pytest.mdc Build: bmad-spec-kit v1 2025-09-08 18:06:15 -04:00
type-hinting-rule.mdc Build: bmad-spec-kit v1 2025-09-08 18:06:15 -04:00

README.md

Python LLM & ML Workflow .cursorrules Prompt File

Synopsis

This prompt file is designed for senior Python AI/ML engineers specializing in Large Language Model (LLM) applications and Machine Learning (ML) workflow optimization. It provides a comprehensive set of guidelines and best practices for developing high-quality, maintainable, and efficient Python code.

Tech Stack

  • Python 3.10+
  • Poetry / Rye
  • Ruff
  • typing module
  • pytest
  • Google Style Docstrings
  • conda / venv
  • docker, docker-compose
  • async and await
  • fastapi
  • gradio, streamlit
  • langchain, transformers
  • (Optional) faiss, chroma, mlflow, tensorboard, optuna, hyperopt, pandas, numpy, dask, pyspark
  • git
  • gunicorn, uvicorn, nginx, caddy
  • systemd, supervisor

Key Features

  • Emphasizes modular design, code quality, and ML/AI-specific guidelines.
  • Focuses on performance optimization, including asynchronous programming and caching.
  • Provides detailed coding standards and best practices for Python and FastAPI.
  • Includes guidelines for effective documentation, testing, and error handling.
  • Tailored for use with the Cursor IDE, but applicable to general Python development.

Usage

Place this .cursorrules file in the root of your project to guide the AI assistant in adhering to these standards and practices.

Contribution

This prompt file is a collaborative effort, and contributions are welcome. Feel free to suggest improvements or additions to enhance its utility for Python AI/ML development.