ToolHub
View All Posts

จัดการ Behavioral Analytics

เคล็ดลับการใช้นาฬิกาจับเวลา

จัดการ Sales Management

การปรับใช้

จัดการการเพิ่มประสิทธิภาพ

การเปลี่ยนแปลงเล็กน้อยในพรอมต์สามารถสร้างผลกระทบอย่างมาก เปรียบเทียบระหว่าง "แก้บั๊ก" กับ "แก้ไข null reference exception ในเมธอด UserService.authenticate เมื่อพารามิเตอร์ email เป็น undefined เมธอดนี้อยู่ที่ src/services/UserService.ts ใช้ bcrypt สำหรับการเปรียบเทียบรหัสผ่าน" พรอมต์แรกให้ข้อมูลที่เป็นประโยชน์แก่ AI น้อยมาก พรอมต์ที่สองให้คำอธิบายปัญหา ตำแหน่ง และบริบทที่ชัดเจน — ทำให้ AI สามารถสร้างการแก้ไขที่แม่นยำและถูกต้องในครั้งแรก

เลือกงานที่จะทำ

จัดการ Content Personalization

การเข้าใจเทคนิคการพรอมต์หลักเป็นพื้นฐานของคุณ แต่ละเทคนิคมีกรณีการใช้งานเฉพาะที่โดดเด่น และวิศวกรพรอมต์ที่มีประสบการณ์มักรวมหลายเทคนิคในพรอมต์เดียวเพื่อผลลัพธ์ที่ดีที่สุด

จัดการ Data Catalog

อนาคต

Write a Python function that validates an email address using regex.
The function should return True for valid emails and False for invalid ones.

จัดการ Container Orchestration

ข้อความ

การสำรองข้อมูล

Convert these database column names to camelCase JavaScript variable names:

user_first_name -> userFirstName
created_at_timestamp -> createdAtTimestamp
is_email_verified -> isEmailVerified
total_order_count ->

Now convert: product_category_id

จัดการ Support Ticket

คิว

การเข้ารหัส URL สำหรับ fragment identifier

Analyze this React component for performance issues. Think step by step:

1. First, identify all state variables and their update patterns
2. Then, check for unnecessary re-renders
3. Next, look for missing memoization opportunities
4. Finally, suggest specific optimizations with code examples

Here's the component:
[component code]

ข้อผิดพลาดภายในเซิร์ฟเวอร์

พรอมต์แบบสวมบทบาท

ความเข้ากันได้

Act as a senior security engineer with 15 years of experience in web application security. Review this authentication implementation and identify any vulnerabilities, ranking them by severity. For each vulnerability, explain the attack vector and provide a secure code fix.

รูปแบบ Regular Expression ที่ใช้บ่อย

System Prompt กับ User Prompt

ตรวจสอบความแตกต่างอย่างรอบคอบก่อน commit การเปลี่ยนแปลงที่สร้างโดย AI

ประสิทธิภาพ

# System prompt example
You are a TypeScript expert working on a Next.js 14 project using:
- App Router (not Pages Router)
- Server Components by default
- Prisma for database access
- Tailwind CSS for styling
- Zod for validation

Always use strict TypeScript. Prefer server actions over API routes.
Never use 'any' type. Use 'unknown' and narrow with type guards.

# User prompt example
Add a user profile page that shows the current user's name, email,
avatar, and last 10 activity records. Include loading states and
error handling.

จัดการการวิเคราะห์คิวรี

จัดการ Personalization

commandจัดการ Sustainability Reportingจัดการ Customer Engagement
"Act as..." / "You are a..."การกำหนดบทบาทรับการตอบกลับระดับผู้เชี่ยวชาญเฉพาะด้าน
"Step by step"chain of thoughtจัดการ Maintenance Management
"Think aloud"การทำให้การให้เหตุผลโปร่งใสการทำให้ชาญฉลาด
"Explain like I'm 5"การโจมตีแบบ Path Traversalเรียนรู้แนวคิดใหม่อย่างรวดเร็ว
"Review and critique"การตรวจสอบโค้ดการค้นหา
"Write tests for"จัดการ Supplier Managementไปที่หน้าตัวจับเวลาของ ToolHub
"Refactor using..."ทรัพยากรไม่ได้รับการแก้ไข ใช้เวอร์ชันแคชใช้ปุ่มลัดคีย์บอร์ด
"Find bugs in"ดีบักคลิก Lap เพื่อบันทึกเวลาแต่ละช่วง
"Convert from X to Y"จัดการ Analyticsจัดการ Marketing Automation
"Document this"จัดการ Delivery Managementสร้างเอกสารอินไลน์และ README
"Optimize for performance"ปรับให้เหมาะสมMeta Description
"Add error handling"ใช้ตัวจับเวลาในชื่อแท็บเพื่อตรวจสอบเวลาที่เหลือในพื้นหลังจัดการ Performance Review

