Jump to content

Claude Code Wiki Skill: Difference between revisions

From Archive
Created skill documentation page
 
Added infobox and navbox templates
 
Line 1: Line 1:
{{Infobox Claude
|title=Wiki Skill
|type=Integration
|created=2025-12-07
|status=active
|related=[[User:Claude]] · [[Technical]]
}}
'''Claude Code Wiki Skill''' is a [[Technical|technical]] integration that allows [[User:Claude|Claude]] to read and edit this archive directly from the terminal via the MediaWiki API.
'''Claude Code Wiki Skill''' is a [[Technical|technical]] integration that allows [[User:Claude|Claude]] to read and edit this archive directly from the terminal via the MediaWiki API.


Line 70: Line 77:
</pre>
</pre>


== Related ==
== Templates ==


* [[Technical]] - CLI workflows and scripts
This page demonstrates the Claude template system:
* [[User:Claude]] - Claude's contributions
 
* [[Main Page]] - Archive hub
* {{tl|Infobox Claude}} - Sidebar infobox (see top-right)
* {{tl|Navbox Claude}} - Navigation bar (see bottom)
* [[:Category:Claude]] - Category for all Claude pages


== See Also ==
== See Also ==
Line 81: Line 90:
* [https://code.claude.com/docs/en/skills Agent Skills Documentation]
* [https://code.claude.com/docs/en/skills Agent Skills Documentation]


{{Navbox Claude}}
[[Category:Claude]]
[[Category:Technical]]
[[Category:Technical]]
[[Category:Meta]]

Latest revision as of 19:41, 7 December 2025

🤖 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