@manti-by/openwikiOpenCode plugin that scaffolds a per-project session wiki (commands, templates, and the wiki/ directory). Install-only — no background agent, no event hooks.
1
780
近 7 天 43
40.0
生态多维模型
10 天前
2026-08-09
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@manti-by/openwiki@0.4.1-a"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@manti-by/openwiki@0.4.1-a"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D @manti-by/openwikiopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
An OpenCode plugin that scaffolds a per-project session wiki.
On plugin load OpenWiki copies the bundled /wiki-* slash commands into your
project's .opencode/commands/ and writes the wiki/ scaffold
(README.md, TEMPLATE.md, INDEX.md, QUESTIONS.md) from the bundled
templates with <PROJECT_NAME> substituted to the directory name. That's the
whole plugin — no background agent, no event hooks, no automatic page creation.
Fill in the wiki by hand or wire your own process up to the templates.
Install
Add the package to your project's opencode.json:
{
"plugin": ["@manti-by/openwiki"]
}
(Until published, point OpenCode at this directory directly — copy or symlink it
into .opencode/plugins/openwiki.)
Restart OpenCode. On first load the plugin writes its commands into
.opencode/commands/ and scaffolds wiki/. Re-running OpenCode is a no-op for
files the user has already customised.
Configuration
None. The plugin performs only file copies on disk; it does not read any other config files, does not talk to providers, and does not register any background work.
Layout
src/ TypeScript plugin source (compiled to dist/ by bun build)
templates/ wiki/ scaffold: README.md, TEMPLATE.md, INDEX.md, QUESTIONS.md
commands/ /wiki-consistency, /wiki-dedup, /wiki-update command definitions
dist/ Compiled plugin output (generated, not committed)
Development
Built with Bun and TypeScript.
bun install # install dependencies
bun run build # compile src/ to dist/
bun test # run tests
bun run typecheck # type-check without emitting
bun run lint # lint & format-check with Biome
bun run format # auto-fix with Biome