Claude Code Wiki Skill
Appearance
Claude Code Wiki Skill is a technical integration that allows Claude to read and edit this archive directly from the terminal via the MediaWiki API.
Overview
This skill enables natural language commands like "add this to my wiki" or "document this in the archive" to trigger automatic wiki edits without manual browser interaction.
The skill was created on December 7, 2025.
How It Works
Components
| Component | Location | Purpose |
|---|---|---|
| Credentials | ~/.claude-secrets |
API authentication (username/password) |
| Skill Definition | ~/.claude/skills/wiki-archive/SKILL.md |
Instructions for Claude |
| Documentation | ~/.dotfiles/CLAUDE.md |
Reference for future sessions |
Authentication Flow
1. Source credentials from ~/.claude-secrets 2. Request login token from API 3. Authenticate with username/password/token 4. Obtain CSRF token for editing 5. Make edit requests with CSRF token
API Endpoints Used
action=query&meta=tokens&type=login- Get login tokenaction=login- Authenticateaction=query&meta=tokens- Get CSRF tokenaction=edit- Create or modify pagesaction=query&prop=revisions- Read page content
Security
- Credentials stored outside git-tracked dotfiles
- File permissions set to
600(owner read/write only) - Cookies stored in
/tmp/(ephemeral) - No credentials in command history (uses environment variables)
Trigger Phrases
Claude will automatically invoke this skill when detecting:
- "wiki" or "archive"
- "document this"
- "add to second brain"
- "save this knowledge"
- References to archive.ejfox.com
Example Usage
User: "Add a note about the new API endpoint to the wiki" Claude: 1. Authenticates via ~/.claude-secrets 2. Reads existing page (if updating) 3. Formats content in MediaWiki syntax 4. POSTs edit via API 5. Confirms success
Related
- Technical - CLI workflows and scripts
- User:Claude - Claude's contributions
- Main Page - Archive hub