agentleFS
ignromanovignromanov/llm-obsidian-wiki/skills/maintain/SKILL.md

maintain

Skill17 starsChanged 6 months agoMITView on GitHub

This skill should be used when wiki-curator needs to apply auto-fixes for structural violations (orphans, missing fields, hot.md updates) and propose semantic fixes (contradictions, supersession, hub splits) with user confirmation. Triggers on "fix wiki issues", "auto-resolve", "split hubs", "promote drafts", "update hot.md".

17 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use office-hours, learn and 4 more.

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.
  • ex3ndrSkill

    office-hours

    MANUAL TRIGGER ONLY: invoke only when user types /office-hours. YC Office Hours — two modes. Startup mode: six forcing questions that expose demand reality, status quo, desperate specificity, narrowest wedge, observation, and future-fit. Builder mode: design thinking brainstorming for side projects, hackathons, learning, and open source. Saves a design doc. Use when asked to "brainstorm this", "I have an idea", "help me think through this", "office hours", or "is this worth building". Proactively suggest when the user describes a new product idea or is exploring whether something is worth building — before any code is written.

    Also in 4 projects that use this

  • genomewalkerSkill

    learn

    Learn from web sources, generate SKILL.md, and store key patterns in soul memory. Trigger keywords: learn, skill-gen, web-learn, documentation, tutorial.

    Also in 4 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 3 projects that use this

  • AnthropicSkill

    debug

    Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.

    Also in 3 projects that use this

  • MicrosoftSkill

    release

    Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Wait for user confirmation

    line 51
  2. Distinctive:

    Update domain hub references

    line 59
  3. Distinctive:

    Every semantic edit has logged rationale

    line 82
  4. Distinctive:

    DO NOT capture new sources (Scribe/Researcher)

    line 87
  5. Distinctive:

    DO NOT synthesize new knowledge (Researcher)

    line 88
  6. Distinctive:

    DO NOT answer questions (Advisor)

    line 89
  7. Distinctive:

    DO NOT silently apply semantic fixes — always ask

    line 90
  8. Distinctive:

    DO NOT write outside wiki/ (especially never to raw/)

    line 91

“Common” is measured: kept by at least 6 in 10 of the 14 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

Maintain — Proactive Wiki Hygiene (Write)

Purpose

Apply fixes from audit findings. Structural violations auto-fix; semantic violations propose with rationale and ask.

Used by wiki-curator.

Trigger phrases

  • "fix wiki issues"
  • "auto-resolve P0 violations"
  • "split hub X"
  • "mark Y superseded by Z"
  • "promote drafts"
  • "update hot.md"

Inputs

  • Audit findings (from audit skill output) OR specific issue
  • Mode: auto (apply structural fixes immediately) or ask (confirm each)

Outputs

  • Edits to wiki/ (supersession links, hub splits, hot.md updates, promotion)
  • Append entry to wiki/_logs/maintain-<date>.md

Workflow

For each finding:

  1. Classify:
    • Structural (auto-fixable): orphan-link suggestion, missing required frontmatter field, hot.md update, schema field, regenerate index/hubs
    • Semantic (needs review): contradictory key_claims, page merge candidates, supersession proposals
  2. Structural fix flow:
    • Apply via appropriate script:
      • update-hot.sh for session cache
      • regenerate.sh for index regen
      • update-hubs.sh for hub regen
      • promote-draft.sh for wiki/_drafts/<slug>.md → published
    • Log to _logs/maintain-<date>.md
  3. Semantic fix flow:
    • Propose with rationale: "X contradicts Y on claim Z. Recommend: mark Y as superseded by X, with note <why>."
    • Wait for user confirmation
    • On confirm: invoke supersede-page.sh --vault $V --old Y --new X
    • Log
  4. Hub split (when audit reports hub >15):
    • Dry-run first: split-hub.sh --vault $V --hub <slug> --dry-run
    • Show proposal
    • On confirm: re-run with --apply
    • Update domain hub references
  5. After all fixes: re-run audit skill. Verify P0 count is 0.
  6. Append log entry to wiki/_logs/maintain-YYYY-MM-DD.md:
## Maintain run YYYY-MM-DD HH:MM

### Auto-fixed (structural)
- [X]
- [Y]

### Confirmed by user (semantic)
- [Z]: rationale

### Skipped (declined)
- [W]: reason

Quality gate

  • 0 P0 findings after maintain run (verified by post-audit)
  • Every semantic edit has logged rationale
  • Backup not strictly required (git is the rollback)

Anti-patterns

  • DO NOT capture new sources (Scribe/Researcher)
  • DO NOT synthesize new knowledge (Researcher)
  • DO NOT answer questions (Advisor)
  • DO NOT silently apply semantic fixes — always ask
  • DO NOT write outside wiki/ (especially never to raw/)

Scripts used

  • ${CLAUDE_PLUGIN_ROOT}/scripts/update-hot.sh
  • ${CLAUDE_PLUGIN_ROOT}/scripts/supersede-page.sh
  • ${CLAUDE_PLUGIN_ROOT}/scripts/split-hub.sh
  • ${CLAUDE_PLUGIN_ROOT}/scripts/promote-draft.sh
  • ${CLAUDE_PLUGIN_ROOT}/scripts/regenerate.sh
  • ${CLAUDE_PLUGIN_ROOT}/scripts/update-index.sh
  • ${CLAUDE_PLUGIN_ROOT}/scripts/update-hubs.sh
  • ${CLAUDE_PLUGIN_ROOT}/scripts/wiki-health.sh (post-fix verification)

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.