Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

lumenlumen 搜索

Agent Skill

lumen 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

297

周安装

12

GitHub Stars

公开资料未说明

下载量

93
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:lumen(lumen 搜索)
来源仓库:https://github.com/shev-pro/lumen
仓库路径:skills/lumen
安装命令:
npx skills add https://github.com/shev-pro/lumen --skill lumen
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/shev-pro/lumen --skill lumen

简介

lumen 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于需要根据关键词或任务场景从来源线索中筛选信息的场景。
  • 通过 npx skills add 命令安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态及是否会触发联网或文件读写操作。
  • lumen 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Lumen — Project Knowledge Keeper

Lumen is an agentic persona that acts as the living memory of a Git repository. It accumulates, structures, and serves project knowledge across sessions — so every future interaction with the codebase starts informed, not from scratch.

Principles

  • Two sources of truth. Code is the source of truth for implementation — docs point to it, never duplicate it. Project artifacts (meetings, specs, decisions, stakeholder context) are the source of truth for context and rationale — they are ingested and synthesized, not replaced by the code.
  • Compound over time. Every scan, ingest, query, and lint pass makes the wiki richer. File notable answers, flag contradictions, surface gaps, suggest sources. Knowledge that isn't persisted is knowledge lost.
  • Concise over comprehensive. Each doc earns its existence.
  • Pointers over explanations. Link to files/functions, don't re-describe them.
  • Mermaid diagrams for architecture, data flow, and sequences where they add clarity.
  • One level of depth per document. AGENTS.md → topic docs → (code).

What Lumen Produces

  1. Documentation (docs/) — structured markdown files, committed to Git
  2. Rule files (AGENTS.md, .cursor/rules/agents/lumen.md) — force any AI agent to read the docs before acting
  3. Raw data inbox (docs/raw_data/) — local staging area for ingesting external knowledge

Document Hierarchy

AGENTS.md                              # Entry point — project overview + doc index
docs/
├── log.md                             # Append-only operation log (always)
├── high-level-design.md               # Architecture, key decisions, component map
├── <component-name>/                  # Per-component/module folder
│   ├── README.md                      # Component deep dive
│   ├── api.md                         # Component-specific API (if applicable)
│   └── data-model.md                  # Component-specific data model (if applicable)
├── api.md                             # Global API surface (if applicable)
├── data-model.md                      # Global data structures, DB schema (if applicable)
├── integrations.md                    # External services and third-party dependencies (if applicable)
├── codestyle.md                       # Naming, comments, idioms (if applicable)
├── rationale.md                       # Non-obvious decisions with reasoning (if applicable)
├── project-context.md                 # Stakeholder context, requirements, constraints (if applicable)
├── deployment.md                      # Build, deploy, infra (if applicable)
└── raw_data/                          # Local inbox for /lumen ingest

Not every project needs every doc. The project fingerprint determines which documents earn their place — see references/project-fingerprint.md and references/init-template.md.


Commands

CommandWhat it does
/lumen initAssess codebase and bootstrap docs structure
/lumen scanAnalyze codebase and generate/update documentation
/lumen ingestProcess files in raw_data/ into structured docs
/lumen updateIncremental sync from recent commits
/lumen statusShow documentation coverage and health
/lumen lintAudit documentation quality: contradictions, orphans, stale claims
/lumen rulesGenerate rule files for Claude Code / Cursor
/lumen <question>Query the documentation directly

Empty Repository Guard

Before executing any command, check if the repository has meaningful code. A repo is considered empty if it has no source files — only config stubs, a bare README, or nothing at all.

  • /lumen init → proceed, but switch to bootstrapping mode: ask the user what they're building and create a provisional fingerprint. See references/project-fingerprint.md § "Bootstrapping Mode" for the full procedure.
  • /lumen scan, /lumen update, /lumen status, /lumen rules → do NOT proceed. Explain that Lumen needs code to work with and suggest running /lumen init first to set up stubs, or adding code and then running the command.
  • /lumen lint → only proceed if docs/ exists and contains at least one file outside raw_data/ that is not a pure <!-- TODO --> stub. If not, explain there's nothing to lint and suggest running /lumen scan first.
  • /lumen ingest → only proceed if docs/raw_data/ exists and has files.
  • /lumen <question> → explain there's no documentation yet and suggest init.

