# io8 Code Master Agent - Customized for This Project

## Project-Specific Instructions

## Calculator App Project Breakdown - 2025-09-25 06:56:05

This section details the breakdown of the 'calculator app' project, focusing on the key components and their dependencies.  The breakdown is based on the cloned base project and the user prompt.

**I. Frontend Development:**

* **UI Design & Implementation:**  Creation of the calculator's user interface.  This includes the design of the buttons, display, and overall layout. The technology stack (React, Vue, Angular, etc.) will be determined by the `io8architect` agent.  This task will use the `frontend/src` directory.
* **Functionality Implementation:**  Implementing the core calculator functionality, including basic arithmetic operations (+, -, *, /).  This will involve writing JavaScript (or equivalent) code to handle user input, perform calculations, and update the display. Error handling (e.g., division by zero) will be a critical consideration.
* **Testing:**  Thorough testing of the frontend to ensure functionality, responsiveness, and usability across various devices and browsers.

**II. Backend Development (Optional):**

* **API Design & Implementation (If Required):** If a backend is deemed necessary (e.g., for complex calculations or data persistence), an API will be designed and implemented.  The choice of technology stack will depend on the `io8architect` agent's recommendations, likely residing within the `backend/` directory.
* **Data Persistence (If Required):**  If a database is needed (determined by the `io8analyst` agent), a database will be set up and integrated with the backend.  This might involve choosing a database technology (e.g., PostgreSQL, MongoDB) and writing code to interact with it.
* **Testing:**  Testing the backend API to ensure its functionality, security, and scalability.

**III. Deployment:**

* **Containerization:** The application will be containerized using Docker. Dockerfiles will be created for the frontend and backend (if applicable), and a `docker-compose.yml` file will orchestrate the deployment process. This task will involve using the existing `Dockerfile.backend`, `Dockerfile.frontend`, and `docker-compose.yml` files in the project root.
* **Deployment Strategy:**  Determining a suitable deployment strategy (e.g., deployment to a cloud platform like AWS, Google Cloud, or Azure, or to a local server). The `io8devops` agent will specify this and configure the existing `deployment_config.yml` file.

**Constraints:**

* Adherence to the existing project structure (documented in `.sureai/.directory_structure.md`).
* Minimal use of external dependencies if possible to simplify deployment.
* The application should be easy to use and understand for the end-user.


## Calculator App Implementation Plan - 2025-09-25 06:56:05

This document outlines the implementation plan for the 'calculator app' project. The plan is based on the cloned base project and the user prompt. It leverages the existing project structure and predefined documents.  The timeline is tentative and subject to change based on agent feedback.

**Phase 1: Analysis & Design (1 day):**

* **Task 1:** `io8analyst` will analyze the user requirements and define the scope of the project. This will inform the decision on whether a backend is necessary.
* **Task 2:** `io8architect` will design the application architecture, including the technology stack (frontend and backend) and data model (if a backend is used).  This will build upon the existing directory structure defined in `.sureai/.directory_structure.md`
* **Deliverables:**  Requirements document (updated `.sureai/requirements_document.md`), architecture document (updated `.sureai/architecture_document.md), technology stack document (updated `.sureai/tech_stack_document.md`).

**Phase 2: Development (3 days):**

* **Task 3:** `io8developer` will develop the frontend and backend (if applicable) based on the design specifications.  The frontend will be developed in the `frontend/src` directory. The backend will use the `backend/` directory if needed.
* **Task 4:**  Ongoing testing by `io8developer` throughout the development phase.
* **Deliverables:**  Fully functional calculator application.

**Phase 3: Deployment (1 day):**

* **Task 5:**  `io8devops` agent will prepare the application for deployment by creating Dockerfiles and configuring `docker-compose.yml` file to deploy to the target environment, leveraging the existing configuration files.
* **Task 6:**  `io8devops` will deploy the application to the chosen environment. Configuration will use `deployment_config.yml`
* **Deliverables:**  Deployed application accessible via URL (to be determined).

**Resources:**

* Existing base project structure
* `io8analyst`, `io8architect`, `io8developer`, and `io8devops` agents

**Timeline:**  The estimated timeline for this project is 5 days, subject to change.

**Contingency:**  A buffer of 1 day has been included to account for unexpected issues or delays.

## Base Agent Prompt Reference

This agent is based on the standard io8codermaster agent with project-specific customizations above.
Refer to the base io8codermaster agent prompt for general principles and workflow instructions.
