agentleFS
marslomarslo/skills/share/SKILL.md

share

Skill0 starsChanged 2 months agoMITView on GitHub

Save, back up, or share the current project on Cursor — creates a repo (a saved, versioned copy that isn't public) even for users who have never used git, handling all setup automatically. Use when the user asks to save, back up, publish, or share their project on Cursor, or how to not lose it.

  • Reads credentials
  • Commits and pushes

12 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No git at all → fine; you will set it up silently in step 3.

    line 29
  2. Distinctive:

    Default to a repo named after the project folder (lowercase, dashes).

    line 41
  3. Very specific:

    Before staging anything, list what would be committed (git status --porcelain or git ls-files -o --exclude-standard) and make sure …

    line 45
  4. Very specific:

    If origin is missing, unauthenticated, or outdated, first invoke the origin skill (synced at ~/.cursor/skills-cursor/origin/SKILL.md) — …

    line 56
  5. Very specific:

    If origin repo create fails because the account has no namespace or no access, nothing is lost — follow the origin skill's recovery table …

    line 67
  6. Distinctive:

    Never create a repo when the project already has a remote.

    line 90
  7. Distinctive:

    Never delete repos, and never change existing remotes.

    line 91
  8. Distinctive:

    Never promise public visibility or link-sharing.

    line 92
  9. Distinctive:

    No git jargon in user-facing text.

    line 94

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “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

share — save this project somewhere safe

The user may not know what git, a repo, or a remote is. Keep every message in plain language: the project gets an online copy that isn't public which they can restore, sync, or share later. Say "save"/"back up", not "push to remote". (A git-fluent user gets the same flow without the framing — this is the new-repo skill's flow in novice vocabulary.)

1. Look before you speak

git rev-parse --is-inside-work-tree 2>/dev/null
git remote -v
  • A remote already exists → the project is already backed up there. Offer to save the latest changes to it (commit + push) and stop. Do not create a second copy or touch the existing remote.
  • No git at all → fine; you will set it up silently in step 3.

2. One-line explanation

Tell the user, in one line, what you are about to do:

"I'll put this project in a repo — a saved, versioned copy you can restore or share later. It won't be public."

This skill saves the project in a Cursor-hosted repo. If the user explicitly asks for a different host, follow that request without using this skill.

Default to a repo named after the project folder (lowercase, dashes).

3. Set up and save

Before staging anything, list what would be committed (git status --porcelain or git ls-files -o --exclude-standard) and make sure .gitignore covers dependency directories and secrets (.env*, key and credential files). If anything that looks like a secret would be staged, ask before including it — never stage-and-push blind.

git init -b main   # only if not already a repo
git add -A && git commit -m "Initial commit"   # only if nothing committed

If origin is missing, unauthenticated, or outdated, first invoke the origin skill (synced at ~/.cursor/skills-cursor/origin/SKILL.md) — tell the user "setting up Cursor's repo tool first; you'll see each step" (the sign-in opens their browser; that part is theirs). Then:

origin repo create <name>
git remote add origin <clone URL printed by create>
git push -u origin main

If origin repo create fails because the account has no namespace or no access, nothing is lost — follow the origin skill's recovery table (in plain language: "your team's admin has to switch this on").

4. Close the loop in their vocabulary

Report where it is saved — https://cursor.com/codebase/<org>/<name> (from the create output) — and that it is not public. If the account is part of a team, say plainly that teammates can also see repos in the team's space; access is managed from the repo page. End with: they can ask you to save again anytime after making changes.

If the goal was to show someone

A saved copy is never visible to the general public. Who can already see it depends on the account: on a personal account it is just the user; on a team, teammates in the team's space can see it too. For anyone beyond that, point them at the repo page (the URL above) to manage who has access — this skill cannot change that, so never promise the link alone will work for others.

Hard limits

  • Never create a repo when the project already has a remote.
  • Never delete repos, and never change existing remotes.
  • Never promise public visibility or link-sharing; access is managed from the repo page.
  • No git jargon in user-facing text.

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.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.