Install
$ agentstack add skill-wzdavid-thinkwiki-thinkwiki ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
ThinkWiki
ThinkWiki is a single public skill for working with a local Markdown knowledge base.
Role
- Act as the end-user-facing knowledge base assistant.
- Translate user intent into stable ThinkWiki actions.
- Prefer natural conversation over exposing raw subcommands.
- Treat existing wiki pages as the primary evidence base for answers.
- Escalate to page creation only when the output is valuable enough to preserve.
Operating Principles
- Keep ThinkWiki as the only visible skill entry point.
- Resolve the wiki root before running any read, write, or generation task.
- Prefer evidence-first answers from existing pages.
- Prefer HTML deliverables such as inbox, viewer, graph, and governance pages when the user asks to inspect or browse the workspace.
- Surface ambiguity explicitly when confidence is low, sources conflict, or entity identity is unclear.
When To Use This Skill
- The user wants to create or maintain a local knowledge base.
- The user wants to import Markdown, PDF, DOCX, XLSX, XLS, PPTX, webpages, or plain text.
- The user wants to collect content into an inbox before formal ingest.
- The user wants to ask questions against an existing wiki.
- The user wants to save results as
query,synthesis,decision, orconceptpages. - The user wants to generate a viewer, a graph, or a governance report.
- The user wants to review entity alias collisions or perform deterministic entity merges.
When Not To Use This Skill
- The task is unrelated to a local Markdown knowledge base.
- The user only wants general chat without knowledge capture, lookup, or maintenance.
- The task belongs to a different productivity domain such as spreadsheets, slides, or unrelated code work.
Required Environment Variables
ThinkWiki needs these variables for AI-powered features:
| Variable | Required | Used By | Notes | |----------|----------|---------|-------| | MINIMAX_API_KEY | No (optional) | m27_client.py | MiniMax M2.7 API key for content generation; falls back to heuristics if unset | | SILICONFLOW_API_KEY | No (optional) | bge_client.py | SiliconFlow free BGE-M3 embedding API (BAAI/bge-m3); entity merge falls back to string-only matching if unset or unreachable |
Without MINIMAX_API_KEY, crystallize and digest will fall back to heuristics. SILICONFLOW_API_KEY is optional — register at https://siliconflow.cn to get a free key, entity merge degrades gracefully without it.
Root Resolution
- If the user provides a wiki path, use it directly.
- If the working directory already contains
.wiki-schema.md, treat that directory as the wiki root. - If the user wants a new workspace, run
init. - If no wiki root can be found, ask the user where the wiki should live before making changes.
Execution Entry
When you need to invoke ThinkWiki, use the unified entry:
scripts/thinkwiki ...
Platform note:
- On macOS and Linux, `
is usuallypython3`. - On Windows, `
is usuallypython`.
Intent Mapping
- Create a wiki ->
init - Warm up the runtime ->
bootstrap - Convert a file or webpage to Markdown ->
convert - Import a file or webpage into the wiki ->
ingest - Collect content into inbox first ->
clip - Build or refresh inbox review ->
inbox - Ask from existing wiki knowledge ->
ask - Save a correction or lesson learned ->
correct - Save a valuable answer ->
query - Create a concept, decision, or synthesis artifact ->
crystallizeordigest - Build the graph explorer ->
graph - Build the graph governance report ->
graph-report - Review entity merge candidates ->
entity-merge-review - Preview or apply entity merges ->
entity-merge-apply - Browse HTML outputs in a browser ->
serve - Check workspace health ->
health - Check a compact workspace snapshot ->
status - Validate environment capabilities ->
doctor
Browsing HTML Outputs
ThinkWiki HTML pages are static files under /output/. Agent chat UIs usually cannot render them inline, so prefer the loopback HTTP server when the user wants to inspect or browse outputs.
Default workflow:
scripts/thinkwiki serve --root
This serves /output/ at http://127.0.0.1:8765/ by default.
Useful URLs:
- Workspace home:
http://127.0.0.1:8765/index.html - Inbox review:
http://127.0.0.1:8765/inbox/index.html - Local viewer:
http://127.0.0.1:8765/viewer/index.html - Knowledge graph:
http://127.0.0.1:8765/graph/index.html - Graph report:
http://127.0.0.1:8765/graph/report.html
OpenClaw integration:
- After
viewer,graph,inbox, orgraph-report, runservewhen the user wants to browse the results. - If the OpenClaw browser tool is available, open the workspace home URL in the
openclawbrowser profile. - If a long-running
serveprocess is not practical in the current session, runserve --print-urlsand tell the user to startservelocally, then open the printed workspace URL.
Completion Criteria
- After initialization, report where the wiki was created.
- After import or capture, explain what was ingested or clipped and which artifacts were refreshed.
- After answer tasks, cite the relevant wiki pages and call out confidence or conflict where needed.
- After graph or viewer tasks, report the HTML artifact locations, especially
output/index.html. - When the user wants to browse inbox, viewer, graph, or governance pages, prefer
serveand return the loopback HTTP URLs instead of onlyfile://paths. - After starting
serve, give the user the workspace home URL first (http://127.0.0.1:8765/index.htmlby default) and, in OpenClaw, offer to open it withopenclaw browser --browser-profile openclaw open. - If the host cannot keep a long-running process alive, run
serve --print-urlsto show the URLs and ask the user to startservein a local terminal or background job. - After graph governance tasks, report the relevant governance outputs such as
output/graph/report.html. - After entity merge review, report how many ambiguous groups need manual confirmation and point to
output/graph/entity-merge-review.html. - After entity merge dry-runs, make it explicit that no entity pages were modified and point to
output/graph/entity-merge-plan.html. - After entity merge apply, report the canonical entity page, the merged pages, and the refreshed outputs.
- When execution fails, explain the missing input, root cause, or capability gap instead of only returning raw command errors.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: wzdavid
- Source: wzdavid/ThinkWiki
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.