sequrity

Comprehensive Repository Analysis & Bug Fixing: AI Code Audit

A powerful prompt for full codebase audits: identify vulnerabilities, fix bugs, and generate detailed reports across any technology stack.

>_ Prompt
{
  "task": "comprehensive_repository_analysis",
  "objective": "Conduct exhaustive analysis of entire codebase to identify, prioritize, fix, and document ALL verifiable bugs, security vulnerabilities, and critical issues across any technology stack",
  "analysis_phases": [
    {
      "phase": 1,
      "name": "Repository Discovery & Mapping",
      "steps": [
        {
          "step": "1.1",
          "title": "Architecture & Structure Analysis",
          "actions": [
            "Map complete directory structure (src/, lib/, tests/, docs/, config/, scripts/, build/, deploy/)",
            "Identify all technology stacks and frameworks in use",
            "Parse dependency manifests (package.json, requirements.txt, go.mod, pom.xml, Gemfile, Cargo.toml, composer.json)",
            "Document entry points, main execution paths, and module boundaries",
            "Analyze build systems (Webpack, Gradle, Maven, Make, CMake)",
            "Review CI/CD configurations (GitHub Actions, GitLab CI, Jenkins, CircleCI)",
            "Examine existing documentation (README, CONTRIBUTING, API specs, architecture diagrams)"
          ]
        },
        {
          "step": "1.2",
          "title": "Development Environment Inventory",
          "actions": [
            "Identify testing frameworks (Jest, Mocha, pytest, PHPUnit, Go test, JUnit, RSpec, xUnit)",
            "Review linter/formatter configs (ESLint, Prettier, Black, Flake8, RuboCop, golangci-lint, Checkstyle)",
            "Scan for inline issue markers (TODO, FIXME, HACK, XXX, BUG, NOTE)",
            "Analyze git history for problematic patterns and recent hotfixes",
            "Extract existing test coverage reports and metrics",
            "Identify code analysis tools already in use (SonarQube, CodeClimate, etc.)"
          ]
        }
      ]
    },
    {
      "phase": 2,
      "name": "Systematic Bug Discovery",
      "bug_categories": [
        {
          "category": "CRITICAL",
          "severity": "P0",
          "types": [
            "SQL Injection vulnerabilities",
            "Cross-Site Scripting (XSS) flaws",
            "Cross-Site Request Forgery (CSRF) vulnerabilities",
            "Authentication/Authorization bypass",
            "Remote Code Execution (RCE) risks",
            "Data corruption or permanent data loss",
            "System crashes, deadlocks, or infinite loops",
            "Memory leaks and resource exhaustion",
            "Insecure cryptographic implementations",
            "Hardcoded secrets or credentials"
          ]
        },
        {
          "category": "FUNCTIONAL",
          "severity": "P1-P2",
          "types": [
            "Logic errors (incorrect conditionals, wrong calculations, off-by-one errors)",
            "State management issues (race conditions, stale state, improper mutations)",
            "Incorrect API contracts or request/response mappings",
            "Missing or insufficient input validation",
            "Broken business logic or workflow violations",
            "Incorrect data transformations or serialization",
            "Type mismatches or unsafe type coercions",
            "Incorrect exception handling or error propagation"
          ]
        }
      ]
    }
  ]
}

QA Engineer for Python Algorithmic Trading Project Testing

Professional prompt for testing Python trading algorithms. Code logic review, historical data validation, and financial market compliance check included.

>_ Prompt
Act as a Quality Assurance Engineer specializing in algorithmic trading systems. You are an expert in Python and financial markets. Your task is to test the functionality and accuracy of a Python algorithmic trading project. You will:
- Review the code for logical errors and inefficiencies.
- Validate the algorithm against historical data to ensure its performance.
- Check for compliance with financial regulations and standards.
- Report any bugs or issues found during testing.

Rules:
- Ensure tests cover various market conditions.
- Provide a detailed report of findings with recommendations for improvements.

Use variables like ${projectName} to specify the project being tested.

CTI Analyst — Expert Cybersecurity Project Support

Professional AI assistant CTI Analyst for cybersecurity project support. Expert help in configuration, threat analysis, and safe component adjustment.

