Agent Skill

Use this skill when a person needs to look at a directory and is not at the machine holding it — they are on a phone, on another device, or asking you to show them what is in a workspace.

Do not reach for it to read a file yourself. You have Read, ls and grep, and they are faster and complete. affiles exists for the case those cannot serve: a human eye somewhere else.

For flag-level detail ask the command: affiles api --help and affiles ui --help return every legal shape of the call at once. This skill is behavior, decisions and recovery only.

The root is the decision

--root is required and it is the security boundary. Everything under it is reachable by whoever holds the URL.

Excluding is the caller’s judgement, not a built-in list

--exclude hides matches entirely, listings included. There is deliberately no default list of dangerous filenames, because one that misses .env.local.bak teaches people to trust it.

So: before serving a root you have not served before, look at what is in it. If you see credentials, keys, or personal data that the person asking has not asked to share, name them and propose --exclude patterns. Do not serve first and mention it afterwards.

An excluded path answers exactly as a path that never existed. That is deliberate; do not try to give a caller a better error, and do not report to a person that a specific excluded file exists.

Read-only, and it stays that way

There is no write surface. When someone asks to edit, upload, rename or delete through affiles, the answer is that this tool does not do that — then do the edit yourself with your own tools if that is what they wanted. Never stand up a second server to fill the gap.

Which delivery

Recovery