peterhajas/dotfiles/tw

Claude Code and agent skill by peterhajas/dotfiles

Trust tier 2
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Command-line tool for managing TiddlyWiki files. Use when working with TiddlyWiki (.html) files, tiddlers, or when the user mentions TiddlyWiki operations.

Install

npx vskill@latest install peterhajas/dotfiles/tw

SKILL.md

TiddlyWiki CLI (tw)

Quick Reference

tw is a Python-based CLI for managing single-file TiddlyWiki wikis.

Location: ~/dotfiles/tiddlywiki/bin/tw

Basic syntax:

bash
tw [<wiki_path>] <command> [args]

Common Commands

Reading/Listing
  • ls - List all tiddlers
  • cat <tiddler> - Display tiddler contents (cat format: title, tags, other fields, blank line, text)
  • json <tiddler> [...] - Output tiddler(s) as JSON (use --all for all tiddlers)
  • get <tiddler> <field> - Get a specific field value
  • filter <expression> - Evaluate TiddlyWiki filter expression
Writing/Editing
  • init <dest_path> - Create a new empty wiki
  • touch <tiddler> [text] - Create or update a tiddler
  • set <tiddler> <field> <val> - Set a field value
  • edit <tiddler> - Edit tiddler in $EDITOR (opens interactive editor)
  • append <tiddler> [text] - Append text to tiddler
  • insert <json> - Insert/replace tiddler(s) from JSON
  • replace <content> - Insert/replace from cat format (reads from stdin)
  • rm <tiddler> - Remove a tiddler
Serving
  • serve [--host HOST] [--port PORT] [--readonly] - Serve wiki with live reload
  • webdav [--host HOST] [--port PORT] [--readonly] - Serve tiddlers via WebDAV
Utilities
  • detect - Detect wiki format (modern or legacy)
  • filetype-map - Output MIME type to filetype mapping as JSON
  • mimetype <filename> - Get MIME type for a file extension
  • install_plugin - Install live reload plugin

Important Notes

  1. Wiki path: Always specify the wiki path as the first argument
  2. Cat format: Output format is title: X\ntags: Y\nfield: Z\n\ntext content
  3. Interactive commands: edit opens $EDITOR - don't use in automated scripts, use replace instead
  4. Filter expressions: Supports TiddlyWiki filter syntax (see tw_filter_progress.md for coverage)
  5. Live reload: Use install_plugin once, then serve to get auto-refresh in browser

Examples

bash
# List all tiddlers in a wiki
tw ~/wiki.html ls
# Create a new tiddler
tw ~/wiki.html touch "MyTiddler" "This is the content"
# Get a field value
tw ~/wiki.html get "MyTiddler" tags
# Set a field
tw ~/wiki.html set "MyTiddler" tags "foo bar"
# Pipe content to replace (non-interactive)
echo -e "title: Test\ntags: demo\n\nContent here" | tw ~/wiki.html replace
# Export all tiddlers as JSON
tw ~/wiki.html json --all > backup.json
# Filter tiddlers (find all tagged "journal")
tw ~/wiki.html filter "[tag[journal]]"
# Serve wiki with live reload on port 8080
tw ~/wiki.html serve --port 8080

Integration with Other Tools

  • Pipe JSON to/from jq for processing
  • Use with nvim via $EDITOR for editing
  • Combine with shell scripts for batch operations
  • WebDAV server allows mounting as filesystem

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed
  • semgrepFailed, 60 of 100
  • njsscanPassed, 100 of 100
  • trufflehogFailed, 75 of 100

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
79
Repository forks
6
7-day trend score
22

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 Mar 2026, 7 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/peterhajas/dotfiles/tw/badge)](https://verified-skill.com/skills/peterhajas/dotfiles/tw)

Something wrong with this skill or its page? Tell us.