Compile source materials into a new LLM Wiki or incrementally update an existing one. Detect conflicting claims within and across sources and Wiki pages, and flag `unfixed` conflicts on the affected pages.
75%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Fix and improve this skill with Tessl
tessl review fix ./openviking/system_assets/compile/example-skills/llm-wiki/SKILL.mdAn LLM Wiki is a maintained collection of linked Markdown pages. Each knowledge page explains a subject or answers a question using cited evidence. Follow the requested scope, audience, language, and depth. By default, write in the sources' main language for a knowledgeable newcomer.
scripts/write_wiki.py; OpenViking Compile owns
derived semantic sidecars and task history. Do not generate .overview.md,
.abstract.md, AGENTS.md, CLAUDE.md, or duplicate logs.index.md.Read the existing index.md and catalog before planning. Survey source types, chronology,
authority, coverage, and gaps; then read the evidence relevant to each subject. For code,
trace requested behavior through relevant implementations, interfaces, schemas, tests,
configuration, and runtime wiring; names and README claims alone do not prove behavior.
Skip generated files, vendored dependencies, caches, and large fixtures unless relevant.
Identify entities, concepts, aliases, supported relationships, and differing claims.
Merge true synonyms, keep distinct identities separate, and match existing subjects by
meaning before title or path. Update their canonical pages instead of making duplicates.
Default to entity and concept; use other types only when their requirements apply.
| Type | Use and required content | New page path |
|---|---|---|
entity | A named subject with stable identity: aliases, role, relevant attributes, responsibilities, interfaces, history, boundaries, and relationships. | entity/<title>.md |
concept | A reusable idea or mechanism: definition, scope, distinctions, how or why it works, grounded examples, constraints, tradeoffs, and relationships. | concept/<title>.md |
method | A non-trivial, transferable procedure: when to use it, prerequisites, ordered steps and branches, verification, failures, and constraints. | method/<title>.md |
comparison | Subjects compared on the same evidence-supported dimensions, with scope, tradeoffs, and decision guidance; not concatenated introductions. | comparison/<title>.md |
analysis | A cross-source question with evidence scope, assumptions, reasoning, counterevidence, uncertainty, and conclusions. | analysis/<title>.md |
summary | Only when the task explicitly requests source-level digests. Preserve that source's claims, perspective, evidence, and limits; do not present them as consensus. | summary/<title>.md |
For a new knowledge page, name the subject in the output language. Use that title
for the filename, H1, and index link text. Drop source-folder sort prefixes such
as 06_. Keep identifiers that belong to the subject, such as API or v2.
For each source, update the existing pages it informs. Create a linked page for an important subject the Wiki does not yet cover. Keep passing mentions in context.
Always include the root index.md, with type: index, in the update. Briefly state the
Wiki's scope, group all active knowledge pages by useful topics or types, and give each
its canonical link followed by its exact frontmatter description. Preserve valid unchanged entries;
remove or revise entries only after checking their targets. Use known final paths/URIs.
Use the index for navigation. Any knowledge page may draw on multiple sources.
Use analysis when the page develops a conclusion from the evidence.
Write complete UTF-8 OKF Markdown files. Preserve valid existing frontmatter; new pages begin with the actual values in this shape:
---
type: concept
title: Canonical page title
description: One sentence naming the subject and one concrete detail covered on the page.
tags: [topic-tag]
---type, title, and single-line description. Do not mention
conflicts in the description or index entry.
Follow frontmatter with one H1 matching the title. Use type: index for the root index.api-versioning. Reuse an existing tag when it means the same thing.
Tags are optional for the root index.## 来源 in Chinese or ## Sources in English.
Use one bullet per unique target. Each bullet contains only a Markdown link to the exact source URI.
For files, use the filename without its extension as the link text.[page title](relative/path.md), resolving the target's
final path relative to the current page.Save every new or updated page, including index.md, through
scripts/write_wiki.py. For an OV-hosted skill, first
save the bundled script locally at the same relative path.
Pass the complete Markdown page, including its trailing CONFLICTS_CONTENT block.
Build the destination URI by joining the task's target directory URI (to) with
the page's relative path. Keep the path inside to. Use create for a new page
and replace for an existing page.
python3 <skill-dir>/scripts/write_wiki.py <destination-uri> --from-file <page.md> --mode <create|replace>Keep the UTF-8 input file unchanged until the command exits. Report a nonzero exit as a failed write.
On every compile, including the first, compare what the source files say about
the same question under the same conditions. Check the existing Wiki and draft
for claims about that question as well. If sources prescribe different rules
for the same case and none establishes which rule applies, state what remains
unclear in the page body and record one unfixed conflict about which rule to use.
Check values, dates, negation, states, responsibilities, procedures, relationships, identity/unit mistakes, unsupported citations, overgeneralized scope, opinions or inferences written as facts, and contradictions among body, tables, summaries, and index. Do not record a conflict when:
Record each material disagreement once on the page that states it, even when both
claims are attributed. If the sources only name different rules for the same case,
record one disagreement about which rule applies. Record a separate disagreement
for an item only when the sources give conflicting requirements for that item.
In reason, identify the conflicting claims and their known locations, which may
be in the same source. State any gaps in the evidence.
Do not silently choose a side, omit a relevant opposing claim, or replace the record
with only "sources disagree." Do not manufacture an incorrect Wiki sentence to justify
a record. Recency, repetition, and model familiarity alone do not establish authority;
use directly applicable specifications, versions, or explicit precedence. Do not use
outside searches or assumptions to settle the dispute.
Assign one conflict_type to each conflict. Check these definitions in order and use the first matching type:
Severity describes the consequence of acting on the wrong claim. It determines review priority, not whether the conflict is automatically repaired. Judge the worst plausible consequence and use the highest applicable level.
| severity | Criteria |
|---|---|
| high | Affects external commitments, safety, permissions, privacy, compliance, money, irreversible operations, or blocks other people's work. |
| medium | Affects internal decisions or execution and can cause recoverable costs, including rework, duplicated effort, inconsistent practices, or scheduling changes. |
| low | Affects understanding but normally does not drive action, such as historical or background information. |
A clearer description does not resolve a source disagreement.
Set state to fixed for a factual conflict only when the supplied evidence supports the chosen answer.
Apply a verified correction wherever the same claim appears in this compile's output.
Record each unfixed conflict on every affected output page.
Preserve unrelated content and protected human conclusions.
human_conclusion: Keep the human conclusion and its resolution record unchanged.
Add a separate record with state set to unfixed, anchored to the human conclusion.
Describe the conflicting source in that record; do not add its claim to the page body.
opinion: Do not choose a proposal automatically.
Present the proposals with attribution, explain that no applicable decision is
available, and set state to unfixed.
fact: If the supplied evidence establishes which claim applies, update the Wiki
and set state to fixed. Explain the supporting evidence in resolution_basis.
Otherwise, set state to unfixed. On a new page, state the specific uncertainty
in the relevant section of the body. On an existing page, preserve the affected
sentence. Summarize what each source requires in problem_description.
unfixed, keep its state and original begin_time.
Omitting a source from an incremental batch is insufficient evidence to set
state to fixed. Remove an obsolete conflict record when evidence shows the
issue no longer applies.
Keep automatic repairs verified in this compile and drop automatic fixed
records from earlier runs. Leave pages outside this update untouched.fix_plan value in the field table below.
Preserve their fields, original timestamps, severity, and match_text spans
verbatim. Keep state set to fixed in retained human-resolution records and preserve
their protected text. If a source contradicts that text, add a separate human_conclusion
record with state set to unfixed. Human protection takes precedence over automatic
repairs. Do not invent a human resolution or its timestamps.reason. Keep all records in one trailing block
and preserve retained human resolutions verbatim.Each new conflict record has exactly these eleven fields.
Preserve retained human-resolution records verbatim, even if they lack the new fields.
Keep keys and enum values unchanged;
Write descriptive values in the output language, except for the exact Chinese strings required in fix_plan and resolution_basis
for recorded human repairs.
| Field | Type and meaning |
|---|---|
match_text | One complete sentence copied verbatim from the final Wiki page body that identifies the affected claim. Exclude frontmatter and HTML comments. For a repaired claim, use the corrected sentence. |
problem_description | Say exactly what differs in one plain sentence. For a repaired Wiki claim, quote the original wording and explain the error. |
reason | Explain why the claims conflict in the same case. Cite each claim’s source and quote the relevant wording where available, including who made the claim and when, if known. If the conflict remains unresolved, say what evidence or decision would resolve it. |
severity | Exactly high, medium, or low. |
state | Exactly fixed for a verified automatic repair or a recorded human repair, or unfixed while the conflict remains open. Determine the state independently of severity. |
begin_time | Integer Unix seconds when the issue is first detected, not a source date or estimated origin time. |
fix_plan | For an automatic repair, provide a non-empty description of the actual correction and scope. Use exactly 用户手动解决内容冲突,修正后的内容如正文所示 for a human repair and "" for unfixed. |
fix_time | For fixed, integer Unix seconds after repair and verification, no earlier than begin_time; for unfixed, null. Retained human times do not change. |
resolution_basis | For an automatic repair, provide a non-empty explanation of the evidence location, supporting content, and applicability. Use exactly 人工修复 for a human repair and "" for unfixed. |
conflict_type | Exactly human_conclusion, opinion, or fact, as defined above. |
resolved_by | Use "compile_agent" for an automatic repair and "" for unfixed. For a retained human resolution, preserve its existing value. |
Read real time from the execution environment at detection and after verification
(for example, date +%s); never estimate, copy example timestamps, use milliseconds,
or serialize times as strings.
Choose a complete sentence in the final Wiki body that states what the reader
needs to know about the disputed point. If the rule is unclear, state exactly
what is unclear. Copy the sentence verbatim into match_text, including punctuation.
Exclude frontmatter and HTML comments. For a repaired claim, use the corrected
sentence. If the claim appears only in a table, code block, or frontmatter,
explain it in a body sentence and use that sentence as match_text. For automatic factual repairs,
also correct any affected frontmatter. Preserve the
original match_text of retained human resolutions verbatim.
End every new/updated file, including index.md, after its body and localized source section with
exactly one <!-- CONFLICTS_CONTENT ... --> comment. Do not create a conflict page or
visible conflict section. Its payload is comma-separated JSON objects without an
outer array or wrapper and without a final trailing comma.
Use JSON escaping and Unicode-escape embedded comment delimiters or consecutive hyphens
so strings cannot nest or terminate the comment; decoded anchors must still match.
When there are no current records or retained human resolutions, output:
<!-- CONFLICTS_CONTENT
-->Use this fictional example as a model. The source paths and timestamp are illustrative.
# V2 production reports
V2 production reports summarize how production jobs ran during a selected period.
## Report contents
Each report shows the start and end dates of the reporting period. It lists
separate totals for completed and failed production jobs.
## Export access
It is unclear whether users must sign in to export v2 production reports.
Select the reporting period, then download the report as a CSV file. The file
contains the completed and failed job totals for that period.
## Sources
- [access-guide](viking://resources/export-guide/access-guide.md)
- [security-policy](viking://resources/export-guide/security-policy.md)
<!-- CONFLICTS_CONTENT
{
"match_text": "It is unclear whether users must sign in to export v2 production reports.",
"problem_description": "The access guide allows exports without signing in, while the security policy requires sign-in.",
"reason": "See Export access in viking://resources/export-guide/access-guide.md and Export authentication in viking://resources/export-guide/security-policy.md. Both sections cover v2 production exports, and neither document says which rule takes precedence.",
"severity": "high",
"state": "unfixed",
"begin_time": 1792500000,
"fix_plan": "",
"fix_time": null,
"resolution_basis": "",
"conflict_type": "fact",
"resolved_by": ""
}
-->index.md lists every active knowledge page with
its canonical link and its exact frontmatter description.state is exactly fixed
or unfixed.match_text appears verbatim in the prose body, excluding
frontmatter and HTML comments. A repeated sentence still counts as a match.
For the same match_text, keep one record, preferring unfixed over fixed.
Always keep every human resolution verbatim. If the same text also has an
open conflict, keep one unfixed record alongside it.
Verify that each problem_description identifies the disagreement.volcengine/OpenViking
5ae5f36
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.