/wiseman:wiseman-summonfrom wiseman
Builds or refreshes a codebase-specific LLM wiki (Wiseman) of best practices, library docs, and conventions. Invoke when the user wants deep project learning before coding, or proactively for incremental refresh when dependency versions change.
Ships in wiseman. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Analyze and deep-research the current project to build a codebase-specific
LLM wiki (Wiseman) at .wiseman/wiki.db. Core bar: wiki answers must be
strictly better than the model's internal knowledge — current,
version-pinned, sourced, project-specific, non-obvious.
All wiki writes go through the wiseman MCP server's write_page tool
(single write path). The plugin auto-registers MCP, so the tool is already
available.
pyproject.toml/package.json/go.mod etc.) → Existing project flow (1)Identify dependencies: collect libraries and their exact installed
versions from manifests + lockfiles. Direct dependencies only
(exclude transitive deps). Don't limit this to workspace membership —
if you only follow the member graph declared by a workspace tool (uv, npm
workspaces, pnpm, etc.), independent subprojects not wired into that
graph (e.g. a directory with its own package.json/pyproject.toml) can
be missed entirely. Decide the exact way to scan the whole repo for
manifests based on the situation.
User triage: show the detected library list (name + version) and let
the user narrow it down by unchecking items (cost/relevance). For each
library the user keeps, tag it riskLevel: high (payments, security, or
complex frameworks) or riskLevel: low (simple, well-documented
utilities) — this list becomes the args for step 3.
Parallel deep research + quality gate: call the Workflow tool
directly with scriptPath set to scripts/research-workflow.js
(resolved relative to this SKILL.md's own directory) and args set to
the risk-tagged library list from step 2. This runs, per library,
research → non-obviousness review → one revision attempt on failure →
write_page ingest, all in parallel, and returns only a summary
({ingestedCount, ingested, totalRequested}) — page bodies never enter
this session's context. A skill's own instructions telling the agent to
call Workflow is itself a valid opt-in; no extra "use a workflow"
phrasing is needed here.
If the Workflow tool call is unavailable, disabled by policy, or the
run is declined: fall back immediately, without re-prompting the user,
to plain Agent-tool dispatch — one research subagent per library
(model set to sonnet for riskLevel: high, haiku for
riskLevel: low), each searching official docs + best practices
directly via WebSearch/WebFetch (reading installed package source if
official docs are thin), followed by one separate reviewer subagent per
page (same tier as its research agent, judging non-obviousness
paragraph-by-paragraph), then write_page directly for each draft that
passes review.
Do not call write_page from this main session while this step's
workflow (or its fallback) is still running. Its own ingest sub-steps
and any write_page call made directly from this session hit the same
wiki.db through separate wiseman-mcp processes — even with WAL mode,
a pile of concurrent writers is worth avoiding. You can still research or
draft steps 4-5's content in the meantime; just hold the write_page
call itself until step 3 reports its summary (or, on the fallback path,
until every fallback subagent has finished).
Reinforce general principles: add pages for clean-code principles and
language-specific anti-patterns/best practices. (Draftable in parallel
with step 3; see the concurrency note above for when to actually call
write_page.)
Reflect the project itself: using the existing architecture, code
conventions, and CLAUDE.md, write project_convention/architecture
pages (specific to this project). (Same concurrency note as step 4.)
Quality gate (verify before ingest):
library_doc requires source (discard it, or mark it
derived-principle, if there is none).version (must match the installed version).project_convention/architecture page.Ingest & wire up:
write_page(...) (link related
pages with links).lint() and
check orphans and orphan_link_suggestions (FTS-based related-page
candidates). Pick only the candidates that are actually related (don't
wire them all mechanically) and add cross-links via write_page to
resolve orphans (parallel fan-out means agents can't see each other's
output in real time, so orphan pages are a structural byproduct — this
cleanup is an explicit step, not an afterthought).schema.md to .wiseman/schema.md.@.wiseman/schema.md import line to the project's
CLAUDE.md, idempotently (don't add it twice if already present;
create CLAUDE.md if missing). Preserve existing content.If a wiki already exists, incremental refresh is the default: compare
manifest versions against each library page's version, re-research only
changed/new/stale libraries, and preserve pages that were fed back
(compounded) via write_page. If the user requests --rebuild (full
rebuild), start over from scratch.
Autonomous trigger: in a project that already has a wiki, if a manifest
version you happen to see while working no longer matches the version on
that library's wiki page, start this incremental refresh on your own
without being asked. This does not apply to a first-time build where no
wiki exists yet — that's expensive (8-12 parallel subagents) and §1-2
"user triage" is deliberately designed as a user-approval gate, not
something to fully automate.
Summarize for the user: number of pages ingested, per-library coverage,
discarded items, and lint() results. Then advise that per schema.md's
guidance, ask_wiseman should be used first when coding from here on.
Committing .wiseman/ is recommended by default (a shared team "second
brain"). But let the user know wiki.db is binary, so diff/merge is weak —
if they'd rather not, guide them to add it to .gitignore. Also let them
know ask_wiseman queries are logged too, so even read-only use
changes wiki.db — if commit frequency feels like a burden, that's one
more reason to recommend .gitignore.
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/wisemanThe Wiseman hub — show this project's wiki status (page count, covered libraries+versions, stale pages) and the menu of things the user can do (ask before coding, open the dashboard, teach/refresh). Trigger on "/wiseman", "wiseman 상태", "위즈맨 뭐 알아?", "위즈맨 상태 보여줘", "what does the wiseman know", "wiseman status", "wiseman overview". This is the discoverability front door — use it when the user wants an at-a-glance view or isn't sure what Wiseman can do. For the visual explorer use wiseman-dashboard; to build/refresh use wiseman-summon./wiseman-dashboardUse to open the Wiseman wiki dashboard in a browser — a read-only visual explorer (graph, pages, search, lint/log) for this project's .wiseman/wiki.db. Trigger on requests like "/wiseman-dashboard", "wiseman 대시보드 띄워줘", "위즈맨 대시보드 보여줘", "show the wiseman dashboard", "open the wiki dashboard". Do not use this to edit the wiki (it's read-only) — use the ask_wiseman/write_page MCP tools for that.npx claudepluginhub tgoddessana/wiseman --plugin wisemanOther plugins' skills for the same job