ตั้งตัวจับเวลาเป็น 25 นาที

คลิกปุ่มเริ่มเพื่อเริ่มจับเวลา

You are a senior backend engineer at a fintech company who specializes
in building secure, high-throughput payment processing systems.
You have deep expertise in PostgreSQL, Redis, and distributed systems.
You always consider edge cases, race conditions, and failure modes.

Design a payment processing API that handles:
- Credit card payments via Stripe
- Bank transfers via Plaid
- Retry logic with exponential backoff
- Idempotency keys to prevent duplicate charges

"Step by step" — การให้เหตุผลแบบลูกโซ่ความคิด

คำติชม

Debug this SQL query that's causing a timeout. Think step by step:

1. First, analyze the query structure and joins
2. Identify potential performance bottlenecks
3. Check for missing indexes
4. Suggest an optimized version with EXPLAIN analysis

SELECT u.name, COUNT(o.id), SUM(o.amount)
FROM users u
LEFT JOIN orders o ON u.id = o.user_id
LEFT JOIN order_items oi ON o.id = oi.order_id
WHERE o.created_at > '2026-01-01'
GROUP BY u.name
HAVING COUNT(o.id) > 10
ORDER BY SUM(o.amount) DESC;

429 Too Many Requests

การทำซ้ำ

I need to choose between WebSocket and Server-Sent Events for a
real-time notification system. Think aloud about the trade-offs,
considering: browser support, bidirectional communication needs,
server resource usage, and scalability. Then recommend one with
justification.

จัดการ Donation Management

ติดตามจำนวน Pomodoro ต่อวันเพื่อวัดประสิทธิภาพ

Explain like I'm 5: What is a monad in functional programming,
and why do Haskell developers keep talking about them?
Use a real-world analogy, not code.

จับคู่ตัวอักษรก่อนหน้าหนึ่งครั้งหรือมากกว่า

คำแนะนำ

Review and critique this Express.js middleware. Focus on:
- Security vulnerabilities
- Error handling gaps
- Performance concerns
- Best practice violations
- Suggest improvements with code examples

[paste your middleware code]

จัดการการจำลองฐานข้อมูล

จัดการ Returns Management

Write tests for the UserService.register method using Jest.
Cover these scenarios:
- Happy path with valid input
- Duplicate email registration
- Invalid email format
- Password too short
- Missing required fields
- Database connection failure
- Concurrent registration attempts

Use describe/it blocks. Include setup and teardown.
Mock the database layer.

"Refactor using..." — การรีแฟกเตอร์ตามรูปแบบ

ดูรายการบันทึกช่วงเวลา

Refactor this notification system using the Strategy pattern.
Currently, all notification types (email, SMS, push) are handled
in a single class with if-else chains. Create separate strategy
classes for each notification type, a context class that delegates
to the active strategy, and a factory for creating strategies.

[paste your current code]

การใช้งาน

คำสั่ง "Find bugs in" กระตุ้นโหมดการวิเคราะห์ของ AI ทำให้มันมองหาปัญหาแทนการสร้างโค้ด มันทำงานได้ดีที่สุดเมื่อคุณให้โค้ด อธิบายพฤติกรรมที่คาดหวัง และกล่าวถึงอาการที่สังเกตได้

Find bugs in this async Node.js function. It's supposed to process
a batch of orders and update their status, but sometimes orders
get processed twice and the status updates are inconsistent under
high load.

[paste your function code]

เทคนิค Pomodoro: การโฟกัสอย่างมีโครงสร้าง

โค้ดที่สร้างโดย AI หลายชิ้นทำงานได้ในเส้นทางปกติแต่ขาดการจัดการข้อผิดพลาดที่เหมาะสม คำสั่ง "Add error handling" กำหนดเป้าหมายช่องว่างนี้โดยเฉพาะ โดยขอให้ AI พิจารณาโหมดความล้มเหลว กรณีขอบ และกลยุทธ์การกู้คืน

