跳到正文
Skillpedia
智能体48k · #6080

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/using-lwc/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. 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 with LWC_AUTO_INSTALL=1 or LWC_GLOBAL_INIT=1. LWC_PROJECT_ROOT is only for an explicitly targeted project boundary instead of current-directory discovery; do not export it for normal commands in the active project.

  2. Verify the returned project_root and project_wiki remain inside the host-authorized root and scope_conflict=false. Require command -v lwc to succeed after bootstrap. Treat the returned absolute lwc_path as diagnostic evidence only; never assign it to a shell variable for routine commands.

  3. When $using-lwc was 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.

  4. 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.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#6080
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能