# Design and Build StudyBoard with AI Use this guide alongside Hacktronian's seven-step AI-Assisted Web Development roadmap. You are building a resource board from a plain HTML, CSS and JavaScript prototype you already understand. The assistant helps you plan, explain, implement small changes and review evidence. You remain able to describe what the application does and why. ## 1. Define One Journey Start with a learner who wants one useful resource and a way to return to it. Write the journey as actions: search, choose a topic, inspect a result, save it and return. This gives the page a practical purpose before you discuss decoration. Keep the first version small: five resources, two topics, local bookmarks and eventually a saved-only filter. Accounts, a database and built-in AI chat add different learning problems. Put optional ideas in a later list rather than letting them quietly expand this exercise. Write expected outcomes before requesting code. For example, searching `mdn` with topic `web` should show `mdn`; the same query with topic `security` should show no results. Ask an assistant to find contradictions or missing states in the brief. Evaluate its suggestions against the journey. **Deliverable:** `BRIEF.md` and concrete cases in `acceptance-cases.json`. ## 2. Give AI Verified Context An assistant may not see your files or remember another conversation. Share the relevant code and ask it to name the files it actually inspected. Trace the search control through its event handler, filter function and rendering function. Check that those names exist. Start the local preview with the roadmap's `serve.mjs`: run `node serve.mjs` and use `http://127.0.0.1:4400`. Keep that origin stable because browser storage belongs to the scheme, hostname and port. Node provides the local preview here; the board itself remains a static browser application. Use planning documents when they answer a real question. A brief, design notes and task list are enough to begin. Add content, architecture, navigation, discovery and decision notes when needed. Keep `PRD.md` as a pointer if `BRIEF.md` already owns requirements; avoid maintaining contradictory copies. **Deliverable:** a verified `PROJECT-MAP.md` and repeatable preview instructions. ## 3. Choose a Coherent Visual Direction StudyBoard should make resource names, topics and actions easy to scan. Put search and topic controls before results. Give each card a clear title, a useful description, a destination and a save action. Check the real content before inventing elaborate layouts. When studying a reference website, describe a useful principle: strong alignment, readable spacing or obvious controls. Apply that principle to StudyBoard's content. A reference's colors, copy and business sections do not automatically belong in your project. Record typography, text and surface colors, borders, spacing, content width and focus treatment in `DESIGN.md`. Reuse existing CSS tokens before adding new ones. Test long titles and meaningful supporting text; avoid shrinking them to preserve a composition. If you use an AI skill, choose one lead skill suited to the current task. A design skill, copy editor and browser-testing workflow solve different problems. Read the selected project's setup guidance, confirm the assistant can find it, and check its tool requirements. A link in a prompt does not install or activate a skill. **Deliverable:** a small set of visual decisions tied to the learner's task. ## 4. Build One Complete Slice Confirm rendering and combined filtering before adding bookmarks. Request a narrow change with named inputs and observable output. Read the diff and ask for an explanation of unfamiliar code rather than accepting an entire replacement application. Use stable resource IDs: `mdn`, `odin`, `fcc`, `academy` and `bandit`. The first three use `web`; the final two use `security`. Store saved IDs under `studyboard.saved.v1`, while the fixed collection continues to own titles and URLs. Prepare a candidate saved set, attempt persistence and accept the candidate only when the write succeeds. A failed write must preserve the previous accepted state and show useful feedback. Verify save, remove, filter and reload separately. Record an AI suggestion you accepted or rejected and the evidence behind that judgment. **Deliverable:** a reviewed bookmark feature and an entry in `ASSISTANCE-LOG.md`. ## 5. Review Every Important State A screenshot can reveal poor spacing; it cannot prove that a control works. Inspect normal results, no results, saved state, failed storage and recovery. Use native controls with visible labels. A bookmark button should name its action and resource, such as “Save MDN Curriculum.” Complete the journey using Tab, Shift+Tab, Enter and Space. After a dynamic update, check where focus went. A replaced button may disappear from the keyboard sequence even when the visual update looks correct. Prefer a targeted update or deliberate focus restoration when needed. Check a narrow viewport and 200% zoom. Text should wrap, controls remain reachable and the page avoid horizontal overflow. Check contrast and focus visibility using appropriate tools. Record the actual browser, dimensions, inputs and results in `ACCESSIBILITY-NOTES.md`; keep unperformed checks clearly marked. **Deliverable:** observed interaction evidence and focused repairs. ## 6. Debug and Review Boundaries When something fails, record exact inputs, expected output and actual output. The roadmap's deliberate AND/OR filter regression provides a controlled exercise. Ask AI for possible causes and an observation that distinguishes them. Inspect values in the real callback before selecting a fix, then retain the mismatch case as a regression check. Treat stored JSON as external input. Test absent values, valid arrays, malformed JSON, wrong-shaped objects and unknown IDs in a disposable profile or after preserving your test state. Invalid data must not crash the page or be silently overwritten. Recovery should follow a deliberate action and affect only the documented project key. Review how titles become text and how existing resource URLs become links. Require a concrete need before adding a dependency. Keep private data and secrets out of assistant prompts and public files. **Deliverable:** a supported repair, data-flow notes and tested recovery behavior. ## 7. Finish with an Independent Change Implement the saved-only checkbox yourself, then ask AI to review your actual diff. Combine it with the current query and topic conditions. Test an empty saved set, saved matches, mismatched topics and removal of the final visible saved resource. Explain the behavior in your own words. Finish the README with the setup command, stable local address, files, storage key, recovery behavior and tested cases. Give another learner enough information to run the project without your chat history. Record remaining limits honestly. Use a meaningful document title and description now. Public canonical URLs, hosting behavior and indexing checks belong to a later publishing decision with a real domain. Local verification does not prove a future host's behavior. **Deliverable:** a maintainable local project with reproducible instructions and a clear record of what you learned.