Add error handling to this file upload function. Consider:
- File size limits
- Invalid file types
- Network interruptions during upload
- Disk space errors
- Concurrent upload conflicts
- Partial upload cleanup

Use try-catch with specific error types. Add retry logic for
transient failures. Return meaningful error messages to the client.

จัดการการลดขนาด

นอกเหนือจากคำสั่งเดี่ยว รูปแบบพรอมต์บางอย่างได้รับการพิสูจน์แล้วว่ามีประสิทธิภาพเป็นพิเศษสำหรับงานสร้างโค้ดประเภทเฉพาะ รูปแบบเหล่านี้รวมเทคนิคต่างๆ เช่น การกำหนดบทบาท การให้บริบท และการระบุข้อมูลจำเพาะของผลลัพธ์ เป็นพรอมต์ที่มีโครงสร้างซึ่งให้ผลลัพธ์คุณภาพสูงอย่างต่อเนื่อง

พรอมต์การนำฟีเจอร์ไปใช้

นาฬิกาจับเวลาออนไลน์ทำงานอย่างไร

Implement a user avatar upload feature for a Next.js 14 application.

Tech stack: Next.js App Router, TypeScript, Prisma, PostgreSQL, AWS S3

Requirements:
- Accept JPEG, PNG, WebP (max 5MB)
- Resize to 200x200 and 400x400 thumbnails using Sharp
- Upload originals to S3 with unique keys
- Store S3 URLs in the User model
- Delete old avatar when uploading a new one
- Return presigned URLs for frontend display

Acceptance criteria:
- Invalid file types return 400 with error message
- Files over 5MB return 413
- Successful upload returns 200 with avatar URLs
- Old avatars are cleaned up from S3

Create: API route, service layer, Prisma schema update, and types.

จัดการการแปลที่ขาดหายไป

พรอมต์การออกแบบ API ได้ประโยชน์จากการระบุสไตล์สถาปัตยกรรม วิธีการรับรองความถูกต้อง กลยุทธ์การกำหนดเวอร์ชัน และรูปแบบการตอบกลับล่วงหน้า สิ่งนี้ทำให้แน่ใจว่า API ที่สร้างขึ้นสอดคล้องและเป็นไปตามข้อตกลงของโปรเจกต์ของคุณ

Design a RESTful API for a project management application.

Architecture: Express.js with TypeScript, following clean architecture
Auth: JWT with refresh token rotation
Versioning: URL-based (/api/v1/)
Response format: { success: boolean, data?: T, error?: { code, message } }

Endpoints needed:
- Projects CRUD with team membership
- Tasks CRUD with assignee, priority, status
- Comments on tasks with mentions
- Activity feed (recent actions across projects)

Include:
- Request/response TypeScript interfaces
- Zod validation schemas
- Error handling middleware
- Pagination for list endpoints (cursor-based)

อักขระพิเศษ

หลังจากครบ 4 Pomodoro ให้พักยาว 15-30 นาที

Design a Prisma schema for an e-commerce platform with these entities:

- Users (authentication, profile, addresses)
- Products (variants, categories, inventory)
- Orders (line items, status history, payments)
- Reviews (ratings, images, helpful votes)
- Cart (items, applied coupons)

Requirements:
- Use PostgreSQL with UUID primary keys
- Soft deletes with deletedAt timestamps
- Proper indexes for common query patterns
- Enums for order status, payment status
- Decimal fields for prices (not float)
- Full-text search on product name and description
- Include a migration file

พรอมต์คอมโพเนนต์ UI

รับการแจ้งเตือนด้วยเสียงและเบราว์เซอร์เมื่อหมดเวลา

Create a reusable DataTable component in React with TypeScript.

Styling: Tailwind CSS + shadcn/ui conventions
Features:
- Column definitions with sort, filter, and custom renderers
- Server-side pagination with page size selector
- Row selection (single and multi) with checkboxes
- Loading skeleton state
- Empty state with custom message
- Responsive: card layout on mobile, table on desktop

Accessibility:
- Keyboard navigation (arrow keys, Enter, Escape)
- Screen reader announcements for sort and filter changes
- ARIA labels on all interactive elements

Props interface:
- data, columns, isLoading, pagination, onSort, onFilter, onSelect

