From knowledge-gardener
Use when an existing MOC and an existing child note need to be linked (bullet under the right MOC sub-heading, optionally a reciprocal back-link from the child). Atomic graph-edge insertion only — no surrounding prose, no section creation. Pairs with garden-water (content edits) and garden-plant (new notes).
How this skill is triggered — by the user, by Claude, or both
Slash command
/knowledge-gardener:garden-connectThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Add a graph edge between a **MOC** and one or more **child notes**. Bi-directional by default. The vault's README still owns format conventions (link syntax, MOC convention); this skill only owns the decision to insert bare link bullets — at most one per child file, one per child in the MOC's chosen section.
Add a graph edge between a MOC and one or more child notes. Bi-directional by default. The vault's README still owns format conventions (link syntax, MOC convention); this skill only owns the decision to insert bare link bullets — at most one per child file, one per child in the MOC's chosen section.
garden-survey surfaced an orphan child note that should be indexed under its MOC → propose a connectgarden-plant just created a child note that belongs under an existing MOC → propose a connect as the follow-upgarden-watergarden-watergarden-water to add the section, then run this skillgarden-water (no dedicated MOC ↔ child link-removal skill exists; use garden-water to drop the bullet, and garden-prune only when the whole note should go)garden-plantgarden-surveyFollow Pre-flight Setup in using-knowledge-gardener to resolve $KG_VAULT and load vault conventions.
From the conventions, extract for this skill: link syntax (e.g. standard markdown [text](path.md) vs [[wikilink]]), MOC convention (filename suffix, frontmatter tag, or folder), tag namespace, lint rules, commit conventions.
garden-plant for the missing one.garden-survey for candidates and ask which to use. Never silently pick.Confirm the named "MOC" is actually a MOC per the vault README's convention (which may use a filename suffix, a frontmatter tag, a dedicated folder, or any combination). If the file does not match the convention, stop and ask — do not treat an arbitrary note as a MOC, because then the operation is just a note-to-note link and belongs in garden-water.
Default: bi-directional. Add the link on both sides in the same commit.
Fall back to uni-directional (MOC → child only) when any of:
garden-water as a follow-up to add the section if the user wants symmetry later.Never create a Related section as part of this skill — that is garden-water's job.
On the MOC side:
## and ### sub-headings.tag/ssh; suggest inserting under ## SSH 設定").On the child side (bi-directional only):
## 関連, ## 🔗 Related Links, ## Related, ## MOC, ## MOCs. Match by the vault's documented convention if any.Follow Common: Read Every Target With the Read Tool. Run Read on every file (MOC + every touched child) before the Edit step.
Compose only the new bullet(s). Each child file receives one bullet; the MOC receives one bullet per child in the batch. The bullet shape should:
- [Display Text](path/to/file.md) vs * …).Skip any side where the link already exists. Report skipped sides in the proposal so the user knows the resulting state.
Follow Common: Propose, Don't Commit. For this skill, show:
$KG_VAULT-relative path).Trigger phrases that count as implicit approval: "connect X to Y" / "MOC に X を追加して".
Use the Edit tool (not Write — Edit preserves the rest of each file byte-for-byte). For each file, provide a unique old_string anchor. If uniqueness is fragile, include enough surrounding context to disambiguate (typically the heading line of the target section, or the adjacent bullet).
Follow Common: Lint, Commit, Push. Commit subject verb for this skill: connect:. One commit covers the whole logical link operation, even when it spans the MOC + multiple children. See examples below.
| Operation | Commit subject |
|---|---|
| Uni single (MOC → child) | connect: ssh-MOC → ssh-key-management |
| Bi single | connect: ssh-port-forwarding ↔ ssh-MOC |
| Batch into MOC (uni) | connect: 4 ssh notes → ssh-MOC |
| Bi batch | connect: 4 ssh notes ↔ ssh-MOC |
Cap at ~60 chars; put detail in the commit body when needed.
garden-plant if the MOC should exist, or correct the target.garden-plant.garden-water for adding the section as a separate follow-up.garden-water and let it take ownership of the whole edit.garden-survey finding an orphan, or from garden-plant proposing a follow-up. Use that to write a meaningful commit subject and rationale.Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub kohei-wada/knowledge-gardener --plugin knowledge-gardener