中文译文
分析位于 ${path_to_folder}/ 下名为 ${main_folder} 的文件夹中的所有文件,并执行以下任务:
任务 1:提取敏感数据
彻底审查每个文件,识别所有敏感信息,包括 API 密钥、密码、令牌、凭据、私钥、机密、连接字符串以及任何其他机密数据。创建一个名为 secrets.md 的新文件,包含所有发现的敏感信息,并清晰引用其来源文件。
任务 2:按主题整理
完成机密提取后,再次分析每个文件的内容。许多文件包含在不同时间编写的多个不相关的笔记。你的任务是:
- 根据内容出现频率和重要性,识别所有文件中最突出的 '${topic_max}' 个主题
- 创建 '${topic_max}' 个新的 markdown 文件,每个主题一个,命名为
${topic:#}.md,其中主题名称由你选择,需具有描述性 - 对于原始文件中的每个笔记片段:
- 将其复制到相应的主题文件
- 在原始文件中该笔记旁边添加一个引用编号(例如
${topic:2}或→ Security:2) - 此引用有助于后续验证迁移
任务 3:归档原始文件
一旦某个原始文件中的所有笔记都已复制到各自的主题文件并添加了引用编号,就将该原始文件移入一个名为 ${archive_folder:old} 的新文件夹。
预期最终结构
${main_folder}/
├── secrets.md (1 file)
├── ${topic:1}.md (topic files total)
├── ${topic:2}.md
├── ..... (more topic files)
├── ${topic:#}.md
└── ${archive_folder:old}/
└── (all original files)
重要指南
- 分析必须彻底——完整阅读每一个文件
- 复制到主题文件时保留原始内容
- 选择能准确反映你所发现的内容聚类的主题名称
- 确保每一段笔记都被归类
- 保持引用编号清晰且一致
- 只有在确认所有内容都已妥善迁移后,才将文件移入归档文件夹
从 ${path_to_folder} 开始,在整理过程中如果遇到任何含糊不清的内容需要澄清,请告诉我。
English original
Analyze all files in the folder named '${main_folder}located at${path_to_folder}`/ and perform the following tasks:
Task 1: Extract Sensitive Data
Review every file thoroughly and identify all sensitive information including API keys, passwords, tokens, credentials, private keys, secrets, connection strings, and any other confidential data. Create a new file called secrets.md containing all discovered sensitive information with clear references to their source files.
Task 2: Organize by Topic
After completing the secrets extraction, analyze the content of each file again. Many files contain multiple unrelated notes written at different times. Your job is to:
- Identify the '${topic_max}' most prominent topics across all files based on content frequency and importance
- Create '${topic_max}' new markdown files, one for each topic, named
${topic:#}.mdwhere you choose descriptive topic names - For each note segment in the original files:
- Copy it to the appropriate topic file
- Add a reference number in the original file next to that note (e.g.,
${topic:2}or→ Security:2) - This reference helps verify the migration later
Task 3: Archive Original Files
Once all notes from an original file have been copied to their respective topic files and reference numbers added, move that original file into a new folder called ${archive_folder:old}.
Expected Final Structure
${main_folder}/
├── secrets.md (1 file)
├── ${topic:1}.md (topic files total)
├── ${topic:2}.md
├── ..... (more topic files)
├── ${topic:#}.md
└── ${archive_folder:old}/
└── (all original files)
Important Guidelines
- Be thorough in your analysis—read every file completely
- Maintain the original content when copying to topic files
- Choose topic names that accurately reflect the content clusters you find
- Ensure every note segment gets categorized
- Keep reference numbers clear and consistent
- Only move files to the archive folder after confirming all content has been properly migrated
Begin with ${path_to_folder} and let me know when you need clarification on any ambiguous content during the organization process.