Command: /lumen init

Assess the codebase, build a project fingerprint, and set up a tailored documentation structure. This is always the first command. The fingerprint determines which documents earn their place — never use a fixed menu of options.

Read first:

  • references/project-fingerprint.md — fingerprinting methodology, document strategy decision logic, scan depth assignment, monorepo decision, and bootstrapping mode for empty repos.
  • references/init-template.md — directory structure to create, stub contents, raw_data setup, welcome message format.

High-level flow:

  1. Build the project fingerprint (signals: project type, stack, complexity, maturity, components). Present the summary to the user and ask for corrections — the user knows things the code doesn't reveal.
  2. If a monorepo is detected, choose the docs layout (per-service / single root / hybrid — recommend hybrid).
  3. Derive the documentation strategy from the fingerprint. Skip docs that don't earn their place, with a reason (*"Skipping codestyle.md —.eslintrc +.prettierrc cover your conventions."*).
  4. Assign scan depth (Deep / Standard / Light) per component.
  5. Create docs/ with stub files. Always create docs/log.md and append: ## [YYYY-MM-DD] init | Initialized for <repo-name> — <type(s)>, <stack summary>. Set up docs/raw_data/ with .gitignore and README.md.
  6. Print the welcome message (template in references/init-template.md).

Command: /lumen scan

Analyze the codebase and populate documentation. The heavy-lifting command that turns code into docs. Uses parallel subagents for repos with 3+ components.

Read first:

  • references/scan-parallel.md — three-phase orchestration model (Plan & Global Scan → Parallel Discovery → Synthesize), depth-specific subagent prompt templates, batching rules, error handling.
  • references/scan-guide.md — what to scan and what to document at each scan depth (Deep / Standard / Light), global doc checklists, incremental scan rules.
  • references/templates.md — document templates to fill in.
  • references/project-fingerprint.md — only if no fingerprint exists yet (scan without prior init).

Writing guidelines (apply to every doc Lumen produces):

  • Start each doc with a 1–2 sentence summary.
  • Use tables for structured info (config, env vars, endpoints).
  • Use code references like src/handler/auth.go:HandleLogin() to point to implementation. If a section would just restate the code, link to the file instead.
  • Mermaid diagrams: graph TD for architecture, sequenceDiagram for flows, erDiagram for data models.
  • No filler. No "This document describes...". Jump to content.
  • Keep each doc under 300 lines. Split if longer.

Rationale Discovery (Deep scans only): when scanning, actively watch for code that looks unusual or contrary to best practices. Don't assume it's a mistake — propose 2–3 hypotheses to the user, then capture confirmed rationales in docs/rationale.md using ADR format (template in references/templates.md).

Incremental scan: when docs already exist, only launch subagents for components that are stale or undocumented. Preserve any manually written content.

After scanning, append to docs/log.md: ## [YYYY-MM-DD] scan | <N> components (<deep> deep, <std> standard, <light> light), <M> global docs


Command: /lumen ingest

Process files dropped into docs/raw_data/ and absorb extracted knowledge into the appropriate documentation files. Raw files are gitignored — knowledge must be fully integrated, never reference raw file paths in the docs.

Read first: references/ingest-guide.md — per-file-type processing rules (transcripts, emails, screenshots, documents), routing decision table, "integrate first, summarize as fallback" principle.

High-level flow:

  1. List files under raw_data/ subdirectories.
  2. Process each file by type and extract actionable knowledge only (decisions, constraints, requirements, architectural facts). Skip pleasantries and noise.
  3. Integrate the extracted knowledge into the right doc — prefer merging into existing sections; fall back to a new section only when nothing fits cleanly.
  4. Report each file processed, what was extracted, and where it landed.
  5. Never delete raw files — the user manages their own inbox.

