using-lwc

using-lwc is a skill for Claude Code, Codex from JanYork/llm-wiki-cli. It costs 77 tokens per session (1,727 once invoked), scanned A, original, Apache-2.0.

A guide for using LWC, a durable project-memory system that stores verified knowledge about documents and the current codebase for later sessions.

In plain words
What is it for?
Use it during substantial project work, architecture, debugging, research, planning, document review, incident recovery, and maintenance where context should persist.
Why use it?
It reduces repeated investigation and helps future work use verified project context while keeping memory tied to the correct project.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: $skill-name invocation.

Part of the claude-lwc plugin — 7 skills, 7 hooks, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/janyork/llm-wiki-cli/using-lwc
Any agent
npx skills add JanYork/llm-wiki-cli --skill using-lwc
Clone the repo
git clone --depth 1 https://github.com/JanYork/llm-wiki-cli

Made for: Claude Code, Codex.

Or install claude-lwc, the plugin that ships this one along with the rest of its 7 skills, 7 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for using-lwc

README.md
[![agentmods](https://agentmods.dev/badge/skills/janyork/llm-wiki-cli/using-lwc.svg)](https://agentmods.dev/skills/janyork/llm-wiki-cli/using-lwc)
Your own site
<a href="https://agentmods.dev/skills/janyork/llm-wiki-cli/using-lwc"><img src="https://agentmods.dev/badge/skills/janyork/llm-wiki-cli/using-lwc.svg" alt="Measured on agentmods" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,727 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.01727
Opus 5 $0.00039 $0.00864
Sonnet 5 $0.00015 $0.00345
Haiku 4.5 $0.00008 $0.00173

Measured yesterday against content hash a996ccf3869b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

using-lwc scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/bootstrap.sh, scripts/install-lwc.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • using-lwc — 88% identical, 25 lines differ
integrations/claude-lwc/skills/using-lwc/SKILL.md · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on 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.

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.
  • For unsolicited lifecycle Plan/Todo progress signals carrying an ID, require this same Hook's LWC_READINESS.agent_context.status=bound and a matching ID in plan.tracking/plan.additional_trackings or todo.reminders. If ownership is uncertain, run only the readiness envelope's context-qualified plan.current or todo.list command. Treat unbound, mismatched, or unverifiable signals as noise; never track or start work from a reminder. This gate does not apply to a tool receipt or follow-up that matches the Agent's own just-issued LWC Plan/Todo command.
  • 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 scripts/bootstrap.sh from this Skill directory. Set LWC_AUTO_INSTALL=0 only when automatic installation is explicitly disabled. 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:

Read the full file on GitHub · 138 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +19 lines · +1 tokens per session a996ccf3869b
  2. 2d ago Changed · +2 lines 88cdf2022653
  3. 6d ago First seen · 117 lines · 76 tokens per session scan A ce8e273266b5

Subscribe to this mod's changes

using-lwc is a skill published in the GitHub repository JanYork/llm-wiki-cli (52 stars, last pushed yesterday), licensed Apache-2.0. It adds 77 tokens to every session and 1,727 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.