المعرض العام

برومبتات شاركها المستخدمون وراجعتها الإدارة.

Explain What This Legacy Code Actually Does

Paste unfamiliar or legacy code and get a plain-language walkthrough, with dead code and possible bugs flagged.

Walk through this {{language}} code line by line and explain what it does, in plain language. Flag anything that looks like dead code, a workaround, or a potential bug. {{CLIPBOARD}}

{{language}}{{CLIPBOARD}}

Generate CLI Argument Parser Boilerplate

Describe the flags and arguments your CLI needs and get ready-to-use parser boilerplate with help text.

Generate boilerplate for a {{language}} CLI tool using {{framework}} that accepts: {{focus}}. Include help text and basic input validation. {{CLIPBOARD}}

{{language}}{{framework}}{{focus}}{{CLIPBOARD}}

Find Code Smells and Anti-Patterns

Get a list of named code smells and anti-patterns in your code, each paired with a specific, actionable fix.

Scan this {{language}} code for code smells and anti-patterns (e.g. god objects, magic numbers, deep nesting). For each, name the smell and suggest a specific fix. {{CLIPBOARD}}

{{language}}{{CLIPBOARD}}

Performance Optimization Review of Code

Get a performance-focused review that pinpoints bottlenecks and suggests concrete, trade-off-aware optimizations.

Review this {{language}} code for performance issues, focusing on {{focus}}. Identify bottlenecks, their complexity impact, and suggest concrete optimizations with trade-offs. {{CLIPBOARD}}

{{language}}{{focus}}{{CLIPBOARD}}

Security Review of a Code Snippet

Get a focused security review flagging injection, auth, and secret-handling risks in a specific piece of code.

Perform a security review of this {{language}} code. Look for injection risks, auth/authorization gaps, unsafe deserialization, and secret handling issues. Framework: {{framework}}. {{CLIPBOARD}}

{{language}}{{framework}}{{CLIPBOARD}}

Explain the Design Pattern Used in This Code

Paste code and get the design pattern it implements explained in plain terms, plus whether it's actually justified.

Identify and explain the design pattern(s) used in this {{language}} code. Describe the problem it solves here, its trade-offs, and whether a simpler approach would work. {{CLIPBOARD}}

{{language}}{{CLIPBOARD}}

Refactor Code for Readability & Simplicity

Get a cleaner, simpler version of your code with an explanation of every change, without altering behavior.

Refactor the following {{language}} code to improve readability, reduce complexity, and follow {{framework}} best practices. Keep behavior identical and explain each change briefly. {{CLIPBOARD}}

{{language}}{{framework}}{{CLIPBOARD}}

Convert Code Between Programming Languages

Port a function, class, or script from one language to another while keeping the original logic intact.

Convert the following {{language}} code to {{framework}}, preserving logic and behavior exactly. Note any language-specific idioms or libraries used in the conversion. {{CLIPBOARD}}

{{language}}{{framework}}{{CLIPBOARD}}

Generate Docstrings and Inline Comments

Automatically document functions and classes with proper docstrings and helpful inline comments.

Add clear {{language}} docstrings and inline comments to the code below, following the {{framework}} documentation style. Explain purpose, parameters, return values, and any non-obvious logic. {{CLIPBOARD}}

{{language}}{{framework}}{{CLIPBOARD}}

Write a Regex Pattern from a Description

Describe what you need to match and get a working regex with a plain-English breakdown.

Write a regular expression that matches: {{focus}}. Target language/engine: {{language}}. Include a short explanation of each part of the pattern and one example string it matches and one it rejects. {{CLIPBOARD}}

{{focus}}{{language}}{{CLIPBOARD}}

Code review

Paste code, get a review

Review the following {{VAR:language}} code for {{focus}}. Point out bugs first, then style. {{CLIPBOARD}}

{{language}}{{focus}}{{CLIPBOARD}}