agentleFS
dagarre00dagarre00/claude-code-template/.agents/skills/wiki-update/SKILL.md

wiki-update

Skill1 starsChanged 3 months agoMITView on GitHub

How to structure a docs/wiki/ page under the Obsidian LLM-wiki standard — placement and dedup before creating, the page templates, facet vocabulary and link ontology — and whether a discovery is fixed inline or queued for the maintainer. Trigger on "new entity page", "new concept page", "wiki page structure", "frontmatter", "wikilink property", "aliases", "inline vs maintainer", "wiki-todos queue", "found a pattern", "found a contradiction".

5 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use wiki-lint.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • graypirateSkill

    wiki-lint

    Run a health check on the user's wiki. Use when the user asks to lint, audit, clean up, check, or fix the wiki — or when they suspect orphans, broken wikilinks, stale pages, missing frontmatter, or contradictions between pages. Combines structural checks (zero token cost) with semantic review (LLM reasoning).

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write the concept's essence: one or two sentences that stand alone.

    line 13
  2. Very specific:

    Look for it under another name: walk the tree and grep -r "aliases:" -A3 docs/wiki/.

    line 14

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Wiki Update — standard, templates, routing

The single source of truth for the wiki standard; its invariants are also the "Obsidian LLM-wiki standard" behavioral rule. Ticking an entity's Behavior cases needs nothing from here.

Placement — before creating any page

  1. Write the concept's essence: one or two sentences that stand alone.
  2. Look for it under another name: walk the tree and grep -r "aliases:" -A3 docs/wiki/.
  3. It exists → update that page: merge the new material into the right section, add the new name to aliases, extend sources, bump updated.
  4. It doesn't → create it from a template below. Filename = the canonical concept name, with none of * " \ / < > : | ? # ^ [ ]; symbol-bearing variants go in aliases.
  5. Link a page that doesn't exist yet → stub it in the same change (template frontmatter, status: stub, a one-line placeholder) — a broken wikilink fails CI. A stub outside the paths you may edit means no link: record a wiki-todo instead.
  6. Merge two pages on one concept into the more canonical filename, keeping the union of links and provenance and the discarded name in aliases — ask the human first if the contents are ambiguous. Split a page covering two concepts and rewire its links.

Canonical page template

---
aliases: [Agentic loop, Sense-Plan-Act]
type: concept             # concept | procedure | reference | tutorial | entity | decision | summary
abstraction: pattern      # principle | pattern | technique | instance
domains: [agents, software]
status: developing        # stub | developing | stable
sources:
  - docs/raw/anthropic-agents.md
implements:
  - "[[feedback-principle]]"
specializes: []
contrasts_with:
  - "[[linear-pipeline]]"
alternative_to: []
depends_on:
  - "[[world-model]]"
contradicts: []
open_questions:
  - How does this relate to hierarchical planning?
created: 2026-07-21
updated: 2026-07-21
---

# Agentic loop (Sense–Plan–Act)

> [!abstract] Essence
> One or two sentences that capture the concept, understandable out of context —
> read first, and the fingerprint used for dedup.

## Model
What it is, why it matters, when it applies.

## Detail
How it works: examples, variants, parameters.

## Boundaries
Edge cases, where it does NOT apply, open tensions and contradictions, *unverified* claims.

## Provenance
- Claim ← source; every non-trivial claim traces to a `docs/raw/` file.

Depth is the body spine (Essence → Model → Detail → Boundaries); the semantic level is the abstraction facet — every page has both. Frontmatter wikilinks are quoted and one per list element; body wikilinks are plain.

[infra] concept pages also carry a ## Behavior section of verifiable operational assertions, with the same [ ]/[~]/[x] states as an entity. That section is valid there; lint must not flag it.

Entity page template (docs/wiki/entities/<slug>.md)

