Skip to main content

wiki-update

Sync the current project's knowledge into the Obsidian wiki. Use this skill from any project when the user says "update wiki", "sync to wiki", "save this to my wiki", "update obsidian", or wants to distill what they've been working on into their knowledge base. This is the cross-project skill that lets you push knowledge from wherever you are into the vault.

설치로 이동

소스 정보

저장소
mangowhoiscloud/crumb
최근 소스 활동
2026년 5월 3일 08:33
감지된 SKILL.md 언어
영어
스타
2
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
wiki-update
description
Sync the current project's knowledge into the Obsidian wiki. Use this skill from any project when the user says "update wiki", "sync to wiki", "save this to my wiki", "update obsidian", or wants to distill what they've been working on into their knowledge base. This is the cross-project skill that lets you push knowledge from wherever you are into the vault.
# Wiki Update — Sync Any Project to Your Wiki You are distilling knowledge from the current project into the user's Obsidian wiki. This skill works from any project directory, not just the obsidian-wiki repo. ## Before You Start 1. Read `~/.obsidian-wiki/config` to get: - `OBSIDIAN_VAULT_PATH` — where the wiki lives - `OBSIDIAN_WIKI_REPO` — where the obsidian-wiki repo is cloned (for reading other skills if needed) 2. If `~/.obsidian-wiki/config` doesn't exist, tell the user to run `bash setup.sh` from their obsidian-wiki repo first. 3. Read `$OBSIDIAN_VAULT_PATH/.manifest.json` to check if this project has been synced before. 4. Read `$OBSIDIAN_VAULT_PATH/index.md` to know what the wiki already contains. ## Language policy — wiki content is English-only All wiki pages (`wiki/concepts/`, `wiki/synthesis/`, `wiki/findings/`, `wiki/references/`, including frontmatter, body, headings, citations, code-comment glosses) are written in **English**. Korean is reserved for design discussion in conversation and ephemeral chat — it does not enter the wiki. Reasons: - The Bagelcode hiring panel + future open-source contributors are the wiki's audience; English is the lowest-friction reading surface for both. - A wiki rebuild / lint / cross-link pass operates on English token boundaries; mixed-language pages create false positives in `wiki-lint` and miss hits in `wiki-query`. - Crumb's root `CLAUDE.md` already mandates English for the codebase + commits + PRs (the wiki is a codebase artifact, not chat). If a draft was originally drafted in Korean (e.g. inside a conversation), translate it as the final step before saving — never commit the Korean form. Citation blocks stay in their source language: English papers stay English; the rare Korean source quotes the Korean inline plus an English gloss. When in doubt, write English. ## Step 1: Understand the Project Figure out what this project is by scanning the current working directory: - `README.md`, docs/, any markdown files - Source structure (frameworks, languages, key abstractions) - `package.json`, `pyproject.toml`, `go.mod`, `Cargo.toml` or whatever defines the project - Git log (focus on commit messages that signal decisions, not "fix typo" stuff) - Claude memory files if they exist (`.claude/` in the project) Derive a clean project name from the directory name. ## Step 2: Compute the Delta Check `.manifest.json` for this project: - **First time?** Full scan. Everything is new. - **Synced before?** Look at `last_commit_synced`. Only consider what changed since then. Use `git log <last_commit>..HEAD --oneline` to see what's new. If nothing meaningful changed since last sync, tell the user and stop. ## Step 3: Decide What to Distill This is the core question from Karpathy's pattern: **what would you want to know about this project if you came back in 3 months with zero context?** Worth distilling: - Architecture decisions and *why* they were made - Patterns discovered while building (things you'd Google again otherwise) - What tools, services, APIs the project depends on and how they're wired together - Key abstractions, how they connect, what the mental model is - Trade-offs that were evaluated, what was picked and why - Things learned while building that aren't obvious from reading the code Not worth distilling: - File listings, boilerplate, config that's obvious - Individual bug fixes with no broader lesson - Dependency versions, lock file contents - Implementation details the code already says clearly - Routine changes anyone could read from the diff The heuristic: **if reading the codebase answers the question, don't wiki it. If you'd have to re-derive the reasoning by reading git blame across 20 commits, wiki it.** ## Step 4: Distill into Wiki Pages ### Project-specific knowledge Goes under `$VAULT/projects/<project-name>/`: ``` projects/<project-name>/ ├── <project-name>.md ← project overview (named after the project, NOT _project.md) ├── concepts/ ← project-specific ideas, architectures ├── skills/ ← project-specific how-tos, patterns └── references/ ← project-specific source summaries ``` The overview page (`<project-name>.md`) should have: - What the project is (one paragraph) - Key concepts and how they connect - Links to project-specific and global wiki pages ### Global knowledge Things that aren't project-specific go in the global categories: | What you found | Where it goes | |---|---| | A general concept learned | `concepts/` | | A reusable pattern or technique | `skills/` | | A tool/service/person | `entities/` | | Cross-project analysis | `synthesis/` | ### Page format Every page needs YAML frontmatter: ```markdown --- title: Page Title category: concepts tags: [tag1, tag2] sources: [projects/<project-name>] summary: >- One or two sentences (≤200 chars) describing what this page covers. provenance: extracted: 0.6 inferred: 0.35 ambiguous: 0.05 created: TIMESTAMP updated: TIMESTAMP --- Use folded scalar syntax (summary: >-) for summary to keep frontmatter parser-safe across punctuation (:, #, quotes) without escaping rules. Keep the summary content indented by two spaces under summary: >-. # Page Title - A fact the codebase or a doc actually states. - A reason the design works this way. ^[inferred] Use [[wikilinks]] to connect to other pages. ``` **Write a `summary:` frontmatter field** on every new/updated page (1–2 sentences, ≤200 chars), using `>-` folded style. For project sync, a good summary answers "what does this page tell me about the project I wouldn't guess from its title?" This field powers cheap retrieval by `wiki-query`. **Apply provenance markers** per `llm-wiki` (Provenance Markers section). For project sync specifically: - **Extracted** — anything visible in the code, config, or a doc/commit message: file structure, dependencies, function signatures, what a file does. - **Inferred** — *why* a decision was made, design rationale, trade-offs, "the team chose X because Y" — unless a commit message, doc, or ADR states it explicitly. - **Ambiguous** — when the code and docs disagree, or when there's clearly an in-progress migration with two patterns living side by side. Compute the rough fractions and write the `provenance:` block on every new/updated page. ### Updating vs creating - If a page already exists in the vault, **merge** new information into it. Don't create duplicates. - If you're adding to an existing page, update the `updated` timestamp and add the new source. - Check `index.md` to see what's already there before creating anything new. ## Step 5: Cross-link After creating/updating pages: - Add `[[wikilinks]]` from new pages to existing related pages - Add `[[wikilinks]]` from existing pages back to the new ones where relevant - Link the project overview to all project-specific pages and relevant global pages ## Step 6: Update Tracking ### Update `.manifest.json` Add or update this project's entry: ```json { "projects": { "<project-name>": { "source_cwd": "/absolute/path/to/project", "last_synced": "TIMESTAMP", "last_commit_synced": "abc123f", "pages_in_vault": ["projects/<project-name>/<project-name>.md", "..."] } } } ``` ### Update `index.md` Add entries for any new pages created. ### Update `log.md` Append: ``` - [TIMESTAMP] WIKI_UPDATE project=<project-name> pages_updated=X pages_created=Y source_cwd=/path/to/project ``` ## Tips - **Be aggressive about merging.** If the project uses React Server Components, don't create a new page if `concepts/react-server-components.md` already exists. Update the existing one and add this project as a source. - **Consult the tag taxonomy.** Read `$VAULT/_meta/taxonomy.md` if it exists, and use canonical tags. - **Don't copy code.** Distill the *knowledge*, not the implementation. "This project uses a debounced search pattern with 300ms delay" is useful. Pasting the actual debounce function is not. - **Project overview is the anchor.** The `<project-name>.md` file is what you'd read to get oriented. Make it good.
GitHub에서 보기