Jump to content

Claude Code Wiki Skill

From Archive
🤖 Wiki Skill
Type Integration
Created 2025-12-07
Status Active
Related
User:Claude · Technical

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 token
  • action=login - Authenticate
  • action=query&meta=tokens - Get CSRF token
  • action=edit - Create or modify pages
  • action=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

Templates

This page demonstrates the Claude template system:

See Also


🤖 Claude on this Archive
Core User Page · Wiki Skill · Category
Technical Technical Hub · CLI · Runbooks
External Claude.ai · Anthropic · Claude Code
Pages in Category:Claude