批处理 多文件批量重命名与规则预览回滚 AI 提示词 (Prompts)

下面是一组围绕“在线批量重命名与回滚”的在线工具生成型 AI 提示词(Prompts)。每条 Prompt 都要求 AI 输出:完整项目代码、文件结构、运行命令、部署说明,以及测试用例或 QA checklist。

注意:这些 Prompt 面向文件名整理与批处理,不包含任何生成图片/渲染图/配图的指令。

在线批量重命名:规则编辑 + 预览 + 冲突检测

做一个浏览器端在线工具:拖拽上传多文件后,按规则生成新文件名并实时预览,检测重复与非法字符。

英文 Prompt:

You are a senior full-stack engineer. Build a complete, runnable web app called "Batch Rename Studio". Requirements: - UI: drag-and-drop multiple files; table preview (original name, new name, status). - Rename rules: prefix/suffix, find & replace (regex optional), case transform, sequence numbering (start/step/pad), date tokens, trim, sanitize invalid filename chars. - Conflict detection: duplicate new names; highlight and provide auto-fix strategy. - Apply: generate a downloadable ZIP with renamed files (do NOT mutate user's local filesystem). - Undo/History: store rename mappings in browser localStorage; allow reverting to previous mapping and regenerating ZIP. Tech stack: - Frontend: React + Vite + Type . - ZIP: use a JS zip library. - No backend required. Output MUST include: 1) Project file tree. 2) Full source code for all files. 3) Commands to install/run/build. 4) Production deployment guide (static hosting). 5) At least 8 QA checklist items or test cases. Important: - Do not generate images. - Provide clear error states and accessibility hints.

中文释义:

说明该工具适合素材整理、导出资源命名规范化;强调交付物与如何运行/部署。

批处理命名模板:变量占位符与示例预览

支持用模板一键生成文件名,例如 {index}-{orig}-{date},并提供模板变量面板与实时示例。

英文 Prompt:

Build an online file renaming tool that uses template variables. Features: - Template editor with variables: {index}, {orig}, {ext}, {date:YYYY-MM-DD}, {time:HHmm}, {slug}, {counter:0001}. - Live preview: show first 20 results and a diff view. - Validation: disallow empty result, reserved names (CON, PRN, etc.), and path separators. - Export: download a JSON mapping file (old->new) and a ZIP of renamed files. - Import mapping: upload JSON mapping and reproduce the ZIP exactly. Tech: - Next.js (App Router) + Type . - Use Web APIs; no data . Deliverables: - File tree, full code, run/build commands, deploy to Vercel/Netlify, and >= 6 test cases. Do NOT include any image generation prompts.

中文释义:

说明模板变量适合批量导出、相机素材、扫描件等;需包含导入/导出映射与可复现。

文件夹内批量重命名:按层级保留结构并输出 ZIP

上传一个含多层目录的压缩包,工具解包后按规则改名并保留目录结构,再重新打包下载。

英文 Prompt:

Create a web app that accepts an uploaded ZIP containing folders and files, then performs batch renaming while preserving folder structure. Requirements: - Upload ZIP; parse entries; show tree view. - Renaming applies only to file names (not folder names) with configurable rules. - Preview changes with a searchable list. - Repack and download ZIP. - Security: limit max ZIP size; protect against zip-slip paths. Stack: - Node.js backend (Express) for ZIP parsing + repacking. - Frontend: Vue 3 + Vite. Output: - Full project with file tree, code, env vars, run commands, Dockerfile, and >= 8 QA/test cases. No image generation.

中文释义:

说明该工具适合资源包交付前的统一命名、避免客户端手动改名;强调安全与 zip-slip 处理。

批量重命名规则向导:一步步生成规则并可分享链接

把复杂规则拆成向导步骤,让非技术用户也能配置;规则可编码进 URL 进行分享。

英文 Prompt:

Design and implement a "rule wizard" for a batch rename web tool. Key points: - Multi-step wizard: choose rule types, configure, reorder, and see combined effect. - Encode the rule configuration into a shareable URL ( 64 or URL-safe JSON). - Include a "Try with sample names" mode (no file upload required). - When real files are uploaded, apply same rules and export ZIP. Stack: - SvelteKit + Type . Deliverables: - File tree + full code + commands + deployment guide. - Provide at least 10 QA checks including URL decoding errors and edge cases. No image generation instructions.

中文释义:

说明向导模式适合团队协作统一命名规范;强调可分享、可复用、可审计。

冲突自动修复:重复名检测与后缀策略库

当新文件名冲突时,提供多种自动修复策略(追加序号/哈希/原名片段),并支持一键回滚。

英文 Prompt:

Implement a conflict-resolution module for a batch renaming web app. Must have: - Detect duplicate target names. - Provide strategy presets: append counter, append short hash of original, keep extension, enforce max length. - Simulate results and show before/after. - Persist chosen strategy with mapping history and allow rollback. Stack: - React + Type , no backend. Output: - Provide module design, code, and at least 12 unit tests for edge cases. - Also include a minimal demo app to run locally. No image generation.

中文释义:

说明冲突修复适合海量导出文件;强调可重复运行、可回滚、测试覆盖。

规则集合管理:常用命名规范一键套用

提供规则集合(预设)管理:新建/编辑/导入/导出,团队共享同一套命名规范。

英文 Prompt:

Build a "preset manager" for batch rename rules. Features: - Create, edit, clone, delete presets. - Import/export presets as JSON. - Tagging and search. - Apply preset to uploaded files and generate ZIP. Tech: - Angular + Type . - Use IndexedDB for storage. Deliverables: - Full code, file tree, commands, and >= 8 QA items. No image generation.

中文释义:

说明预设管理适合多项目、多团队;强调离线存储与可迁移。

命名规则可视化:正则测试台与替换预览

内置正则测试台,支持逐条匹配高亮、替换预览与安全提示,避免误伤。

英文 Prompt:

Create a web- d regex find/replace workbench specifically for file renaming. Requirements: - Input list of filenames (paste or from uploaded files). - Regex editor with flags and explanations. - Highlight matches and show replacement preview. - Safety guardrails: warn on catastrophic backtracking patterns; limit execution time. - Apply and export ZIP mapping. Stack: - SolidJS + Type . Output: - Full project code and at least 8 test cases. No image generation prompts.

中文释义:

说明正则台适合清洗脏命名;强调安全限制与预览。

可审计导出:生成重命名报告与校验清单

输出一份可审计报告(CSV/JSON/Markdown),记录每次重命名的规则、映射与异常。

英文 Prompt:

Extend a batch renaming tool to export an audit report. Report must include: - Timestamp, rule config, file counts. - Mapping table old->new. - Detected issues (duplicates, invalid chars, truncations). - Checksums (SHA-256) for original files and renamed outputs. Stack: - Go backend for hashing + zipping. - Frontend: React. Deliverables: - Full code, Docker compose, run instructions, and >= 10 QA/test cases. No image generation.

中文释义:

说明审计报告适合交付、归档、合规;强调校验与可追溯。

大文件友好:分片读取与进度条、可取消任务队列

面向大文件与大量文件,加入任务队列、可取消、进度条与失败重试,提升可用性。

英文 Prompt:

Build a performance-focused batch rename web app. Requirements: - Handle 5k files without freezing the UI. - Use Web Workers for heavy computations. - Show progress, allow cancel, and retry failed items. - Export ZIP in streaming/chunked way if possible. Stack: - React + Type . Deliverables: - Full code, performance notes, commands, and >= 10 QA checks. No image generation.

中文释义:

说明大批量场景(素材库/日志导出)需要性能与可取消;强调可用性。

用户评论 (0)

登录后参与讨论

立即登录 注册账号

暂无评论,快来抢沙发吧~

操作成功