scholar-ontology
Use when distilling an ontology, controlled vocabulary, or glossary of what a codebase, a repository set, or a written corpus calls things.
- License 许可
- MIT
- 所属仓库
- tony/skills
- 最近更新
- 2026-11-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- scholar-ontology
- metadata
- { "source": "plugins/scholar/skills/ontology/SKILL.md", "argument-hint": "[<target>...] [--kind=code|prose] [--out=<dir>] [--resume=<stage>]" }
- description
- Use when distilling an ontology, controlled vocabulary, or glossary of what a codebase, a repository set, or a written corpus calls things.
- allowed-tools
- [ "Bash", "Read", "Grep", "Glob", "Edit", "Write", "AskUserQuestion" ]
02 资源文件 8
- 参考文档agents/openai.yaml252 B
- 参考文档references/citation.md2.5 KB
- 参考文档references/evidence-tiers.md1.7 KB
- 参考文档references/output-contract.md4.0 KB
- 参考文档references/prose-rules.md4.5 KB
- 参考文档references/source-pins.md2.6 KB
- 参考文档references/stage-gates.md4.2 KB
- 脚本references/term_metrics.py47.8 KB
03 SKILL.md 正文
this skill
Distil what a corpus calls things into a type hierarchy, a controlled vocabulary, and an evidence layer. The product is a study directory, not a document, and every claim in it either cites a pinned source or carries a command that reproduces its number.
A study passes when a reader who was not present can disagree with a specific claim, find what it rests on, and re-derive it. A summary cannot be checked, does not compose, and rots without saying so.
Read references/evidence-tiers.md before starting; it decides what
each claim must carry. Read references/citation.md for citation fields
and references/source-pins.md for repository pins.
references/stage-gates.md states each stage's exit condition.
User arguments: $ARGUMENTS
Read references/output-contract.md before writing study files.
Survey the workspace
Run ls notes/ontology/ to list existing studies. A failure means there are
none. <subject> and the default study follow "The study directory" in
references/stage-gates.md.
Stages
Five stages, run in order. Stage skills are invoked by name only, so the model
cannot call them. To run a stage, read ../<stage>/SKILL.md (for example
the scholar-gather skill) and follow it. A user resumes a study by invoking a
stage directly.
gather: resolve and pin the corpus, inventory it, and record what was read and what was skipped, intosources.jsonl.extract: harvest the terms the corpus uses, with a citation and a locator each, intoterms.jsonl.distill: build the three layers: source-supported types, memberships, and the controlled vocabulary.contest: judge the ontology adversarially, one candidate at a time, recording the kills.render: writebrief.mdand the evidence documents, and gate the brief.
For prose, follow the scholar-annotate skill before extract to produce quotations
with stable locators.
Run the stages silently: no stage's own ## Output report or next-step panel.
Report once, at the end, in the shape under Output. A stage whose gate fails
stops the run: reply with the contract's failed-gate shape for that stage and
run no later stage.
--resume=<stage> starts at that stage against an existing study directory.
Orchestration Plan
Enter plan mode before the first edit. In Claude Code call EnterPlanMode; in Cursor, Codex, or Gemini use /plan or Shift+Tab. Where plan mode is unavailable, present the plan as text.
The plan states:
- The corpus: each target, its resolved ref, and how it was resolved.
- The kind, code or prose, and what that changes about stages 1 and 2.
- The output directory, and for a corpus that is the current repository, that the study directory is excluded from the dirty-tree check.
- Which stages will run, and which are being skipped because a prior study already satisfies them.
- The coverage boundary: what will deliberately not be read, and why.
Present it, wait for approval, then exit plan mode and run stage 1. Where no question tool exists (Codex, headless runs), print the plan and stop; do not start stage 1 without approval. A request that already approves the plan ("I approve the plan") counts as that approval.
Rules
- Never write into the corpus being studied. Output lands under
--out, defaulting tonotes/ontology/<subject>/in the current repository, even when that repository is the corpus (gatherexplains the dirty-tree check). - A pasted snippet is not a corpus. With no repository, directory, or document
on disk to pin, report
⚠ Blockedat stage 1 and say what to point the study at. A pasted prose excerpt can only be pinned by runninggatherdirectly, which saves it under the study directory.
Output
Per references/output-contract.md. Hero: ✓ <subject>: <n> terms, <n> types, <n> contested, ⚠ Gate failed: <stage>, <n> findings, or ⚠ Blocked: <reason>. Sections:
## Corpus: each source, its resolved ref, and what was deliberately not read, with the reason. An unpushed commit reads "commit not on a remote; recorded without URL".## Ontology: the supported type hierarchy and vocabulary, distinguishing declared types, documented roles, and unresolved relations.## Contested: what was challenged and how it resolved, including what was killed and what the kill revealed.## Where it lives: the study directory path and which stages ran.
Call a gate passed only when its analyzer check ran in this session and exited zero. The support reviews (hierarchy basis, contest verdicts, brief claims) are judgment: report them as reviewed, with any claim left unsupported or open. Add no claim to the report that the evidence layer does not hold.
A blocked run is the contract's halted-run shape; the unblock sentence names the required input (a repository URL, a local directory, or a document on disk):
⚠ Blocked: no corpus on disk to study, only a pasted snippet.
Point me at a repository URL, a local directory, or a document on disk.
Next-step options: contest another round, compare against another study, stop here.
Write it per references/prose-rules.md.
Portability notes
$ARGUMENTS— the text the user passed when invoking this skill. If your host does not substitute it, read it as the user's request in the current turn, and ask when there is none.- Bundled files — every relative path in this skill points at a file shipped inside this skill directory. Read them from here, not from the host's plugin tree.
04 同仓库更多 Skills
serene-bliss
Use when asked to make a CLI --help, docs page, error message, or tooling UX more serene or calmer for developer experience; returns text, no edits.
review
Weave code review: run independent adversarial reviews in parallel, then synthesize findings
refine
Use when asked to refine a draft, iterate on code until cleaner, or polish a README through repeated critique and improvement.
prompt
Weave prompt: compare independent adversarial implementations, then adopt the single best one
plan
Weave planning: compare independent adversarial plans, then synthesize the best one
fix-review
Fix weave review findings: validate, add test coverage, fix, and commit each as atomic changes