agentleFS
iamtouchskyeriamtouchskyer/memex/skills/memex-sync/SKILL.md

memex-sync

Skill142 starsChanged 3 months agoMITView on GitHub

Sync Zettelkasten cards across devices via git.

  • Commits and pushes

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 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.

  • 3

    Very specific

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

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

    Run memex sync --status to see if sync is already configured.

    line 38
  2. Distinctive:

    If sync is not configured:

    line 42
  3. Distinctive:

    Ask the user if they have a git repo URL for their cards

    line 43
  4. Very specific:

    If no: memex sync --init (auto-creates a private memex-cards repo on GitHub via gh CLI)

    line 45
  5. Very specific:

    If already configured, run memex sync to push and pull changes.

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Memory Sync

Sync your Zettelkasten cards across devices using git.

Tools Available

  • memex sync --init <url> — initialize sync with a git remote
  • memex sync --init — auto-create a private GitHub repo via gh CLI
  • memex sync — pull remote changes, commit local changes, push
  • memex sync --status — show sync configuration and last sync time
  • memex sync on|off — enable/disable auto-sync after every write/archive

Process

digraph sync {
    "User invokes /memex-sync" -> "memex sync --status";
    "memex sync --status" -> "Configured?" [shape=diamond];
    "Configured?" -> "memex sync" [label="yes"];
    "Configured?" -> "Ask user for repo URL" [label="no"];
    "Ask user for repo URL" -> "User provides URL?" [shape=diamond];
    "User provides URL?" -> "memex sync --init <url>" [label="yes"];
    "User provides URL?" -> "memex sync --init (auto-create via gh)" [label="no, use gh"];
    "memex sync --init <url>" -> "Report success";
    "memex sync --init (auto-create via gh)" -> "Report success";
    "memex sync" -> "Report result";
}

Step 1: Check status

Run memex sync --status to see if sync is already configured.

Step 2: Initialize (if needed)

If sync is not configured:

  1. Ask the user if they have a git repo URL for their cards
  2. If yes: memex sync --init <url>
  3. If no: memex sync --init (auto-creates a private memex-cards repo on GitHub via gh CLI)

Step 3: Sync

If already configured, run memex sync to push and pull changes.

Step 4: Report

Tell the user the result. If sync failed, show the error message.

Rules

  • Never force-push — memex sync uses git fetch + git merge then git push
  • On conflict — report the error and tell the user to resolve manually in ~/.memex
  • Auto-sync — only suggest memex sync on if the user asks about it; don't enable by default

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.