Generate global and local explanations for a trained model, with their limits.
Machine learning promptsAdvanced
View the prompt
I have a model trained ({{stack}}) on {{project}}.
Create an explanation report that includes:
1. Feature importance with permutation importance on the validation data.
2. Global and local SHAP explanations for three cases (correct, wrong and borderline).
3. Partial dependence curves (PDP/ICE) for the three most important features.
4. A "limits of the explanation" section: correlation between features, non-causality and stability.
Write the code, run it and show the actual output. {{extra}}
Plan a large programming task as independent tasks for parallel agents.
Multi-agent promptsAdvanced
View the prompt
You are an orchestrator. The task: {{extra}} in {{project}}.
1. Split it into subtasks that are as independent as possible, each with: the goal, the files it may touch, the inputs, the outputs and a completion criterion.
2. Identify the dependencies between tasks and what can run in parallel.
3. Write self-contained instructions for each agent (it does not see your context).
4. Define a final merge and verification step run by the orchestrator: the build, the tests and a conflict review.
Do not start implementation before I approve the plan.
Build a crew of agents (researcher, analyst, writer) to prepare a report with documented sources.
Multi-agent promptsIntermediate
View the prompt
Build a crew with CrewAI on the topic: {{project}}.
- Three agents: a researcher (collects sources with their links), an analyst (verifies and compares) and a writer (writes the report in Arabic).
- For each agent: the role, goal, backstory and tools.
- Sequential tasks with clear expected outputs.
- Rule: every claim in the report must be tied to a source the researcher collected; anything without a source is removed.
- API keys from environment variables only.
The technology: {{stack}}. {{extra}}
An agent graph that stops for approval before sensitive actions.
Multi-agent promptsAdvanced
View the prompt
Design a LangGraph graph for {{project}}.
- Nodes: planning, tool execution, review, and human approval before any action that writes or sends.
- State persistence (a checkpointer) so it resumes after approval.
- A maximum number of steps to prevent infinite loops.
- Tests for the approval and rejection paths.
{{extra}}
Turn an idea into requirements, a design and tasks before any code.
Project planning promptsBeginner
View the prompt
I have an idea: {{project}}. Proposed technologies: {{stack}}.
Do not write code. Create three documents:
1. requirements.md: user stories and testable acceptance criteria.
2. design.md: the architecture, components, data model, APIs, decisions and their alternatives.
3. tasks.md: small ordered tasks, each of which can be implemented and tested in one session.
Ask your open questions at the start. {{extra}}
Cut a long feature list down to a deliverable scope.
Project planning promptsBeginner
View the prompt
This is the list of features required for {{project}}:
{{extra}}
- Classify them with MoSCoW, with a justification.
- Define the smallest scope that proves the core value and can be delivered in {{stack}}.
- List the biggest technical risks and how to test them early.
- A phased plan after the MVP.
Document a technical decision with its alternatives and consequences.
Project planning promptsIntermediate
View the prompt
Write an architecture decision record (ADR) for {{project}} about: {{extra}}.
Sections: context, decision, alternatives considered with the pros and cons of each, positive and negative consequences, and when to revisit it.
Base it on the project's current constraints ({{stack}}) and do not assume performance numbers without a source.
Create a well-structured CLI tool with a package, a configuration file and pytest tests.
Python promptsBeginner
View the prompt
Create a Python command-line tool named {{project}}.
Its job: {{extra}}
Requirements:
- Python 3.11+, a src/ layout with pyproject.toml.
- argparse or Typer (explain the choice), with clear help messages.
- Explicit error handling and correct exit codes, and logging with logging, not print.
- pytest tests that cover normal cases, edge cases and errors.
- A README with install and run commands on Windows and Linux.
Run the tests after writing them and show me the actual result.
Improve the quality of existing Python code by adding types without changing its behaviour.
Python promptsIntermediate
View the prompt
The code is in {{project}} ({{stack}}).
Add type hints gradually:
1. Start with the core modules that depend least on others.
2. Use precise types (TypedDict, Protocol, Literal) instead of Any where possible.
3. Run mypy --strict on each module after changing it, and fix the errors without changing the behaviour.
4. Run the existing tests after each module.
5. Write a summary of the completed and remaining modules and any unresolved errors with their cause.
{{extra}}
Write an asyncio scraping tool that respects robots.txt and rate limits.
Python promptsAdvanced
View the prompt
Write an asynchronous Python tool to collect public data from: {{project}}.
- Use httpx or aiohttp with a concurrency limit (Semaphore) and a delay between requests.
- Respect robots.txt and the site's terms; if they forbid scraping, stop and tell me.
- Retry with exponential backoff for temporary errors only (429, 5xx).
- Parse the pages with selectolax or BeautifulSoup and save the results as JSON Lines.
- Do not collect personal data.
Required fields: {{extra}}
Add tests that use recorded responses instead of the network.
Build a REST API with Pydantic validation, a database and tests.
Python promptsIntermediate
View the prompt
Create a FastAPI API for {{project}}.
- Entities: {{extra}}.
- Separate Pydantic models for input and output, and SQLAlchemy 2.x with Alembic migrations.
- Pagination, correct status codes and uniform errors.
- pytest tests with an isolated test database.
Run the tests and show me the result.
Increase coverage with meaningful tests for normal and edge cases.
Software testing promptsBeginner
View the prompt
Write unit tests for {{extra}} in {{project}} using {{stack}}.
- Read the code first and write a list of the behaviours to test.
- Cover: the normal case, boundaries, invalid input and expected errors.
- Use mocks only for external boundaries (network, time, database).
- Test names that describe the behaviour.
- Run the tests and show me the result and the actual line coverage.
- If you find a bug in the code while testing, tell me, and do not change the test so it passes.
Write an E2E test for a critical user flow with stable selectors.
Software testing promptsIntermediate
View the prompt
Write a Playwright test (TypeScript) for the following flow in {{project}}: {{extra}}.
- Use role- and label-based selectors (getByRole, getByLabel), not brittle CSS.
- Do not use fixed waits (waitForTimeout); rely on auto-waiting assertions.
- Prepare the data through the API or fixtures, not through the UI.
- Test desktop and mobile, and the RTL direction.
- Give me the run command and its actual result.
Turn a feature's requirements into organised test cases before implementation.
Software testing promptsBeginner
View the prompt
These are the requirements of a feature in {{project}}:
{{extra}}
Create a test plan:
1. Test cases in Given/When/Then form.
2. A category for each case: unit, integration, end-to-end or manual.
3. Edge, negative and security cases.
4. The test data needed.
5. Acceptance and exit criteria.
List unclear requirements as questions instead of assuming their answers.
Define colours, fonts and spacing as tokens that support both modes.
Interface design promptsIntermediate
View the prompt
Create a small design system for {{project}}.
The brand identity: {{extra}}
- CSS tokens for colours (primary, secondary, success, error and warning states) for light and dark modes, with verified AA contrast.
- An Arabic/English type scale, spacing, corner radii and shadows.
- Basic components: button, field, card, alert and badge, with hover, focus and disabled states.
- A component showcase page.
State the computed contrast ratio for every text/background pair.
Evaluate an existing interface against the ten heuristics and rank the problems.
Interface design promptsBeginner
View the prompt
Evaluate the interface in {{project}} (attached screenshots or code) against Nielsen's ten heuristics.
For each problem: the heuristic, the location, the severity (0 to 4), the impact on the user and a suggested improvement.
Add a section on Arabic and RTL (icon direction, numerals, alignment) and a section on accessibility.
{{extra}}
Build a component from a Figma design accurately, using the system's tokens.
Interface design promptsIntermediate
View the prompt
Turn the attached Figma frame into a {{stack}} component in {{project}}.
- Use the design tokens that already exist in the project instead of fixed values.
- Match the spacing and fonts, and document any deliberate difference.
- Make the component responsive and accessible, with RTL support.
- Compare a screenshot of the component with the design and list the remaining differences.
{{extra}}
Write a player movement controller with the new Input System.
Unity promptsBeginner
View the prompt
Write a C# player controller script in Unity for the {{project}} project.
- Game type: {{extra}}.
- Use the new Input System, and separate reading input from movement.
- Values adjustable in the Inspector with [SerializeField] and tooltips.
- Movement in FixedUpdate when using a Rigidbody.
- Do not allocate memory in Update.
- Explain the setup steps in the editor (Input Actions, components).
Analyse Profiler results and suggest CPU, memory and rendering optimisations.
Unity promptsAdvanced
View the prompt
These are Unity Profiler results from {{project}} on {{stack}}:
{{extra}}
- Identify the biggest sources of cost (CPU, GC, draw calls).
- Suggest optimisations ranked by impact: object pooling, fewer allocations, batching, LOD.
- For each suggestion: how to measure its impact before and after.
Save the game state safely with a schema version.
Unity promptsIntermediate
View the prompt
Design a save system for {{project}}:
- The data: {{extra}}.
- JSON serialisation with a schema version number and migration of old versions.
- Atomic writes (a temporary file, then a replace) to prevent corruption.
- The Application.persistentDataPath path.
- EditMode tests for saving, loading and migration.
Create a complete landing page that supports Arabic and right-to-left layout from a text description of the project.
Web development promptsBeginner
View the prompt
You are an expert front-end developer. Build a landing page for a project: {{project}}.
Technologies: {{stack}}.
Requirements:
1. Full Arabic support with dir="rtl" and a readable font, responsive from 360px to 1440px.
2. Sections: a header with a menu, a hero with a clear headline and a call-to-action button, features (3 to 6 cards), testimonials, a collapsible FAQ and a footer.
3. Dark and light modes through CSS variables that respect prefers-color-scheme.
4. Accessibility: AA contrast, labels for buttons, keyboard navigation and alt text for images.
5. Do not use unnecessary libraries or fake content that looks real: put texts in brackets [ ] for the owner to replace.
Additional notes: {{extra}}
Before writing, show the file structure, then the complete code, then a manual test checklist.
Split a large page into separate components without changing its behaviour.
Web development promptsIntermediate
View the prompt
The project: {{project}} ({{stack}}).
Read the file or files I will specify and turn the page into small reusable components.
Rules:
- Do not change the behaviour or the look; this is refactoring only.
- First propose the list of components, their boundaries and the props of each one, and wait for my approval.
- After approval, work in small steps, and run the build and the tests after each step if they exist.
- Tell me about any duplication or dead code you find without deleting it automatically.
Additional details: {{extra}}
Analyse why a website is slow and suggest fixes ranked by impact.
Web development promptsAdvanced
View the prompt
You are a web performance engineer. The project: {{project}} ({{stack}}).
Attached: Lighthouse or PageSpeed results and the project structure.
Required:
1. Identify the 5 biggest causes of poor LCP, INP and CLS, with evidence from the attached results only.
2. For each cause: the proposed fix, the affected file, the expected impact (high/medium/low) and the risks of the change.
3. Apply only the low-risk fixes, and leave the rest as recommendations.
4. Do not invent numbers; if you need a new measurement, ask me to run it.
Notes: {{extra}}
Build an input form with client-side and server-side validation and Arabic error messages.
Web development promptsIntermediate
View the prompt
Build the "{{project}}" form with {{stack}}.
- Fields: {{extra}}.
- Client-side validation (HTML5 + JavaScript) and server-side validation (do not trust the client).
- Arabic error messages linked to the field through aria-describedby, with focus on the first invalid field.
- CSRF protection, input sanitisation and a limit on the number of attempts.
- Do not store passwords in plain text.
Give me the code and tests for these cases: valid, empty field, invalid email and malicious input.