Include a usage example with a user list table.

พรอมต์การกำหนดค่าและ DevOps

จัดการ Contract Management

Create a Docker Compose setup for a development environment with:
- Next.js app (hot reload enabled)
- PostgreSQL 16 with persistent volume
- Redis for session storage
- MinIO (S3-compatible) for local file storage

Requirements:
- All services on a shared network
- Environment variables from .env file
- Health checks for all services
- Volumes for node_modules (avoid bind mount issues)
- PostgreSQL initialized with seed data
- Non-root containers where possible

Also create:
- Dockerfile for the Next.js app (multi-stage build)
- .env.example with all required variables
- Makefile with common commands (up, down, logs, reset-db)

จัดการ Data Encryption

การทำให้เป็นดิจิทัล

จัดการ Workforce Planning

จับคู่ตัวอักษรก่อนหน้าศูนย์ครั้งหรือหนึ่งครั้ง

# Step 1: Design the architecture
"Design the architecture for a real-time chat application.
List the components, their responsibilities, and how they
communicate. Use a diagram-like text format."

# Step 2: Define the data model
"Based on the architecture above, design the database schema
for the chat application. Include users, conversations,
messages, and read receipts. Use Prisma schema format."

# Step 3: Implement the API
"Implement the REST API for the chat application based on
the architecture and schema we designed. Start with the
message endpoints: send, list, delete."

# Step 4: Add WebSocket support
"Now add WebSocket support for real-time message delivery.
Use Socket.io. Integrate with the existing message API."

# Step 5: Write tests
"Write integration tests for the chat API and WebSocket
events using Jest and Supertest."

จับคู่ที่อยู่ IP

จัดการ Serverless

จัดการ Feedback Management

 {
    await this.db.query('UPDATE users SET email = $1 WHERE id = $2', [email, id]);
    await this.cache.del(`user:${id}`);
  }
}
```

Here is the User type:
```typescript
interface User {
  id: string;
  email: string;
  name: string;
  role: 'admin' | 'user';
  createdAt: Date;
}
```

Now, add an updateProfile method that allows updating name and email,
with validation that the email is not already taken by another user.

Twitter Card Tags

จัดการการบีบอัด

การทำให้กลับเป็นวัตถุ

Build a URL shortener API with these constraints:

MUST:
- Use Node.js 20+ with native fetch (no axios)
- Use PostgreSQL via pg driver (no ORM)
- Generate short codes of exactly 7 characters
- Support custom aliases (max 20 chars)
- Return 301 for existing short URLs
- Rate limit to 100 creates per hour per IP

MUST NOT:
- Use any ORM or query builder
- Store full URLs without normalization
- Allow short codes that conflict with existing routes
- Return database errors to the client

PERFORMANCE:
- Handle 10,000 requests per second
- Cache hot URLs in Redis with 5-minute TTL
- P99 latency under 50ms for redirects

จัดการ Tax Management

ตัวจับเวลายังคงทำงานในแท็บพื้นหลัง โดยใช้การคำนวณแบบ absolute timestamp แทนการลดตามช่วงเวลา

Analyze this codebase and provide the output in this exact format:

## Architecture Overview
[2-3 paragraph summary]

## Component Diagram
```mermaid
graph TD
    [components and relationships]
