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★ 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 factsbelow — behaviour this skill depends on thatPROJECT.mddoes not spell out; get these wrong and a fact that looks right silently commits the wrong thing._lumina/config/project.yaml— read-only; itsconcepts:list is the concept vocabulary you may cite.- You never read or write
_lumina/facts/,_lumina/graph/, or_lumina/_state/directly — only throughproject.mjssubcommands.
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:
summaryshows zero docsfresh,changed, andstalecombined (nothing has ever been ingested), so every doc isnever-ingestedand 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"
}
subjectmust bedoc:<this source>orfrag:<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-writere-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). relationfor an attr fact must be exactly"status"— that is the only relationbuildGraphtreats as a status assignment; anything else on anattrfact is stored but never applied.valueis the fragment's status word, by convention lowercase and, for aDecision-typed doc, one of its lifecycle words (PROJECT.md "Meta-ontology") — the engine does not enforce this vocabulary on a fragment the way
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read
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), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…