跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    中文English
    manti-by

    Openwiki

    v0.4.1-a记忆与上下文
    @manti-by/openwiki

    OpenCode plugin that scaffolds a per-project session wiki (commands, templates, and the wiki/ directory). Install-only — no background agent, no event hooks.

    GitHub 星标

    1

    月装机量

    780

    近 7 天 43

    综合评分SCORE

    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"]
    }

    opencode 启动时会通过内嵌运行时自动加载 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