Senior Frontend Developer

Prompt that makes the model act as a senior frontend dev and return a Vite React app (Ant Design, Redux Toolkit, axios) as one index.js file, with no explanations.

  • 🤖 ChatGPT, Claude, Gemini
  • 🗂️ Coding

Last verified: write-up checked

Prompt by f/awesome-chatgpt-prompts (GitHub) · Original source (opens in a new tab)

Senior Frontend Developer — illustration

The prompt

prompt
I want you to act as a Senior Frontend developer. I will describe a project details you will code project with this tools: Vite (React template), yarn, Ant Design, List, Redux Toolkit, createSlice, thunk, axios. You should merge files in single index.js file and nothing else. Do not write explanations. My first request is Create Pokemon App that lists pokemons with images that come from PokeAPI sprites endpoint

What it is

A role-play prompt that asks the model to act as a Senior Frontend developer. You describe a project and it writes the code using a fixed toolset: Vite (React template), yarn, Ant Design (List), Redux Toolkit (createSlice, thunk) and axios. The output must be merged into a single index.js file with no explanations. The built-in first request is a Pokemon app that lists pokemons with images from the PokeAPI sprites endpoint.

Who it's for

  • Frontend developers who want quick React prototypes in the stated stack
  • Learners studying how Ant Design List, Redux Toolkit createSlice/thunk and axios fit together
  • Developers who want code-only answers without explanatory text

Requirements

Requirements

  • Access to a chat-based AI model that can follow role-play instructions
  • A project description to replace the 'My first request' part
  • A Vite React template project managed with yarn to run the generated code

Examples

Original Pokemon app

Prompt
prompt
I want you to act as a Senior Frontend developer. I will describe a project details you will code project with this tools: Vite (React template), yarn, Ant Design, List, Redux Toolkit, createSlice, thunk, axios. You should merge files in single index.js file and nothing else. Do not write explanations. My first request is Create Pokemon App that lists pokemons with images that come from PokeAPI sprites endpoint

Expected output: A single index.js with a Redux store, a createSlice with an async thunk using axios to fetch pokemons, and an Ant Design List showing each pokemon with its sprite image. No commentary.

Book catalog

Prompt
prompt
I want you to act as a Senior Frontend developer. I will describe a project details you will code project with this tools: Vite (React template), yarn, Ant Design, List, Redux Toolkit, createSlice, thunk, axios. You should merge files in single index.js file and nothing else. Do not write explanations. My first request is Create a Book Catalog app that fetches a list of books from a public REST API with axios and shows each book's cover image and title in an Ant Design List, with loading and error states handled in the slice

Expected output: One index.js containing the store, a books slice with a fetch thunk (pending/fulfilled/rejected states) and a List that renders covers and titles. Code only.

User directory

Prompt
prompt
I want you to act as a Senior Frontend developer. I will describe a project details you will code project with this tools: Vite (React template), yarn, Ant Design, List, Redux Toolkit, createSlice, thunk, axios. You should merge files in single index.js file and nothing else. Do not write explanations. My first request is Create a User Directory app that loads users with axios through a thunk, stores them in a Redux Toolkit slice and displays name, email and avatar for each user in an Ant Design List

Expected output: A merged index.js with the slice, thunk and List component showing name, email and avatar for every user, with no explanatory text.

Pros & cons

Pros

  • Pro:Fixes a clear stack (Vite React, Ant Design, Redux Toolkit, axios), so the output is predictable
  • Pro:Requires code-only output with no explanations, which cuts noise
  • Pro:A single index.js is easy to copy and paste for quick prototypes
  • Pro:Short and easy to adapt by changing only the final request

Cons

  • Con:Merging everything into one index.js does not reflect a typical multi-file project structure
  • Con:The stack is fixed; other libraries or state tools are not supported without editing the prompt
  • Con:No explanations means no guidance on setup, dependencies or how the code works
  • Con:It does not specify versions, styling or testing requirements, so output may vary between runs

Tips

  • Be specific in the final request about data source, fields to show and states such as loading or errors
  • Keep the 'single index.js' and 'no explanations' sentences if you want the same output format
  • If you need explanations, remove the 'Do not write explanations' sentence or ask in a follow-up message
  • Describe one app per request so the single file stays manageable

Variations

  • Swap the final request for a different app, such as a book catalog or user directory
  • Change the tool list to another UI library or HTTP client while keeping the role and output rules
  • Remove the single-file rule to get separate files per component and slice
  • Allow short comments or explanations if you want to learn from the code