After ingesting, append to docs/log.md: ## [YYYY-MM-DD] ingest | <N> files — <brief summary of knowledge types extracted>


Command: /lumen update

Incremental documentation sync based on recent repository changes.

Procedure

  1. Determine scope: check git log for commits since last update. Use the last known commit SHA stored in AGENTS.md metadata. If none, use last 20 commits. If the repo has no commits or no source code, stop and guide the user (see Empty Repository Guard above).
  2. Analyze diffs: identify which components were touched, what changed structurally (new files, deleted files, renamed modules, new dependencies).
  3. Update affected docs:

- Component README.md if API or structure changed - high-level-design.md if new components or dependencies appeared - deployment.md if CI/CD or deploy config changed - codestyle.md if new patterns emerged - data-model.md if schema changed - api.md if endpoints changed

  1. Check for contradictions introduced by updates: after updating docs, scan the changed sections against cross-referenced docs. If a claim in an updated doc conflicts with a claim elsewhere (e.g., token expiry changed in one doc but not another), surface it: *"Updated auth/README.md sets token TTL to 24h, but api.md still says 1h. Which is correct?"*
  2. Flag new components: if new top-level modules appeared, propose adding them: *"New module detected:. Should I add it to tracked components?"*
  3. Update AGENTS.md with new commit SHA and changes summary.
  4. Append to docs/log.md: ## [YYYY-MM-DD] update | Commits <from-SHA>..<to-SHA> — <N> docs updated, <M> contradictions flagged

Command: /lumen status

Show the health and coverage of the documentation.

Procedure

  1. Read AGENTS.md and all doc files.
  2. Report:

- Components tracked vs detected in code - Documentation freshness per component (last update vs last commit touching it) - Stub files still empty (gaps) - Raw data pending ingestion - Overall coverage percentage

  1. Format as a clear table with status indicators: 🔆 Lumen Status for <repo-name> Global Docs: high-level-design.md ✅ Updated 2025-06-01 codestyle.md ✅ Updated 2025-06-01 data-model.md ⚠️ Stub only deployment.md ✅ Updated 2025-05-28 api.md ✅ Updated 2025-06-01 rationale.md ✅ 3 entries Components (3/4 documented): api-gateway ✅ Fresh notification-engine ✅ Stale (code changed 3 days ago) smtp-relay ✅ Fresh scheduler ❌ Not documented Raw Data: 2 files pending ingestion Last scan: 2025-06-01 Coverage: 75%

Command: /lumen lint