---
aliases: []
type: entity
abstraction: instance
domains: [<domain>]
status: developing        # stub | developing | stable
sources: []
depends_on:
  - "[[other-entity]]"
contradicts: []
open_questions: []
created: YYYY-MM-DD
updated: YYYY-MM-DD
---

# <Entity Name>

> [!abstract] Essence
> What this entity exists to do, in user-facing terms.

## Behavior

- [ ] B1: <observable behavior, no implementation detail>

(States: `[ ]` not started · `[~]` test written and confirmed failing · `[x]` passing.)

## Implementation

- Files: [src/foo.py](../../../src/foo.py)
- Key functions: `do_thing()`
- Used by: [[consumer-entity]]

## Tests

- Files: [tests/test_foo.py](../../../tests/test_foo.py)
- Mapping: B1 → `test_does_thing`

## Boundaries

- Edge cases, known limitations, open tensions, unverified claims.

## Provenance

- Requirement ← `docs/raw/...`, a decision page, or a requirements section.

Behavior is the entity's Model; Implementation and Tests are its Detail. Related pages link through the frontmatter relations, which the graph and the gap checks read.

Other templates

Supporting files beside this skill — open one only when creating or restructuring that page:

  • summary-template.md — a docs/wiki/summaries/ page for an ingested source.
  • design-system-template.md — docs/wiki/design-system.md, only for a project with a UI surface; never created speculatively.

Facet vocabulary (closed)

PropertyAllowed valuesUse
typeconcept, procedure, reference, tutorial, entity, decision, summaryWhat the page's reader needs.
abstractionprinciple, pattern, technique, instanceThe rung on the generality ladder.
domainsa controlled list (agents, software, design, …)Application domains; several allowed.
statusstub, developing, stable — decisions: proposed, accepted, superseded, deprecatedMaturity; stub is a known gap.

The ledgers (log.md, todos.md, wiki-todos.md, gotchas.md, commands.md) are type: reference with their own body formats — the frontmatter rules still apply. They, the root spec pages (requirements.md, architecture.md, git-conventions.md, design-system.md) and the folder README.md guides are navigational: reached through the tree, not the graph, so they are exempt from the orphan rule. Only content pages (entities, concepts, decisions, summaries) can be orphans.

Link ontology — and the gap each relation makes computable

RelationDirectionGap rule
implementstechnique/pattern → principleA technique implements ≥1 principle.
specializesinstance/pattern → a more general conceptAn instance without it is usually misclassified — except type: entity and type: summary pages: an entity specializes its own Behavior spec and a summary its raw source (sources), so a forced link would invent a parent concept nobody reads.
contrasts_with↔ comparable alternativesSymmetric.
alternative_to↔ same function, different approachSymmetric.
depends_onconcept → prerequisiteThe prerequisite exists as a page (else a stub).
contradicts↔ explicit conflictAny unresolved one goes to the human.
supersedes / superseded_bydecision ↔ decisionA superseded ADR carries status: superseded and a superseded_by link.

A gap is a hole in the graph relative to this schema, never "what feels missing" — fill it with status: stub and open_questions or a question, never invented prose.

Inline or queued

Whoever changes code makes the small, in-scope wiki edits in the same change. Review roles make none — they report. The wiki-maintainer is manual only and takes the large or cross-page work.

  • Inline: one ADR, one gotcha, the entity page you are working on, a single broken link you noticed, a stub for a missing link target.
  • Queued as a docs/wiki/wiki-todos.md line (appended if that file is yours, otherwise under Follow-ups:): orphans across many sections; a contradiction between two pages (set contradicts on both, don't resolve it); a pattern recurring 3+ times (promote to concepts/); an ambiguous merge or a split that rewires many links; mass cross-link cleanup or legacy migration; anything needing 5+ pages read to do safely.

Discoveries route as: project pitfall → gotchas.md; design fork → ADR; repeated pattern → wiki-todo. The wiki-maintainer is never dispatched by another agent.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.