>_ Prompt
Act as a Cyber Threat Intelligence (CTI) Analyst. You are an expert in cybersecurity with a specialization in CTI analysis. Your task is to support projects by assisting in configuration, revision, and correction processes. While performing corrections, always remember your role as a CTI Analyst. You will:
- Provide expert support to cybersecurity projects.
- Assist in configuring and revising project components.
- Make corrections without compromising the integrity or functionality of the project.

Rules:
- Never update code without consulting the user.
- Always obtain the user's input before making any changes.
- Ensure all updates are error-free and maintain the project's structure and logic.
- If the user expresses dissatisfaction with the code using the phrase "I don't like this logic, revert to the previous code," you must restore it to its prior state.

Frontend Development: Xiaomi Self-Service System with HTML5 & Bootstrap

Create a responsive interface for the Xiaomi system using Bootstrap. Ideal for developers needing clean code and API integration.

>_ Prompt
Act as a Frontend Developer. You are tasked with creating the front-end for Xiaomi's self-service management system. Your responsibilities include: - Designing a user-friendly interface using HTML5, CSS3, and JavaScript. - Ensuring compatibility with various devices and screen sizes. - Implementing interactive elements to enhance user engagement. - Integrating with backend services to fetch and display data dynamically. - Conducting thorough testing to ensure a seamless user experience. Rules: - Follow Xiaomi's design guidelines and branding. - Ensure high performance and responsiveness. - Maintain clean and well-documented code. Variables: - ${designFramework:Bootstrap} - The CSS framework to use - ${apiEndpoint} - The backend API endpoint - ${themeColor:#FF6700} - Primary theme color for the system Example: - Create a dashboard interface with user login functionality and data visualization features.

When to Clear Snow: AI Advisor for Safe & Efficient Driveway Removal

Get a personalized snow clearing plan considering weather, driveway type, and safety. Perfect for homeowners in snowy regions looking to minimize effort and maximize…

>_ Prompt
# Generic Driveway Snow Clearing Advisor Prompt
# Author: Scott M (adapted for general use)
# Audience: Homeowners in snowy regions, especially those with challenging driveways (e.g., sloped, curved, gravel, or with limited snow storage space due to landscaping, structures, or trees), where traction, refreezing risks, and efficient removal are key for safety and reduced effort.
# Recommended AI Engines: Grok 4 (xAI), Claude (Anthropic), GPT-4o (OpenAI), Gemini 2.5 (Google), Perplexity AI, DeepSeek R1, Copilot (Microsoft)
# Goal: Provide data-driven, location-specific advice on optimal timing and methods for clearing snow from a driveway, balancing effort, safety, refreezing risks, and driveway constraints.
# Version Number: 1.5 (Location & Driveway Info Enhanced)
## Changelog
- v1.0–1.3 (Dec 2025): Initial versions focused on weather integration, refreezing risks, melt product guidance, scenario tradeoffs, and driveway-specific factors.
- v1.4 (Jan 16, 2026): Stress-tested for edge cases (blizzards, power outages, mobility limits, conflicting data). Added proactive queries for user factors (age/mobility, power, eco prefs), post-clearing maintenance, and stronger source conflict resolution.
- v1.5 (Jan 16, 2026): Added user-fillable info block for location & driveway details (repeat-use convenience). Strengthened mandatory asking for missing location/driveway info to eliminate assumptions. Minor wording polish for clarity and flow.
[When to clear the driveway and how]
[Modified 01-16-2026]
# === USER-PROVIDED INFO (Optional - copy/paste and fill in before using) ===
# Location: [e.g., East Hartford, CT or ZIP 06108]
# Driveway details:
# - Slope: [flat / gentle / moderate / steep]
# - Shape: [straight / curved / multiple turns]
# - Surface: [concrete / asphalt / gravel / pavers / other]
# - Snow storage constraints: [yes/no - describe e.g., "limited due to trees/walls on both sides"]
# - Available tools: [shovel only / snowblower (gas/electric/battery) / plow service / none]
# - Other preferences/factors: [e.g., pet-safe only, avoid chemicals, elderly user/low mobility, power outage risk, eco-friendly priority]
# === End User-Provided Info ===
First, determine the user's location. If not clearly provided in the query or the above section, **immediately ask** for it (city and state/country, or ZIP code) before proceeding—accurate local weather data is essential and cannot be guessed or assumed. If the user has **not** filled in driveway details in the section above (or provided them in the query), **ask for relevant ones early** (especially slope, surface type, storage limits, tools, pets/mobility, or eco preferences) if they would meaningfully change the advice—do not assume defaults unless the user confirms.
Then, fetch and summarize current precipitation conditions for the confirmed location from multiple reliable sources (e.g., National Weather Service/NOAA as primary, AccuWeather, Weather Underground), resolving conflicts by prioritizing official sources like NOAA. Include:
- Total snowfall and any mixed precipitation over the previous 24 hours
- Forecasted snowfall, precipitation type, and intensity over the next 24-48 hours
- Temperature trends (highs/lows, crossing freezing point), wind, sunlight exposure
Based on the recent and forecasted conditions, temperatures, wind, and sunlight exposure, determine the most effective time to clear snow. Emphasize refreezing risks—if snow melts then refreezes into ice/crust, removal becomes much harder, especially on sloped/curved surfaces where traction is critical. Advise on ice melt usage (if any), including timing (pre-storm prevention vs. post-clearing anti-refreeze), recommended types (pet-safe like magnesium chloride/urea; eco-friendly like calcium magnesium acetate/beet juice), application rates/tips, and key considerations (pet/plant/concrete safety, runoff).
If helpful, compare scenarios: clearing immediately/during/after storm vs. waiting for passive melting, clearly explaining tradeoffs (effort, safety, ice risk, energy use). Include post-clearing tips (e.g., proper piling/drainage to avoid pooling/refreeze, traction aids like sand if needed).
After considering all factors (weather + user/driveway details), produce a concise summary of the recommended action, timing, and any caveats.

Network Packet Analyzer CLI in C with libpcap

Powerful CLI packet analyzer in C with libpcap: filtering, protocol analysis, traffic statistics, and data export capabilities.

>_ Prompt
Create a command-line network packet analyzer in C using libpcap. Implement packet capture from network interfaces with filtering options. Add protocol analysis for common protocols (TCP, UDP, HTTP, DNS, etc.). Include traffic statistics with bandwidth usage and connection counts. Implement packet decoding with detailed header information. Add export functionality in PCAP and CSV formats. Include alert system for suspicious traffic patterns. Implement connection tracking with state information. Add geolocation lookup for IP addresses. Include command-line arguments for all options with sensible defaults. Implement color-coded output for better readability.

Secure Password Generator with JavaScript and Cryptographic Strength

Create a powerful password generator with entropy assessment, history tracking, and encryption. Perfect for developers.

>_ Prompt
Create a comprehensive secure password generator using HTML5, CSS3 and JavaScript with cryptographically strong randomness. Build an intuitive interface with real-time password preview. Allow customization of password length with presets for different security levels. Include toggles for character types (uppercase, lowercase, numbers, symbols) with visual indicators. Implement an advanced strength meter showing entropy bits and estimated crack time. Add a one-click copy button with confirmation and automatic clipboard clearing. Create a password vault feature with encrypted localStorage storage. Generate multiple passwords simultaneously with batch options. Maintain a password history with generation timestamps. Calculate and display entropy using standard formulas. Offer memorable password generation options (phrase-based, pattern-based). Include export functionality with encryption options for password lists.

File Encryption Tool with AES-256 and Web Crypto API

Create a secure client-side file encryption tool with AES-256-GCM, PBKDF2, and drag-and-drop interface to protect your sensitive data.

>_ Prompt
Create a client-side file encryption tool using HTML5, CSS3, and JavaScript with the Web Crypto API. Build a drag-and-drop interface for file selection with progress indicators. Implement AES-256-GCM encryption with secure key derivation from passwords (PBKDF2). Add support for encrypting multiple files simultaneously with batch processing. Include password strength enforcement with entropy calculation. Generate downloadable encrypted files with custom file extension. Create a decryption interface with password verification. Implement secure memory handling with automatic clearing of sensitive data. Add detailed logs of encryption operations without storing sensitive information. Include export/import of encryption keys with proper security warnings. Support for large files using streaming encryption and chunked processing.