批处理 文件批量处理工作台 AI 提示词 (Prompts)

这是一组可直接用于 AI 生成项目代码的 Prompts,目标是一次性产出可运行/可构建/可部署的“在线批处理工作台”。每条 Prompt 都要求输出完整项目结构、关键源码、运行命令、部署说明与测试用例/QA 清单,适用于个人提效与团队批量任务场景(不涉及任何生成图片/渲染图)。

在线批量重命名:规则预览 + 冲突检测 + 可撤销回滚

用于拖拽导入文件后,按规则(前后缀、序号、正则替换、大小写、去空格)生成新文件名预览,并在下载前自动检测冲突与非法字符。

英文 Prompt:

You are to generate a complete, runnable web app called "Batch Rename Workbench". Goals: - Users drag-and-drop multiple files (no server upload required unless user explicitly chooses). - Provide rename rules: prefix/suffix, incremental numbering (start/step/padding), find/replace (plain + regex), case transform, trim/normalize spaces, remove emoji, sanitize for Windows/macOS/Linux. - Show a live preview table: original name, new name, warnings, conflicts. - Conflict detection: duplicates after rename, reserved filenames, invalid characters, max length. - Provide an undo/redo stack for rule changes and a "Revert to original" action. - Export rename plan as JSON/CSV. - Apply rename by generating a ZIP: keep file bytes unchanged, only names change. Tech constraints: - Frontend: React + Type + Vite. - Use a client-side ZIP library (e.g., fflate) for packaging. - No image generation features. No external paid APIs. Deliverables (MUST output): 1) Folder tree. 2) Full source code for core files (at minimum: rename engine, UI pages/components, state management, zip export). 3) Commands to run dev and build. 4) Dockerfile + docker-compose for production. 5) At least 8 unit tests for rename rules and conflict detection, plus a QA checklist. Also include accessibility: keyboard-friendly table, ARIA labels.

中文释义: 生成一个“在线批量重命名工作台”项目,强调规则预览、冲突检测、撤销回滚与打包下载;必须给出完整项目结构、关键源码、运行/构建/部署与测试清单。

在线批量文件清单生成:哈希校验 + 目录快照 + 差异对比

用于把一批文件生成可审计的清单(名称、大小、修改时间、SHA-256),并支持导入两份清单做差异对比,定位新增/缺失/变更。

英文 Prompt:

Build a complete web app "File Manifest & Diff". Features: - Drag-and-drop multiple files. - Compute SHA-256 in browser using WebCrypto. - Generate a manifest (JSON + CSV) with: filename, relative path, size, lastModified, sha256. - Allow users to import two manifests and diff them: added/removed/changed (by hash), renamed detection (same hash different name). - Provide filters and export diff report. Stack: - React + Type + Vite frontend. - Optional lightweight Node/Express backend ONLY for hosting static files; all hashing remains client-side. Deliverables: - Full project structure, source, run/build commands. - Docker deployment. - Tests: hashing utils, diff algorithm (min 6 tests). - QA checklist (min 8 items). Constraints: no image generation, no paid services.

中文释义: 生成一个在浏览器内计算文件哈希并输出清单、支持两份清单对比的在线工具;交付完整代码、部署与测试/QA。

在线批量命名规范化:多语言转拼音/Slug + 规则白名单

用于把杂乱文件名批量规范化为统一风格(slug、下划线、短横线),支持中文转拼音/首字母,且可配置白名单保留关键字。

英文 Prompt:

Create a web tool "Filename Normalizer". Requirements: - Batch convert filenames into consistent slugs. - Support Chinese to pinyin and initialism (use an open-source library). - Rules: remove diacritics, normalize unicode, collapse spaces, replace punctuation, keep extension. - Whitelist mode: keep tokens (e.g., project codes) unchanged. - Preview + conflict detection + ZIP download. Tech: - React + Type + Vite. - All processing client-side. Deliverables: - File tree, source code, commands. - Docker deployment. - Tests for slug rules and pinyin conversion integration. - QA checklist. No image generation features.

中文释义: 生成一个批量把文件名规范化并可转拼音/Slug 的在线工具,必须有预览、冲突检测、打包下载、部署与测试。

在线批量打包与目录重组:规则映射 + 预览 + 生成新目录结构

