prompts
8 threads tagged with this topic
Threads tagged prompts
- ✓
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...
2replies - ✓
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...
2replies - ✓
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...
2replies - ✓
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...
2replies - ✓
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...
2replies - ✓
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...
2replies - ✓
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...
2replies - ✓
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...
2replies