Applied AI Guide

Build with AI. Understand Every Line.

Use an assistant to plan, build, and review a small accessible resource page while keeping control of the implementation.

60-90 min · estimate / Web Development

Before You Begin

  • Understand basic HTML elements, CSS selectors, and JavaScript variables and functions.
  • Have a code editor, a browser, and a local practice folder ready.
  • Choose an AI assistant you can use and share only your own practice code.

What You Will Make

A local resource page with a working topic filter, a completed browser checklist, and an explanation of how its code works.

STEP 01

Start with a Small, Testable Brief

Build a local resource page containing a heading, three resource links, and a topic filter. Describe the person using it and the action they should complete. Write expected results for choosing a category, clearing the filter, and searching for something absent. Add keyboard use, readable narrow-screen layout, and visible focus to the checklist. Ask the assistant to find missing states, then decide which belong in this version. Keep the brief beside your code so suggestions can be judged against it. You are defining a small product rather than requesting an impressive-looking screen.

Act as a web-development tutor. I am making a local page with three resource links and a topic filter in HTML, CSS, and JavaScript. Help me write observable acceptance criteria covering filtering, empty results, keyboard access, and a narrow layout. Ask about my understanding, then identify missing states. Do not generate the application yet.
STEP 02

Build One Understandable Piece

Create semantic HTML first and check that the content remains useful without JavaScript. Add the smallest script needed to filter a fixed local collection. Ask for an explanation of each unfamiliar concept and compare it with the relevant documentation. Read the diff before accepting changes, then run the page and predict what each control should do. Keep styles and behaviour simple enough that you can find the responsible code. If a proposed abstraction or dependency has no clear purpose in this exercise, leave it out. Save a working version before beginning the next slice.

Help me implement only the next small slice of my resource page. Use native HTML controls and plain JavaScript. Explain new syntax and identify the files affected. Ask me to predict the result before showing a complete solution. Prefer a small diff that follows my current code. I will provide the relevant files next.
STEP 03

Inspect and Test the Result Yourself

Run the page and follow the acceptance checklist. Use Tab, Enter, and Space where appropriate, try every filter, and search for a term with no match. Resize the window and increase browser zoom. Watch for console errors and check whether error or empty messages are actually understandable. Give the assistant your observations, not just a screenshot or a statement that it is broken. Ask it to distinguish issues visible in source code from checks that require a running browser. After a repair, repeat the failing action and one normal action to check for regressions.

Review this code and my observations against filtering, empty results, keyboard use, visible focus, labels, and narrow layout. Separate source-supported findings from browser checks that remain unperformed. For each supported problem, propose the smallest fix and a retest. Do not claim to have run anything. I will paste the code and results next.
STEP 04

Explain It, Then Change It

Describe how an input event becomes a filtered collection and then a visible update. Point to the function responsible for each part. Add a fourth resource yourself and predict whether it appears under every relevant filter. Make one small variation without generated code, such as improving the no-results message or adding a category. Then ask the assistant to challenge your explanation and review the diff. Save your code, test notes, and one correction you made after reviewing its advice. The exercise is complete when you can maintain the page without depending on the conversation.

Check my understanding one question at a time: events, data filtering, and safe rendering. Give hints before solutions. After my answers, suggest a small variation I can implement independently. Review my explanation and actual test evidence, not just whether the code resembles a standard example.

Further Reading

HACKTRONIAN_CLI // COMMAND PALETTE
QUICK_EXEC: