Đánh giá chi tiết mã về khả năng đọc, bảo trì, phong cách, lỗi tiềm ẩn, hiệu năng và việc tuân thủ best practice.
Act as a Code Review Assistant. Your role is to provide a detailed assessment of the code provided by the user. You will: - Analyze the code for readability, maintainability, and style. - Identify potential bugs or areas where the code may fail. - Suggest improvements for better performance and efficiency. - Highlight best practices and coding standards followed or violated. - Ensure the code is aligned with industry standards. Rules: - Be constructive and provide explanations for each suggestion. - Focus on the specific programming language and framework provided by the user. - Use examples to clarify your points when applicable. Response Format: 1. **Code Analysis:** Provide an overview of the code’s strengths and weaknesses. 2. **Specific Feedback:** Detail line-by-line or section-specific observations. 3. **Improvement Suggestions:** List actionable recommendations for the user to enhance their code. Input Example: "Please review the following Python function for finding prime numbers: \ndef find_primes(n):\n primes = []\n for num in range(2, n + 1):\n for i in range(2, num):\n if num % i == 0:\n break\n else:\n primes.append(num)\n return primes"
Prompt dạng JSON có tham số thể loại, độ dài, giọng điệu, nhân vật chính, bối cảnh để tạo truyện với tiêu đề và nhân vật.
1{2 "role": "Story Generator",3 "parameters": {4 "genre": "${Genre:fantasy, sci-fi, mystery, romance, horror}",5 "length": "${Length:short, medium, long}",6 "tone": "${Tone:dark, humorous, inspirational}",7 "protagonist": "string (optional description)",8 "setting": "string (optional setting description)"9 },10 "output_format": {...+11 dòng nữa
Viết tiểu sử GitHub Sponsors nêu kinh nghiệm, tác động của công việc mã nguồn mở và cam kết phát triển cộng đồng.
Write a GitHub Sponsors bio for my profile that highlights my experience in [your field], the impact of my open source work, and my commitment to community growth.
Viết tuyên bố tầm nhìn về hướng đi của dự án trong 2-3 năm tới và cách nhà tài trợ góp phần vào hành trình đó.
Write a compelling vision statement about where I see [project/work] going in the next 2-3 years and how sponsors can be part of that journey.
Tóm tắt ba repository hàng đầu theo cách truyền cảm hứng để nhà tài trợ tiềm năng ủng hộ công việc.
Summarize my top three repositories ([repo1], [repo2], [repo3]) in a way that inspires potential sponsors to support my work.
Phát triển game FPS bằng Three.js và JavaScript: mô hình vũ khí, hit detection, nhiều màn chơi, AI kẻ địch và hiệu ứng hạt.
Develop a first-person shooter game using Three.js and JavaScript. Create detailed weapon models with realistic animations and effects. Implement precise hit detection and damage systems. Design multiple game levels with various environments and objectives. Add AI enemies with pathfinding and combat behaviors. Create particle effects for muzzle flashes, impacts, and explosions. Implement multiplayer mode with team-based objectives. Include weapon pickup and inventory system. Add sound effects for weapons, footsteps, and environment. Create detailed scoring and statistics tracking. Implement replay system for kill cams and match highlights.
Xây dựng công cụ màu chuyên nghiệp cho nhà thiết kế: eyedropper, bánh xe màu, chuyển đổi RGB/HSL/HEX/CMYK và tạo bảng màu.
Build a professional-grade color tool with HTML5, CSS3 and JavaScript for designers and developers. Create an intuitive interface with multiple selection methods including eyedropper, color wheel, sliders, and input fields. Implement real-time conversion between color formats (RGB, RGBA, HSL, HSLA, HEX, CMYK) with copy functionality. Add a color palette generator with options for complementary, analogous, triadic, tetradic, and monochromatic schemes. Include a favorites system with named collections and export options. Implement color harmony rules visualization with interactive adjustment. Create a gradient generator supporting linear, radial, and conic gradients with multiple color stops. Add an accessibility checker for WCAG compliance with contrast ratios and colorblindness simulation. Implement one-click copy for CSS, SCSS, and SVG code snippets. Include a color naming algorithm to suggest names for selected colors. Support exporting palettes to various formats (Adobe ASE, JSON, CSS variables, SCSS).
Phát triển trình phát nhạc web dùng Web Audio API: ảnh bìa, hiệu ứng trực quan, quản lý playlist kéo thả, điều khiển phát và chế độ lặp.
Develop a web-based music player using HTML5, CSS3, and JavaScript with the Web Audio API. Create a modern interface with album art display and visualizations. Implement playlist management with drag-and-drop reordering. Add audio controls including play/pause, skip, seek, volume, and playback speed. Include shuffle and repeat modes with visual indicators. Support multiple audio formats with fallbacks. Implement a 10-band equalizer with presets. Add metadata extraction and display from audio files. Create a responsive design that works on all devices. Include keyboard shortcuts for playback control. Support background playback with media session API integration.
Xây dựng công cụ quy đổi tiền tệ dùng Exchange Rate API, tỷ giá thời gian thực, hơn 170 loại tiền kể cả tiền mã hóa.
Develop a comprehensive currency converter using HTML5, CSS3, JavaScript and a reliable Exchange Rate API. Create a clean, intuitive interface with prominent input fields and currency selectors. Implement real-time exchange rates with timestamp indicators showing data freshness. Support 170+ global currencies including crypto with appropriate symbols and formatting. Maintain a conversion history log with timestamps and rate information. Allow users to bookmark favorite currency pairs for quick access. Generate interactive historical rate charts with customizable date ranges. Implement offline functionality using cached exchange rates with clear staleness indicators. Add a built-in calculator for complex conversions and arithmetic operations. Create rate alerts for target exchange rates with optional notifications. Include side-by-side comparison of different provider rates when available. Support printing and exporting conversion results in multiple formats (PDF, CSV, JSON).
Tạo công cụ mã hóa tệp phía client bằng Web Crypto API với AES-256-GCM, khóa từ mật khẩu qua PBKDF2, kéo thả và xử lý hàng loạt.
Create a client-side file encryption tool using HTML5, CSS3, and JavaScript with the Web Crypto API. Build a drag-and-drop interface for file selection with progress indicators. Implement AES-256-GCM encryption with secure key derivation from passwords (PBKDF2). Add support for encrypting multiple files simultaneously with batch processing. Include password strength enforcement with entropy calculation. Generate downloadable encrypted files with custom file extension. Create a decryption interface with password verification. Implement secure memory handling with automatic clearing of sensitive data. Add detailed logs of encryption operations without storing sensitive information. Include export/import of encryption keys with proper security warnings. Support for large files using streaming encryption and chunked processing.
Xây dựng bảng quản lý dự án Kanban với cột tùy chỉnh, kéo thả thẻ, nhãn, hạn chót, mức ưu tiên, gán người dùng và bộ lọc.
Build a Kanban project management board using HTML5, CSS3, and JavaScript. Create a flexible board layout with customizable columns (To Do, In Progress, Done, etc.). Implement drag-and-drop card movement between columns with smooth animations. Add card creation with rich text formatting, labels, due dates, and priority levels. Include user assignment with avatars and filtering by assignee. Implement card comments and activity history. Add board customization with column reordering and color themes. Support multiple boards with quick switching. Implement data persistence using localStorage with export/import functionality. Create a responsive design that adapts to different screen sizes. Add keyboard shortcuts for common actions.
Xây dựng công cụ phân tích văn bản: đếm từ, thời gian đọc, điểm dễ đọc (Flesch-Kincaid, SMOG...), mật độ từ khóa và cảm xúc.
Build a comprehensive text analysis tool using HTML5, CSS3, and JavaScript. Create a clean interface with text input area and results dashboard. Implement word count, character count, and reading time estimation. Add readability scoring using multiple algorithms (Flesch-Kincaid, SMOG, Coleman-Liau). Include keyword density analysis with visualization. Implement sentiment analysis with emotional tone detection. Add grammar and spelling checking with suggestions. Include text comparison functionality for similarity detection. Support multiple languages with automatic detection. Add export functionality for analysis reports. Implement text formatting and cleaning tools.
Phát triển game ghép cặp thẻ nhớ với hiệu ứng lật, nhiều kích thước lưới, đếm giờ và lượt, âm thanh, bảng xếp hạng và chủ đề thẻ.
Develop a memory matching card game using HTML5, CSS3, and JavaScript. Create visually appealing card designs with flip animations. Implement difficulty levels with varying grid sizes and card counts. Add timer and move counter for scoring. Include sound effects for card flips and matches. Implement leaderboard with score persistence. Add theme selection with different card designs. Include multiplayer mode for competitive play. Create responsive layout that adapts to screen size. Add accessibility features for keyboard navigation. Implement progressive difficulty increase during gameplay.
Xây dựng công cụ lập chỉ mục và tìm kiếm tệp hiệu năng cao bằng Go: duyệt đệ quy, siêu dữ liệu, tìm toàn văn, cú pháp truy vấn nâng cao.
Build a high-performance file system indexer and search tool in Go. Implement recursive directory traversal with configurable depth. Add file metadata extraction including size, dates, and permissions. Include content indexing with optional full-text search. Implement advanced query syntax with boolean operators and wildcards. Add incremental indexing for performance. Include export functionality in JSON and CSV formats. Implement search result highlighting. Add duplicate file detection using checksums. Include performance statistics and progress reporting. Implement concurrent processing for multi-core utilization.
Tạo game đua xe 3D bằng Three.js với vật lý xe thực tế, mô hình xe tùy biến, nhiều đường đua, AI đối thủ và chế độ chia đôi màn hình.
Create an exciting 3D racing game using Three.js and JavaScript. Implement realistic vehicle physics with suspension, tire friction, and aerodynamics. Create detailed car models with customizable paint and upgrades. Design multiple race tracks with varying terrain and obstacles. Add AI opponents with different difficulty levels and racing behaviors. Implement a split-screen multiplayer mode for local racing. Include a comprehensive HUD showing speed, lap times, position, and minimap. Create particle effects for tire smoke, engine effects, and weather. Add dynamic day/night cycle with realistic lighting. Implement race modes including time trial, championship, and elimination. Include replay system with multiple camera angles.
Xây dựng công cụ tính chỉ số sức khỏe theo chuẩn y khoa: BMI, đánh giá rủi ro, tỷ lệ mỡ cơ thể bằng nhiều phương pháp.
Build a comprehensive health metrics calculator with HTML5, CSS3 and JavaScript based on medical standards. Create a clean, accessible interface with step-by-step input forms. Implement accurate BMI calculation with visual classification scale and health risk assessment. Add body fat percentage calculator using multiple methods (Navy, Jackson-Pollock, BIA simulation). Calculate ideal weight ranges using multiple formulas (Hamwi, Devine, Robinson, Miller). Implement detailed calorie needs calculator with BMR (using Harris-Benedict, Mifflin-St Jeor, and Katch-McArdle equations) and TDEE based on activity levels. Include personalized health recommendations based on calculated metrics. Support both metric and imperial units with seamless conversion. Store user profiles and measurement history with trend visualization. Generate interactive progress charts showing changes over time. Create printable/exportable PDF reports with all metrics and recommendations.
Xây dựng ứng dụng ghi chú markdown chia đôi màn hình có xem trước trực tiếp, bảng, tô màu cú pháp, LaTeX, danh mục lồng nhau và thẻ.
Build a feature-rich markdown notes application with HTML5, CSS3 and JavaScript. Create a split-screen interface with a rich text editor on one side and live markdown preview on the other. Implement full markdown syntax support including tables, code blocks with syntax highlighting, and LaTeX equations. Add a hierarchical organization system with nested categories, tags, and favorites. Include powerful search functionality with filters and content indexing. Use localStorage with optional export/import for data backup. Support exporting notes to PDF, HTML, and markdown formats. Implement a customizable dark/light mode with syntax highlighting themes. Create a responsive layout that adapts to different screen sizes with collapsible panels. Add productivity-enhancing keyboard shortcuts for all common actions. Include auto-save functionality with version history and restore options.
Prompt tạo ảnh dạng JSON: diorama thành phố isometric 3D thu nhỏ trên đế vuông nổi, thời tiết và môi trường theo thành phố chỉ định.
1{2 "meta": {3 "description": "Structured prompt for generating an isometric city diorama in a miniature 3D style, with weather and environment adaptive to the specified city.",4 "variable": "${City:San Francisco}"5 },6 "prompt_structure": {7 "perspective_and_format": {8 "view": "Isometric camera view",9 "format": "Miniature 3D diorama resting on a floating square base serving as the ground plinth.",10 "ratio": "16:9 (vertical phone)"...+26 dòng nữa
Prompt tạo ảnh góc nhìn từ trên cao xuống một sân trong bỏ hoang u ám, tông teal với tia sáng vàng, phong cách hoạt hình 2D, không bạo lực.
High-angle top-down view of a dimly lit abandoned courtyard, cracked concrete ground, scattered old markings and faded impact dents, long eerie character shadows cast off-frame, no violence depicted, dark Teal palette with a strong golden beam, thick outlines, 2D animated cartoon look, flat shading, extreme contrast, atmospheric tension.
Đóng vai tư vấn thiết kế web, đề xuất kiến trúc thông tin, thiết kế hình ảnh và tính năng tương tác phù hợp mục tiêu kinh doanh.
I want you to act as a web design consultant. I will provide details about an organization that needs assistance designing or redesigning a website. Your role is to analyze these details and recommend the most suitable information architecture, visual design, and interactive features that enhance user experience while aligning with the organization’s business goals. You should apply your knowledge of UX/UI design principles, accessibility standards, web development best practices, and modern front-end technologies to produce a clear, structured, and actionable project plan. This may include layout suggestions, component structures, design system guidance, and feature recommendations. My first request is: “I need help creating a white page that showcases courses, including course listings, brief descriptions, instructor highlights, and clear calls to action.”
Prompt tạo ảnh mô hình diorama 3D siêu thực thu nhỏ của một địa danh trên mặt cắt đất, có thảm cỏ, đèn đường và cây cối chi tiết.
Create a hyper-realistic 3D diorama-style model of EIFFEL TOWER. The model should appear as a miniature, set on a raised cross-section of earth that reveals soil and rock layers beneath a lush grassy surface. The structure must be highly detailed and proportionally accurate, surrounded by tiny realistic elements like region-appropriate street lamps, native trees, shrubs, water features like small fountains, and historically or culturally fitting pathways. The scene should evoke the unique character of EIFFEL TOWER’s surrounding landscape. The environment must include a soft white background to draw full attention to the model. Include the text “EIFFEL TOWER” in large, bold, elegant lettering prominently displayed on a big sign or billboard at the front of the diorama, easily readable and eye-catching, along with a large national flag on a tall, prominent flagpole positioned beside EIFFEL TOWER, clearly visible and waving. 1080x1080 dimension
Prompt tạo ảnh: từ một câu thoại phim, dựng cảnh tương ứng thành diorama isometric 3D thu nhỏ, hiệu ứng tilt-shift góc 45 độ, chỉ trả về ảnh.
"When I give you a movie quote, never reply with text or a prompt. Instead, analyze the scene where the quote appears and visualize it in the style of a '3D Isometric Miniature Diorama, Tilt-Shift, 45-degree angle' (image generation). Provide only the image." Quote = "You shall not pass!"
Prompt tạo ảnh chồng lên ảnh gốc một lớp giấy can bản vẽ kiến trúc với nét vẽ tay, ghi chú kỹ thuật, đường kích thước và mặt cắt.
Based on the source image, overlay an architect's busy working process onto the entire scene. The image should look like a blueprint or trace paper covering the original photo, filled with handwritten black ink sketches, technical annotations, dimension lines with measurements (e.g., "12'-4"", "CLG HGT 9'"), rough cross-section diagrams showing structural details, revision clouds with notes like "REVISE LATER", and leaders pointing to specific elements labeled with English architect's notes such as "CHECK BEAM", "REMOVE FINISH", or "PROPOSED NEW OPENING". The style should be messy, authentic, and look like a work-in-progress conceptual drawing.
Chuyển yêu cầu cơ sở dữ liệu bằng ngôn ngữ thường thành truy vấn SQL sạch, dễ đọc, sẵn sàng dùng thực tế cho PostgreSQL, MySQL hoặc SQL Server.
Context: This prompt is used by AI2sql to generate SQL queries from natural language. AI2sql focuses on correctness, clarity, and real-world database usage. Purpose: This prompt converts plain English database requests into clean, readable, and production-ready SQL queries. Database: PostgreSQL | MySQL | SQL Server Schema: Optional — tables, columns, relationships User request: Describe the data you want in plain English Output: - A single SQL query that answers the request Behavior: - Focus exclusively on SQL generation - Prioritize correctness and clarity - Use explicit column selection - Use clear and consistent table aliases - Avoid unnecessary complexity Rules: - Output ONLY SQL - No explanations - No comments - No markdown - Avoid SELECT * - Use standard SQL unless the selected database requires otherwise Ambiguity handling: - If schema details are missing, infer reasonable relationships - Make the most practical assumption and continue - Do not ask follow-up questions Optional preferences: Optional — joins vs subqueries, CTE usage, performance hints