# io8 Code Master Agent - Customized for This Project

## Project-Specific Instructions

## Project Breakdown: Notes App - 2025-10-02 05:58:10

**Project Goal:** Develop a functional and user-friendly "Notes App" with core CRUD capabilities, user authentication, and basic search/filter functionalities.

### Phase 1: Foundation & Core Notes Management (MVP)
*   **Milestone 1.1: Project Setup & Backend Foundation**
    *   Initialize backend project within `backend/` directory.
    *   Setup database (e.g., PostgreSQL/MongoDB) schema for Users and Notes.
    *   Implement user registration and login endpoints (API).
    *   Implement CRUD API endpoints for notes (Create, Read all, Read by ID, Update, Delete).
    *   Basic API documentation.
*   **Milestone 1.2: Frontend Foundation & Core UI**
    *   Initialize frontend project within `frontend/` directory.
    *   Develop user authentication UI (Login/Register pages).
    *   Integrate frontend with backend authentication API.
    *   Develop UI for displaying a list of notes.
    *   Develop UI for creating and editing a single note.
    *   Integrate frontend with backend notes CRUD API.
    *   Basic routing and navigation.

### Phase 2: Enhanced Features & User Experience
*   **Milestone 2.1: Advanced Note Features**
    *   Implement search functionality for notes (by title, content).
    *   Implement filtering notes (e.g., by tags, date).
    *   Add rich text editing capabilities (e.g., Markdown support, a simple WYSIWYG editor).
    *   Implement tagging/categorization for notes.
*   **Milestone 2.2: UI/UX Refinements**
    *   Improve overall application responsiveness and mobile-friendliness.
    *   Implement user profile management (e.g., change password).
    *   Enhance error handling and user feedback messages.
    *   Add confirmation dialogs for destructive actions (e.g., deleting a note).

### Phase 3: Deployment & Optimization
*   **Milestone 3.1: Containerization & Local Orchestration**
    *   Create `Dockerfile.backend` for the backend service.
    *   Create `Dockerfile.frontend` for the frontend service.
    *   Develop `docker-compose.yml` to orchestrate backend, frontend, and database for local development.
*   **Milestone 3.2: Deployment & CI/CD Readiness**
    *   Define `deployment_config.yml` for production environment settings.
    *   Configure `nginx.conf` for serving frontend and proxying backend requests.
    *   Plan for CI/CD pipeline integration (actual implementation by DevOps agent).
*   **Milestone 3.3: Testing & Hardening**
    *   Comprehensive unit, integration, and end-to-end testing.
    *   Security hardening (e.g., input validation, secure cookie handling).
    *   Performance profiling and optimization.

**Constraints:**
*   Strict adherence to the `io8` directory structure and principles.
*   Backend and frontend must be decoupled services.
*   All agent-specific outputs and project documents must reside in `cloned base project/.sureai/`.
*   Focus on web application for initial MVP, mobile responsiveness is a stretch goal for Phase 2.
*   Security best practices must be applied throughout development.


## Implementation Plan: Notes App - 2025-10-02 05:58:10

**Project Start Date:** TBD by PM Agent
**Estimated Duration:** 6-8 weeks for full implementation (adjustable based on scope/team velocity)

### Phase 1: Foundation & Core Notes Management (Est. 2-3 Weeks)
*   **Week 1:**
    *   **io8analyst:** Detailed requirements for core CRUD, user authentication. Output `requirements_document.md`.
    *   **io8architect:** High-level system design, initial tech stack proposal (backend, frontend, database). Output `architecture_document.md`, `tech_stack_document.md`.
    *   **io8pm:** Draft `prd_document.md` for MVP, initial `project_plan.md`.
    *   **io8sm:** Populate `tasks_list.md` for backend setup and core API, plan Sprint 1.
    *   **io8developer:**
        *   Backend: Initialize project (`backend/`), configure database, implement User model/schema.
        *   Frontend: Initialize project (`frontend/`), basic boilerplate setup.
*   **Week 2-3:**
    *   **io8developer:**
        *   Backend: Implement User authentication endpoints (register, login, logout). Implement Note CRUD endpoints. Write unit tests for backend.
        *   Frontend: Develop Login/Register UI, integrate with backend auth. Develop Notes List UI, Note Detail/Editor UI. Integrate with backend Notes CRUD.
    *   **io8tester (Future Agent):** Conduct initial manual testing for core functionalities.
    *   **io8sm:** Review Sprint 1 progress, plan Sprint 2.

### Phase 2: Enhanced Features & User Experience (Est. 2-3 Weeks)
*   **Week 4-5:**
    *   **io8analyst:** Refine requirements for search, filter, rich text, tags.
    *   **io8architect:** Review/update architecture for new features.
    *   **io8developer:**
        *   Backend: Implement search/filter logic, update Note model for tags/rich text.
        *   Frontend: Implement search bar, filter options, integrate rich text editor.
        *   Implement UI/UX improvements (responsive design, feedback messages).
    *   **io8tester (Future Agent):** Develop automated tests for new features.
    *   **io8sm:** Review Sprint 2 progress, plan Sprint 3.

### Phase 3: Deployment & Optimization (Est. 2 Weeks)
*   **Week 6:**
    *   **io8devops:**
        *   Create `Dockerfile.backend`, `Dockerfile.frontend`.
        *   Develop `docker-compose.yml`.
        *   Draft `deployment_config.yml` and `nginx.conf`.
    *   **io8developer:** Address performance bottlenecks, final bug fixes, security review.
    *   **io8tester (Future Agent):** Comprehensive end-to-end testing, security testing.
    *   **io8sm:** Prepare for release, final `sprint_plan.md` for hardening.
*   **Week 7-8 (Buffer/Refinement):**
    *   Deployment rehearsal.
    *   Final documentation review.
    *   User acceptance testing (UAT).
    *   Address any critical issues before launch.

**Resources:**
*   **Agents:** io8analyst, io8architect, io8pm, io8sm, io8developer, io8devops (and potentially io8tester, io8writer, etc., as defined by io8 framework).
*   **Knowledge Base:** Existing `io8` documentation, `directory_structure.md`, and all generated agent outputs in `.sureai/`.
*   **Tools:** Standard development IDEs, Git, Docker, chosen tech stack frameworks.


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