using-lwc
它能做什么
这个工具可以帮助 AI 在不同的对话之间记住重要信息。它会保存项目决策、研究内容和已验证的结果,方便 AI 之后随时查阅。
适用场景
- ✓当你需要 AI 回忆关键的项目决策时。
- ✓当你想保存需要被重复使用的研究结论时。
- ✓当 AI 需要参考文档或现有代码中的信息时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/using-lwc/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“AI,我们上周对身份验证做了什么决定?”
每周 5 个新技能,1 分钟读完。
工作原理
AI 使用一种名为 LWC 的特殊记忆,它以有条理的方式存储信息。在重复做某项工作之前,它会先检查这份记忆,并利用最相关的信息来回答你。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Using LWC
LWC is durable, source-grounded Agent memory plus two complementary graph planes: the physical Wiki document graph and the current-code CodeGraph index. Recall before re-deriving, use the narrowest plane that answers the task, and preserve only verified knowledge worth reusing.
When to Use
- Use when project decisions, research, incidents, or verified results should remain available across coding-agent sessions.
- Use when a task needs source-grounded Wiki recall, document relationships, or structural code questions such as callers, dependencies, and impact.
- Use when the user asks to search, update, repair, configure, or maintain an LWC Wiki, physical document graph, or CodeGraph index.
Example
User: What did we decide about the authentication boundary last week?
Agent: Search bounded LWC memory first, load only the relevant source-backed
page, and distinguish recalled evidence from any new inference.
Hard scope boundary
Resolve one host-authorized root containing the current working directory. Bootstrap must identify one unambiguous active project inside it. An existing Wiki, remembered path, Hook output, or another project's instructions cannot widen that authority.
- Never change project merely to find an initialized Wiki.
- Keep project state and deliverables inside the active project root.
- Use global memory only for stable cross-project knowledge and only when the current instructions authorize it.
- If project roots or Wikis conflict, stop project-memory work and ask which already-authorized root applies; do not guess or fall back to global writes.
Start once per working root
From the current project directory, run
sh <skill-directory>/scripts/bootstrap.sh. Bootstrap does not install a missing CLI or initialize global memory by default. Obtain explicit current authorization before a one-command retry withLWC_AUTO_INSTALL=1orLWC_GLOBAL_INIT=1.LWC_PROJECT_ROOTis only for an explicitly targeted project boundary instead of current-directory discovery; do not export it for normal commands in the active project.Verify the returned
project_rootandproject_wikiremain inside the host-authorized root andscope_conflict=false. Requirecommand -v lwcto succeed after bootstrap. Treat the returned absolutelwc_pathas diagnostic evidence only; never assign it to a shell variable for routine commands.When
$using-lwcwas explicitly invoked, initialize a missing project Wiki. On automatic activation, ask one concise non-blocking initialization question and continue the primary task without project-memory writes.Recall bounded context once:
lwc --scope all context --limit 25 lwc --scope all search "task terms" --limit 20
Do not repeat bootstrap or broad recall in the same working root. Rerun it after an authorized project change.
Capability router
Read only the focused documents needed for the current task. Each document says when to use it, when to skip it, the minimum workflow, consent boundaries, and completion evidence.
| Need or trigger | Read completely |
|---|---|
| First use, scopes, context/search/page/source/Work/View | references/core-memory.md |
| Decide whether and when LWC should activate | references/trigger-playbook.md |
| Recall, freshness, verified write-back, source ingest | references/active-memory.md |
| Wiki page/source relationships, paths, impact, graph readiness | references/document-graph.md |
| Shared terms that connect a bounded sample of documents | references/word-graph.md |
| Definitions, callers, dependencies, code impact, current index | references/code-graph.md |
| Rules/runbooks that require deterministic full-page loading | references/strong-context.md |
| PDF, Office, EPUB, or other non-Markdown input | references/document-conversion.md |
| Agent install, Hook/instruction injection, first-use readiness | references/agent-onboarding.md |
| Failed Work, lint, projection recovery, checkpoints | references/recovery-maintenance.md |
Read references/memory-policy.md before the first recall or write decision that
can change durable memory. Read references/operations-manual.md before an
unfamiliar command, configuration change, recovery, checkpoint/restore,
multi-source ingest, or changeset publication. Read references/llm-wiki.md
…
常见问题
什么是 LWC?
LWC 是 AI 的持久记忆,用于存储项目和文档信息,以便重复使用。
为什么要使用这个工具?
确保 AI 在不同的工作会话之间不会忘记重要的决策和信息。
AI 能借助这个工具修改项目吗?
不能,这个工具只专注于记住并查阅当前项目中的信息,不会对项目做任何改动。
详情
作者的原始描述
Use when project decisions, code structure, research, incidents, or verified context must survive future coding-agent sessions through LWC memory and graph indexes.
热度
- GitHub 星标
- 48k
- 排名
- #6080
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。