# Code — prompts and ideas

Code reviews and test scenarios. Ready-to-use prompts you can edit and run through YesAI.

Canonical URL: https://boswidget.ru/en/code-prompts-and-ideas/

## Resources

- [Code snippet review](https://boswidget.ru/en/markdown/code-snippet-review-prompt-for-chatgpt.md): Check a small code excerpt for behavioral errors and get suggestions with specific input examples.
- [Test scenarios](https://boswidget.ru/en/markdown/test-scenarios-prompt-for-chatgpt.md): Derive test cases from function rules: normal inputs, boundaries, invalid data and ambiguities.
- [API contract](https://boswidget.ru/en/markdown/api-contract-prompt-for-chatgpt.md): Describe an HTTP method from the requirements, separating agreed fields from decisions still to be made.
- [Regular expression](https://boswidget.ru/en/markdown/regular-expression-prompt-for-gemma.md): Build an expression from positive and negative examples, following the selected language's syntax.
- [Read-only SQL](https://boswidget.ru/en/markdown/read-only-sql-prompt-for-gemma.md): Prepare a SELECT query from the supplied schema and check whether joins duplicate the intended rows.
- [What an SQL query does](https://boswidget.ru/en/markdown/what-an-sql-query-does-prompt-for-chatgpt.md): Analyze an existing SELECT step by step to see where rows disappear, multiply or merge.
- [Resolving a Git conflict](https://boswidget.ru/en/markdown/resolving-a-git-conflict-prompt-for-chatgpt.md): Merge a conflicting excerpt according to both branches' explicit requirements and show where manual decisions are needed.
- [Diagnosing a stack trace](https://boswidget.ru/en/markdown/diagnosing-a-stack-trace-prompt-for-chatgpt.md): Distinguish where an error occurs from its possible cause and choose the next check.
- [A minimal example of a CSS issue](https://boswidget.ru/en/markdown/a-minimal-example-of-a-css-issue-prompt-for-chatgpt.md): Reduce the reported layout problem to a short HTML/CSS example suitable for manual checking.
- [Migration plan for a new API](https://boswidget.ru/en/markdown/migration-plan-for-a-new-api-prompt-for-chatgpt.md): Compare the old and new contracts and prepare a sequence of client-code changes.
- [Algorithm from business rules](https://boswidget.ru/en/markdown/algorithm-from-business-rules-prompt-for-chatgpt.md): Turn processing rules into clear pseudocode and identify cases where no decision is specified.
- [JSON Schema from requirements](https://boswidget.ru/en/markdown/json-schema-from-requirements-prompt-for-chatgpt.md): Describe JSON structure validation without treating an incidental property of one example as a mandatory rule.
- [Understanding a shell command](https://boswidget.ru/en/markdown/understanding-a-shell-command-prompt-for-gemma.md): Understand what an existing command does before running it and identify behavior dependent on environment and inputs.
- [What the configuration changes](https://boswidget.ru/en/markdown/what-the-configuration-changes-prompt-for-gemma.md): Analyze the meaning of a configuration text diff and prepare checks before applying it.
- [Data storage model](https://boswidget.ru/en/markdown/data-storage-model-prompt-for-gemma.md): Identify entities and relationships in a specific workflow before writing tables and queries.
- [CSV to typed objects](https://boswidget.ru/en/markdown/csv-to-typed-objects-prompt-for-gemma.md): Prepare code to read a small CSV with explicit handling of empty values and row errors.
- [Function error contract](https://boswidget.ru/en/markdown/function-error-contract-prompt-for-gemma.md): Choose a consistent way to report different errors without confusing an absent result with a failure.
- [Request states in TypeScript](https://boswidget.ru/en/markdown/request-states-in-typescript-prompt-for-gemma.md): Describe client request states so the type cannot contain incompatible flags and data.
- [Extracting a pure function](https://boswidget.ru/en/markdown/extracting-a-pure-function-prompt-for-gemma.md): Separate computation from input/output while preserving side-effect order and current behavior.
- [HTTP fixtures for a client](https://boswidget.ru/en/markdown/http-fixtures-for-a-client-prompt-for-gemma.md): Create a consistent set of sample responses to test different client-interface states.
- [Anonymizing logs](https://boswidget.ru/en/markdown/anonymizing-logs-prompt-for-gemma.md): Define rules for hiding sensitive fields while preserving event relationships needed for diagnosis.
- [Spreadsheet formula](https://boswidget.ru/en/markdown/spreadsheet-formula-prompt-for-gemma.md): Get a formula for specific cells, a locale and empty-value handling rules.
