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.
npx agentmods add skills/koersliven/lore/lore-syncnpx skills add koersliven/Lore --skill lore-syncgit clone --depth 1 https://github.com/koersliven/LoreWrote 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.
[](https://agentmods.dev/skills/koersliven/lore/lore-sync)<a href="https://agentmods.dev/skills/koersliven/lore/lore-sync"><img src="https://agentmods.dev/badge/skills/koersliven/lore/lore-sync.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00018 | $0.01570 |
| Opus 5 | $0.00009 | $0.00785 |
| Sonnet 5 | $0.00004 | $0.00314 |
| Haiku 4.5 | $0.00002 | $0.00157 |
Grade A, and why
lore-sync 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 3d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 238 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/sync — Code Structure Auto-Scan
自动扫描项目结构,生成 L1 层知识(代码可表达的结构信息),与 snapshot 比对并更新。
When to Trigger
- User explicitly invokes this skill
- After major refactoring or module changes
- Periodically (e.g., weekly) as maintenance
Purpose
Lore 的 L3 层(过程知识)依赖对话沉淀,但 L1 层(结构知识)可以从代码直接提取。/sync 补补"开发者不说话时 Lore 什么都不知道"的盲区。
L1 层知识范围:
- 模块结构(目录、包、workspace)
- 入口点(Controller、Router、main 函数)
- 外部依赖(imports、package.json、pom.xml)
- 接口定义(公开 API、HSF 接口)
Process
Step 1: Detect Project Type
识别项目技术栈:
检查文件:
- package.json → Node.js/TypeScript
- pom.xml / build.gradle → Java
- go.mod → Go
- Cargo.toml → Rust
- pyproject.toml / requirements.txt → Python
Step 2: Scan Structure
根据项目类型执行扫描:
Node.js/TypeScript
扫描:
- package.json → dependencies, scripts, workspaces
- src/ 目录 → 入口文件 (index.ts, main.ts, app.ts)
- Controller 文件 → HTTP 入口
- Router 文件 → 路由定义
Java
扫描:
- pom.xml → dependencies, modules
- src/main/java/ → 包结构
- *Controller.java → HTTP 入口
- *Service.java → 服务接口
- @HSFService 注解 → HSF 接口
Go
扫描:
- go.mod → dependencies
- main.go → 入口
- internal/ → 内部模块
- api/ → API 定义
Step 3: Extract L1 Knowledge
将扫描结果转为 L1 知识格式:
## L1 Structure Layer
### Modules
- web: HTTP/HSF 入口层
- service: 核心业务逻辑
- dal: 数据访问层
### Entry Points
- POST /api/orders → OrderController.create()
- GET /api/products/:id → ProductController.get()
- HSF OrderService.createOrder() → 订单创建
### Dependencies
- spring-boot-starter-web: HTTP 框架
- mybatis-plus: ORM
- hsf-sdk: RPC 框架
### External Types (待补充)
- AbilityExpand (nurture-product-tenant-common.jar)
Step 4: Compare with Snapshot
读取 snapshot 中现有的 L1 内容,比对差异:
扫描结果:
- 模块: web, service, dal, scheduler (新)
Snapshot 现有:
- 模块: web, service, dal
差异:
+ 新增模块: scheduler
- 入口点一致
~ 依赖版本变更: spring-boot 2.7 → 3.0
Step 5: Generate Update
根据差异生成更新:
新增的结构 → 直接追加到 snapshot
删除的结构 → 标记 [REMOVED],移至 archive
变更的结构 → 标记 [CHANGED],保留新旧对比
Step 6: Write Increment
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.
- 3d ago First seen · 238 lines · 18 tokens per session scan A 4d5c1b7a6bad
lore-sync is a skill published in the GitHub repository koersliven/Lore (5 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 18 tokens to every session and 1,570 once invoked, about $0.0001 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-31.
Other skills, from other repositories
repomix
Pack and analyze codebases into AI-friendly single files using Repomix. Use when the user wants to explore repositories, analyze code structure, find patterns, check token counts, or prepare codebase context for AI analysis. Supports both local directories and remote GitHub repositories.
skill-creator
Generate a new skill from a plain-language description — decides invocation control, arguments, and context cost, then scaffolds, validates, and tests it.
context-end
Close a workspace session by reviewing a proposed summary, recording approved outcomes, updating state and decisions, and checking repository safety. Use only when the user explicitly asks to end, close, or hand off the current session.
context-setup
Build, import, or refresh this workspace's identity, project, reusable-workflow, and weekly-state files through a guided review. Use only when the user explicitly asks to initialize or redo workspace context.
context-start
Load this workspace's current state, recent decisions, blockers, priorities, and session continuity, then give a concise briefing. Use only when the user explicitly asks to begin or resume a workspace session.
context-update
Save a brief mid-session checkpoint to this workspace and update current state only when a priority or open thread changed. Use only when the user explicitly asks to checkpoint or save current progress.