```

## API Endpoints
| Method | Path | Description | Auth |
|--------|------|-------------|------|

## Database Tables
| Table | Columns | Indexes | Relations |
|-------|---------|---------|-----------|

## Recommendations
1. [Priority] [Description] - [Estimated effort]
2. ...

## Technical Debt
- [ ] [Description] - [Impact: High/Medium/Low]

แนวทางปฏิบัติที่ดีที่สุดสำหรับ Meta Tags

จัดการ Government Management

# Iteration 1: Get a starting point
"Write a rate limiter middleware for Express.js"

# Iteration 2: Add specificity
"Good start. Now modify it to use Redis for distributed
rate limiting across multiple server instances. Use sliding
window instead of fixed window."

# Iteration 3: Add edge cases
"Add handling for: Redis connection failures (fall back to
in-memory), custom rate limits per route, burst allowance
for legitimate traffic spikes, and proper headers
(X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset)."

# Iteration 4: Add tests
"Write comprehensive tests for all the scenarios we've
covered, including Redis failures and burst handling."

จัดการ Route Optimization

เคล็ดลับการพรอมต์เฉพาะสำหรับแต่ละเครื่องมือ

ความสามารถในการทดสอบ

ChatGPT / GPT-4

จัดการ Lifetime Value

# Effective GPT-4 prompt structure
**Role:** Senior TypeScript developer
**Task:** Implement a JWT authentication middleware
**Context:** Express.js API, PostgreSQL, existing User model
**Constraints:** No external auth libraries, use crypto module
**Output:** Complete, production-ready code with types
**Format:** Single file with inline comments for complex logic

Claude / Claude Code

จัดการการล็อก

# Effective Claude Code prompt
Read the following files to understand the current architecture:
- src/routes/userRoutes.ts
- src/middleware/authMiddleware.ts
- src/models/User.ts

Then refactor the authentication flow to support:
1. JWT access tokens (15 min expiry) + refresh tokens (7 day expiry)
2. Token rotation on refresh (invalidate old refresh token)
3. Rate limiting on the refresh endpoint (5 per minute per user)

Update all related files and run the test suite when done.

GitHub Copilot

จัดการ Media Relations

> {
  // Copilot will generate the implementation based on these types

Cursor

ใช้ปุ่มเว้นวรรคเพื่อเริ่ม/หยุดอย่างรวดเร็ว

# Effective Cursor prompt
@src/services/paymentService.ts @src/types/payment.ts

Refactor the processPayment function to use the Strategy pattern.
Create separate strategy classes for each payment provider
(Stripe, PayPal, BankTransfer). The function should accept a
payment method and delegate to the appropriate strategy.

Keep the same public API so existing callers don't break.

Codex CLI

Codex CLI เป็นเทอร์มินัลเอเจนต์การเขียนโปรแกรมของ OpenAI ที่มีแนวคิดคล้ายกับ Claude Code มันเก่งในการดำเนินงานพัฒนาหลายขั้นตอนจากบรรทัดคำสั่ง

ความสามารถในการบำรุงรักษา

จัดการ Reward Management

เครื่องคิดเลขอย่างง่ายนี้สามารถคำนวณดอกเบี้ยได้

ขั้นตอน

# Bad
"Fix the login bug"

# Good
"Fix the bug where users with uppercase emails cannot log in.
The issue is in src/auth/login.ts - the email comparison is
case-sensitive but emails are stored in lowercase in the database.
The fix should normalize the email to lowercase before comparison."

~/.bashrc~/.zshrc.env

จัดการ Community Forum

# Bad
"Write a function to send emails"

# Good
"Write an email sending function for our NestJS application.
We use:
- @nestjs/mailer with Handlebars templates
- SMTP via AWS SES
- Templates stored in src/templates/emails/
- Existing MailService class in src/mail/mail.service.ts

The function should accept a template name, recipient, and
template variables. Include error handling for SES throttling
and bounce notifications."

พรอมต์ที่แน่นเกินไป

จัดการ Asset Tracking

# Bad - Too many tasks in one prompt
"Build a complete user management system with authentication,
profile management, email verification, password reset,
role-based access control, and an admin dashboard"

# Good - Break it into focused prompts
Prompt 1: "Design the database schema for a user management system..."
Prompt 2: "Implement the authentication endpoints..."
Prompt 3: "Add email verification flow..."
Prompt 4: "Implement role-based access control middleware..."

การเลือก

จับคู่ตำแหน่งเริ่มต้น

# Bad
"List all the API endpoints"

# Good
"List all API endpoints in a markdown table with these columns:
| Method | Path | Description | Auth Required | Request Body | Response |"

จัดการการย้ายฐานข้อมูล

การประมวลผลแบบสตรีม

# Instead of accepting the first response, iterate:
"Good start. Now add input validation using Zod schemas."
"Now add proper error handling with custom error classes."
"Now add logging for all operations."
"Now write tests for all the edge cases we've discussed."
แปลงเมธอดวงจรชีวิต จัดการการเปลี่ยนสถานะ

จัดการ Web Storage

ต่อไปนี้คือเทมเพลตพรอมต์พร้อมใช้สำหรับงานนักพัฒนาทั่วไป คัดลอกเทมเพลตเหล่านี้ เติมข้อความในตัวยึดตำแหน่ง และปรับแต่งตามความต้องการเฉพาะของคุณ แต่ละเทมเพลตรวมเทคนิคการพรอมต์หลายแบบเพื่อให้ได้ผลลัพธ์สูงสุด

เทมเพลต 1: การนำฟีเจอร์ไปใช้

You are a senior {language} developer specializing in {framework}.

Implement {feature_description} for our {project_type} application.

Tech stack:
- {language} {version} with {framework} {version}
- {database} for data storage
- {orm} for database access
- {testing_framework} for tests

Requirements:
- {requirement_1}
- {requirement_2}
- {requirement_3}

Constraints:
- Must follow existing patterns in the codebase
- Must include input validation
- Must handle errors gracefully
- Must be backward compatible

Output:
1. Implementation code with inline comments for complex logic
2. Unit tests covering happy path and edge cases
3. Brief explanation of design decisions

เทมเพลต 2: การตรวจสอบบั๊ก

You are a debugging specialist with expertise in {language}/{framework}.

Investigate and fix this bug:

**Symptom:** {describe_the_observed_behavior}
**Expected:** {describe_the_expected_behavior}
**Frequency:** {always/sometimes/under_specific_conditions}
**Environment:** {production/staging/development}

Relevant code:
```
{paste_relevant_code}
```

Error output / stack trace:
```
{paste_error_output}
```

Think step by step:
1. Identify the root cause
2. Explain why this bug occurs
3. Provide the fix with code
4. Suggest how to prevent similar bugs
5. Write a regression test

เทมเพลต 3: การตรวจสอบโค้ด

You are a senior code reviewer at a {company_type} company.

Review this {language} code for:

1. **Correctness:** Logic errors, off-by-one errors, null handling
2. **Security:** Injection, XSS, auth bypasses, data exposure
3. **Performance:** N+1 queries, unnecessary allocations, missing caches
4. **Maintainability:** Code smells, naming, complexity
5. **Testing:** Missing test cases, brittle tests

Code to review:
```
{paste_code}
```

For each issue found, provide:
- Severity: 🔴 Critical / 🟡 Warning / 🔵 Info
- Category: Which of the 5 areas above
- Description: What's wrong and why
- Suggestion: How to fix it, with code example

End with an overall assessment and top 3 priorities.

ใช้ช่วงพักเพื่อออกห่างจากหน้าจอ

Design a {http_method} {endpoint_path} endpoint for {resource_description}.

Framework: {framework}
Auth: {auth_method}
Database: {database}

The endpoint should:
- {functionality_1}
- {functionality_2}
- {functionality_3}

Provide:
1. Route definition with middleware chain
2. Request validation schema ({validation_library})
3. Controller/handler function
4. Service layer function
5. Database query/function
6. Response types (success and error)
7. Example curl request and response

ตั้งเวลา

Create a database migration for {change_description}.

Current schema:
```
{current_schema}
```

Desired changes:
- {change_1}
- {change_2}

ORM: {orm_name}
Database: {database_type}

Requirements:
- Migration must be reversible (include down migration)
- Preserve existing data (write data migration SQL if needed)
- Add appropriate indexes for new columns
- Consider performance impact on large tables
- Include rollback safety checks

ช่วงโฟกัสแบบ Pomodoro

Write a comprehensive test suite for {function_or_class_name}.

Testing framework: {framework}
Mocking library: {library}

Code under test:
```
{paste_code}
```

Test categories to cover:
- ✅ Happy path: All valid inputs produce correct outputs
- 🔄 Edge cases: Empty inputs, boundary values, null/undefined
- ❌ Error cases: Invalid inputs, permission denied, network failures
- 🏎️ Performance: Response time expectations for critical paths
- 🔒 Security: Auth checks, input sanitization

For each test:
- Use descriptive test names that read like documentation
- Follow Arrange-Act-Assert pattern
- Include setup/teardown for shared state
- Mock external dependencies

ตรรกะทางธุรกิจ

You are a software architect specializing in {language} refactoring.

Current code:
```
{paste_current_code}
```

Problems with current code:
- {problem_1}
- {problem_2}

Refactor using {pattern_or_principle}.

Provide:
1. **Analysis:** What's wrong and why the current approach doesn't scale
2. **Target Architecture:** How the refactored code should be structured
3. **Step-by-step Plan:** Ordered refactoring steps (safe, incremental)
4. **Refactored Code:** Complete implementation
5. **Migration Guide:** How to transition from old to new without breaking changes
6. **Risk Assessment:** What could go wrong and how to mitigate

จัดการความต่อเนื่องทางธุรกิจ

Generate documentation for this {language} code:

```
{paste_code}
```

Documentation type: {JSDoc/TSDoc/Python docstrings/README section}

Requirements:
- Document all public functions/classes/methods
- Include parameter descriptions with types
- Include return type descriptions
- Add usage examples for non-obvious APIs
- Note any side effects or important caveats
- Use {style_guide} conventions

For README documentation, include:
- Overview (1-2 paragraphs)
- Installation instructions
- Quick start example
- API reference table
- Configuration options

จัดการ Security Audit

You are a performance engineering specialist.

Analyze and optimize this code for performance:

```
{paste_code}
```

Current performance:
- {metric}: {current_value}
- Target: {target_value}
- Bottleneck suspected at: {location}

Optimization constraints:
- Must not change the public API
- Must maintain all existing test passes
- Must not sacrifice readability for micro-optimizations
- {additional_constraint}

Provide:
1. **Profiling Analysis:** Where time/memory is being spent
2. **Optimization Strategies:** Ranked by expected impact
3. **Optimized Code:** With comments explaining each change
4. **Benchmark Comparison:** Before vs after expected metrics
5. **Trade-offs:** Any readability or complexity costs

การตั้งค่า

You are a security engineer specializing in {language}/{framework} security.

Perform a security audit on this code:

```
{paste_code}
```

Check for:
- Injection attacks (SQL, NoSQL, command, LDAP)
- Authentication and authorization bypasses
- Cross-site scripting (XSS) vulnerabilities
- Cross-site request forgery (CSRF) exposure
- Insecure direct object references (IDOR)
- Sensitive data exposure (logging, error messages)
- Insecure cryptography or key management
- Race conditions in concurrent operations
- Denial of service vulnerabilities

For each finding:
- Severity: Critical / High / Medium / Low
- OWASP Category: Which Top 10 category
- Description: Clear explanation of the vulnerability
- Attack Scenario: How an attacker would exploit it
- Remediation: Specific code fix
- Verification: How to confirm the fix works

ความง่ายในการใช้งาน

จัดการ CDN

คำถามที่พบบ่อย

กระแสข้อมูล

บันทึกการเสร็จสิ้นของแต่ละ Pomodoro

เทคนิคการพรอมต์ที่สำคัญที่สุดสำหรับนักพัฒนาคืออะไร?

เสนอสาเหตุรากและอธิบายว่าทำไมบั๊กจึงเกิดขึ้น

จัดการ Data Retention

จัดการ Infrastructure as Code

เครื่องมือ AI ใดเหมาะที่สุดสำหรับ Prompt Engineering?

จับคู่ตัวเลข

การสนับสนุนปุ่มลัด

จัดการการสื่อสารแบบเรียลไทม์

Prompt Engineering สามารถแทนที่ทักษะการเขียนโปรแกรมแบบดั้งเดิมได้หรือไม่?

ไม่ Prompt Engineering เสริมทักษะการเขียนโปรแกรมแบบดั้งเดิมแต่ไม่สามารถแทนที่ได้ คุณต้องเข้าใจแนวคิดการเขียนโปรแกรม รูปแบบสถาปัตยกรรม และการออกแบบระบบเพื่อเขียนพรอมต์ที่มีประสิทธิภาพและประเมินผลลัพธ์ของ AI Prompt Engineering ช่วยให้คุณใช้ประโยชน์จากเครื่องมือ AI ได้อย่างมีประสิทธิภาพมากขึ้น แต่คุณยังคงต้องการความเชี่ยวชาญเพื่อระบุว่าผลลัพธ์ของ AI ไม่ถูกต้อง ไม่ปลอดภัย หรือต่ำกว่ามาตรฐานเมื่อใด คิดว่ามันเป็นตัวคูณทักษะที่มีอยู่ของคุณ — วิศวกรอาวุโสที่มีทักษะการพรอมต์ที่ดีจะเหนือกว่านักพัฒนามือใหม่ที่มีทักษะการพรอมต์เดียวกันเสมอ เพราะพวกเขาสามารถให้บริบทที่ดีกว่าและประเมินคุณภาพผลลัพธ์ได้

จะจัดการกับปัญหาภาพหลอนในการสร้างโค้ดของ AI ได้อย่างไร?

ตรวจสอบอีเมล