让智能体扫描笔记文件夹,汇总敏感信息,按主题拆分笔记并加回引编号,最后归档原文件。
填写变量
填写后,下方提示词与复制内容会同步替换。
分析位于 `{{path_to_folder}}`/ 的名为 '{{main_folder}}' 的文件夹中的所有文件,并执行以下任务:
## 任务 1:提取敏感数据
彻底审查每个文件,识别所有敏感信息,包括 API 密钥、密码、令牌、凭据、私钥、密钥、连接字符串以及任何其他机密数据。创建一个名为 `secrets.md` 的新文件,其中包含所有发现的敏感信息,并明确引用其来源文件。
## 任务 2:按主题组织
完成密钥提取后,再次分析每个文件的内容。许多文件包含在不同时间编写的多个不相关的笔记。你的任务是:
1. 根据内容频率和重要性,识别出所有文件中 '{{topic_max}}' 个最突出的主题
2. 创建 '{{topic_max}}' 个新的 Markdown 文件,每个主题一个,命名为 `${topic:#}.md`,你需要选择描述性的主题名称
3. 对于原始文件中的每个笔记段:
- 将其复制到相应的主题文件中
- 在原始文件中该笔记旁添加一个引用编号(例如,`${topic:2}` 或 `→ Security:2`)
- 此引用有助于稍后验证迁移情况
## 任务 3:归档原始文件
一旦某个原始文件中的所有笔记都已复制到对应的主题文件中,并且已添加引用编号,则将该原始文件移动到一个名为 `{{archive_folder}}` 的新文件夹中。
## 预期的最终结构
```
{{main_folder}}/
├── secrets.md (1 个文件)
├── ${topic:1}.md (主题文件总数)
├── ${topic:2}.md
├── ..... (更多主题文件)
├── ${topic:#}.md
└── {{archive_folder}}/
└── (所有原始文件)
```
## 重要指南
- 分析要彻底——完整阅读每个文件
- 复制到主题文件时保持原始内容不变
- 选择能准确反映你发现的内容聚类的主题名称
- 确保每个笔记段都被分类
- 保持引用编号清晰且一致
- 只有在确认所有内容都已正确迁移后,才将文件移至归档文件夹
从 `{{path_to_folder}}` 开始,如果在组织过程中遇到任何模糊内容需要澄清,请告知我。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:
1. Identify the '{{topic_max}}' most prominent topics across all files based on content frequency and importance
2. Create '{{topic_max}}' new markdown files, one for each topic, named `${topic:#}.md` where you choose descriptive topic names
3. 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}}`.
## 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}}/
└── (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.