agentleFS
tboome33tboome33/obsidian-mcp-router/skills/manage-move/SKILL.md

manage-move

Skill1 starsChanged 7 months agoApache-2.0View on GitHub

Move or rename a file. The router does GET source → PUT destination → DELETE source (Local REST API has no native move). Reports if the source-delete step fails so you can clean up.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Call the obsidian-router move_file MCP tool with arguments parsed from $ARGUMENTS.

    line 16
  2. Very specific:

    If the DELETE step fails after the PUT, the file is duplicated.

    line 40
  3. Very specific:

    If the call fails, do NOT silently redo the move with shell mv / FS tools on the vault's real path:

    line 44
  4. Very specific:

    After the move, report from, to, overwrite, moved, sourceDeleted (and any warning).

    line 52

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

manage-move

Call the obsidian-router move_file MCP tool with arguments parsed from $ARGUMENTS.

Arguments

Required:

  • from — source path relative to vault root.
  • to — destination path relative to vault root.

Optional:

  • vault — omit for default.
  • overwrite — if true, replace an existing destination. Default false (refuses).
  • ifMatch — a contentSha256 from a prior get_file of the SOURCE. Refuses the move with a 409 conflict if the source changed since you read it.

Argument parsing from $ARGUMENTS

  • <from> <to> — most natural form, two paths separated by space
  • from=X to=Y
  • --overwrite or overwrite=true → set the flag
  • ifMatch=<hash> → set ifMatch (checked against the source)

Implementation note — partial-failure mode

The Local REST API plugin has no native move endpoint. The router falls back to GET source → PUT destination → DELETE source.

If the DELETE step fails after the PUT, the file is duplicated. The tool returns sourceDeleted: false and a warning field — surface this clearly so the user can clean up manually if needed.

On failure — remediate, NEVER fall back to filesystem operations

If the call fails, do NOT silently redo the move with shell mv / FS tools on the vault's real path:

  • Connection error (ECONNREFUSED, timeout) → vault closed; list_vaults, then ask the user to open it via the openUri link and wait.
  • Validation / API error (e.g. destination exists without overwrite) → resolve with the user or adjust the arguments — still through the router.

Rationale + message template: the default-vault-health-check convention (canonical source).

Output

After the move, report from, to, overwrite, moved, sourceDeleted (and any warning).

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.