agentleFS
talesofaitalesofai/cohub/skills/public-files/SKILL.md

public-files

Skill571 starsChanged 3 months agoApache-2.0View on GitHub

Share static files (PDFs, images, zips, build artifacts) as direct, permanent CDN links.

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use --json for a manifest of every uploaded file (path, size, MIME type) plus the Space URL prefix.

    line 26
  2. Distinctive:

    Never upload secrets, tokens, private logs, or internal-only files.

    line 50
  3. Distinctive:

    Use relative asset paths in static sites.

    line 51
  4. Very specific:

    Use --overwrite only when replacing the existing public path is intentional.

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Public Files

Commands target the current Space by default; add -s <spaceId> to use another.

Publish

Upload one file or one directory:

cohub public upload <source> [destination]

Examples:

cohub public upload ./report.pdf
cohub public upload ./report.pdf reports/latest.pdf
cohub public upload ./dist demo

Use --json for a manifest of every uploaded file (path, size, MIME type) plus the Space URL prefix.

Existing files are never replaced implicitly. When replacement is intended, use:

cohub public upload <source> [destination] --overwrite

Inspect

cohub public ls [path]
cohub public ls -r [path]
cohub public url <path>

Behavior notes

  • Uploads are permanent: there is no delete command yet. Anything uploaded stays publicly accessible.
  • A URL prefix is not a browsable directory; always link to a specific file.
  • The CDN caches content for ~5 minutes. After --overwrite, the old version may remain visible briefly; query strings do not bypass the cache.

Safety

  • Never upload secrets, tokens, private logs, or internal-only files.
  • Use relative asset paths in static sites.
  • Use --overwrite only when replacing the existing public path is intentional.

Finish

Return the direct public URL when the command provides one.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.