AI Code Assistance

Get AI-powered analysis and suggestions for your code, or generate context-rich prompts for external AI assistants.

Prompt Options
Adds sample database records to give context.
Adds the entire project brief as an appendix.
File Context

Select files to include in your prompt for better context:

Hold Ctrl/Cmd to select multiple files.
AI Assistants

Copy the prompt and paste it to:

Generated Prompt
# Project Analysis for AI Assistance

## Instructions for the AI Assistant
You're helping me with a web development project. I've provided project details and code files below.
Please use this context to provide relevant, specific assistance for my questions.
Reference specific project components and code in your answers when applicable.

## Project Overview
- **Project Name**: My Project
- **Environment**: development
- **Project Root**: /home/mpcitypo/aidebug.mycityportal.in
- **Generation Date**: 2026-04-20 08:51:13
## Database Structure
The database contains 355 tables.

Tables: abacus_activities, abacus_activity_resources, abacus_assessment_assignments, abacus_assessment_results, abacus_assessments, abacus_class_levels, abacus_curriculum_levels, abacus_curriculum_topics, abacus_curriculum_units, abacus_resources, abacus_student_progress, academic_months, academic_sessions, academic_terms, academic_weeks, academic_years, account_deletion_requests, activities, activity_logs, admissions, admit_card_settings, ai_feedback_prompts, ai_report_cache, ai_usage_log, alumni, api_configurations, api_endpoints, applications, assessment_criteria, assessment_criteria_master, assessment_indicators, assessment_schedule, assessment_types, assessment_weeks, assessments, atten, attendance, attendance_locks, attendance_sessions, attendance_summary, audit_logs, auth_tokens, bmi, board_results, broadcast_logs, broadcast_messages, bulk_operations, caldav_calendars_merged, canteen_accounts, canteen_items, canteen_menu, canteen_orders, canteen_transactions, cbse_centre_info, cbse_exam_days, cbse_ufm_cases, class_levels, class_progression, class_sections, class_subjects, class_teacher_assignments, classes, co_scholastic, co_scholastic_config, common_remarks, compartment_marks, competency_assessments, complaint_tickets, complaints, content_settings, counselling_sessions, curriculum_components, custom_report_configs, daily_attendance, dashboard_db_snapshots, dashboard_metadata, duty_assignments, duty_chart, dynamic_fields, early_leaving, enhanced_otps, enhanced_password_resets, event_registrations, event_rsvp, exam_categories, exam_comments, exam_configurations, exam_groups, exam_result_locks, exam_seating, exam_subjects, exam_subjects_backup, exam_timetable, examinations, exams, exams_backup, failed_logins, fcm_tokens, fee_collection, fee_collections, fee_discounts, fee_heads, fee_payments, fee_structure, fee_structures, flexible_assessments, gate_log, gate_settings, generated_report_cards, global_classes, global_sections, global_session_templates, global_subjects, grades, group_classes, health_info, health_medicine, health_status, health_visits, holistic_assessment, holistic_assessment_indicators, holistic_assessment_scores, holistic_assessment_scores_new, holistic_assessment_template__14_, holistic_assessments, holistic_categories, holistic_grades, holistic_subjects, homework, homework_assignments, homework_submissions, id_card_templates, inventory_categories, inventory_items, inventory_transactions, invigilators, learning_areas, learning_goals, learning_outcome_assessments, learning_outcomes, leave_types, library_books, library_issues, library_settings, library_transactions, login_attempts, marks, marks_audit_log, marks_backup, marks_weightage, master_classes, master_sections, master_subjects, menu_items, monthly_curriculum, monthly_reports, nep_assessment_criteria, nep_competency_assessments, nep_exam_assessment_criteria, nep_student_assessments, nep_student_assessments_backup, new_students, notification_log, notifications, online_attempts, online_exam_questions, online_exam_results, online_exams, online_questions, org_classes, org_databank_usage, org_sections, org_settings, org_subjects, organization_sections, organization_settings, organizations, otp_codes, otp_verification, otp_verifications, otp_verify, parent_access_tokens, parent_feedback, password_resets, permission_definitions, permissions, progress_levels, promoted_students_status, promotion_criteria, promotion_reversal_log, promotion_summary_view, push_notification_log, qb_chapters, qb_papers, qb_questions, qb_subjects, queries, question_bank, question_bank_questions, rate_limiting, rate_limits, rc_format_config, remember_tokens, report_cards, report_logs, report_note_preferences, report_note_selections, report_notes, report_preferences, report_progress, report_settings, report_signatures, report_templates, reversal_summary_view, role_permissions, roles, rolls, rooms, salary_payments, salary_structures, school_events, school_info, schools, seat_arrangements, sections, security_audit_log, session_report_preferences, session_student_summary, sessions, settings, settings_usage_analytics, skill_education_marks, skill_grade_descriptors, skill_marks, skill_performance_criteria, skill_student_assignments, skill_subjects, skills, sports_achievements, sports_applications, sports_camp_participants, sports_camps, sports_clubs, sports_events, sports_members, sports_teams, staff_attendance, staff_leave, staff_leave_balance, staff_leave_requests, staff_leaves, staff_members, stream_subjects, streams, student_activities, student_ai_profiles, student_assessments_flexible, student_assignments, student_attendance, student_custom_fields, student_custom_notes, student_elective_subjects, student_exams, student_groups, student_health_records, student_holistic_assessments, student_nep_subjects, student_notifications, student_observations, student_progression, student_promotion_codes, student_promotions, student_remarks, student_results, student_session_enrollments, student_session_photos, student_skills, student_status_logs, student_stream, student_subject_enrollment, student_tests, student_transport, student_yearly_records, students, students_needing_exam_assignment, study_materials, subject, subject_categories, subject_exam_configurations, subject_exam_mapping, subject_teacher_assignments, subjects, subjects_backup, syllabus_chapters, system_logs, tc_applications, teacher_assignment_audit_log, teacher_observations, teachers, timetable, timetable_periods, timetable_slots, timetable_substitutions, title_formats, transfer_certificates, transport_buses, transport_route_stops, transport_routes, transport_students, uploaded_data, user_activities, user_class_permissions, user_logins, user_notifications, user_permissions, user_report_preferences, user_roles, user_screen_time, user_sessions, user_settings, users, visitors_log, website_about, website_academics, website_admissions, website_disclosure, website_downloads, website_enquiries, website_faculty, website_former_principals, website_gallery, website_mandatory_docs, website_news, website_results, website_settings, website_slider, website_testimonials, weekly_observations, weekly_reports, whatsapp_analytics, whatsapp_contacts, whatsapp_logs, whatsapp_queue, whatsapp_report_details, whatsapp_reports, whatsapp_scheduled_messages, whatsapp_schedules, whatsapp_settings, whatsapp_templates, worksheets, xi_xii_group_subjects, xi_xii_marks, xi_xii_pass_criteria, xi_xii_streams, xi_xii_subject_groups
## File Structure
Basic project structure information.
## My Question/Task
[DESCRIBE_YOUR_SPECIFIC_QUESTION_OR_TASK_HERE]

How to Use This Prompt
  1. Click Copy to copy the entire prompt to your clipboard.
  2. Visit your preferred AI assistant (Claude, ChatGPT, Bard, etc.).
  3. Paste the prompt into a new conversation.
  4. Replace the [DESCRIBE_YOUR_SPECIFIC_QUESTION_OR_TASK_HERE] section with your actual question.
  5. Submit your question and receive contextually-aware assistance based on your project structure.
Tips for Effective Questions
Good Questions
  • "How can I optimize the query in the users_controller.php file?"
  • "What's the best way to add a 'status' column to the orders table?"
  • "Suggest a better architecture for handling user authentication."
Less Effective Questions
  • "How do I code in PHP?" (too general)
  • "Fix my code" (too vague)
  • "What's a good database design?" (lacks specifics)