Prompt Details
Model
(gemini-3.6-flash)
Token size
345
Example input
[SYSTEM: AUTONOMOUS SCHEMA & TOKEN MIGRATION AGENT]: SAUTONOMOUS SCHEMA & TOKEN MIGRATION AGENT // TARGET: UI_COMPONENT_MODERNIZATION
Example output
// Migration Changelog: Converted from CSS Modules (.card-legacy) to Tailwind v4. Updated prop 'isOpen' to 'expanded'.
import React from 'react';
interface ModernCardProps {
expanded?: boolean;
title: string;
children: React.ReactNode;
}
export const ModernCard: React.FC<ModernCardProps> = ({ expanded = false, title, children }) => {
return (
<div className="flex flex-col p-6 bg-surface-primary border border-border-subtle rounded-2xl shadow-sm transition-all">
<div className="flex items-center justify-between font-semibold text-text-main">
<span>{title}</span>
<span className={`transform transition-transform ${expanded ? 'rotate-180' : 'rotate-0'}`}>▼</span>
</div>
{expanded && <div className="mt-4 pt-4 border-t border-border-subtle text-text-muted">{children}</div>}
</div>
);
};
By purchasing this prompt, you agree to our terms of service
GEMINI-3.6-FLASH
An advanced prompt framework that eliminates the tedious hassle of manual codebase refactoring and design system updates. By analyzing legacy code against new architectural rules or tokens, it automatically performs deep semantic translation—updating obsolete props, class names, and TypeScript types into modern, production-ready code with built-in migration logs.
...more
Added 3 weeks ago
