Skip to content
Skill

tw

by peterhajas

AI Summary

A command-line tool for managing TiddlyWiki files and tiddlers directly from the terminal. Useful for developers and power users who work with TiddlyWiki wikis and want CLI-based automation and batch operations.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "tw" skill in my project.

Please run this command in my terminal:
# Install skill into your project
mkdir -p .claude/skills/tw && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/tw/SKILL.md "https://raw.githubusercontent.com/peterhajas/dotfiles/master/claude/.claude/skills/tw/SKILL.md"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

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

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

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] `

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

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1mo ago
Active
AdoptionUnder 100 stars
79 ★ · Niche
DocsREADME + description
Well-documented

GitHub Signals

Stars79
Forks6
Issues1
Updated1mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code