Fill in your details optional The prompt below updates as you type. What you type stays in this browser and is never sent to us.
You are a senior developer who builds HR and payroll software. Build an HR management system with me, phase by phase, with an admin portal and a mobile-friendly employee self-service portal.
## The company
- Company and size: [NAME], [NUMBER OF EMPLOYEES]
- Country and payroll rules: [e.g. India with PF, ESI, PT, TDS]
- Work pattern: [office / field staff / shifts / remote]
- Approval chain: [e.g. employee → manager → HR]
- Tech stack I prefer: [STACK or "you choose"]
## Features
1. Employees: profiles, documents, departments, designations, reporting lines (org chart), onboarding checklist, exit process.
2. Attendance: web and mobile check-in with selfie and geo-fencing for field staff, biometric device import, shifts and rosters, late and early rules, regularisation requests.
3. Leave: leave types and policies (accrual, carry forward, encashment), holiday calendar by location, apply and approve flow, team leave calendar, balance display.
4. Payroll: salary structures with components, monthly payroll run using attendance and leave, statutory deductions for [COUNTRY], reimbursements, arrears, loans and advances, payslip PDF, bank transfer file, payroll reports and statutory returns data.
5. Employee self-service: payslips, tax declarations and proofs, leave, attendance, documents, profile update requests, announcements.
6. Performance (light): goals and reviews per cycle.
7. Dashboards: headcount, attrition, attendance trends, payroll cost.
8. Roles: admin, HR, manager, employee, with strict data access.
## HR rules
- Payroll calculations are tested with a set of worked examples and can be re-run for a month before it is locked; locked months cannot change without an audit entry.
- Salary data is visible only to HR and the employee; encrypt bank and ID details.
- Flag every country-specific rule that should be confirmed by a payroll or legal expert.
## Quality rules (apply to every phase)
- Security: prepared statements or an ORM for every query, output escaping, CSRF tokens on every form, passwords hashed with bcrypt or Argon2, rate-limited login, role checks on the server for every admin route, file uploads checked by type and size and stored outside the web root or with random names, secrets only in an .env file.
- Validation: validate every input on the server (and also in the browser for speed). Show clear error messages next to the field that is wrong, and keep what the user already typed.
- Performance: pagination on every list, database indexes on every column used for search, filter or join, lazy-loaded and resized images (WebP), caching for pages that rarely change, no N+1 queries.
- Responsive and accessible: mobile first, works from 360px to wide desktop, proper labels on every form field, keyboard navigation, visible focus, colour contrast of at least 4.5:1, alt text on images.
- SEO: clean URLs, a unique title and meta description per page, canonical tags, Open Graph tags, schema.org JSON-LD where it applies, an XML sitemap and robots.txt.
- Code: small functions with clear names, one responsibility per file, comments only where the reason is not obvious, consistent formatting, no dead code.
- Errors: friendly error pages (404, 500), server errors written to a log, never shown to visitors.
- Deliver with: a README (install steps, .env example, how to create the first admin), database migrations and seed data with realistic sample content, and a deployment checklist.
## How to work with me
Do not write code yet. First reply with:
1. A short summary of what you understood, and anything in the brief that is unclear or contradictory (ask me, do not guess).
2. The final tech stack, with a one-line reason for each choice.
3. The folder and file structure.
4. The full database schema: every table, column, type, index and relation.
5. Every page or screen, and every API endpoint (method, path, who can call it, what it returns).
6. The build plan as numbered phases, each one small enough to finish and test on its own.
Wait for me to reply "go". Then build one phase at a time:
- For every file, give the full path and the complete code. Never write "...", "rest of the code stays the same" or TODO.
- After each phase, tell me how to run it, what to click to test it, and what is still missing. Then wait for me to reply "next".
- If you change a file you already gave me, give the whole updated file again.
How to use this prompt
- Copy the prompt. Press Copy prompt and the full text goes to your clipboard.
- Fill the brackets. Use the form above, or replace [NAME], [NUMBER OF EMPLOYEES], [e.g. India with PF, ESI, PT, TDS], [office / field staff / shifts / remote], [e.g. employee → manager → HR], [STACK or "you choose"], [COUNTRY] with your own details.
- Paste and send. Paste it into ChatGPT, Claude, Gemini and DeepSeek and send. Ask follow-up questions to refine the answer.
Why this prompt works
The “Build an HR management system with attendance, leave and payroll” prompt describes the whole app before any code is written: 8 features, starting with employees; attendance; and leave. It then has the assistant build it in 9 stages, so you can test each part before the next one starts. Quality rules apply to every stage, so the result is code you can run rather than a sketch.
How to get the best answer
- Fill every bracket with real detail: [NAME], [NUMBER OF EMPLOYEES], [e.g. India with PF, ESI, PT, TDS] and the rest should hold real names, numbers and dates, not placeholders.
- Paste real material: where the prompt asks for notes, data or text, paste the actual content rather than a summary.
- Refine in the same chat: ask "make it shorter", "turn it into a table" or "add more detail on step 2".
- Check the result: test what it builds or writes before you rely on it.
FAQ
Frequently asked questions
Which AI assistant works best with the “Build an HR management system with attendance, leave and payroll” prompt?
The “Build an HR management system with attendance, leave and payroll” prompt works in any chat assistant and suits ChatGPT, Claude, Gemini and DeepSeek best. Paste it in, send it, and ask follow-up questions in the same chat to refine the answer.
What do I fill in before sending the “Build an HR management system with attendance, leave and payroll” prompt?
Replace the 7 highlighted brackets – [NAME], [NUMBER OF EMPLOYEES], [e.g. India with PF, ESI, PT, TDS], [office / field staff / shifts / remote], [e.g. employee → manager → HR], [STACK or "you choose"], [COUNTRY] – with your own details. The more specific you are, the better the answer.
Who is the “Build an HR management system with attendance, leave and payroll” prompt for?
Anyone who wants a complete, working result from an AI assistant. Replace the brackets with your own project details.
Is the “Build an HR management system with attendance, leave and payroll” prompt free to use?
Yes. First AI Prompt prompts are free to copy and use in personal and business work, with no sign-up, no account and no daily limit.
Can I trust the answer the “Build an HR management system with attendance, leave and payroll” prompt gives?
Treat it as a strong first draft: the prompt tells the assistant not to invent facts and to mark its assumptions, but check figures yourself, especially anything with legal, financial or safety consequences.
Keep exploring
Browse more Human Resources prompts
- All Human Resources prompts
- Software Developmentfor Human Resources
- Project Managementfor Human Resources
- Marketing & Contentfor Human Resources
- SEOfor Human Resources
- Salesfor Human Resources
- Customer Supportfor Human Resources
- Data Analysisfor Human Resources
- Business Strategyfor Human Resources
- Browse the full library