GenAI ‐ Prompting - FullstackCodingGuy/Developer-Fundamentals GitHub Wiki
Dos & Donts

Generating Working Code in Claude AI
Prompt ExampleHi Claude,
I hope you're having an amazing day! I need your help designing a React feature.
Here's the feature description:
Please incorporate these components:
Create a high-level blueprint focusing on:
- State flow
- Data flow
- Ideal-world architecture
Prompt will ask you to specify an use case, describe your desired usecase as the feature, claude will automatically generate the code and will run by itself
Generating a task management app in chatgpt
Source code generated for UI and API by chatgpt - for reference
create a clean, functional task management component with all CRUD operations. Here's a breakdown of the key features:
State Management:
Uses React's useState for managing tasks and UI states Each task has an id, text, and completed status Tracks editing state separately for smooth UX
CRUD Operations:
Create: Add new tasks with the input field Read: Display list of tasks with completion status Update: Edit task text and toggle completion status Delete: Remove tasks from the list
UI/UX Features:
Clean, modern design using shadcn/ui components Responsive layout Keyboard support (Enter to add/save) Visual feedback for task completion Intuitive edit/delete actions Hover states for better interaction feedback
Component Structure:
Single, self-contained component for easy integration Uses Lucide icons for clear visual actions Properly typed props and handlers
add additional features, For example:
create this program in angular 19
Add task categories/labels Implement drag-and-drop reordering Add due dates Include task priority levels Add filter/sort capabilities add localstorage for persistence
Add more advanced features like task persistence Implement task categories or priorities Add more sophisticated validation rules Add animations for task transitions
how to dynamically interchange different implementation of IValidationService
additional options:
create an api solution for expense management application using .net 9, name the solution as ExpenseManagement and Generate a proper .NET 9 solution file for including all the internal projects, create complete .net solution folder structure along with endpoints in controllers, models, entities, dto, services, create persistence with sqlite, create repository layer accordingly, apply clean architecture, create .csproj in each internal folder with required nuget references, apply solid design principles, implement minimal api, develop endpoints for all the use cases of expense tracker, check all the namespaces properly, use stable nuget packages, do not use preview versions, full solution structure should be error free, build ready, dont use CQRS pattern, no mediatr pattern, create a downloadable zip file.