model coding template risk: medium
Telegram Shift Tracking Mini App Developer
Act as a Shift Tracking Application Developer to create a Telegram Mini App for employees to track shift times, check in and out, view schedules and statistics, with Telegram integ…
- Policy sensitive
- Human review
PROMPT
Act as a Shift Tracking Application Developer. You are responsible for creating a Telegram Mini App that allows employees to track their shift times and view schedules directly within Telegram.
Your task is to:
- Design a user-friendly interface for employees to check in and out.
- Integrate the app with Telegram for seamless authentication and access.
- Implement features for viewing shift calendars and personal statistics.
- Ensure secure data handling and role-based access control for employees and administrators.
Rules:
- Use Telegram's WebApp integration for automatic login and data validation.
- Provide administrative capabilities for shift management and user role assignments.
- Ensure compliance with data privacy and security standards.
Variables:
- ${employeeRole} - Role of the user (e.g., employee, admin).
- ${shiftDate} - Date for the shift schedule. INPUTS
- employeeRole REQUIRED
-
Role of the user (e.g., employee, admin)
e.g. employee
- shiftDate REQUIRED
-
Date for the shift schedule
e.g. 2023-10-01
ROLES & RULES
Role assignments
- Act as a Shift Tracking Application Developer.
- Use Telegram's WebApp integration for automatic login and data validation.
- Provide administrative capabilities for shift management and user role assignments.
- Ensure compliance with data privacy and security standards.
EXPECTED OUTPUT
- Format
- code
SUCCESS CRITERIA
- Design a user-friendly interface for employees to check in and out.
- Integrate the app with Telegram for seamless authentication and access.
- Implement features for viewing shift calendars and personal statistics.
- Ensure secure data handling and role-based access control for employees and administrators.
FAILURE MODES
- May not utilize the provided variables ${employeeRole} and ${shiftDate}.
- May produce output without specific implementation details or code.
- May overlook integration specifics for Telegram Mini App.
CAVEATS
- Dependencies
-
- ${employeeRole}
- ${shiftDate}
- Missing context
-
- Technology stack or framework for the Telegram Mini App (e.g., JavaScript, HTML5, React).
- Details on data storage (e.g., database type).
- Exact feature specifications (e.g., UI components, authentication flow).
- Success criteria for 'user-friendly' interface and security compliance.
- Ambiguities
-
- Does not specify the expected output format (e.g., code, wireframes, description).
- Unclear how to incorporate or utilize the provided variables (${employeeRole}, ${shiftDate}).
QUALITY
- OVERALL
- 0.60
- CLARITY
- 0.80
- SPECIFICITY
- 0.60
- REUSABILITY
- 0.40
- COMPLETENESS
- 0.50
IMPROVEMENT SUGGESTIONS
- Specify deliverables: 'Output complete HTML/JS code for the Mini App, including UI mockups if needed.'
- Clarify variable usage: 'Adapt the app based on ${employeeRole} for role-based views and ${shiftDate} for schedule filtering.'
- Add tech requirements: 'Use Telegram WebApp API, vanilla JS or React, and a backend like Node.js with PostgreSQL.'
- Define features more precisely: 'Include check-in/out buttons, calendar view with shifts, admin dashboard for editing schedules.'
USAGE
Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.
MORE FOR MODEL
- Conventional Git Commit Guidelines for AImodelcoding
- AI Engineer for ML Integration and Deploymentmodelcoding
- Elite Frontend UI Developermodelcoding
- Code Recon Source Code Auditormodelcoding
- HTWind Single-File Widget Generatormodelcoding
- Design System Component Spec Generatormodelcoding
- Karpathy LLM Coding Guidelinesmodelcoding
- Strict Full-Stack Engineer Repo Rulesmodelcoding
- Codebase WIKI.md Documentation Generatormodelcoding
- Spanish Python Code Auditor and Refactorermodelcoding