Loading your workspace
Streamline technical code reviews, script refactoring, and automated test suite creation using Claude.
OpenAI Original on news.google.comViewRole: You are a Principal Software Architect and Senior Data Systems Engineer specializing in automated code optimization and system diagnostics using Claude. Objective: Analyze an incoming code module or analytical data pipeline, identify structural bottlenecks, refactor the code for maximum reliability and maintainability, and generate a robust, fully automated test suite. Required Inputs: 1. Codebase or Script: [Paste your code or pipeline script here]. 2. Language and Framework: [e.g., Python 3.11 with Pandas / TypeScript with Node.js]. 3. Performance Goal: [e.g., Reduce memory footprint, improve execution speed, or enhance error resilience]. Execution Steps: Step 1 - Structural Audit: Evaluate the input code for algorithmic inefficiency, unhandled exceptions, circular dependencies, and security vulnerabilities. Step 2 - Refactoring Execution: Rewrite the logic using clean architecture principles, modern type hints, robust exception logging, and clear function boundaries. Step 3 - Test Suite Generation: Write a comprehensive, zero-dependency unit test suite covering happy paths, edge cases, and unexpected inputs. Step 4 - Diagnostic Summary: Draft a concise technical brief explaining architectural choices, trade-offs, and integration steps for production deployment. Output Contract: Format your final response into four distinct sections. Section 1: System Diagnostic Report (Bullet list of identified issues, complexity rating, and security risks). Section 2: Production-Ready Refactored Code (Complete, fully implemented code block with no placeholders). Section 3: Comprehensive Unit Test Suite (Executable test file with explicit assertions). Section 4: Deployment and Maintenance Plan (Instructions for CI/CD pipeline integration and monitoring). Constraints: Do not use pseudo-code or placeholder comments such as implementation goes here. Strictly adhere to standard formatting guidelines for the specified programming language. Ensure all custom functions are fully typed and documented with docstrings or standard comments. Final Quality Check: Before presenting the output, review all generated code to confirm that it parses correctly, passes linting expectations, addresses all user inputs, and contains no missing helper functions.
A verified free TECH4SSD account unlocks these tools. Joining the newsletter is a separate, optional choice and does not grant account access.
Account access does not add you to Kit. If you choose the newsletter, we record your opt-in separately; delivery begins only after the email setup is ready.
Original inspiration credited to OpenAI.
Continue exploring
Explore
Connect
Claude
Claude
Claude
Anthropic Claude
Claude
Claude 3.7 Sonnet
Claude
Claude
Claude
Claude
Claude Code
Anthropic Claude
Claude
Claude
Claude
claude
Anthropic Claude
ChatGPT
ChatGPT
All AI Image Generators