graphify icon indicating copy to clipboard operation
graphify copied to clipboard

Docs/skills advertise `/graphify <path> --obsidian`, but packaged shell CLI is subcommand-only and `to_canvas()` hardcodes `graphify/obsidian/`

Open rolldav opened this issue 7 months ago • 1 comments

Summary

There is a mismatch between the upstream docs/skills surface and the packaged shell CLI surface for Graphify.

The docs and assistant skills advertise slash-style usage such as:

  • /graphify ./raw
  • /graphify ./raw --obsidian
  • /graphify ./raw --obsidian --obsidian-dir ~/vaults/my-project

But the packaged shell CLI installed from PyPI (graphifyy==0.4.29) is a subcommand-only CLI:

  • graphify <command>
  • commands include query, path, explain, add, watch, update, cluster-only, etc.
  • there is no positional full-pipeline mode
  • there are no shell CLI flags --obsidian or --obsidian-dir

Environment

  • macOS
  • installed via uv tool install graphifyy
  • package version: 0.4.29

Repro

graphify --help
graphify ./raw --obsidian

Actual

error: unknown command './raw'
Run 'graphify --help' for usage.

Evidence

  • graphify --help shows a subcommand parser only
  • packaged graphify.export includes:
    • to_obsidian()
    • to_canvas()
  • so the Obsidian export functionality exists in the package, but is not routed through the shell CLI parser
  • graphify add ... itself tells the user to run /graphify --update in your AI assistant, which suggests the upstream project already treats /graphify ... as a separate assistant-skill surface

Additional issue

graphify.export.to_canvas() hardcodes note paths as:

graphify/obsidian/{filename}.md

This breaks custom output directories and makes the generated graph.canvas inconsistent with the documented --obsidian-dir concept.

Expected

One of these should happen:

  1. Clarify docs everywhere that /graphify ... is an assistant skill surface, not the packaged shell CLI.
  2. Or add a real shell full-pipeline entrypoint/subcommand that supports:
    • positional <path>
    • --obsidian
    • --obsidian-dir
  3. Fix to_canvas() so file paths derive from the actual output directory instead of hardcoding graphify/obsidian/.

Why this matters

The current state is misleading:

  • users see documented /graphify ./raw --obsidian
  • they try the shell binary graphify ./raw --obsidian
  • the installed package rejects it as an unknown command

That makes it look like a broken local install even when the install is healthy and the real issue is a published surface mismatch.

rolldav avatar Apr 22 '26 21:04 rolldav

Good catch on both — fixing both.

1. CLI vs skill surface confusion

You're right that this is confusing. /graphify ./raw --obsidian is the assistant skill syntax — it's interpreted by Claude Code / Codex / OpenCode / Cursor etc., not by the shell binary. The AI reads the skill file and executes the steps. The shell binary (graphify) is the underlying library the skill calls under the hood.

The docs already say things like "run /graphify --update in your AI assistant" — but the top-level usage block doesn't make this distinction clear enough. Will add a clarifying note to the README usage section.

2. to_canvas() hardcoded path — fixed in v0.4.30

The graphify/obsidian/{fname}.md path was hardcoded and wrong. In Obsidian canvas format, file paths are relative to the vault root. Since the vault is opened as graphify-out/obsidian/, the correct path is just {fname}.md. Fixed — canvas files will now correctly link to their notes regardless of where the vault lives.

safishamsi avatar Apr 22 '26 22:04 safishamsi