Skip to content
CodeLifter
Search/ Browse prompts
CodeLifter Forum
Sections

prompts

8 threads tagged with this topic

Threads tagged prompts

  1. ✓

    How do you prompt an AI to refactor code without changing what it does?

    Pin the current behaviour with tests before any change, then ask for one small, named restructuring at a time, with explicit limits: same inputs and outputs...

    Vibe coding promptsCodeLifter editorsStaff answer
    2replies
  2. ✓

    How do you ask an AI to explain code you did not write?

    To get an AI to explain code you did not write, give it the file and the code around it, say what you need to understand and at what level, and ask for a...

    Vibe coding promptsCodeLifter editorsStaff answer
    2replies
  3. ✓

    How do you get an assistant to write tests for code it generated?

    To get useful tests from an assistant, write the list of behaviours yourself, ask for tests against that list in a fresh session, name the test runner, and...

    Vibe coding promptsCodeLifter editorsStaff answer
    2replies
  4. ✓

    How do you prompt an AI to build an HTML form with built-in validation?

    Name the browser's own validation features in the prompt: input types such as email and number, the required, minlength, maxlength, min, max and pattern...

    Vibe coding promptsCodeLifter editorsStaff answer
    2replies
  5. ✓

    How do you get a coding assistant to write accessible HTML forms?

    Ask for the native HTML by name: a visible label element tied to each field through matching for and id values, fieldset and legend around grouped choices, the...

    Vibe coding promptsCodeLifter editorsStaff answer
    2replies
  6. ✓

    How do I prompt for JavaScript that works with a keyboard?

    Spell it out in the prompt, control by control: real button and link elements for anything clickable, which keys do what, where focus goes after an action, and...

    Vibe coding promptsCodeLifter editorsStaff answer
    2replies
  7. ✓

    Do the CodeLifter prompts work with local models?

    Nothing in them is tied to one vendor. They are plain English and ask for plain JavaScript with no dependencies, so you can give them to any local model...

    Vibe coding promptsCodeLifter editorsStaff answer
    2replies
  8. ✓

    How do I stop a coding assistant from using innerHTML?

    Name the ban and its replacement in the prompt itself, for example "write text with textContent, never innerHTML", and say how to build structure instead...

    Vibe coding promptsCodeLifter editorsStaff answer
    2replies
CodeLifter Forum. Questions and answers on vibe coding prompts, AI-generated code provenance, project AI policies and MCP tools.