/mcp-client-skills:growi-smart-savefrom mcp-client-skills
Saves content to GROWI wiki with intelligent path suggestions. Supports both fast server-based and slower local-grep destination discovery.
Ships in mcp-client-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Save content to GROWI by finding the best destination, confirming with the user, and creating the page.
Produce a small set of candidate destination directories for the document. There are two ways to get them. The default is the server's suggest-path tool (Step 1a). The Vault local-grep mode (Step 1b) is strictly opt-in: it is noticeably slower (typically 1–2 minutes of grepping and reading) but more accurate, so use it only when the user asked for it.
Step 1a — Server suggest-path (default). Call the suggest-path tool.
Step 1b — Vault local-grep discovery (opt-in). Find the candidates by grepping a local clone of the wiki yourself. Use this instead of Step 1a only when both hold:
The user asked for it. They explicitly want higher-accuracy placement and accept that it takes longer — e.g. "use the Vault", "take your time and find the right place", "accuracy over speed". Do not switch to this mode on your own judgement; the server path stays the default even when a Vault clone is available.
A GROWI Vault clone is reachable. Get or refresh the clone with the MCP server's own
vault-sync command:
npx @growi/mcp-server vault-sync --app-name <name>
One command clones on first use and refreshes afterwards, picks the cache directory itself, and
resolves the instance's URL and credential from the same configuration the MCP server uses — so
you never handle a token. It prints the app name, the base URL and the clone directory; check
that the base URL is the instance this save is for. A non-zero exit means Vault is not usable:
tell the user briefly and use Step 1a instead. See references/vault-clone-access.md for
prerequisites, other ways to invoke it, and what the exit codes mean. The first clone downloads
the whole wiki, so on a large wiki it dominates the wait.
Before starting, check that the command can run at all (node --version — it needs Node.js, the
same as the MCP server) and only then tell the user this takes a minute or two, so a missing
prerequisite does not cost them the wait. Then discover candidate shelves by grepping the clone —
see references/vault-grep-discovery.md (the method: grep the document's concrete tokens, follow
where hits cluster, confirm by reading sibling pages, converge on 1–3 parent directories). Judge
content fit, not path-string similarity. This mode is worth the wait because you are a stronger
reasoner than the server's path agent, and a real grep over raw Markdown hits the exact tokens
(slugs, dates, IDs) that decide the right shelf.
The output is 1–3 candidate directory paths (each ending in /), the same shape Step 1a returns.
Whichever path produced the candidates, the rest of the workflow is identical.
Show the candidate destinations from Step 1. Always add a "specify path manually" option — this is your responsibility, not part of any tool response.
label and description — show them as-is.description
plays for server results. Lead with the shelf you judged best.Example presentation:
1. Save as memo — Save to your personal memo area
2. Save near related pages — Related pages like "How to use React Hooks" exist nearby
3. Specify path manually
After the user selects a destination:
仕様-Specification-) or a consistent pattern, match it rather than
inventing a content-derived title. The destination's existing names are the strongest hint for
what this page should be called./Tech Notes/React/ + Jotai vs Redux → /Tech Notes/React/Jotai vs ReduxThe destination is always a directory (ends with /). You are responsible for proposing the page
name portion. (When the destination came from Step 1b, make sure the directory is the decoded
GROWI page path, not the on-disk percent-encoded filename — see references/vault-grep-discovery.md.)
Before saving, confirm the page's visibility with the user. The grant value at a directory is an
upper limit — a constraint, not a recommendation — and the user must never be allowed to pick a
visibility that exceeds it. How you know the limit depends on which Step 1 path produced the
candidate:
When the candidate came from Step 1a (server). The suggestion carries a grant upper limit.
Present up to 3 options based on it:
grant value as-is| Grant upper limit | Options to show |
|---|---|
| 1 (Public) | All three: Inherit from parent / Only me / Anyone with the link |
| 2 (Anyone-with-link) | All three: Inherit from parent / Only me / Anyone with the link |
| 5 (Group-only) | Two only: Inherit from parent / Only me (omit "Anyone with the link" — it would exceed the upper limit) |
| 4 (Only-me) | No confirmation needed — Only-me is the only option |
How should the page visibility be set?
1. Inherit from parent page (Public)
2. Only me
3. Anyone with the link
Do NOT silently default to the upper limit. Always ask unless the only option is Only-me.
When the candidate came from Step 1b (Vault grep). You discovered the path from the clone, so you do not have the grant upper limit in hand. The rule above still applies: inheriting from the parent is saving at the upper limit, so choosing it for the user would be exactly the silent default the rule forbids — a personal note filed under a Public shelf would become a public page without anyone being asked. Ask the same question, with the inherit option described without a level (you don't know it yet):
How should the page visibility be set?
1. Inherit from parent page (same visibility as the destination)
2. Only me
3. Anyone with the link
grant when saving. GROWI applies the closest ancestor's visibility, which
by construction cannot exceed the limit.getPage → getPageInfo first to read the limit, then use the Step 1a table above.Use the page creation tool to save:
When candidates come from the suggest-path tool, each suggestion contains:
| Field | Description |
|---|---|
type | memo (personal memo area), search (AI-recommended based on related pages), or category (top-level category match) |
path | Directory path (always ends with /) |
label | Short display label for the option |
description | Why this destination is recommended — show this to the user |
grant | Maximum permission level allowed at this path |
Vault-grep candidates (Step 1b) are just directory paths you discovered; you supply the
reason-to-show yourself (Step 2), and you ask about visibility without knowing the limit (Step 4).
The grant value is the upper limit of what can be set at that directory — a constraint, not a recommendation.
| Grant | Meaning |
|---|---|
| 1 | Public |
| 2 | Anyone-with-the-link |
| 5 | Group-only |
| 4 | Only-me |
When saving, the selected grant must not exceed this limit. See Step 4 for how to present options to the user.
The discovery method degrades gracefully — the user can always save, whatever is available:
git, no GROWI configuration reachable, clone/fetch error — any
non-zero exit from vault-sync) → tell the user briefly that Vault is not usable and use the
server suggest-path tool (Step 1a) instead. Do not block the save.memo type, or none fit the document) → present what you
have plus the manual input option; don't force a poor pick. If a Vault clone is reachable, you
may additionally offer — once — to re-discover with the slower, more accurate Vault grep mode
(Step 1b); run it only if the user accepts.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
npx claudepluginhub growilabs/growi-mcp-server --plugin mcp-client-skillsOther plugins' skills for the same job