/lagune:lagune Describe the work to do, and Lagune builds it safelyfrom lagune
Builds code with security-by-default by loading project charter and defensive security knowledge, then verifying the result. Use before writing or modifying any code.
Ships in lagune. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The User Input above decides how this command runs. Read it before proceeding. A placeholder left unfilled above is not the input: the User Input is then the words that came with this command, or empty when there are none.
You are doing the work the prompt asks for (a login page, an upload, an endpoint, whatever it is), and making it secure as you build it: the same work you would do anyway, built so the code is safe-by-default the moment it lands. This bends to any prompt at any stage, from a first scaffold to a change on a mature codebase.
Read the charter at .lagune/memory/charter.md, if it exists: its security principles are the rules every part of this work must respect. When there is none, proceed on the safe-by-default baseline the specializations carry, and tell the user in one line that you are working without a charter.
Before any specialization or any code, think through the work the prompt asks for the way you normally would: what you will build, the pieces it needs, and the boundaries it crosses. A login page implies credentials, a session, and a form that takes input from outside. An upload implies a file crossing a boundary and landing somewhere. An endpoint implies untrusted input and a response.
This is your own reasoning, not a checklist, and its only job is to give Step 3 something concrete to match: the security-relevant surfaces of what you are about to build.
A prompt may also mention a side quest, the dashboard's name for anything a phase left open under .lagune/memory/: detect's Not determined, plan's Open questions, and harden's Remaining.
Specializations are focused, language-agnostic security knowledge modules that load only on demand. List the catalog once: call lagune_read with command set to catalog.
It prints each specialization this project uses as name: tags, suffixing [required] on any the catalog flags. The tags say what each one covers. Reach a verdict on every entry, one at a time:
[required]: always applies. Its knowledge governs the work regardless of what you are building.Judge from your Step 2 reasoning, not from how relevant an entry feels. Read every entry that applies by calling lagune_read with command set to catalog and arguments set to ["<name>"], one at a time: each carries the defense knowledge for its class of work (uploads, shell, sessions, and so on). Keep the list of specializations you applied for Steps 5 and 6.
Build what the prompt asked for and nothing beyond it, exactly as you normally would, with the charter's principles and the matched specializations shaping every security-relevant part. It is the work itself, not an audit of the surrounding code.
Before you call the work done, re-read what you built, without rebuilding it, and confirm the defense holds for each specialization you applied in Step 3 and each charter principle that bears on this work:
If the check finds a gap, close it now and re-check, until the defense holds across everything you built.
Output a short summary to the user, in plain language a non-developer understands:
Run every lagune <subcommand> call from the project root. If the lagune_read and lagune_write MCP tools are available, make every call through them. Otherwise, run it in the shell as npx --yes [email protected] read <command> <arguments> and npx --yes [email protected] write <command> <arguments> as a fallback.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
secure-by-default, defensive-coding, security-review, lagune
npx skills add wellwelwel/lagune --skill '*' --agent claude-code -y9 skills in this plugin
/lagune-charterEstablish or update the project's security charter, the safe-by-default principles every later phase must respect. Reads the project's files to learn what it is and uses, weighs any description you give against them, and asks when something is unclear./lagune-detectDetect what the system actually does by reading the code, and map the security-relevant findings (login, uploads, payments, data exposure, and so on) with the evidence later phases need. Scans the whole project, named files, or a focused scope./lagune-hardenApply the defense plan's fixes to the code, safely and one at a time, then record what was applied and what is left. Reads the plan and the charter, then hardens every fix, the fixes, files, or directories you name, or a priority you choose.Other plugins' skills for the same job