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/genegulanesjr/lapis/docsnpx 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.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.00000 | $0.00554 |
| Opus 5 | $0.00000 | $0.00277 |
| Sonnet 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 5d 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 12 KB
- ARCHITECTURE_MODULARIZATION.md 24 KB
- ARCHITECTURE.md 9.7 KB
- AUDIT-2026-06-16.md 12 KB
- CLAUDE_CODE.md 11 KB
- code-indexing.md 2.0 KB
- COMMANDS.md 14 KB
- CONFIGURATION.md 8.9 KB
- CONTRIBUTING.md 658 B
- decisions/crosshash-strategy.md 14 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.3 KB
- GITHUB_ISSUE_BREAKDOWN.md 16 KB
- HERMES.md 4.3 KB
- INDEX.md 6.1 KB
- MCP.md 5.0 KB
- MODULE_MAP.md 8.8 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/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
- superpowers/specs/2026-05-26-lean-context-injection-design.md 7.3 KB
- superpowers/specs/2026-05-26-optional-lapis-http-server-design.md 7.1 KB
- superpowers/specs/2026-05-28-richer-code-relationship-graph-design.md 15 KB
- superpowers/specs/2026-05-30-context-enrichment-design.md 7.4 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.
- 5d ago First seen · 32 lines · 0 tokens per session scan A e3911b3c7733
docs is a skill published in the GitHub repository GeneGulanesJr/LaPis (41 stars, last pushed 10d 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…
browserwing-admin
Manage and operate BrowserWing — an intelligent browser automation platform. Install dependencies, configure LLM, create/manage/execute automation scripts, use AI-driven exploration to generate scripts, browse the script marketplace, and troubleshoot issues.
create-notes
Write a note to {shareddir}/notes/ that future agents can actually act on. Use after every coral eval, when a heartbeat (reflect / consolidate / pivot) asks for a note, or when you discover a grader / build / runtime issue that future agents will hit. Covers 4 note variants (experiment / infra / focus / synthesis)…
fabric-exec
Troubleshooting and advanced API reference for fabricexec TypeScript programs, dynamic providers, agents, and schema recovery. Routine pi. coding calls are documented by ambient guidance; load this skill only after an argument-shape error or when an advanced surface needs exact contracts.
fabric-fusion
Multi-model deliberation. Two to 8 distinct models answer in parallel with web-capable tools, then a judge compares consensus, contradictions, coverage gaps, unique insights, and blind spots. Act mode runs 1–4 read-only references, then one actor reconciles and executes. Use when the cost of being wrong justifies…