Inspiration

I once lost an important photo while cleaning up my phone. I had thousands of pictures and couldn't check them all, so one went that I can never get back.

Families and home offices keep years of photos and documents on a NAS and assume it's all backed up. Often it isn't: a folder sits outside the backup job, or the only scan of a passport lives in a downloads folder. Nobody finds out until a drive fails.

What it does

Last Copy answers one question: which of my irreplaceable files exist only once, and can you protect them?

  1. Find. It checks the folders you choose against your backup location and finds every file with no identical copy.
  2. Rank. It looks at what's inside those files. Family photos, pictures of children and pets, and identity, legal and medical documents come before screenshots, manuals and installers.
  3. Protect. You choose what to protect and approve the copies. Last Copy copies them to the backup location, then compares digital fingerprints (SHA-256) to prove each copy is exactly the same as the original.

It saves a short report and a protection record on the NAS, so the next check can look at only what's new. It never deletes, moves or overwrites a file, and nothing leaves the NAS.

How I built it

Last Copy is a Markdown Skill built with the UGREEN Skill Developer Package (uliya-skill-kit 0.7.3), following the Uliya Skill Development Standard. It coordinates four NAS agents:

  • file-agent: finds files, checks for copies, makes the approved copies and checks their fingerprints.
  • photo-agent: understands what's in photos using the NAS's own local models.
  • document-agent: works out what kind of document a file is.
  • knowledge-agent: saves the report and the protection record.

The Skill only hands work to these agents and never calls tools directly. It handles every state an agent can return: completed, failed, cancelled, waiting for the user and waiting for approval.

Next to SKILL.md are four references: the ranking rules, the report format, the validation plan and the disclosures. The Skill passes the kit's static checker with 0 errors and 0 warnings.

I used Claude Code as an AI assistant for research into UGREEN's rules and capability catalogue, and to write the Skill files under my direction. This is listed in the disclosures.

Challenges I ran into

  • No NAS in Round 1. I designed against UGREEN's public capability catalogue and used only actions it lists. Some behaviour can only be confirmed on a real NAS.
  • What counts as a copy. A file with the same name isn't a backup if its contents are different, so Last Copy compares fingerprints, not names.
  • Ranking without guessing. If the NAS Photos index isn't ready, a photo gets a lower priority instead of an invented label.
  • Keeping files safe. Every copy needs approval, and the Skill won't accept a folder as its own backup.

What I learned

Most of a good Skill is about what the agents are allowed to do and what happens when something goes wrong, not only the happy path. And the files people care about most are often the ones nobody remembers to back up.

What's next for Last Copy

  • Test it on a real UGREEN AI NAS with sample photos and documents.
  • Check what happens when the backup drive is disconnected.
  • Scheduled checks, once UGOS supports them.

Built With

  • document-agent
  • file-agent
  • knowledge-agent
  • markdown
  • photo-agent
  • ugos
  • ugreen-ai-nas
  • uliya-skill-kit
Share this project:

Updates

Submission history