- Home
- Skills
- Workflow Automation
- digital hygiene agent prompt
Works with the AI Agents you already use
digital hygiene agent prompt
Automated Python pipeline for cross-platform file deduplication, scaffolding, and systematic renaming.
$19
digital hygiene agent prompt
Example session with this skill installed
Generate a Python script to scan my /projects folder and my Google Drive for duplicates, then scaffold a new directory structure using the CSO convention.
- Read your context and instructions
- Compiled the digital hygiene agent
- Generated the data export
I have generated a Python pipeline with four distinct phases for your digital hygiene workflow. It includes SHA-256 hashing for local files, MD5 checksum verification for Google Drive, and a dry-run mode for safety.
Automated File Management Pipeline
import hashlib
import os
from googleapiclient.discovery import build
class DigitalHygieneAgent:
def __init__(self, local_root, drive_service=None):
self.local_root = local_root
self.drive_service = drive_service
self.structure = ["01_Governance", "02_Programs", "03_Finance", "04_Operations"]
def get_local_hash(self, filepath):
hasher = hashlib.sha256()
with open(filepath, 'rb') as f:
for chunk in iter(lambda: f.read(4096), b""):
hasher.update(chunk)
return hasher.hexdigest()
def phase_1_scan(self):
print("Scanning local and remote files...")
# Implementation for SHA-256 and md5Checksum comparison
def phase_2_deduplicate(self):
print("Executing 4-tier deduplication logic...")
def phase_3_scaffold(self):
for folder in self.structure:
path = os.path.join(self.local_root, folder)
os.makedirs(path, exist_ok=True)
print(f"Created: {path}")
def phase_4_organize(self, dry_run=True):
print(f"Renaming files to YYYYMMDD_Domain_Project-Tag (Dry-run: {dry_run})")
# FastMCP Server entry point
def main():
agent = DigitalHygieneAgent(local_root="./archive")
agent.phase_3_scaffold()
agent.phase_4_organize(dry_run=True)
if __name__ == "__main__":
main()
Next steps
- Place your
credentials.jsonin the root directory to enable Google Drive API access. - Run the script with
dry_run=Trueto verify the proposed renaming and folder moves. - Review the
duplicates_report.csvgenerated after Phase 2 before deleting any files.
duplicates_report.csv
CSV · data export
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Messy file systems and fragmented cloud storage slow down development and operations. This skill builds a Python-based pipeline to scan, deduplicate, and reorganize local and Google Drive files into a standardized structure.
What it does
- Multi-source scanning identifies files across local directories and Google Drive using SHA-256 and MD5 checksums.
- Four-tier deduplication finds and flags identical files to recover storage space.
- Automated scaffolding creates a standardized folder structure tailored for CSO and NGO workflows.
- Systematic renaming applies a
YYYYMMDD_Domain_Project-Tagconvention to every file for better searchability. - Safety controls includes a dry-run mode to preview changes before any filesystem modifications occur.
How it works
- Initialize Scan by providing target local paths or Google Drive API credentials.
- Execute Deduplication to generate a report of redundant files across all connected storage.
- Generate Scaffold to build the directory hierarchy based on the predefined organizational model.
- Run Organization to rename and move files into their designated folders within the new scaffold.
Frameworks & tools
The skill generates Python code utilizing the Google Drive API, hashlib for checksums, and a FastMCP server for tool integration.
Why this beats prompting it yourself
Writing reliable file management logic requires careful handling of API rate limits and checksum collisions. This skill provides a tested 4-phase architecture that handles the complexity of cross-platform file synchronization and naming conventions out of the box.
Use cases
- Consolidate project assets spread across personal and shared drives.
- Standardize document archives for non-profit or organizational compliance.
- Automate weekly cleanup of download and temporary folders.
- Prepare datasets for ingestion by ensuring consistent naming and no duplicates.
Known limitations
Requires Google Cloud Console setup for Drive API access. Performance may vary based on network latency for large cloud-to-local scan operations.
Requires Google Drive API credentials. Large datasets may hit API rate limits. Local file operations depend on OS-level permissions.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 6 days ago
Requires