# io8 Code Master Agent - Customized for This Project

## Project-Specific Instructions


## PROJECT BREAKDOWN: DEVELOP A WORKING NOTES APP - 2025-10-06 06:58:00

### 1. Project Goal
To develop a functional and user-friendly notes application, enabling users to create, read, update, and delete text-based notes. The project will leverage the existing Angular Clarity base project for the frontend and establish a robust backend and database solution.

### 2. Key Milestones
*   **M1: Requirements & Architectural Foundation (io8analyst, io8architect)**
    *   Comprehensive requirements gathering and user story definition for a notes app.
    *   High-level system architecture design (frontend, backend, database for notes management).
    *   Technology stack finalization, considering the Angular Clarity base project.
*   **M2: Core Notes CRUD Implementation (io8developer)**
    *   Development of backend API for notes management (create, read, update, delete).
    *   Database schema design and implementation for note persistence.
    *   Frontend UI development for basic note interactions (listing, viewing, editing) within the Angular Clarity framework.
*   **M3: User Authentication & Enhancements (io8developer)**
    *   Implementation of user registration, login, and authentication system for securing notes.
    *   Integration of optional features like search, simple categorization, or tags for notes.
*   **M4: Deployment & Operationalization (io8devops)**
    *   Containerization of frontend and backend services (Docker) for consistent environments.
    *   Orchestration setup (Docker Compose) for multi-service deployment (frontend, backend, database).
    *   Establishment of a basic CI/CD pipeline for automated builds and deployments.

### 3. Core Components
*   **Frontend Application:** Built using Angular (from the cloned base project), responsible for user interaction and displaying notes. Files will reside in `cloned base project/src/app/` (or `frontend/` if a new app is scaffolded as per `cloned base project/.sureai/.directory_structure_develop_a_working_notes_app_20251006_065420.md`).
*   **Backend API:** A RESTful API to manage note data, user authentication, and business logic. This will be developed and contained within the `backend/` directory.
*   **Database:** A persistent storage solution (e.g., PostgreSQL, MongoDB) for notes and user information. Its setup and orchestration will be managed via `docker-compose.yml`.

### 4. Constraints & Considerations
*   **Append-Only Documentation:** All updates to predefined documents within the `.sureai/` directory must be additive, preserving existing content.
*   **Existing File Structure:** Strict adherence to the project directory structure as defined in `cloned base project/.sureai/.directory_structure_develop_a_working_notes_app_20251006_065420.md`.
*   **Frontend Base:** The existing Angular Clarity boilerplate in `cloned base project/` serves as the foundation for the frontend, necessitating careful integration or adaptation of new components.
*   **Security First:** Implement secure coding practices, especially for user authentication, authorization, and data handling from the outset.



## IMPLEMENTATION PLAN: DEVELOP A WORKING NOTES APP - 2025-10-06 06:58:00

### 1. Overall Strategy
An iterative and agile approach will guide the development of the 'Notes App', prioritizing the delivery of a core working application (Minimum Viable Product - MVP) in early phases, followed by incremental feature additions and continuous refinement based on feedback and evolving requirements.

### 2. High-Level Phases & Agent Responsibilities
*   **Phase 1: Project Initiation & Design (io8analyst, io8architect, io8pm, io8sm)**
    *   **Weeks 1-2:** Detailed requirements gathering for notes app features and user management (io8analyst). Architectural design of system components (frontend, backend, database) and tech stack selection (io8architect). Overall project planning, roadmap definition, and initial MVP scope (io8pm). Initial sprint planning and task breakdown (io8sm).
    *   **Outputs:** `requirements_document.md`, `analysis_document.md`, `architecture_document.md`, `tech_stack_document.md`, `prd_document.md`, `project_plan.md`, `sprint_plan.md`, `tasks_list.md` (initial), stored in `cloned base project/.sureai/`.
*   **Phase 2: Core Development & Database Integration (io8developer, io8devops)**
    *   **Weeks 3-6:** Backend API implementation for notes CRUD operations and initial user authentication (io8developer). Database setup and schema creation (io8developer). Frontend UI development for core note interactions (listing, viewing, editing) leveraging the Angular Clarity base (io8developer). Initial containerization definitions (`Dockerfile.*`, `docker-compose.yml`) for development environments (io8devops).
    *   **Outputs:** Functional backend code in `backend/`, frontend code in `frontend/`, updated `tasks_list.md`, initial `Dockerfile.*` and `docker-compose.yml`.
*   **Phase 3: User Authentication & Feature Expansion (io8developer, io8sm)**
    *   **Weeks 7-9:** Development of comprehensive user authentication and authorization functionalities (io8developer). Implementation of additional features (e.g., search, tags, rich text editing) as prioritized in `sprint_plan.md` (io8developer). Ongoing sprint management and backlog refinement (io8sm).
    *   **Outputs:** Enhanced code within `backend/` and `frontend/`, updated `tasks_list.md` reflecting progress.
*   **Phase 4: Deployment & Continuous Improvement (io8devops, io8developer, io8pm)**
    *   **Weeks 10+:** Setup of CI/CD pipeline for automated builds, testing, and deployments (io8devops). Deployment of the 'Notes App' to development/staging/production environments using `deployment_config.yml` (io8devops). Ongoing monitoring, performance tuning, bug fixes, and further feature iterations (io8developer, io8pm).
    *   **Outputs:** Deployed application, robust CI/CD, refined `deployment_config.yml`, `tasks_list.md` (final status).

### 3. Key Resources & Tools
*   **io8 Agents:** All specialized agents (`io8analyst`, `io8architect`, `io8pm`, `io8sm`, `io8developer`, `io8devops`) will be orchestrated by `io8codermaster` to execute their respective tasks.
*   **Project Documents:** All essential project knowledge, planning, and design documents will be centrally located and accessible within the `cloned base project/.sureai/` directory.
*   **Code Repositories:** Code will be organized into logical directories for `backend/` and `frontend/` within the project root.
*   **Containerization:** Docker will be utilized for isolating and packaging services.
*   **Orchestration:** Docker Compose will be used for managing and running multi-service applications.

### 4. Inter-Agent Dependencies
*   Outputs from `io8analyst` (requirements) are crucial inputs for `io8architect` (design) and `io8pm` (planning).
*   `io8architect`'s design decisions are foundational for `io8developer` (implementation) and `io8devops` (infrastructure).
*   `io8pm` and `io8sm` provide the structured execution plan and task management for `io8developer`.
*   `io8developer` delivers the implementable code artifacts that `io8devops` is responsible for deploying and maintaining.


## 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.
