Prompts that Simplify Software
Prompts that accelerate coding, debugging, and development.
697 prompts
Analyze any code file
Analyze the provided Python file like a senior/veteran Python developer who is seeing it for the first time. Explain it in simple, easy-to-understand language while preserving the technical context. Cover: 1. **Purpose** — what this file does and why it exists. 2. **Flow** — explain the main execution flow from entry point to completion. 3. **Functions/Classes** — explain the important functions/classes, their inputs, outputs, and responsibilities. 4. **Dependencies** — explain important imports, external APIs, files, databases, services, or modules it interacts with. 5. **Data Flow** — explain how important data moves, changes, and is passed between functions/classes. 6. **Conditions & Loops** — explain important `if/else`, loops, retries, exceptions, and decision points. 7. **Side Effects** — identify file writes, database/API calls, state changes, external operations, etc. 8. **Risks & Issues** — identify bugs, edge cases, unnecessary complexity, coupling, or maintainability concerns. 9. **Summary** — give a short step-by-step flow that a developer can remember easily. Focus on understanding the **actual code and execution flow**, not merely describing each line. Do not invent behavior that cannot be determined from the file. If something depends on another file/module that is not provided, clearly mention it. Keep the explanation structured, concise, and easy to follow. Prioritize important logic over trivial syntax.
Python App Source with PyInstaller Build and Installer
complete source code for the application + `build.bat` + PyInstaller configuration + installer configuration + CSV template + documentation, rather than just a partial prototype. i will upload csv and bulk pdf file. after clickig button match name and pdf file process file will be send to provided email id which in csv note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for Levenshtein Failed to build Levenshtein error: failed-wheel-build-for-install × Failed to build installable wheels for some pyproject.toml based projects ╰─> Levenshtein ERROR: Failed to install required packages cpanel webmail Set up email on application tool PDF Auto MATCHING LOGIC: EmployeeID, FirstName, MiddleName, LastName NAME-BASED MATCHING If Employee ID is not found in the filename, implement a controlled secondary matching method based on employee name. Example: PDF: ``` Abel Harry Anthony.pdf ``` CSV: ``` 10152 | Abel | Harry | Anthony | abel@example.com ``` The application should identify: ``` Abel Harry Anthony ``` and match it with the CSV record. The matching logic can be changed so the application uses any 3 of the 4 CSV fields: * `ID` * `First Name` * `Middle Name` * `Last Name` Input PDF: 10004_Vihang_Wani_SalarySlip_March_2026.pdf no need to rename the pdf file once it's attached also show dashboard me all attachments before sending email can be built as a Windows desktop application that: 1. Imports an employee CSV. 2. Lets you select a folder containing hundreds/thousands of PDFs. 3. Extracts the Employee ID from each filename. 4. Finds the matching employee in the CSV. 5. Renames the PDF according to a defined format. 6. Shows success, unmatched, duplicate, and error reports. 7. Provides a one-click Windows build that produces a `.exe`. For your example:Input: SumitShyamraoTunkikar_0020063_Aug_2026.pdf CSV: 20063 | Sumit | Shyamrao | Tunkikar Output: 20063_Sumit_Shyamrao_Tunkikar.pdf Or Input: Abel Harry Anthony.pdf CSV: 10152 | Abel | Harry | Anthony Output:10152_Abel_Harry_Anthony.pdf Or Input: AbhishekYadav_0020311_Aug_2026.pdf CSV: 20311 | Abhishek | Yadav Output:20311_Abhishek_Yadav.pdf SAFETY Original PDFs are preserved by default. The output is written to a separate folder. Add Naming Templates: Configure rename patterns: add Placeholders: ${employeeid} ${firstname} ${middlename} ${surname} ${month} ${year} Define how renamed pdf should look example: Pattern ${employeeid}${firstname}${surname}SalarySlip${month}${year} Or ${employeeid}${firstname}${middlename}${surname}SalarySlip${month}_${year} Live preview 20311_Abhishek_Yadav_SalarySlip_August_2026.pdf the specification to: The matching logic can be changed so the application uses any 3 of the 4 CSV fields: * `ID + First Name + Middle Name + Surname` * `ID + First Name + Surname` * `First Name + Middle Name + Surname` when no ID is present * Handle concatenated names such as `SumitShyamraoTunkikar` * Handle spaced names such as `Abel Harry Anthony` * Normalize leading-zero IDs: `0020063` → `20063` * Preserve the original PDFs * Never overwrite an existing output PDF * Separate Input and Output folders * Add configurable naming templates: * `${employeeid}` * `${firstname}` * `${middlename}` * `${surname}` * `${month} I will select month` * `${year} I will select year` * Extract `Month` and `Year` from the original filename where available * Provide a live preview * Provide a Preview/Review table before processing * Export unmatched/duplicate/error reports * Include Undo for the current output run Match method: uses any 3 of the 4 CSV must
Recreate an Image as an HTML and CSS Project
create full project html css as well as this image 100%
about what is github
i want the complete guide for github like how to use and what is the need of this tools
URL Shortening Service — Full-Stack Application
## 🚀 URL Shortening Service — Full-Stack Application ### 📋 Project Overview Build a production-ready, full-stack URL shortening service with a modern, accessible frontend and a robust RESTful backend API. The application must handle the complete lifecycle of shortened links: creation, redirection, tracking, management, and expiration. Prioritize performance, security, and an exceptional user experience across all devices. --- ### 🛠️ Tech Stack **Frontend:** - Semantic HTML5 with ARIA attributes for accessibility (WCAG 2.1 AA compliance) - CSS3 with CSS Custom Properties (variables), Flexbox, and CSS Grid - Vanilla JavaScript (ES2022+) using modular architecture (ES Modules) - No heavy frameworks — keep the bundle lightweight and fast **Backend API:** - RESTful API design following OpenAPI 3.0 specification - JSON request/response format with proper HTTP status codes - CORS configuration for cross-origin requests - Rate limiting per IP and per API key **Libraries (CDN or bundled):** - QR Code generation (e.g., `qrcode.js` or `qr-creator`) - Charting library for analytics (e.g., Chart.js or lightweight alternative) - Date picker for expiration (e.g., `flatpickr`) - Toast notification system (custom-built, no dependency) --- ### 🎨 Frontend — UI/UX Requirements **Layout & Design:** - Clean, minimalist design with a hero section featuring a **large, prominent URL input field** centered on the page - Implement a **dark/light mode toggle** with system preference detection (`prefers-color-scheme`) and `localStorage` persistence - Use a consistent design system: typography scale, spacing tokens, color palette - Smooth micro-animations and transitions (fade-ins, slide-ups, button ripples) for all interactive elements - Skeleton loading states for async content (analytics, history table) **Responsive Design:** - Mobile-first approach with breakpoints at 480px, 768px, 1024px, and 1440px - Touch-friendly tap targets (minimum 44×44px) - Collapsible navigation menu on mobile (hamburger menu with animation) - Fluid typography using `clamp()` **Accessibility:** - Full keyboard navigation support (tab order, focus trapping in modals) - Screen reader announcements for dynamic content (`aria-live` regions) - Visible focus indicators on all interactive elements - Sufficient color contrast ratios (minimum 4.5:1 for text) - Reduced motion support (`prefers-reduced-motion`) --- ### ⚙️ Core Features #### 1. URL Shortening Engine - Prominent input field with placeholder text and real-time validation feedback - **URL validation**: Check for valid protocol (`http://`, `https://`), proper domain structure, and reject malformed URLs using both regex and the `URL` constructor API - **URL sanitization**: Strip tracking parameters (UTM, fbclid, gclid), remove redundant slashes, normalize protocol and case - Auto-prepend `https://` if no protocol is provided - Display the shortened URL immediately after creation with a success animation - **Bulk URL shortening**: Allow users to paste multiple URLs (one per line) and shorten them all at once #### 2. Custom Alias Support - Optional custom alias field (e.g., `short.ly/my-brand`) - Real-time availability check as the user types (debounced API call, 300ms) - Alias validation rules: alphanumeric, hyphens, underscores only; 3–30 characters; reserved word blacklist (e.g., `admin`, `api`, `login`, `static`) - Clear error messaging if the alias is taken or invalid #### 3. QR Code Generation - Auto-generate a QR code for every shortened URL upon creation - QR code modal/panel with options to: - Download as PNG (high resolution, 1024×1024) - Download as SVG (vector, scalable) - Customize foreground/background colors - Add a small logo overlay in the center (optional) - Ensure QR codes encode the full shortened URL and are scannable at small sizes #### 4. Click Tracking & Analytics Dashboard - Track every redirect with the following data points: - Timestamp (UTC) - Country and city (via IP geolocation API) - Device type (mobile, tablet, desktop) - Operating system and browser (via User-Agent parsing) - Referrer URL - Unique vs. returning visitor (via cookie/fingerprint) - **Analytics Dashboard** per link including: - Total clicks and unique clicks counters - Clicks over time line chart (filterable: last 24h, 7d, 30d, 90d, all time) - Geographic distribution map or bar chart (top 10 countries) - Device/OS/Browser breakdown (donut or pie charts) - Top referrers table - Click heatmap by day of week and hour of day - Aggregate analytics overview on the main dashboard (total links, total clicks, most popular link) #### 5. Link Expiration - Optional expiration date/time picker when creating a link - Support presets: 1 hour, 24 hours, 7 days, 30 days, custom date - Display a countdown or "expires in X" badge on active links - Automatically deactivate expired links and show a friendly "This link has expired" page on redirect attempts - Allow users to extend or remove expiration on existing links #### 6. Password Protection - Optional password toggle when creating a link - If enabled, show a password input gate page before redirecting to the target URL - Hash passwords server-side using bcrypt or Argon2 (never store plaintext) - Rate-limit password attempts (max 5 per minute per IP) with lockout messaging - Visual indicator (lock icon 🔒) on password-protected links in the history view #### 7. Copy-to-Clipboard - One-click copy button next to every shortened URL - Use the Clipboard API (`navigator.clipboard.writeText()`) with fallback to `document.execCommand('copy')` - Visual confirmation: button icon changes to a checkmark ✅ with a "Copied!" tooltip/toast that auto-dismisses after 2 seconds - Keyboard shortcut support (e.g., `Ctrl+Shift+C` to copy the most recently created link) #### 8. URL History & Management - Persistent history table/grid of all shortened URLs (stored in `localStorage` for guests, database for authenticated users) - Each entry displays: original URL (truncated with tooltip), short URL, creation date, click count, status (active/expired/password-protected), and action buttons - **Search**: Full-text search across original URLs, aliases, and tags - **Filtering**: By status (active, expired, protected), date range, click count range, and tags - **Sorting**: By creation date, click count, alphabetically (ascending/descending) - **Pagination or infinite scroll** for large histories (25 items per page) - **Bulk actions**: Select multiple links to delete, disable, or export as CSV/JSON - **Tags/Labels**: Allow users to add custom tags to organize links (e.g., "marketing", "social", "campaign-q4") --- ### 🔒 Security Requirements - Input sanitization on both client and server to prevent XSS attacks - CSRF protection on all state-changing API endpoints - Validate and sanitize redirect targets to prevent open redirect vulnerabilities (whitelist allowed protocols, block `javascript:`, `data:`, `file:` schemes) - Implement Content Security Policy (CSP) headers - Rate limiting: max 20 link creations per minute per IP; max 100 API requests per minute - Secure HTTP headers: `X-Content-Type-Options`, `X-Frame-Options`, `Strict-Transport-Security` - Never expose internal IDs; use nanoid or UUID for public link identifiers --- ### ⚡ Performance Requirements - Target Lighthouse scores: Performance >90, Accessibility >95, Best Practices >95, SEO >90 - Lazy-load analytics charts and non-critical assets - Debounce all search and validation inputs - Use `IntersectionObserver` for scroll-based animations and lazy loading - Minimize reflows and repaints; use CSS `transform` and `opacity` for animations - Cache API responses where appropriate (e.g., analytics data with 60s TTL) - Redirects should resolve in under 100ms server-side --- ### 🧪 Error Handling & Edge Cases - Graceful error messages for: network failures, API timeouts, invalid URLs, duplicate aliases, server errors (500), rate limit exceeded (429) - Offline detection: show a banner when the user loses connectivity and queue actions for retry - Handle extremely long URLs (up to 2048 characters) without breaking the layout - Handle Unicode/internationalized domain names (IDN) correctly - Empty state illustrations for when the user has no links or no analytics data --- ### 📁 Deliverables 1. Complete, well-commented source code with a clear folder structure 2. `README.md` with setup instructions, API documentation, and feature list 3. API endpoint reference table (method, path, parameters, response format) 4. A `demo` mode with sample data pre-loaded for immediate preview 5. Responsive across Chrome, Firefox, Safari, and Edge (latest 2 versions) --- > **Note:** Build this incrementally — start with the core shortening flow (input → validate → shorten → display → copy), then layer on QR codes, analytics, custom aliases, expiration, password protection, and the full history dashboard. Ensure each feature is fully functional and tested before moving to the next.
Create a bank website with a lot of functions naming it FATE BANK
I want a bank app prompt and I want it professional and better. I want it to be name FATE BANK
Act as a Senior Codebase Auditor & Tech Debt Refactorer
I want you to act as a Senior Software Engineer performing a rigorous code quality, maintainability, and technical debt audit on a codebase. Your objective is to aggressively yet safely simplify the codebase, improve maintainability, and highlight anything that provides zero value to the application. Analyze the provided codebase, directory tree, or code snippets and systematically evaluate: 1. Dead Code: Unused functions, files, components, routes, APIs, variables, imports, and dependencies. 2. Duplicate Logic: Redundant blocks or patterns that should be consolidated into reusable utilities or abstraction layers. 3. Unused UI Components: Orphaned views, unused design components, or obsolete style files. 4. Overly Complex Implementations: Code that can be simplified or refactored without altering expected behavior. 5. Legacy & Deprecated Code: Outdated patterns or unneeded legacy fallback logic. 6. Redundant Queries & API Calls: Unnecessary database operations, duplicate fetch requests, or N+1 query risks. 7. Abandoned Files: Disconnected, unreachable, or unreferenced files in the repository. 8. Technical Debt: Code smells, poor abstractions, or high-risk areas lacking maintainability. For every issue identified, structure your analysis with: - Issue & Location: File path and code block. - Reason for Action: Why this code is unnecessary, redundant, or overly complex. - Impact Estimation: High/Medium/Low impact on performance, bundle size, or developer velocity. - Risk Assessment: Potential regression risks, hidden side effects, or runtime dependencies to verify before deletion. - Recommended Refactor: Specific code/step-by-step guidance for safe removal or consolidation. Conclude with a prioritized, phased Cleanup Plan divided into: - Phase 1: High-Confidence / Safe Deletions (Zero-risk removals) - Phase 2: Logic Consolidation & Simplification (Moderate risk) - Phase 3: Architectural Technical Debt Reduction (Requires testing/migration) My first request is: "Please analyze the following codebase details and perform the code quality review: [Insert repository link, codebase structure, or code snippets here]"
Corporate Website Refactor and Finalization
Act as an elite full-stack developer and UI/UX expert. Update, refactor, and finalize our corporate project management and inventory system with the following 11 comprehensive features and modifications. Ensure absolute state management using React hooks, strict validation, dynamic workflows, and high-fidelity conditional rendering. 1. Multi-Tenant Multi-Project Login Isolation * Behavior: Implement a multi-tenant authentication rule based on a unique combination of Company Name, Project Name, and Password. * Logic: If user A logs in with Company A and Project CC, they must see distinct dataset A. If user B logs in with Company B and Project CC, the system must treat this as a completely separate unique project because the Company Names differ. Prevent data cross-contamination between different companies using identical project names. 2. Store Request Received Menu UI & Column Labels * Page Workflow: On the Store Page -> Request Received Menu -> View section: * UI Updates: Display the item Description. Rename the column header Parameter to "Unit", and rename the column header Note to "Remark". * Data Visibility: Ensure the data for "Unit" and "Quantity (QTY)" MUST be fully visible and readable to the user under their respective columns. Do not hide these core transaction details. * Header Branding: Bind the Company Name entered at login dynamically to the header layout of the SR, PR, and all system documents. 3. Document Fields Validation & Optional Attachments * Validation: When submitting a Store Requisition (SR), Material Take-Off (MTO), or Store Issue Voucher (SIV), enforce strict validation requiring all structural form input fields to be fully populated. * Attachment Engine: The PDF document upload action is strictly OPTIONAL (Not Mandatory). Users can successfully submit forms without an attachment. * File Operations: If they choose to attach a file, provide a Click to View link for uploaded PDFs, a Delete button to remove the selection before submission, and a functional Back navigation button to cancel operations. 4. MTO-to-Store Cross-Page Workflow & Data Automation * Notification & Initial State: When an MTO is dispatched to a project order, trigger a Red Notification Badge on the targeted project's MTO Menu. Inside this menu, only display two options: Ready and View. * Instant Out PDF Action: Clicking View opens a modal showing the transaction data rendered purely as an "INST_OUT" PDF format. After review, the user clicks the Ready button. * Material Mapping: Clicking Ready must automatically inject the requested material data into the REF_OUT table row via a dynamic drop-down selector. * SR Status Progression: Automatically advance the status on the SR Page to "Ready to Issue". 5. SR "Ready to Issue" Logistics & Dispatch Workflow * Logistics Modal: On the SR Page, when an order hits the "Ready to Issue" status state, clicking the corresponding View button must launch a dedicated Logistics Dispatch Form. * User Inputs: The operator on this page must fill out the dynamic logistical transit metadata fields: "Receiver / Driver Name", "Dispatch Date", "Departure Time", and the transport vehicle's "Plate No". * Data Routing: Clicking the Send action button on this dispatch module must package this logistical dataset and securely route it directly over to the warehouse terminal on the Store Page.
Invoice Checker
You check an invoice's numbers and completeness. You do not give tax advice: do not say what rate should apply, whether tax is due, or whether a field is legally required. Invoice (lines, quantities, unit prices, any discount, tax, totals, dates, parties): [paste] This invoice is: [one I am sending / one I received]. Currency: [ ] Do this: 1. Extract each line (description, quantity, unit price, stated line total), any discount, the tax rate and stated tax, the stated subtotal and total. 2. Recompute every line (quantity x unit price), the subtotal, the discount, the tax and the total. If you can run code, use exact decimal arithmetic and say you did. If you cannot, show each sum step by step and say it was done by hand and needs checking. Never state a total from memory. 3. Compare each recomputed number with the stated one. List every difference with both numbers. 4. List which of these common fields are present or absent: supplier name and address, customer name and address, invoice number, invoice date, due date or payment terms, description, quantities and unit prices, currency, payment details, tax or VAT number if tax is shown. Say which are required depends on my country and tax status, which you do not know, so I should check my own rules. 5. Flag: due date before invoice date, dates that do not match the description, mixed currencies, negative quantities, identical lines that may be duplicates, tax applied to a different base than stated, rounding differences of a few pence or cents. Output: a result line ("all lines and totals match" or "N differences found"), a table of differences (item, stated, recomputed, difference), missing or unclear fields, consistency flags, and questions. Do not correct the invoice silently. Write "not stated" for missing figures. Plain short sentences, no em dashes.
Post-Implementation Audit
--- name: post-implementation-audit description: Read-only audit of completed code changes. Use after implementation or remediation to verify requirements, correctness, regressions, relevant verification, and commit scope. Do not use to implement or fix changes. --- # Post-Implementation Audit Independently audit completed code changes using available evidence. This workflow is read-only. Find meaningful problems when they exist; do not manufacture findings. ## Scope and boundary Follow the current task, applicable repository instructions such as `AGENTS.md`, and the actual implementation context. Do not broaden the audit merely because additional review is possible. Do not implement, remediate, refactor, stage, commit, or intentionally modify repository state while this workflow is active. If a required verification step would intentionally modify tracked files, do not run it during the audit. Report it as a verification limitation and return that work to an implementation/remediation phase. Unexpected side effects from otherwise appropriate verification commands must be reported, not reverted or cleaned up. Do not create an audit file unless explicitly requested. ## 1. Establish target and baseline Determine what change is actually being audited before judging it. When Git is available, prefer the baseline in this order: 1. explicit baseline or commit range from the task; 2. a known implementation start point supported by context; 3. clearly attributable staged or working-tree changes. Never select an arbitrary number of recent commits as the baseline. Distinguish implementation changes from pre-existing or unrelated repository changes. If the boundary cannot be established reliably, state the limitation and audit only what can be attributed with reasonable confidence. Do not invent missing requirements, acceptance criteria, history, or implementation boundaries. ## 2. Verify requirements, correctness, and regressions Trace available requirements and acceptance criteria to the implementation. Check for meaningful issues such as: - missing or partial behavior; - incorrect requirement interpretation; - regressions or unintended behavior changes; - scope creep or unrelated modifications; - incorrect logic or state transitions; - relevant error or failure paths; - plausible boundary, lifecycle, async, concurrency, persistence, caching, or integration problems. Inspect enough surrounding code to understand the changed behavior. Only investigate risk areas that are plausible for the implementation. Review security, performance, data integrity, or deployment concerns only when the change makes them relevant. Do not report subjective style preferences or speculative possibilities as defects. A maintainability concern is a finding only when it creates a concrete correctness, reviewability, change-safety, or long-term engineering risk. ## 3. Verify evidence Run the smallest relevant set of non-mutating verification commands needed for confidence. Expand verification when scope or risk warrants it. Never claim that a command, test, path, or behavior was verified unless it actually was. If important verification cannot be completed, record: - what was not verified; - why; - what confidence is lost. A verification limitation is not automatically a finding. Treat it as a finding only when the missing verification itself violates an explicit requirement or represents a concrete defect. ## 4. Review commits when applicable When commits are part of the audited implementation, verify that each represents one coherent concern and is independently understandable, reviewable, and reasonably revertible. Report material problems such as: - unrelated concerns mixed together; - hidden scope expansion; - accidental unrelated changes; - misleading commit boundaries; - excessive size that materially harms reviewability or rollback safety. Do not require commits when none were authorized or expected. ## 5. Complete the full audit Do not stop at the first issue. Complete the full in-scope review and collect every meaningful finding supported by evidence. Each finding must be backed by code, diff, test output, command output, reproducible behavior, or a credible demonstrated failure path. Distinguish fact from inference. After completing the audit, report the result and stop. Do not remediate findings. ## Severity Use severity only for actual findings: **Critical** — catastrophic failure, severe security compromise, irreversible data loss/corruption, or fundamentally unusable core behavior. **High** — major incorrect behavior, serious regression, significant security/reliability failure, or failure of an important requirement. **Medium** — real actionable defect with bounded impact. **Low** — minor but legitimate defect with limited concrete impact. Do not use `Low` for optional polish or subjective preference. ## Result Use exactly one primary result: ### CLEAR Use when: - no meaningful finding remains; - intended behavior is sufficiently established; - relevant verification completed successfully; - no material unexplained verification gap remains; - no material scope contamination exists. ### FINDINGS Use when one or more meaningful implementation findings exist. Verification limitations may be reported alongside `FINDINGS`. ### INCOMPLETE Use when no meaningful implementation defect has been established, but missing context or important verification prevents a reliable `CLEAR`. Do not treat absence of discovered defects as proof of correctness. ## Re-audit When previous findings are available, preserve their identifiers and mark each: - `RESOLVED` - `UNRESOLVED` - `NOT VERIFIED` Verify the underlying issue, not only its visible symptom, and check whether remediation introduced regressions. Then perform a fresh audit of the affected scope. Do not invent prior finding IDs when they are unavailable. ## Output Start with: **Result:** `CLEAR` / `FINDINGS` / `INCOMPLETE` Briefly state: - scope audited; - baseline used; - important evidence inspected; - verification commands actually executed; - material limitations. For each new finding include: **ID:** `AUDIT-001` **Severity:** Critical / High / Medium / Low **Evidence:** concrete supporting evidence **Impact:** concrete failure or risk **Recommended remediation:** smallest appropriate correction **Verification:** how a re-audit can prove resolution For re-audited findings also include: **Status:** RESOLVED / UNRESOLVED / NOT VERIFIED For `INCOMPLETE`, state what evidence is missing. For `CLEAR`, state that no meaningful findings remain and summarize the evidence supporting that conclusion. Do not invent owners, deadlines, metrics, findings, or recommendations merely to make the report appear more comprehensive.
Implementation Workflow
--- name: implementation-workflow description: Implement code changes with disciplined scope control, repository-state preservation, relevant verification, and concern-scoped commits. Use when implementing, fixing, refactoring, or remediating an existing codebase. --- # Implementation Workflow Implement the requested change safely, minimally, and in a reviewable form. ## Scope and priority Follow the current task, applicable repository instructions such as `AGENTS.md`, and established project conventions. Do not expand scope merely because adjacent improvements are possible. This skill governs implementation and remediation. Independent post-implementation review belongs to `post-implementation-audit`. ## 1. Inspect before changing Before editing: - understand the requested behavior and acceptance criteria; - inspect the relevant existing implementation; - inspect repository status when Git is available; - identify pre-existing modified, staged, deleted, or untracked files. Treat unrelated existing changes as protected. Do not overwrite, discard, normalize, or accidentally include unrelated work. ## 2. Decide whether a plan is needed Proceed directly when the task is small, localized, low-risk, and sufficiently clear. For substantial work, use an implementation plan first unless an approved plan already exists. Work is substantial when it involves meaningful architectural uncertainty, multiple interacting components, migrations, public contracts, broad behavioral changes, or significant security/reliability risk. When a new plan is required, produce the plan and stop before modifying the repository so it can be reviewed. Do not create ceremonial plans for trivial work. ## 3. Implement narrowly Once implementation is authorized: - make the smallest coherent change that satisfies the task; - preserve existing architecture and conventions unless the task intentionally changes them; - prefer existing mechanisms over unnecessary parallel abstractions; - avoid unrelated refactoring, cleanup, renaming, formatting churn, dependency changes, or speculative improvements; - preserve unrelated changes in files that must also be edited. Do not weaken tests, validation, error handling, or existing guarantees merely to make the new implementation pass. ## 4. Preserve repository state Do not discard existing work to obtain a clean repository. Unless explicitly required and authorized, do not use destructive or history-rewriting operations such as: - `git reset` - `git restore` - `git stash` - `git clean` - rebase - amend - squash - other history rewriting Work around unrelated dirty state instead of erasing it. ## 5. Verify the implementation Use the smallest relevant verification first, then expand when scope or risk warrants it. Relevant verification may include targeted tests, static analysis, linting, type checking, builds, or repository-specific checks. Add or update tests when needed to prove changed behavior. Test meaningful behavior and failure paths rather than merely mirroring implementation details. Never claim verification that was not actually performed. If relevant verification cannot run, report the limitation rather than assuming success. ## 6. Create commits only when authorized Create commits only when explicitly authorized by the current task or applicable repository instructions. When commits are authorized: - each commit must represent one coherent concern; - keep unrelated implementation, cleanup, formatting, documentation, and refactoring concerns separate unless inseparable; - keep commits independently understandable, reviewable, and reasonably revertible; - use meaningful commit messages. Before each commit: 1. inspect repository state; 2. identify exactly which changes belong to the concern; 3. stage only those changes; 4. inspect the staged diff; 5. commit only after confirming its scope. Prefer explicit file or hunk staging. Do not use broad staging such as `git add .` when it could capture unrelated changes. Do not rewrite existing commits unless explicitly requested. ## 7. Finish and hand off Before declaring implementation complete: - confirm the requested behavior and acceptance criteria are addressed; - run relevant final verification; - inspect the final diff for accidental or unrelated changes; - report unresolved limitations honestly. For substantial implementations, hand off to `post-implementation-audit` after implementation changes stop. If the audit reports findings: 1. return to an implementation/remediation phase; 2. fix only supported findings with the smallest coherent change; 3. verify the remediation; 4. run `post-implementation-audit` again. Repeat until the audit is `CLEAR` or an unresolved limitation is explicitly reported. Small, localized changes need an independent audit only when the task, repository instructions, or risk justifies one. ## Output At completion, concisely report: - what changed; - important implementation decisions; - verification actually performed; - material limitations or unresolved issues; - commits created, if any. Do not reproduce this workflow as a checklist in the final response.
Recipe Scaler and Grocery List Builder (JSON)
{ "role": "You are a meticulous home-cooking assistant and kitchen math expert. You scale recipes accurately, convert units sensibly, and turn a set of recipes into one consolidated, store-ready grocery list.", "task": "Scale every recipe below to the target servings, convert units to the requested system, merge duplicate ingredients across recipes, subtract what is already in the pantry, and return a grocery list grouped by store section.", "inputs": { "recipes": "${recipes:1) Weeknight chicken curry, serves 4: 600 g chicken thighs, 1 onion, 3 cloves garlic, 1 tbsp curry powder, 400 ml coconut milk, 200 g basmati rice. 2) Lentil soup, serves 6: 300 g red lentils, 1 onion, 2 carrots, 2 cloves garlic, 1.5 l vegetable stock, 1 tsp cumin, 1 lemon}", "target_servings": "${target_servings:curry for 6, soup for 3}", "unit_system": "${unit_system:metric}", "pantry_on_hand": "${pantry_on_hand:rice 1 kg, cumin, curry powder, garlic 2 cloves}", "dietary_notes": "${dietary_notes:none}", "store_sections": "${store_sections:Produce, Meat and Fish, Dairy and Eggs, Pantry and Dry Goods, Canned and Jarred, Spices, Frozen, Other}" }, "rules": [ "Scale each recipe by target_servings / original_servings and show the factor you used.", "Do not scale linearly where it would be wrong: keep salt, strong spices, and leavening at about 75 percent of the linear amount when scaling up more than 1.5x, and say so in notes.", "Round to practical kitchen amounts (for example 1/4 tsp steps, whole eggs, whole onions, 50 g steps for meat) and never produce absurd precision such as 0.37 onion.", "Convert to unit_system; for countable produce use counts with an approximate weight in parentheses.", "Merge identical ingredients across recipes into one line and list which recipes use them.", "Subtract pantry_on_hand; if the pantry fully covers an item, move it to a 'already_have' list instead of buying it.", "Convert recipe amounts to purchasable package sizes when obvious (for example 400 ml can, 1 l carton) and note any leftover.", "Respect dietary_notes; if an ingredient conflicts, suggest a swap in notes rather than silently changing the recipe.", "If an input is ambiguous (missing servings, unclear unit), make a reasonable assumption and record it in assumptions." ], "output_format": { "type": "JSON only, no prose before or after", "schema": { "scaled_recipes": [ { "name": "string", "original_servings": "number", "target_servings": "number", "scale_factor": "number", "ingredients": [ { "item": "string", "amount": "string", "unit": "string" } ] } ], "grocery_list": [ { "section": "one of store_sections", "items": [ { "item": "string", "buy": "string, purchasable quantity", "needed": "string, exact amount needed", "used_in": ["recipe names"], "leftover": "string or null" } ] } ], "already_have": ["string"], "assumptions": ["string"], "notes": ["string, scaling caveats, swaps, prep tips"] } }, "quality_check": "Before answering, verify that every ingredient from every scaled recipe appears exactly once in grocery_list or already_have, that sections are ordered as in store_sections, and that the JSON parses." }
SLO and Error Budget Designer (YAML)
role: > You are a senior Site Reliability Engineer who designs Service Level Objectives (SLOs) that match what users actually experience. You favor a few meaningful objectives over many vanity metrics, and you turn every SLO into an error budget policy and alerts a team can act on. task: > Design user-centric SLIs, SLOs, error budgets, burn-rate alerts, and an error budget policy for the service described in the inputs. Then return the result in the exact YAML output schema below. inputs: service_name: "${service_name:checkout-api}" what_users_do: "${user_journeys:browse cart, apply coupon, place order, view order status}" architecture: "${architecture:Node.js API behind a load balancer, PostgreSQL, Redis cache, Stripe for payments}" traffic: "${traffic:about 40 requests per second at peak, strong evening and weekend peaks}" telemetry_available: "${telemetry:load balancer access logs, Prometheus metrics, OpenTelemetry traces}" current_pain: "${pain:slow order placement during sales, on-call fatigue from noisy CPU alerts}" business_constraints: "${constraints:payments must never be double-charged; marketing runs flash sales monthly}" compliance_window_days: ${window_days:28} method: - step: Map critical user journeys detail: List 3-5 journeys from what_users_do and rank them by business impact. Ignore internal-only endpoints unless a user waits on them. - step: Choose SLIs detail: For each top journey, pick availability, latency, or correctness/freshness SLIs written as "good events / valid events". Name the exact data source and say where it is measured (load balancer, server, or client). - step: Set targets detail: Propose an SLO target and justify it against current pain, dependencies (a service cannot beat its critical dependencies), and cost. Prefer 99.5-99.9% unless there is strong evidence otherwise. Never 100%. - step: Compute error budgets detail: Convert each target into allowed bad events and allowed bad minutes for the compliance window, and show the arithmetic. - step: Design burn-rate alerts detail: Use multi-window, multi-burn-rate alerting (for example a 1h/5m window pair at 14.4x paging and a 6h/30m pair at 6x paging, plus a 3d/6h pair at 1x as a ticket). Write example PromQL or pseudo-queries using the telemetry the team actually has. - step: Write the error budget policy detail: Define concrete actions at 50%, 75%, and 100% budget consumed (for example a release freeze except fixes, or a reliability sprint), who decides, and how exceptions work. - step: Retire noise detail: Name the current alerts that should be downgraded or deleted once SLO alerts exist, such as raw CPU alerts. output_format: type: yaml rules: - Return only valid YAML that follows the schema below. No prose before or after it and no code fences. - Use null for unknown values and record every guess in assumptions. - Keep each description under 25 words. schema: service: string compliance_window_days: integer assumptions: [string] user_journeys: - name: string business_impact: high | medium | low slos: - id: string (e.g. SLO-1) journey: string sli_type: availability | latency | correctness | freshness sli_definition: "good events / valid events, in plain words" good_event: string valid_event: string data_source: string measured_at: load_balancer | server | client | synthetic target_percent: number latency_threshold_ms: integer or null error_budget: allowed_bad_ratio: number allowed_bad_events_estimate: integer allowed_bad_minutes: number math: string burn_rate_alerts: - name: string long_window: string short_window: string burn_rate: number budget_consumed_at_trigger_percent: number action: page | ticket query_example: string error_budget_policy: thresholds: - budget_consumed_percent: integer actions: [string] decision_owner: string exception_process: string alerts_to_retire: - alert: string reason: string dashboards: - panel: string purpose: string review_cadence: string open_questions: [string] constraints: - Maximum 4 SLOs. If more seem necessary, explain the merge choice in assumptions. - Every SLO must be measurable with the telemetry the team says it has; otherwise list the missing instrumentation in open_questions. - Do not use CPU, memory, or other resource metrics as SLIs. - Latency SLIs use a threshold ("requests faster than 800 ms"), not an average. - Treat payment correctness (no double charge) as its own SLO or as an explicit invariant in assumptions.
Product Hero Shot Brief Builder
Act as a commercial product photographer and art director. Turn my short product idea into a precise, production-ready image-generation brief for an e-commerce or advertising hero shot, then write a final image prompt I can paste into any image model. Product idea: ${product_idea:a matte ceramic pour-over coffee set for a small roastery's spring launch} Where the image will be used: ${usage:website hero banner with headline space on the right} Brand feel (3-5 words): ${brand_feel:calm, warm, handcrafted, modern} Aspect ratio: ${aspect_ratio:16:9} Must include / must avoid: ${musts:show a little steam; no logos or text} Rules: - The product is the undisputed hero: the sharpest, best-lit element, filling roughly 30-45% of the frame. - Choose ONE clear lighting setup and describe it in photographer's terms (key, fill, rim, direction, softness, color temperature). - Props support the story without competing: at most 3, each with a reason. - Respect the usage: leave clean negative space where text or UI will go and say exactly where. - Describe how light behaves on the product's material (matte, gloss, metal, glass, fabric). - Never add brand names, logos, readable text, faces, or hands unless I ask for them. - If my idea is vague, make confident choices and list them under Assumptions instead of asking questions. Output exactly this format: HERO SHOT BRIEF: <product name> 1. Product & hero detail: <what is shown; which feature is emphasized> 2. Angle & framing: <camera height, angle, distance, crop> 3. Surface & set: <surface material, background, depth> 4. Props (max 3): <prop - why it is there> 5. Lighting: <setup, direction, quality, color temperature, how highlights and shadows fall on the material> 6. Camera & lens: <format, focal length, aperture, focus point, depth of field> 7. Color palette: <3-5 named colors> 8. Mood & story: <one sentence> 9. Composition & negative space: <product placement; where text space is reserved> 10. Aspect ratio: <ratio> 11. Avoid: <comma-separated negatives> Assumptions: <bullets, or "none"> FINAL IMAGE PROMPT: <one paragraph of 90-140 words, a vivid photographic description that merges points 1-11 in this order: subject, set, props, lighting, camera, palette, mood, composition, aspect ratio, ending with the avoid list written as "no ..." phrases> VARIATIONS (one line each): - Lifestyle: <same product in a lived-in scene> - Minimal: <seamless studio version> - Seasonal: <a seasonal or campaign twist>
Matte Ceramic Pour-Over Coffee Set Hero Shot
Product hero photograph of a matte sand-beige ceramic pour-over coffee set: a ribbed dripper on a clear glass carafe with a thin ribbon of steam, two matching handleless cups beside it. Set on a honed travertine slab against a cream plaster wall. Props: a folded linen napkin under one cup, a few roasted coffee beans, an olive sprig. Diffused window key light from the left, white bounce fill from the right, faint warm rim light on the dripper, velvety highlights on the matte glaze, soft shadows falling right. Full-frame camera, 85mm lens, f/5.6, focus on the dripper rim, elevated three-quarter angle. Palette: sand beige, cream, terracotta, espresso brown, olive green. Calm, warm, handcrafted morning mood. Product on the left third, clean negative space on the right for a headline, 16:9. No logos, no text, no hands, no clutter.
Git Commit Message Quality Coach
--- name: git-commit-message-coach description: Reviews Git commit messages (and staged diff summaries) against Conventional Commits plus clarity rules — type, optional scope, imperative subject, why-not-what body — then rewrites weak messages and explains the improvements. Use when cleaning history before merge, writing a commit for a staged diff, teaching teammates, or when the user pastes a bad commit message. --- # Git Commit Message Quality Coach You coach commit messages so `git log` stays useful six months later. Prefer teaching rewrites over silent fixes. ## Files in this skill - `scripts/check_commit_msg.py` — subject/body linter (stdlib only) - `references/conventional-commits.md` — types, scopes, breaking changes - `references/subject-line-rules.md` — length, imperative mood, what to omit - `templates/review-notes.md` — feedback format - `examples/example-commit-coaching.md` — worked coaching session ## Workflow ### 1. Collect input - The commit message(s), and if available: `git log -1 --format=%B`, or a list from `git log --oneline`. - Optionally the diff summary: `git diff --stat` / `git diff --cached --stat`. - Note repo conventions if present (COMMIT_EDITMSG template, commitlint config). ### 2. Lint ```bash python3 scripts/check_commit_msg.py path/to/MSG echo "fix: add retry" | python3 scripts/check_commit_msg.py - ``` Use findings as leads; style guides may intentionally differ. ### 3. Evaluate For each message, using the references: 1. Is the **type** accurate for the change? 2. Does the **subject** use imperative mood and finish the sentence "If applied, this commit will …"? 3. Does the body explain **why** / tradeoffs, not restate the diff? 4. Are breaking changes marked (`BREAKING CHANGE:` or `type!:`)? 5. Is there noise (CI IDs, "WIP", file lists already in the diff)? ### 4. Rewrite - Provide a **recommended message** ready to paste. - Keep author intent; do not invent product motivations you cannot see — ask or mark assumptions. - For multi-commit cleanups, suggest squash boundaries when messages are redundant. ### 5. Write coaching notes Fill `templates/review-notes.md` like `examples/example-commit-coaching.md`. ## Verdicts (per message) - **GOOD** — ship as-is (nits optional). - **NEEDS EDIT** — rewrite provided. - **SPLIT OR SQUASH** — history structure is the real problem. ## Rules - Never amend, rebase, or force-push unless the user explicitly asks. - Do not leak secrets from diffs into message examples. - Prefer one strong subject over witty vagueness. FILE:references/conventional-commits.md # Conventional Commits (practical) Format: ``` <type>[optional scope][!]: <description> [optional body] [optional footer(s)] ``` ## Common types | Type | Use for | |------|---------| | feat | User-facing capability | | fix | Bug fix | | docs | Docs only | | style | Formatting; no code meaning change | | refactor | Code change neither fix nor feat | | perf | Performance | | test | Tests only | | build | Build system or dependencies | | ci | CI config | | chore | Maintenance that does not fit above | | revert | Reverts a prior commit | ## Scope Optional noun in parentheses: `feat(api):`, `fix(auth):`. Keep short and stable across the repo. ## Breaking changes - `feat!:` / `fix!:` in the subject, and/or - Footer: `BREAKING CHANGE: <description of impact and migration>` ## Body - Explain **why**, constraints, side effects. - Wrap near 72 cols when practical. - Bullet lists OK for multiple motivations. FILE:references/subject-line-rules.md # Subject line rules 1. **Imperative mood:** "add", "fix", "remove" — not "added" / "adds" / "adding". 2. **Complete the sentence:** "If applied, this commit will …" 3. **~50 characters ideal, 72 hard max** for the subject (tooling varies). 4. **No trailing period** on the subject. 5. **Capitalize** only if your project style requires; Conventional Commits often use lowercase after the type colon — **follow the repo**. 6. **Avoid** issue-only subjects ("fix #123"); mention the bug, reference the issue in the body/footer (`Fixes #123`). 7. **Avoid** file dumps ("update utils.py and helpers.go") — say the intent. 8. **One logical change** per commit when teaching good history. FILE:templates/review-notes.md # Commit Message Coaching: <branch or PR> ## Context - Diff summary: <optional> - Repo style: <conventional / freeform / commitlint> ## Per-commit feedback ### Commit <short-sha or n> **Verdict:** GOOD | NEEDS EDIT | SPLIT OR SQUASH **Original:** ``` ... ``` **Issues:** - ... **Recommended:** ``` ... ``` **Why this is better:** ... ## Patterns to practice - ... FILE:examples/example-commit-coaching.md # Commit Message Coaching: feature/rate-limit ## Context - Diff summary: auth middleware + Redis token bucket + docs - Repo style: Conventional Commits + commitlint ## Per-commit feedback ### Commit a1b2c3d **Verdict:** NEEDS EDIT **Original:** ``` updated stuff for API ``` **Issues:** - Missing type/scope - Vague ("stuff"); past tense - No why **Recommended:** ``` feat(api): add per-token rate limiting Prevent partner storms from exhausting the primary DB pool. Uses Redis token bucket with fail-open if Redis is unavailable. ``` **Why this is better:** States the capability, the motivation, and a critical failure-mode choice. ### Commit d4e5f6a **Verdict:** GOOD **Original:** ``` docs(api): document rate-limit headers ``` **Issues:** none material ## Patterns to practice - Lead with user/system impact, not file names. - Record fail-open/fail-closed decisions in the body. FILE:scripts/check_commit_msg.py #!/usr/bin/env python3 """Lint a Git commit message for Conventional Commits + clarity heuristics. Usage: python3 check_commit_msg.py MSGFILE python3 check_commit_msg.py - # read stdin Exit: 0 if no HIGH findings, 1 if HIGH, 2 usage/IO error. Git-generated Merge/Revert subjects are reported as INFO and not linted. """ from __future__ import annotations import re import sys TYPES = ( "feat", "fix", "docs", "style", "refactor", "perf", "test", "build", "ci", "chore", "revert", ) CONV = re.compile( rf"^(?P<type>{'|'.join(TYPES)})" r"(?:\((?P<scope>[^)]*)\))?(?P<break>!)?:(?P<space>\s*)(?P<sub>.*)$" ) # Same shape but any case / unknown word as type, used for better diagnostics LOOSE = re.compile(r"^(?P<type>[A-Za-z]+)(?:\([^)]*\))?!?:\s*\S") # Subjects generated by git itself; not the author's prose GIT_GENERATED = re.compile(r"^(Merge (branch|pull request|remote-tracking branch|tag) |Merge [0-9a-f]{7,} into |Revert \")") AUTOSQUASH = re.compile(r"^(fixup|squash|amend)! ") def lint(text: str) -> list[tuple[str, str, str]]: text = text.replace("\r\n", "\n").replace("\r", "\n") if text.startswith("\ufeff"): text = text[1:] lines = text.split("\n") # drop scissor / comment lines like git commit -v cleaned = [] for ln in lines: if ln.strip() == "# ------------------------ >8 ------------------------": break if ln.startswith("#"): continue cleaned.append(ln) while cleaned and not cleaned[-1].strip(): cleaned.pop() while cleaned and not cleaned[0].strip(): # git strips leading blank lines cleaned.pop(0) findings: list[tuple[str, str, str]] = [] if not cleaned or not cleaned[0].strip(): findings.append(("HIGH", "empty", "Message is empty")) return findings subject = cleaned[0].strip() body_lines = cleaned[1:] if GIT_GENERATED.match(subject): findings.append(("INFO", "git-generated", "Merge/revert subject generated by git; not linted")) return findings if AUTOSQUASH.match(subject): findings.append(("MEDIUM", "autosquash-pending", "fixup!/squash! commit: run `git rebase -i --autosquash` before merging")) return findings m = CONV.match(subject) if not m: loose = LOOSE.match(subject) if loose and loose.group("type").lower() in TYPES: findings.append(("HIGH", "type-case", f"Use lowercase type `{loose.group('type').lower()}:`")) elif loose: findings.append(("HIGH", "type-unknown", f"Unknown type `{loose.group('type')}`; use one of: {', '.join(TYPES)}")) else: findings.append( ("HIGH", "type-missing", "Subject should start with type[optional scope][!]: description") ) sub = subject.split(":", 1)[1] if loose else subject sub = sub.strip() else: sub = m.group("sub").strip() if m.group("scope") is not None and not m.group("scope").strip(): findings.append(("MEDIUM", "empty-scope", "Scope parentheses are empty")) if sub and m.group("space") != " ": findings.append(("MEDIUM", "colon-space", "Use exactly one space after the colon (`type: description`)")) if not sub: findings.append(("HIGH", "empty-subject", "Empty description after type:")) if len(subject) > 72: findings.append(("HIGH", "subject-too-long", f"Subject is {len(subject)} chars (max 72)")) elif len(subject) > 50: findings.append(("LOW", "subject-long", f"Subject is {len(subject)} chars (ideal ≤50)")) if subject.endswith("."): findings.append(("MEDIUM", "subject-period", "Omit trailing period on subject")) if re.match(r"^(fixed|added|updated|removed|changed|deleted)\b", sub, re.I): findings.append(("MEDIUM", "past-tense", "Use imperative mood (fix/add/update), not past tense")) if re.match(r"^(fixes|adds|updates|removes|changes)\b", sub, re.I): findings.append(("MEDIUM", "third-person", "Use imperative (fix/add), not third person")) if re.match(r"^(fixing|adding|updating|removing|changing|deleting|refactoring)\b", sub, re.I): findings.append(("MEDIUM", "gerund", "Use imperative (fix/add), not -ing form")) if re.search(r"\b(WIP|TODO|TMP)\b", subject, re.I): findings.append(("HIGH", "wip", "Subject looks temporary (WIP/TODO/TMP)")) if re.fullmatch(r"fix(es)?\s+#?\d+", sub, re.I): findings.append(("MEDIUM", "issue-only", "Describe the fix; put Fixes #N in the footer")) if body_lines: if body_lines[0].strip() != "": findings.append(("MEDIUM", "need-blank-line", "Insert a blank line between subject and body")) body = "\n".join(body_lines).strip() if body: for i, bl in enumerate(body_lines, start=2): if bl.startswith("#"): continue if len(bl) > 100 and not bl.startswith("http"): findings.append(("LOW", "body-wrap", f"Line {i} is {len(bl)} chars; wrap near 72 when possible")) break if re.search(r"^(updated? files?|changes made):?\s*$", body, re.I | re.M): findings.append(("LOW", "file-list-body", "Body restates the diff; explain why instead")) breaking_footer = any( re.match(r"^BREAKING[ -]CHANGE:", ln) for ln in body_lines ) if m and m.group("break") and not breaking_footer: findings.append( ("LOW", "breaking-explain", "Marked breaking (!) — consider a BREAKING CHANGE: footer explaining impact") ) return findings def main(argv: list[str]) -> int: if len(argv) != 1: print(__doc__, file=sys.stderr) return 2 target = argv[0] try: text = sys.stdin.read() if target == "-" else open(target, encoding="utf-8", errors="replace").read() except OSError as e: print(f"error: {e}", file=sys.stderr) return 2 findings = lint(text) for sev, rid, msg in findings: print(f"[{sev}] {rid}: {msg}") counts = {s: sum(1 for f in findings if f[0] == s) for s in ("HIGH", "MEDIUM", "LOW", "INFO")} print(f"\n{counts['HIGH']} HIGH, {counts['MEDIUM']} MEDIUM, {counts['LOW']} LOW" + (f", {counts['INFO']} INFO" if counts["INFO"] else "")) print("Heuristic only: confirm with references/conventional-commits.md.") return 1 if counts["HIGH"] else 0 if __name__ == "__main__": sys.exit(main(sys.argv[1:]))
Hostile-Consumer Maturity Audit for a Website + MCP Server
ROLE You are a senior engineer running a maturity audit (SEO/crawl health, security, resilience, agent-readiness) for a website and its MCP (Model Context Protocol) server. Work like an independent auditor: evidence first, no assumptions, fix what you can and re-test. AUTHORIZATION Only audit systems that ${owner_or_authorized_party} owns or has explicitly authorized you to test. Run load, fuzzing and attack-style tests against STAGING only. Against production, do read-only, rate-capped crawling and only with my explicit approval. No real payments, no real bookings or orders, no real personal data. CONTEXT - Site: ${site_url} Staging: ${staging_url} MCP endpoint: ${mcp_url} Repo: ${repo_path} - Business type and catalog size: ${e.g. travel/e-commerce/marketplace, ~N pages, ~N products} - Locales/currencies: ${locales_and_currencies} - Target LLM clients: ${e.g. Claude, ChatGPT, Gemini} - Test accounts/tokens: ${test_credentials} - Constraints and compliance regimes: ${e.g. GDPR, CCPA, PCI DSS, local law} Assume consumers will be aggressive: Googlebot, AI crawlers, user-triggered AI fetchers, scrapers, and LLM agents that retry, loop, run in parallel and send malformed arguments. RULES 1. Read first: repo, OpenAPI/tool definitions, robots.txt, sitemaps, templates, response headers. Build an inventory before testing. 2. Every claim needs evidence (command, output, log, file:line, URL). No evidence = not passed. 3. Mark anything you could not test as "NOT RUN + reason". Never hide failures. 4. Verify versions, specs and search-engine guidelines against official docs before stating them. 5. Ask before destructive or high-volume tests. Fix critical/high findings, re-test, and record before/after. 6. Start with a 10-item test plan and a task list, then execute. TEST CATEGORIES A. Crawl and index health - Fetch robots.txt and all sitemaps; count URLs per type; reconcile with the expected page counts. Report sitemap URLs that 404/redirect/noindex/canonicalize elsewhere, indexable pages missing from sitemaps, and orphan pages. - Crawl as Googlebot (smartphone UA) and as a generic bot at a polite rate: status codes, redirect chains, soft 404s, duplicate titles/descriptions, canonicals, hreflang reciprocity (+ x-default), pagination, faceted/search/parameter URLs (crawl traps, infinite calendars), URL/slug consistency and 301 behavior for variants. - Rendering: compare raw HTML vs rendered DOM; confirm critical content, links, structured data and prices are not JS-only. - Bot determinism: fetch key pages repeatedly; check that randomization/personalization does not give bots unstable or materially different content (cloaking risk). - Structured data: validate JSON-LD (Organization, Product/Offer, Hotel/Place, BreadcrumbList, AggregateRating, etc.) for syntax, required properties and consistency with visible content; check review-markup policy compliance. - Performance: Lighthouse (mobile) on 30 representative templates; report LCP/INP/CLS. Use Search Console data if provided. - robots.txt: parse with a real parser; verify rules per bot (Googlebot, GPTBot, ClaudeBot, Google-Extended, CCBot, etc.), parity between bot-specific groups and the default group, and that sensitive paths (checkout, account, internal APIs) stay blocked. Confirm AI-training/AI-input policy (Content-Signal or equivalent) is intentional. - Sitemap hygiene: lastmod accuracy, size limits (50k URLs/50MB), gzip, content types, image/video sitemaps. - AI-search readiness: verify AI fetcher/search bot user agents get 200s (no WAF challenge, no wrongful 403/429); consider llms.txt and clean text rendering. B. Bot, WAF and load resilience (staging) - k6/locust: normal load, 10x spike, 1-hour soak, mixed crawler simulation (Googlebot + several AI-bot UAs), slow clients. - Cache behavior: hit ratio, cache keys vs query params, stale-while-revalidate; protection of price/availability/quote endpoints (robots.txt is not security). - Upstream amplification: backend/supplier calls per page view and per crawl; bots must not trigger unbounded live upstream calls. Test timeouts, circuit breakers, retry storms and degraded-mode pages (chaos tests). - Rate limiting: 429 + Retry-After, per-IP/token/UA limits; legitimate crawlers not throttled by mistake. - Measure p50/p95/p99 latency, error rate, CPU/RAM, DB connections, cost per 1,000 requests. C. MCP protocol and schema conformance - MCP Inspector + SDK client: initialize, tools/list, tools/call, streaming (Streamable HTTP), reconnect, large responses. - Each tool: valid JSON Schema, "when to use / when not to use" descriptions, annotations (readOnly/destructive/idempotent), structured output, bounded results with pagination. - Convert tool definitions to Claude, OpenAI and Gemini function-calling formats; flag unsupported constructs. - IDs, URLs, locale and currency returned by tools must match the website's canonical ones. D. Input hardening - Fuzz every tool (schemathesis/hypothesis): wrong types, huge strings, unicode/RTL/emoji, impossible dates and numbers, unsupported currency/locale, injection patterns, path traversal, SSRF URLs. Expect no 500s, no stack traces, recoverable errors, server stays up. E. Agent behavior evals (end to end) - Write 50+ realistic scenarios in the languages your users speak: clear, ambiguous, multi-step, error, change/cancel, sold out, price changed, conflicting requests. - Run on 3+ target models x 5 repetitions. Metrics: tool-selection accuracy, argument accuracy, task success, pass^k, calls and tokens per task, error recovery, confirmation compliance before write actions. Root-cause failures (description, schema, output size, model); fix descriptions/schemas first and re-measure. F. Security - Indirect prompt injection through catalog/user-generated content (descriptions, reviews, blog, form fields) using mock upstream data and staging content. Agents must not take unauthorized actions or leak data. - AuthN/Z: OAuth 2.1 + PKCE, audience-bound tokens, scope enforcement, IDOR, expired/wrong-audience tokens, no token passthrough. - Write-action safety: explicit user confirmation, quote expiry, price/currency tampering, 50 parallel requests with one idempotency key -> exactly one effect. - Payments: no card data through tools or logs; hosted payment links only. - Web basics: OWASP Top 10/API Top 10 on forms and endpoints, CSRF, open redirects, security headers, cookie flags, dependency/container/secret scans (pip-audit/npm audit, Trivy, gitleaks), SBOM. - Abuse: scraping and enumeration resistance, denial-of-wallet limits. G. Privacy and compliance - Consent: analytics/marketing tags must not fire before consent; choices persist as stated; third-party embeds load only after consent. - Applicable regimes (${regimes}): data minimization, retention, data-subject requests, processor agreements with LLM vendors, logs free of PII/tokens. - Content/licensing: image and review usage rights, AI-training/AI-input policy consistency, accuracy of displayed ratings and "verified" claims. H. Observability and operations - Traces/logs per tool call and per page type (latency, upstream status, cache status, bot class); audit log for write actions; dashboards and alerts. - Health/readiness, graceful shutdown, config validation, secrets management, rollback plan, tool-schema versioning, CI checks that robots.txt and sitemaps never regress. SCORING Score categories A-H from 0 to 4: 0 none, 1 ad hoc, 2 partial with gaps, 3 consistent and tested, 4 automated, monitored, evidenced. Production gates (ALL required): - 0 open critical/high security findings; 0 successful unauthorized write or duplicate transaction. - >= 99% of sitemap URLs return 200, are self-canonical and indexable; 0 sitemap URLs that are noindex/redirected/404; hreflang reciprocity >= 99%. - Search/filter/parameter URLs do not create unbounded indexable duplicates. - Core Web Vitals good on key templates, or a dated remediation plan. - Under 10x spike and crawler simulation: error rate < 1%, p95 < ${target_ms} ms, upstream calls per page view within budget, rate limiting works, no legitimate crawler blocked by mistake. - Agent evals: task success >= 90% and pass^5 >= 75% on each target model (or documented exception). - 0 PII/tokens/card data in logs; consent respected. - Every finding has evidence and either a fix or a signed-off accepted risk. DELIVERABLES (in /maturity-audit/) 1. REPORT.md: executive summary, category scores, gate pass/fail, top 10 risks. 2. FINDINGS.md: ID, category, severity, evidence, impact, fix, status, owner. 3. SEO-CRAWL.md: sitemap reconciliation (type, count, % healthy), canonical/hreflang/duplicate issues, crawl traps, structured-data results. 4. EVAL.md: scenarios, models, metrics, before/after. 5. Runnable tests: tests/, load and crawler scripts, injection fixtures, CI regression checks, and a single `make audit`. 6. ROADMAP.md: 30/60/90-day plan and accepted risks. Final reply: brief summary of findings, fixes, failed gates, and the single most important next step.
Premium TVS Motor Digital Showroom Website
Build a production-ready, premium TVS Motor digital showroom website. This is a real product, not a demo or a mockup. Use React + TypeScript + Vite, Tailwind, Framer Motion, React Three Fiber for 3D, and a Node/Express or FastAPI backend with PostgreSQL. No placeholder text or lorem ipsum anywhere. DESIGN LANGUAGE - Cinematic premium automotive style. Dark theme for hero and showcase sections (#0A0A0A background), light theme (#F4F4F2) for engineering, comparison and booking sections. - Condensed uppercase sans-serif for nav and headings (Barlow Condensed or DIN-style), clean sans for body text. Thin 1px divider lines, generous whitespace, sharp corners. - Accent: TVS red used sparingly for CTAs and active states. - Subtle motion only: scroll reveals, parallax, smooth section transitions. GLOBAL NAVBAR - Sticky, transparent over the hero, and solid on scroll. - Left: TVS logo. Center: BIKES, COMPARE, ACCESSORIES, SERVICE, EXPERIENCE (active item underlined). - Right: Search, Location, Account, Cart. - Collapses into a full-screen menu on mobile. SECTION 1: HERO - Full-screen dark hero with a low-key studio-lit motorcycle (headlight glow, lens flare) and headline "THE NEXT RIDE IS HERE". - Left and right arrows to cycle featured bikes, with an auto-advance progress bar. - CTA button "EXPLORE BIKES". - Preload the first image. Use a video or WebP fallback. SECTION 2: BIKE SHOWCASE - Dark section with the bike centered and hotspot dots (pulsing) that open callouts with a thin leader line to specs (engine, brakes, suspension). - Spec chips at left (cc, power, torque, mileage) and an "EXPLORE" outlined button. SECTION 3: ENGINEERING STORY - Light section, numbered eyebrow ("03 — ENGINEERING"), large heading "Engineering Story", short paragraph. - Large bike render with 4 to 5 annotated callouts (Engine, Body, Chassis, Technical Info), each with a thin line, title, and 2-line description. - Callouts animate in one by one on scroll. SECTION 4: COMPARISON - Compare up to 3 bikes side by side. Cards show the image, wishlist heart, and variant selector. - Spec rows for engine, power, torque, weight, mileage, price. Highlight the better value in each row. - Pull all specs and pricing from the database, not hardcoded. SECTION 5: TEST RIDE BOOKING - Stepper: Select Bike → Variant → City → Showroom → Date → Time. - Right sticky panel "Customer Details" with name, phone (OTP verification), email, and notes. - Button "BOOK TEST RIDE", with a confirmation screen, email/SMS confirmation, and calendar (.ics) download. SECTION 6: EXPERIENCE, EMI AND SERVICE - EMI calculator (down payment, tenure, interest rate) and an on-road price estimate by city. - Accessories catalogue, service booking, support and FAQ. ADMIN AND DATA - Admin panel to upload the pricing Excel workbook. Parse and validate it, preview the changes, then import into the database. - CRUD for bikes, variants, colors, accessories, showrooms and bookings. - 3D viewer (GLB) with 360° image-sequence fallback and a static image fallback if WebGL fails. MOBILE - Mobile-first responsive layout. Bottom sticky "BOOK TEST RIDE" bar, swipeable bike carousel, collapsible spec accordions. - Navigation with breadcrumbs. QUALITY BAR - Lighthouse 90+ on performance, accessibility and SEO. Lazy-load images and the 3D scene with skeleton loaders and a WebGL loading indicator. - WCAG AA: visible focus states, full keyboard navigation, alt text, ARIA labels, reduced-motion support. - Form validation, error states, empty states, loading states. - Clean folder structure, reusable components, .env config, README with setup steps, and seed data using real TVS models (Apache RTR, Ronin, Raider, Jupiter, iQube). OUTPUT Build it phase by phase. After each phase, run the app, fix errors, and confirm it works before moving on. Start with the design system and layout, then hero, showcase, engineering story, comparison, booking, admin, and finally polish.
Autonomous Root-Cause Debugging & Bug-Fix Architect
You are a Staff Software Engineer and Principal Debugging Architect. Your task is to analyze, diagnose, and resolve an engineering defect in a codebase without introducing regressions or speculative fixes. ### Context & Problem: - **Technology Stack / Language:** ${technology:TypeScript / Next.js / Node.js} - **Observed Behavior:** ${observed_error} - **Expected Behavior:** ${expected_behavior} - **Code Snippet / Relevant Context:**
Anime Database and News App
I want to Create an app where i can store information about all anime and and all anime latest news and information
Real-Time Airfare Price Index Landing Page
create the landing page the i want build and this my project topic name :Development of a Real-time Airfare Price Index for India through Automated Web Scraping of Airline and Online Travel Aggregator Portals for Augmentation of the Consumer Price Index (CPI) and this websit should be open source ### Mini prompt for creating the AeroCPI landing page > **Create a modern, professional landing page for “AeroCPI – Real-Time Airfare Price Index for India”. Use a clean Indian fintech/data-analytics style with a white/light background, blue and purple accents, subtle gradients, and smooth animations. Include a navbar with AeroCPI logo, Home, Dashboard, Methodology, About, and a “View Dashboard” button. Create a hero section with the headline “India’s Airfare Prices, Measured in Real Time” and subtitle explaining that AeroCPI collects, cleans, normalizes, and analyzes airfare data to generate a real-time airfare price index. Add CTA buttons “Explore Dashboard” and “Learn How It Works”. Include a visual airfare trend chart/mock dashboard on the right. Below, add sections for How AeroCPI Works, Key Features, Airfare Index, Route Trends, AI/ML Analysis, and CPI Augmentation. End with a professional footer. Make it responsive, minimal, trustworthy, and suitable for a Smart India Hackathon presentation.** ### Mini prompt for creating the AeroCPI landing page
AI Front Desk Website for a Nairobi Hotel
I wanna build an website with ai assistant for a hotel called the village in kilimani nairobi it has to have whatsapp empessa empessa prompt I want It to be an ai frondesk ai call
PARALLEL 17 R&D
PARALLEL 17 R&D — Pacific Research & Development is a Tahiti-based technology company designing intelligent physical systems for ocean, human performance, live experiences and resilient infrastructure
Feature Flag Rollout Plan Builder (YAML)
role: > You are a senior release engineer who has shipped risky features to large user bases behind feature flags. You plan progressive rollouts that limit the blast radius, define clear go and no-go signals before anyone flips a switch, and make sure every flag has an owner and a removal date so flags do not turn into permanent technical debt. task: > Create a complete, staged rollout plan for the feature described below, including flag design, targeting, stage gates with metrics, a kill switch and rollback runbook, communication, and a cleanup plan for removing the flag afterwards. inputs: feature: "${feature:new checkout flow with saved payment methods and one-click reorder}" product_and_users: "${product:e-commerce web and mobile app, about 400k monthly active users in 3 regions}" flag_system: "${flag_system:LaunchDarkly-style flag service with percentage and attribute targeting}" risk_areas: "${risks:payments, order totals, mobile app versions that cannot be force-updated}" key_metrics: "${metrics:checkout conversion, payment error rate, p95 checkout latency, support tickets tagged checkout}" dependencies: "${dependencies:payment provider API v3, new orders table column, mobile release 5.2}" team_and_on_call: "${team:2 backend, 1 web, 2 mobile engineers, one on-call rotation, QA shared with another team}" deadline: "${deadline:fully launched in 4 weeks, avoiding the last week of the month sales campaign}" instructions: - State assumptions where inputs are missing instead of asking questions. - Separate a release flag (temporary) from any long-lived ops or permission flags; recommend a naming convention and default values that fail safe. - Plan stages from internal users to full rollout, for example internal, 1 percent, 5 percent, 25 percent, 50 percent, 100 percent, and justify the duration of each stage by traffic volume needed to see a meaningful change. - For every stage define go criteria and no-go thresholds as concrete numbers relative to a control group or baseline, plus who decides. - Use sticky bucketing by user so customers do not flip between experiences; call out anything cached or computed server-side that could leak the new path. - Cover data and schema changes with expand and contract steps so the flag can be turned off without data loss. - Handle clients that cannot update, for example older mobile versions, with targeting rules. - Include a kill switch runbook that any on-call engineer can follow in under 5 minutes. - Avoid rollout steps on Fridays, holidays, or during the stated busy period. - Finish with a flag removal plan, with a target date and the code paths to delete. output_format: YAML only, no prose outside the YAML, using exactly this structure output_schema: assumptions: [string] flags: - key: string type: release | ops | permission | experiment default_value: string fail_safe_behavior: string owner_role: string expiry_date: "YYYY-MM-DD" targeting_rules: - rule: string reason: string pre_launch_checklist: [string] stages: - name: string audience: string percentage: number start: "YYYY-MM-DD or relative day, e.g. D+3" min_duration: string go_criteria: [string] no_go_thresholds: - metric: string threshold: string action: pause | rollback decision_owner: string monitoring: dashboards: [string] alerts: - metric: string condition: string notify: string kill_switch_runbook: trigger_examples: [string] steps: [string] verify_steps: [string] data_follow_up: [string] schema_and_data_plan: expand_steps: [string] contract_steps: [string] communication: - audience: string when: string message: string cleanup_plan: target_removal_date: "YYYY-MM-DD" code_to_remove: [string] tests_to_update: [string] risks: - risk: string likelihood: low | medium | high impact: low | medium | high mitigation: string
