A shared folder with AI prompts and code snippets
From workspace: DeepSeek
Team: Main
Total snippets: 9
9 snippets
Analyze a GitHub Actions workflow, remove inefficiencies, and improve automation.
Task: Improve this GitHub Actions workflow. <code> jobs: build: runs-on: ubuntu-latest steps: [...] </code> <instructions> - Identify redundant steps. - Suggest caching and parallelization. - Provide updated YAML...
Identify XSS risk in code snippet and propose a secure sanitized version
Task: Identify XSS vulnerabilities in snippet. <code> res.send('<div>' + userComment + '</div>') </code> <instructions> - Explain the risk. - Rewrite safe version. - Suggest sanitization library. </instructions> <output format> { "risk":...
Compare data‑fetching React libraries like React Query vs SWR across key dimensions.
Task: Compare React Query vs SWR for fetching data in React. <instructions> 1. Compare caching and revalidation. 2. Compare performance and bundle size. 3. Suggest best use cases. </instructions> <output format> Markdown table + recommendation
Design a profiling plan for a slow API endpoint using tools & process steps.
Task: Suggest profiling steps for slow API endpoint. <description> The /search endpoint retrieves and filters results from DB and external API. </description> <instructions> - Recommend profiling tools/methods. - Locate hotspots. - Provide...
Analyze an SQL schema, identify normalization issues, and suggest improvements.
Task: Review SQL schema for normalization issues. <code> CREATE TABLE orders (...); CREATE TABLE customers (...); CREATE TABLE order_items (...); </code> <instructions/> 1. Identify normalization violations. 2. Suggest schema changes. 3. Explain...
Refactor a long Java method for readability, modularity, and testability.
Task: Refactor this long Java method for readability and testability. <code> public String getUserInfo(int id) { ... 200 lines ... } </code> <instructions> - Split into smaller methods. - Add unit testable logic. - Suggest unit tests...
Audit npm dependencies for security vulnerabilities or outdated libraries.
Task: Audit npm dependencies for security or licensing issues. Project uses: express@4.18.2, lodash@4.17.21, moment@2.29.4 <instructions> 1. Check for known vulnerabilities. 2. Identify outdated packages. 3. Provide safe upgrade or replacement...
Review existing REST API route; suggest improvements for structure, error handling, and caching.
Task: Review and improve this REST endpoint design. Endpoint: GET /users/{userId}/activity?start=...&end=... <instructions> - Check URI design, query params, status codes. - Suggest improvements to structure, caching, error handling. - Provide...
Identify inefficiencies and optimize performance in a JavaScript function.
Task: Diagnose and fix this JavaScript performance lag issue. <code> function process(items) { let result = []; for (let i = 0; i < items.length; i++) { for (let j = 0; j < items.length; j++) { if (items[i] === items[j])...