CLI for TiddlyWiki's HTTP API — CRUD, diff, and semantic search.
Designed as an agentskills.io skill: AI agents learn TiddlyWiki filter syntax, wikitext, and data modeling patterns alongside the CLI.
Requires Node.js ≥ 20.
git clone https://github.com/ppetru/tiddlywiki-cli.gitFor semantic search (optional):
cd tiddlywiki-cli && npm install
# Requires Ollama running with nomic-embed-text modelCreate ~/.config/tw/wikis.json:
{
"mywiki": {
"url": "http://localhost:8080"
}
}For Consul service discovery:
{
"mywiki": {
"url": "mywiki.service.consul",
"auth_header": "X-Custom-Auth",
"auth_user": "username"
}
}Config search order: ./wikis.json → ~/.config/tw/wikis.json → <install-dir>/wikis.json
# Query tiddlers (metadata only)
tw mywiki filter '[tag[Journal]!sort[modified]limit[10]]'
# Include full text
tw mywiki filter '[search[topic]]' --text
# Get single tiddler
tw mywiki get 'My Tiddler'
# Create/update tiddler
tw mywiki put 'New Tiddler' --text '# Hello' --tags 'Tag1 Tag2'
tw mywiki put 'New Tiddler' --file ./content.md --type text/markdown
# Diff before writing
tw mywiki diff 'Existing Tiddler' --text 'Updated content'
tw mywiki put 'Existing Tiddler' --text 'Updated content'
# Delete
tw mywiki delete 'Old Tiddler'
# Semantic search (requires optional deps + Ollama)
tw mywiki semantic 'conceptual query here' --limit 10
tw mywiki reindex --force
# Wiki status
tw mywiki statusOutput is JSON — pipe to jq for processing:
tw mywiki filter '[tag[Plants]]' --text | jq '.[].title'When installed, agents get:
- CLI tool reference
- TiddlyWiki filter syntax and operators
- Wikitext and widget reference
- Data modeling patterns and anti-patterns
- Common query recipes
See SKILL.md for the full skill content.
MIT