用于把一批文件按规则(扩展名/关键词/正则/日期)映射到新目录,并输出新的目录树预览与 ZIP 包,适合素材整理与交付。

英文 Prompt:

Generate a full web app "Batch Pack & Restructure". Features: - Users import files. - Define mapping rules to move files into folders: by extension, regex on filename, size ranges, lastModified date buckets. - Show a preview tree of the new folder layout. - Export result as a ZIP with the generated folder structure. - Provide rule templates and a dry-run mode. Stack: React + Type + Vite. Use fflate for zipping. Deliverables: - Complete project tree and core code. - Run/build commands. - Dockerfile + docker-compose. - Tests: rule matching and tree generation. - QA checklist. Constraints: no image generation.

中文释义: 生成一个可把文件按规则重组目录并打包输出的在线批处理工具,强调预览树、规则模板、可部署与测试。

在线批量校验与去重:按哈希聚类 + 重复报告 + 一键导出结果

用于识别完全重复文件(同哈希),生成重复组报告;并能导出“保留建议清单”(按命名规则/时间/大小排序)。

英文 Prompt:

Build "Duplicate Finder (Hash- d)" as a complete web app. Features: - Drag files, compute SHA-256. - Group duplicates by identical hash. - Provide retention suggestions: keep newest/oldest/largest, or keep by filename pattern. - Export reports (JSON/CSV) and a human-readable HTML report. Tech: React + TS + Vite; hashing in WebCrypto. Deliverables: - Project structure + key source. - Commands + Docker deployment. - Tests for grouping, sorting, suggestion rules. - QA checklist. No image generation.

中文释义: 生成一个基于哈希的在线去重与报告工具;需输出完整工程、部署与测试/QA。

在线批量规则引擎:可视化规则编排 + JSON Schema 导入导出

用于把“批处理规则”做成可视化编排(条件+动作),并支持导入导出 JSON Schema,方便团队复用与审计。

英文 Prompt:

Create a web app "Batch Rules Composer". Requirements: - Visual rule builder for batch file operations (rename/move/tag). - Conditions: extension, regex match, size, lastModified. - Actions: rename template, move to folder, add tag, skip. - Persist rules in JSON; provide JSON Schema; import/export. - Include a simulator: feed sample filenames and show results. Stack: React + TS + Vite. Deliverables: - Full project code + folder tree. - Run/build commands + Docker deployment. - Tests for rule evaluation and schema validation. - QA checklist. No image generation.

中文释义: 生成一个可视化批处理规则编排器,能导入导出规则 Schema 并模拟运行;交付可部署工程与测试。

在线批量日志与审计:操作记录 + 可导出审计报告

用于对批处理操作做可追溯记录(规则、输入、输出、时间、异常),并导出审计报告,适合交付与合规留痕。

英文 Prompt:

Build a web tool "Batch Audit Logger". Features: - When users perform any batch operation (rename/pack/dedupe), capture an audit entry. - Store in IndexedDB with export/import. - Provide an audit report generator: summary, timeline, errors, and downloadable JSON/CSV. - Include privacy controls: redact filename patterns. Stack: React + TS + Vite; IndexedDB via idb. Deliverables: - Project tree + core source. - Commands + Docker deployment. - Tests for audit log schema, export/import. - QA checklist. No image generation.

中文释义: 生成一个为批处理工具配套的审计日志模块与报告导出工具,要求可运行、可部署并带测试。

在线批量任务队列:并发控制 + 失败重试 + 进度可视化

用于对大量文件处理建立任务队列,支持并发上限、失败重试、进度条、暂停/继续,避免浏览器卡死。

英文 Prompt:

Generate a complete web app "Batch Job Queue". Requirements: - A job queue engine for client-side batch processing. - Features: concurrency limit, retry with backoff, pause/resume/cancel, progress reporting, error aggregation. - Provide a demo integration with a rename + hash computation pipeline. Stack: React + TS + Vite. Deliverables: - Full source + folder tree. - Run/build commands + Docker. - Tests: queue scheduling, retries, pause/resume. - QA checklist. No image generation.

中文释义: 生成一个可在浏览器内处理大量文件的任务队列与进度可视化工具,强调并发控制与失败重试,并提供可部署工程与测试。

用户评论 (0)

登录后参与讨论

立即登录 注册账号

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

操作成功