Command Palette

Search for a command to run...

Назад к скиллам
скилл № 48035

lumi-project-ingest

Extracts relations and fragment status from project doc prose and commits them per doc, changed/stale only by default. Use when the user asks to ingest…

БесплатноБез исполняемых скриптов
tronghieuот tronghieu★ 40 звёзд на GitHub

Установить lumi-project-ingest в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Read _lumina/project/PROJECT.md at the project root before this SKILL.md.

Role

You are project mode's fact extractor. The deterministic parse already covers frontmatter, links, ID mentions, heading-based status, and concept mentions — you add only what prose says that the parse cannot see: meta-relation edges (supersedes, satisfies, governs, depends-on, part-of, contradicts, justified-by, owned-by) and fragment-level status. Every fact you write carries a verbatim quote from the doc you are reading, and you commit it through facts-write — you never touch a doc's own bytes.

Context

  • ## Engine facts below — behaviour this skill depends on that PROJECT.md does not spell out; get these wrong and a fact that looks right silently commits the wrong thing.
  • _lumina/config/project.yaml — read-only; its concepts: list is the concept vocabulary you may cite.
  • You never read or write _lumina/facts/, _lumina/graph/, or _lumina/_state/ directly — only through project.mjs subcommands.

Engine facts

1. Update mode is the default. status prints {docs:[{path, hash, state, metaType, type?}], summary} for every in-scope doc — type is the project type, omitted for an untyped doc; metaType is always present (Document when untyped). By default, candidates are only docs whose state is changed or stale — never-ingested docs are not auto-selected, and fresh never is. Include never-ingested docs too only when one of:

  • the user explicitly asked for them (e.g. "ingest all", "ingest everything", or named specific paths/folders — a named path is always a candidate regardless of its state);
  • this is the first run: summary shows zero docs fresh, changed, and stale combined (nothing has ever been ingested), so every doc is never-ingested and all are offered.

status's own JSON is small (state per doc) — read it directly, no filtering needed. Before starting a batch of more than 20 candidate docs (whatever the selection rule produced), show the count and get the user's approval first. A user-named path that does not appear in status's own doc list at all is out of scope — report it and skip it; don't attempt to write it. A never-ingested doc whose content matches a gone doc's facts is a rename candidate — lumi-project-verify surfaces it as P15, not this skill, but if the user already knows a doc was renamed, name its new path explicitly rather than waiting on update mode or the next full run.

2. facts-write's stdin contract. It needs piped or redirected JSON, never a TTY, and rejects anything else with exit 1: {source, sourceHash, facts: []}. A quoted heredoc needs no file and no shell-escaping, even though evidence quotes routinely contain quotes, brackets, and newlines:

node _lumina/project/project.mjs facts-write <<'JSON'
{ "source": "...", "sourceHash": "...", "facts": [ ... ] }
JSON

sourceHash is exactly the hash string status reported for that doc.

3. One fact's shape (each entry in facts). An edge:

{
  "kind": "edge",
  "subject": "doc:docs/adr/0052-acme-owns-purchasing-supplier-ap-and-the-cost-book.md",
  "relation": "supersedes",
  "object": "ADR-0009",
  "scope": "AP clause and supplier-payment seam",
  "evidence": { "quote": "Partially supersedes [ADR-0009](0009-accounts-receivable-owned-by-acme.md): its\nAP clause and its supplier-payment seam are replaced, its AR decision stands." },
  "provenance": "extracted"
}

An attr, fragment status only:

{
  "kind": "attr",
  "subject": "frag:docs/adr/0052-acme-owns-purchasing-supplier-ap-and-the-cost-book.md#3-the-cost-book-superseded-by-adr-0053",
  "relation": "status",
  "value": "superseded",
  "evidence": { "quote": "### 3. The cost book (superseded by ADR-0053)" },
  "provenance": "extracted"
}
  • subject must be doc:<this source> or frag:<this source>#<anchor> — only ever a node in this doc, the one whose hash you are sending. A claim that reads the other way round (this doc is the one being superseded, governed, or depended on) is written from the other doc's own ingest pass, in the canonical direction — see fact 6 for the one exception (a project-specific inverse mapping).
  • For a frag: subject, the anchor may be the heading's exact rendered text, unslugged — facts-write re-slugs it once and corrects it in the committed file, as long as the slugged form matches a real heading in this doc. An anchor matching no heading either way fails the whole call (fact 7).
  • relation for an attr fact must be exactly "status" — that is the only relation buildGraph treats as a status assignment; anything else on an attr fact is stored but never applied. value is the fragment's status word, by convention lowercase and, for a Decision-typed doc, one of its lifecycle words (PROJECT.md "Meta-ontology") — the engine does not enforce this vocabulary on a fragment the way
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash
  2. 02Read

FAQ

Что делает скилл lumi-project-ingest?

Extracts relations and fragment status from project doc prose and commits them per doc, changed/stale only by default. Use when the user asks to ingest, update, or re-ingest project docs after adding or editing them.

Как установить скилл lumi-project-ingest?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл lumi-project-ingest запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить lumi-project-ingest с