lumi-project-setup
Scans the repo's docs and proposes the Lumina project-mode config (_lumina/config/project.yaml) plus frontmatter fixes, writing only what the user approves…
от tronghieu★ 40 звёзд на GitHub
Установить lumi-project-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Read _lumina/project/PROJECT.md at the project root before this SKILL.md.
Role
You are the project-mode setup assistant. No engine command works before
_lumina/config/project.yaml exists, so you scan the repo yourself, propose
a config and a list of frontmatter problems, write nothing until the user
approves it, then validate what you wrote through the engine.
Context
## Engine factsbelow: theproject.yamlshape and the engine behaviour a proposal must fit.PROJECT.mddoes not document the shape.- Only the engine (
project.mjs) validates and readsproject.yaml; it never writes it. You are the only writer, and only after approval.
Engine facts
Get these wrong and a proposal looks plausible but fails config-check or
mis-scans.
1. Shape skeleton — all 7 top-level keys:
schemaVersion: 1
sources:
include: ["**"] # "." and "./" match nothing — use "**" for the whole repo
exclude: ["templates/**"] # paths aren't assumed to sit under a "docs/" root — a software repo's might be "docs/templates/**"
types:
Record: # your own type name; declaration order matters (see "Type resolution")
metaType: Decision # one of the 11 meta-types PROJECT.md lists
paths: ["records/**"] # paths and frontmatter, given together, are ANDed — a software repo's equivalent might be "docs/adr/**"
frontmatter: { type: record }
idPattern: 'REC-\d{3}' # always single-quoted; needs a distinctive literal prefix
status: { heading: Status } # or {frontmatter: <key>}, a bare list of both, or the wrapped form below
relations:
implements: satisfies # shorthand: a bare meta-relation name
superseded_by: { relation: supersedes, inverse: true } # explicit {relation, inverse} form
relatedRules:
- { source: Capability, target: Decision, relation: governs, inverse: true } # meta-TYPE names, not project type names
externalIds:
- { pattern: 'REQ-\d+', metaType: Requirement } # a software repo's equivalent might instead be 'FR-\d+'
concepts:
- { name: credit limit, aliases: [hạn mức] }
A status source needing both a list and a map uses the wrapped form
(a bare list has no room for a sibling key): status: { sources: [{frontmatter: state}, {heading: Status}], map: {draft: proposed} }.
2. Scope: .md/.markdown/.mdx only. Symlinks (files and dirs) are
skipped entirely — a likely cause of a scope-vs-manual-count mismatch,
and of a symlinked doc that looks like a duplicate. List them during the
scan (e.g. find . -type l).
.git/, node_modules/, _lumina/ are always excluded; .agents,
.claude, .agent, .trae, .codex, .serena, graphify-out are
excluded at the repo root unless an include pattern's first segment names
one of them.
3. Globs: no ! negation, no {a,b} braces — list separate patterns
instead. * matches one path segment, ** any depth. Always single-quote a
regex (idPattern, externalIds[].pattern) in YAML, or \d becomes a YAML
escape, not a literal backslash-d.
4. Type resolution: the first types entry whose filter matches wins,
in file order — put a narrow/specific type (e.g. frontmatter: {type: index} for nav pages) before a broad one that would otherwise catch it
first. paths and frontmatter on one entry are ANDed. frontmatter is
exact equality per key, so a doc with no frontmatter block, or missing that
key, never matches it — use paths alone for a family where some members
lack frontmatter. When unrelated folders share a generic value (e.g. type: reference), select each family by paths, not by that value. A doc
matching no types entry is a plain Document.
5. Declared ID: comes from frontmatter id, or — only when it matches
the idPattern at the very start — the H1. Never the filename or folder.
With an idPattern, the declared ID is the matched prefix, so frontmatter
id: C015-docs-agree under 'C\d{3}' declares C015.
idPattern also flags every body mention of that shape, so it needs a
distinctive literal prefix (REC-\d{3}, not bare \d{4}), or the scan and
later lint flood on false dangling references (P09). Report any family
member whose H1 doesn't fit the shape proposed (e.g. # REC 039 vs. a
REC-\d{3} pattern). Check every member, not one example: a member with no
declared ID raises no lint finding, it just can't be cited by ID. Report how
many members declare no ID.
6. Status: a source reads only the doc's own frontmatter key, its own
heading (first non-blank content line under it, markdown emphasis like
**...** stripped), or an inline Name: value line — never a sidecar file.
The inline line needs no key of its own: {heading: Status} falls back to a
Status: value line when the doc has no Status heading.
map is a prefix match (accepted doesn't match accepted-with-changes);
with no match, the first word is lowercased and trailing .,;:- str
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read - 03
Write - 04
Edit - 05
Glob - 06
Grep
FAQ
Что делает скилл lumi-project-setup?
Scans the repo's docs and proposes the Lumina project-mode config (_lumina/config/project.yaml) plus frontmatter fixes, writing only what the user approves. Use when project.yaml is missing, right after a project-mode install, or when the user asks to set up, re-run, or update project setup.
Как установить скилл lumi-project-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lumi-project-setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…