hackwiki
Installation
SKILL.md
Hackwiki CLI
Authentication
Use HMD_API_ACCESS_TOKEN or an existing hackmd-cli login config; the CLI
binary is optional. If session reports a missing token, ask the user to set
the environment variable or, for interactive login, ask before following the
official HackMD CLI skill
to install the CLI. The user creates and enters the API token; then retry
session.
Workflow
- If the user specifies a team, pass
--team <teamPath>to every command or setHACKWIKI_TEAM_PATH; never switch workspace during a task. Runhackwiki session --json(ornpx @hackwiki/cli session --json) and confirm itsworkspacebefore continuing. If the wiki is not initialized, ask the user before runninghackwiki init --jsonin that same workspace. - Follow the wiki's schema. Search before creating a page; use
hackwiki search "<query>" --json, thenhackwiki page read <noteId> --json. Add--type <type>to narrow results or--full-textwhen needed. - Answer questions from existing pages without writing. Save only knowledge worth reusing, and only when the user requests or confirms a wiki change. Update existing pages instead of creating duplicates.
- When saving a source, record its origin in the raw page. Link conclusions back to sources. Explain conflicting evidence before changing a conclusion.
- For approved changes, use
page create,page update, orpage rename; the CLI maintains the index and log. Never runpage deletewithout explicit user confirmation. Runhackwiki lint --jsonafterward. Fix issues caused by this change; report unrelated issues.