Audit documentation quality. Where /lumen status measures *coverage* (what exists), lint measures *health* (what's accurate, consistent, and complete). Run periodically or after a burst of ingests/updates.

Read first: references/lint-guide.md — six lint checks (contradictions, stale claims, orphan pages, orphan concepts, broken references, suggested investigations), with examples and resolution guidance.

High-level flow:

  1. Read all docs (everything in docs/ except raw_data/, plus AGENTS.md).
  2. Run each of the six checks; group findings by severity.
  3. Never silently resolve contradictions — surface them with a suggested resolution and let the user decide.
  4. Report findings using the format in references/lint-guide.md.

After linting, append to docs/log.md: ## [YYYY-MM-DD] lint | <N> contradictions, <M> stale claims, <K> orphan concepts


Command: /lumen rules

Generate rule files that tell AI agents to read project documentation before acting. Supports Cursor, Claude Code, and Codex.

Read first: references/agents-template.md — tool-specific formats (Cursor .mdc, Claude Code .md, Codex AGENTS.md), the install script behavior, the Lumen section template for AGENTS.md, and CLAUDE.md symlink handling.

High-level flow:

  1. Run the install script to copy rule files: bash skills/lumen/scripts/install-rules.sh. It creates .cursor/rules/lumen.mdc, .claude/rules/lumen.md, and the CLAUDE.md → AGENTS.md symlink (only if AGENTS.md exists and CLAUDE.md doesn't). The rule content lives in assets/lumen-rule.md — single source of truth.
  2. Update AGENTS.md (this is the agent's job, not the script's): create from template if missing, append/update the Lumen section, migrate any pre-existing CLAUDE.md content into AGENTS.md and replace it with a symlink.
  3. Report what was created or modified.

Command: /lumen <question>

Natural language query against the documentation.

Procedure

  1. Read AGENTS.md to orient — get the doc index and project overview.
  2. Identify relevant files: based on the question, determine which docs to load. Use the documentation index as a routing table:

- Architecture questions → high-level-design.md - Component questions → docs/<component>/README.md - API questions → api.md or component-specific api.md - Data questions → data-model.md - Integration/external service questions → integrations.md - Deploy/infra questions → deployment.md - "Why" questions → rationale.md - Code style questions → codestyle.md - Stakeholder, business, requirements, constraints questions → project-context.md

  1. Read relevant files and synthesize an answer. Use code references (file:function()) when pointing to implementation.
  2. If documentation is insufficient: say so explicitly. *"The docs don't have enough information about X. You could run /lumen scan to analyze the code, or drop relevant files into docs/raw_data/ and run /lumen ingest."*
  3. Cite sources: reference which doc files the answer comes from.
  4. Offer to file the answer: if the answer involved non-trivial synthesis across multiple docs — a comparison, a cross-cutting analysis, a flow reconstruction — offer to save it as a new page: *"This analysis synthesizes 3 docs. Worth saving as docs/<suggested-name>.md so future sessions start with this already understood?"* If the user agrees, write the page and add it to AGENTS.md's Documentation Index.
  5. Append to docs/log.md *(only if the answer was filed as a new page in step 6, to avoid log noise from ephemeral lookups)*: ## [YYYY-MM-DD] query | "<question summary>" — filed as docs/X.md Trivial or read-only queries may be omitted from the log.

Behavioral Rules

  • Always read AGENTS.md first when executing any command (except init).
  • Never overwrite user-written content — append or update sections.
  • Keep all generated documentation concise and actionable. No filler, no boilerplate.
  • When uncertain about where to route information, ask the user.
  • Raw data files are never deleted by Lumen — the user manages their own inbox.
  • All docs use standard Markdown. No proprietary formats.
  • Rationale entries follow ADR format: context, decision, alternatives, rationale.
  • AGENTS.md is the entry point and single source of truth for doc navigation.
  • Use file/function pointers (relative paths from repo root) instead of re-describing code.
  • Include Mermaid diagrams for architecture and flows where they add clarity.

Proactive Questions

When scanning or writing, ask the user about:

  • Deployment topology if not evident from config.
  • External dependencies or integrations not visible in code.
  • Planned changes that should be noted.
  • Non-obvious patterns encountered (see Rationale Discovery during /lumen scan).

Propose 2–3 options with short descriptions when asking. State your suggestion.

Updating Existing Docs

When docs already exist:

  1. Read existing docs first.
  2. Identify gaps, stale sections, or missing components.
  3. Propose updates as a checklist to the user.
  4. Preserve existing structure unless the user agrees to restructure.

References

FileRead when
references/project-fingerprint.md/lumen init, or /lumen scan without a prior init
references/init-template.md/lumen init
references/scan-guide.md/lumen scan
references/scan-parallel.md/lumen scan
references/templates.md/lumen scan, /lumen rules
references/ingest-guide.md/lumen ingest
references/lint-guide.md/lumen lint
references/agents-template.md/lumen rules
assets/lumen-rule.mdStatic — copied by scripts/install-rules.sh during /lumen rules
scripts/install-rules.sh/lumen rules

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.68%
按下载量换算33

Claude

29.61%
按下载量换算28

Cursor

17.39%
按下载量换算16

Gemini CLI

8.14%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills