wiki-connect
Installation
SKILL.md
wiki-connect
Connect an existing wiki to the current project via symlink.
Prerequisites
| Condition | Action |
|---|---|
| CWD is not a git repo | Stop with guidance |
CWD already has .wiki |
Show current link, stop |
Workflow
1. Find existing wiki
Before asking the user, auto-detect wikis in the parent directory:
Search in ../ for folders containing CONTRIBUTING.md with wiki structure.
Patterns: ../*wiki*, ../*-wiki, ../wiki
If found, suggest via AskUserQuestion. If not, ask for path or git URL.
If git URL provided, clone first then link.
2. Create symlink
Use OS-appropriate command. Refer to references/symlink-guide.md in wiki-init skill.
- macOS/Linux:
ln -s <absolute-wiki-path> .wiki - Windows (Git Bash):
cmd //c mklink //J ".wiki" "<absolute-wiki-path>"
3. Create project directory
mkdir -p .wiki/projects/$(basename $(git rev-parse --show-toplevel))
4. Set up AGENTS.md
Write or append ## Wiki section to AGENTS.md. If section already exists, skip.
Auto-discover relevant documents for Wiki Focus:
- Read
.wiki/CONTRIBUTING.mdto understand the wiki's directory structure and conventions - Based on the structure described in CONTRIBUTING.md, scan wiki directories for existing
.mdfiles - Filter for documents likely relevant to this project:
- Common documents (PRD, SPEC, ERD, conventions, etc.) in shared directories
- Project-specific documents in the project's own directory
- Present the discovered documents to the user via AskUserQuestion:
- Show each document path with a brief description (inferred from filename or first heading)
- Let the user select which documents to add to Wiki Focus
- Always pre-select
.wiki/CONTRIBUTING.md
- Write the Wiki Focus section with the user's selections
## Wiki
This project uses a shared wiki via `.wiki` symlink.
### Wiki Focus
- .wiki/CONTRIBUTING.md
- (user-selected documents)
5. Agent bridge setup
Same as wiki-init Step 7:
- Claude Code → ensure
@AGENTS.mdin CLAUDE.md - Gemini CLI → add to settings.json
- Others → no bridge needed
6. Post-setup
- Add
.wikito.gitignore - Verify
.wikisymlink is valid - Show the user what documents are available in the wiki
Related skills