Docs/skills advertise `/graphify <path> --obsidian`, but packaged shell CLI is subcommand-only and `to_canvas()` hardcodes `graphify/obsidian/`
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
--obsidianor--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 --helpshows a subcommand parser only- packaged
graphify.exportincludes: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:
- Clarify docs everywhere that
/graphify ...is an assistant skill surface, not the packaged shell CLI. - Or add a real shell full-pipeline entrypoint/subcommand that supports:
- positional
<path> --obsidian--obsidian-dir
- positional
- Fix
to_canvas()so file paths derive from the actual output directory instead of hardcodinggraphify/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.
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.