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 skills add GeneGulanesJr/LaPis --skill docsgit clone --depth 1 https://github.com/GeneGulanesJr/LaPisWrote 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/genegulanesjr/lapis/docs)<a href="https://agentmods.dev/skills/genegulanesjr/lapis/docs"><img src="https://agentmods.dev/badge/skills/genegulanesjr/lapis/docs/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/genegulanesjr/lapis/docs"><img src="https://agentmods.dev/badge/skills/genegulanesjr/lapis/docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 2 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Agent Snooping · line 3 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
- medium Agent Snooping · line 27 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
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.1 | $0.00000 | $0.00554 |
| Opus 5.5 | $0.00000 | $0.00222 |
| Sonnet 5.5 | $0.00000 | $0.00111 |
| Haiku 4.5 | $0.00000 | $0.00055 |
Grade A, and why
docs 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 1mo 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 — 32 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Memory Layer Skill
This is the companion skill doc for the skills/memory-layer/SKILL.md extension registration. For the authoritative and complete skill reference, see ../skills/memory-layer/SKILL.md.
Overview
The memory layer provides persistent memory capabilities for the Pi coding agent. It runs as a Pi extension with a local SQLite backend, providing observation CRUD, code indexing, code analysis, doc indexing, trust scoring, and session lifecycle management — all without cloud dependencies or API keys.
The same backend also powers a Claude Code CLI integration (lapis claude-code install) that wires MCP tools plus lifecycle hooks for context injection, guardrails, passive capture, and session tracking. See CLAUDE_CODE.md.
Key Capabilities
- Declarative memory — save, search, update, and delete observations (decisions, bugfixes, patterns, discoveries).
- Code indexing — web-tree-sitter (WASM) parses JS/TS/TSX/Go/Python/Rust/SQL for semantic symbol lookup.
- Code analysis — import graphs, call hierarchies, blast radius, dead code, complexity, hotspots, cycles, importance, coupling, signal chains, layer violations, AST patterns, provenance, untested detection, PR risk, and unified coding context.
- Doc indexing — Markdown sections, links, glossary terms, code examples, broken link detection, tutorial path reconstruction.
- Trust scoring — memories linked to changed code lose confidence; stable linked code recovers trust.
- HTTP server — optional REST API for programmatic access to the Aurex domain model and code analysis.
- Auto-detection — the extension automatically captures decisions, bugfixes, and discoveries from assistant messages.
- Claude Code bridge — first-class CLI integration via MCP + hooks (
lapis claude-code install).
See Also
CLAUDE_CODE.md— Claude Code install, hook mapping, troubleshootingMCP.md— standalone MCP server (tools only)
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- API.md 13 KB
- ARCHITECTURE_MODULARIZATION.md 24 KB
- ARCHITECTURE.md 11 KB
- AUDIT-2026-06-16.md 12 KB
- CLAUDE_CODE.md 14 KB
- code-indexing.md 2.7 KB
- COMMANDS.md 15 KB
- CONFIGURATION.md 12 KB
- CONTRIBUTING.md 658 B
- DECISION_DRIVEN_COMPACTION.md 11 KB
- decisions/crosshash-strategy.md 14 KB
- decisions/decision-engine-plan.md 57 KB
- diagrams/lapis-architecture.html 30 KB
- diagrams/lapis-memory-lifecycle.html 23 KB
- diagrams/lapis-memory-lifecycle.png 258 KB
- diagrams/lapis-memory-lifecycle.svg 5.4 KB
- diagrams/lapis-module-boundaries.html 25 KB
- diagrams/lapis-module-boundaries.png 217 KB
- diagrams/lapis-module-boundaries.svg 5.5 KB
- DREAM_CYCLE.md 2.5 KB
- GITHUB_ISSUE_BREAKDOWN.md 16 KB
- HERMES.md 4.3 KB
- INDEX.md 7.6 KB
- JUDGMENT.md 14 KB
- MCP.md 5.4 KB
- MODULE_MAP.md 10 KB
- photorec.se2 40 KB
- superpowers/plans/2026-05-04-tiered-browser-smolvm-chromium.md 53 KB
- superpowers/plans/2026-05-10-fix-github-issues-34-35-36.md 23 KB
- superpowers/plans/2026-05-12-extension-only-cli.md 16 KB
- superpowers/plans/2026-05-12-merge-pr22-safely.md 25 KB
- superpowers/plans/2026-05-13-crosshash-v0.1-phase-0-1-2.md 61 KB
- superpowers/plans/2026-05-13-phase2-edge-extraction-resolution.md 60 KB
- superpowers/plans/2026-05-15-crosshash-migration-strategy.md 22 KB
- superpowers/plans/2026-05-15-gate-extraction-on-test-suite.md 30 KB
- superpowers/plans/2026-05-15-module-boundary-failure-isolation-tests.md 15 KB
- superpowers/plans/2026-05-17-readme-architecture-diagrams.md 3.7 KB
- superpowers/plans/2026-05-18-code-analysis-coverage.md 41 KB
- superpowers/plans/2026-05-20-consistency-fixes.md 27 KB
- superpowers/plans/2026-05-20-issues-125-126.md 17 KB
- superpowers/plans/2026-05-23-fix-bench-regressions.md 16 KB
- superpowers/plans/2026-05-23-improve-navigation-ranking.md 8.3 KB
- superpowers/plans/2026-05-23-reduce-noisy-auto-context.md 16 KB
- superpowers/plans/2026-05-23-route-current-source-questions.md 2.1 KB
- superpowers/plans/2026-05-23-seed-canonical-memories.md 11 KB
- superpowers/plans/2026-05-23-stale-index-guidance.md 4.1 KB
- superpowers/plans/2026-05-24-bench-pi-realworld.md 64 KB
- superpowers/plans/2026-05-27-optional-lapis-http-server.md 66 KB
- superpowers/plans/2026-05-28-richer-code-relationship-graph.md 73 KB
- superpowers/plans/2026-05-29-fix-context-injection-regression.md 22 KB
- superpowers/plans/2026-06-01-ranking-quality-pack.md 45 KB
- superpowers/plans/2026-06-04-lapis-phase5-runtime-reality.md 39 KB
- superpowers/plans/2026-06-05-async-code-indexing.md 34 KB
- superpowers/plans/2026-06-05-output-compression-hook.md 25 KB
- superpowers/plans/2026-06-06-dashboard-tui.md 36 KB
- superpowers/plans/2026-06-06-switch-to-better-sqlite3.md 9.8 KB
- superpowers/plans/2026-09-26-jev-judgment-layer.md 55 KB
- superpowers/plans/TODO-2026-06-05-output-compression-hook.md 960 B
- superpowers/specs/2026-05-12-extension-only-cli-design.md 7.6 KB
- superpowers/specs/2026-05-23-scope-aware-edge-extraction-design.md 18 KB
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.
- 1mo ago First seen · 32 lines · 0 tokens per session scan A e3911b3c7733
docs is a skill published in the GitHub repository GeneGulanesJr/LaPis (55 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 554 tokens. 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.
Other skills, from other repositories
memory-compounding
Review and sharpen persistent memory so it compounds instead of accumulating. Use when pruning pi-hermes-memory entries, doing monthly memory hygiene, or when the same lesson has been recorded multiple times.
session-handoff
Hand off work to another Pi session — write a handoff doc, save key decisions to memory, and notify the target session via intercom. Use when a session is getting long, when you need to continue work in a fresh context, or when transferring work between projects/sessions. Composes handoff.ts (doc writer) + memory…
agent-state-bar
A design guide for an agent status bar: a short, automatically updated summary of progress, remaining tasks, tool counts, errors, and system state placed near the latest model input.
knowledge-org
A guide to organising large bodies of knowledge so an AI system can navigate relationships, summaries, and layers instead of searching only flat text chunks. It covers tree indexes, knowledge graphs, file-like structures, incremental updates, and long-term memory layouts.
context-compression
A guide to shortening the information an agent carries between steps. It explains how to replace large tool outputs and old conversation details with compact, useful summaries while preserving important decisions and constraints.
memory-system
A guide to giving an AI agent persistent, user-specific memory across conversations. It covers what to remember, how to store it, how to update or compress it, and when to use memory instead of a shared knowledge base.