init
Skill4 starsChanged 50 days agoMITView on GitHub
Set up lexi in a project — detect the stack, find the real gate command, choose the testable whitelist, and write .lexi.json plus .lexi/. Run once per project after installing the plugin, and again after updating lexi — on an existing .lexi.json it only asks what the new version added. Use when the user says "lexi init", "set up lexi", or the guard reports it is dormant.
- Reads credentials
156 other projects use a version of this.
Adopted by
Most recently taken up by
- kendrick/working-memory-kittheir own version, first seen Nov 29, 2026
- guhcostan/claude-mega-braintheir own version, first seen Nov 29, 2026
- flegars/greenlyttheir own version, first seen Nov 29, 2026
- nuncaeslupus/doc-controltheir own version, first seen Nov 29, 2026
- mentealterne/GYOStheir own version, first seen Nov 29, 2026
- michalzan/foremantheir own version, first seen Nov 29, 2026
Used with
Projects with it also use daily-arxiv, exp-eval and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
LambenthanSkilldaily-arxiv
每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新
Also in 5 projects that use this
LambenthanSkillexp-eval
实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges
Also in 5 projects that use this
skyllwtSkillexp-pilot-eval
Pilot result evaluation — read pilot results, apply success criteria, update idea page (pilot_result, failure_reason if failed), generate PILOT_VERDICT_REPORT. Called by /ideate Phase 5 after /exp-pilot-run.
Also in 4 projects that use this
skyllwtSkillexp-pilot-run
Pilot experiment execution — read Pilot Spec YAML, write pilot code, run experiment(Confirm with the user before operation and require the applicant to conduct manual inspection), return results. Called by /ideate Phase 5. Does NOT modify wiki pages or judge pass/fail.
Also in 4 projects that use this
gaebalaiSkillcodex-system
PROACTIVELY consult Codex CLI, your highly capable supporter with exceptional reasoning and task completion abilities. Codex is a trusted expert you should ALWAYS consult BEFORE making decisions on: design choices, implementation approaches, debugging strategies, refactoring plans, or any non-trivial problem. When uncertain, consult Codex. Don't hesitate - Codex provides better analysis. Explicit triggers: "think deeper", "analyze", "second opinion", "consult codex".
Also in 4 projects that use this
gaebalaiSkilldesign-tracker
PROACTIVELY track and document project design decisions without being asked. Activate automatically when detecting architecture discussions, implementation decisions, pattern choices, library selections, or any technical decisions. Also use when user explicitly says "記録して", "設計どうなってる", "record this". Do NOT wait for user to ask - record important decisions immediately.
Also in 4 projects that use this
- +5 more from Lambenthan
- +1 more from skyllwt
Other versions156 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 156
- microsoft/vscode★ 196ksame name
- mcollina/skills★ 2ksame name
- skyllwt/OmegaWiki★ 1.7ksame name
- DAIR-AutoResearch/AutoSci★ 1.7ksame name
- PKU-DAIR/AutoSci★ 1.7ksame name
- skyllwt/AutoSci★ 1.7ksame name
- TokenRollAI/cc-plugin★ 487same name
- pipecat-ai/gradient-bang★ 420same name
- AlexPEClub/ai-coding-starter-kit★ 382same name
- dannysmith/tauri-template★ 317same name
146 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- code-reviewSkill
- reviewSkill
- bugSkill
- code-reviewSkill
- featureSkill
- grillSkill
- lexiSkill
- tddSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 2 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 143 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 45
Look for what the project already runs: scripts in package.json, a Makefile target, CI config (.github/workflows/, codemagic.yaml, …
- Distinctive: line 57
Only paths where a deterministic unit test is both possible and worth writing: domain models and parsing, repositories and clients over a …
- Very specific: line 91
When the project's tests do not end in a suffix, or live under more than one root, write mirrors instead of source/tests/test_suffix: a …
- Very specific: line 103
Read the mirror off the tests the repo already has.
- Very specific: line 138
Check the prerequisites. Any missing one stops init here: name it, the user fixes it, then run /lexi:init again.
- Very specific: line 189
Write ARGS_TOKEN as a dollar sign followed by ARGUMENTS, no space: Claude Code fills that token with the caller's arguments when the shim …
- Distinctive: line 201
Run the gate command once.
“Common” is measured: kept by at least 6 in 10 of the 143 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
init — opt this project into lexi
The plugin ships the flow and the guard. This writes the project side:
.lexi.json, the only file the guard reads. Without it the guard is dormant and
the flow has no gate to run.
Invocation: /lexi:init
0. Already set up? Update, do not redo
.lexi.json exists → this is an update run, not a fresh setup. Show the current
gate, source, tests, test_suffix (or mirrors) and testable, and keep them: do not
re-detect or rewrite them unless the user asks to. Skip steps 1–4 and ask only
the questions this version added whose answer is missing:
- no
jevkey, or"jev": false(written before lexi 0.14.0, when Jev was optional) → step 5 (Jev). Jev is required now:falseno longer turns it off; jevis an object but.claude/skills/code-review/or.claude/skills/review/is missing → write the missing shim (step 5);- a shim that still names
jev:code-review(written before lexi 0.12.0) → rewrite it to the step 5 text without asking: it is lexi's own file, and thejevplugin it calls is gone; .claude/settings.jsonenabledPluginslistsjev@lexiorlexi-mods@lexi→ remove them and make surelexi@lexiistrue: both are empty stubs since 0.12.0;.claude/settings.jsonlacks any of the step 4 marketplaces, or one hasautoUpdateother thantrue→ merge it in (step 4, team install).
Then step 6. Nothing missing → say the project is up to date and run step 6 only.
1. Detect the stack
package.json → Node/TS · pyproject.toml or setup.py → Python ·
pom.xml or build.gradle(.kts) → Java/Kotlin · *.csproj → C# · go.mod → Go ·
Cargo.toml → Rust · Gemfile → Ruby · composer.json → PHP ·
pubspec.yaml → Dart/Flutter. Several (a monorepo), or none you recognise → ask.
Confirm what you found, do not assume.
2. Find the real gate command — do not invent one
Look for what the project already runs: scripts in package.json, a Makefile
target, CI config (.github/workflows/, codemagic.yaml, .gitlab-ci.yml), an
existing test script under scripts/ or tool/. Propose that, and say where you
found it.
The gate must be deterministic and offline: unit tests only. Anything that needs a device, a browser, a network or a real clock is not a gate — it is a suite you run elsewhere. If the project's test command pulls those in, propose the narrowest command that does not, and say what you excluded.
3. Choose testable — a narrow whitelist
Only paths where a deterministic unit test is both possible and worth writing: domain models and parsing, repositories and clients over a mocked transport, pure logic, state containers and reducers.
Everything not listed is free to edit with no test, by design: UI, widget and component layers, design tokens, generated code, platform and plugin bindings, declaration-only files. That is the point of a whitelist — the guard bites on logic and stays out of the layers where a unit test would be theatre. A guard that taxes every edit gets bypassed, and then it protects nothing.
Propose the list from what the repo actually contains, and state what you left out and why. Err narrow: a path can be added later, and each addition should be a decision, not a default.
4. Write the files
.lexi.json at the project root:
{
"gate": "npm test",
"source": "src/",
"tests": "test/",
"test_suffix": ".test.ts",
"testable": ["src/domain/", "src/repositories/", "src/parsers/"]
}The default mirror rule: <source><rel>.<ext> → <tests><rel><test_suffix>,
so src/domain/user.ts → test/domain/user.test.ts. Co-located tests work
too — set tests equal to source, giving src/cart/total.ts →
src/cart/total.test.ts. Java and Kotlin fit it as well: src/main/java/ →
src/test/java/ with Test.java.
When the project's tests do not end in a suffix, or live under more than one
root, write mirrors instead of source/tests/test_suffix: a list of
{ "source", "test" }, first match wins. In test, {dir} is the folder under
source and {name} the file name without its extension:
"mirrors": [
{ "source": "app/", "test": "tests/{dir}test_{name}.py" },
{ "source": "packages/api/src/", "test": "packages/api/src/{dir}__tests__/{name}.test.ts" }
]Read the mirror off the tests the repo already has; never pick a convention
the project does not use. Code whose tests sit inside the source file (Rust's
#[cfg(test)]) has no mirror the guard can check: leave it out of testable.
Then create .lexi/ containing an empty allow file, and add .lexi/allow to
.gitignore — it is per-task scratch, not shared state.
Team install. Merge into .claude/settings.json, keeping every other key:
{
"extraKnownMarketplaces": {
"lexi": { "source": { "source": "github", "repo": "savinofiore/lexi" }, "autoUpdate": true },
"ponytail": { "source": { "source": "github", "repo": "DietrichGebert/ponytail" }, "autoUpdate": true },
"caveman": { "source": { "source": "github", "repo": "JuliusBrussee/caveman" }, "autoUpdate": true }
},
"enabledPlugins": { "lexi@lexi": true }
}Committed, this is what reaches the rest of the team: a teammate who trusts the
folder is offered the marketplaces and lexi, and autoUpdate keeps lexi and
every dependency it adds current. Third-party marketplaces do not auto-update
by default, so without it each teammate stays on the version they first
installed. An existing entry for one of these marketplaces keeps its source;
only set autoUpdate to true.
5. Jev — required
Jev is part of lexi, like ponytail and caveman are: there is no opt-out. Tell the user in one line, then go on without asking:
Jev (model router, verbatim compaction, code review after the last GREEN) sends prompts, transcripts and diffs to TypeSafe's API with
TYPESAFE_API_KEY.
Check the prerequisites. Any missing one stops init here: name it, the user
fixes it, then run /lexi:init again. You never ask for the key in chat.
- the Jev layer: part of lexi since 0.12.0; if
/lexi:code-reviewis not in the skill list, run/plugin update lexi@lexi(an older install may still carryjev@lexi: uninstall it); - Claude Code ≥ 2.1.276 (
claude --version); TYPESAFE_API_KEYunderenvin.claude/settings.local.json— per project, never in a settings file that is committed. Rungit check-ignore -q .claude/settings.local.json: if it fails, the file is tracked or not ignored. Stop and say so; the fix isgit rm --cachedplus a.gitignoreline, and the user decides.
Then write, merging into existing files and never overwriting other keys:
.lexi.json→"jev": {}(replacing afalse) — the place for Jev's settings; the review step of the bug and feature flows runs either way;.claude/settings.json→ underenv:"CLAUDE_CODE_ENABLE_FUNCTION_HOOKS": "1"(the plugin's hooks module stays off without it) and"CLAUDE_AUTOCOMPACT_PCT_OVERRIDE": "50"(compaction runs earlier, so Jev prunes while the context is still cheap to rewrite).The settings
envis applied too late for the hooks-module gate: while Claude Code's plugin-hooks rollout is off server-side, the flag counts only in the environment of theclaudeprocess. Runecho $CLAUDE_CODE_ENABLE_FUNCTION_HOOKS; if it is not1, tell the user to addexport CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1to their shell profile (~/.zshrc,~/.bashrc) and restart. Each teammate needs it too. Without it the router stays off silently;review.pydoes not use hooks and works either way..claude/skills/code-review/SKILL.mdand.claude/skills/review/SKILL.md— two project shims. A project skill replaces the built-in skill of the same name, and/reviewneeds its own file, so in this project both commands run Jev's review. They are meant to be committed: the whole team gets the same review. If either file already exists, show it and ask before replacing it.--- name: code-review description: Code review in this project goes through Jev (lexi plugin), replacing Claude Code's built-in review. Use for "/code-review", "review the diff", "can I merge?", "is this code ok?", a PR number, a git ref or a .diff/.patch file. --- This project routes code review to Jev. Invoke the `lexi:code-review` skill with these arguments and follow it: ARGS_TOKEN If that skill is not available, the lexi plugin is missing or older than 0.12.0: say so and stop — do not review on your own. The fix is `/plugin update lexi@lexi`, or deleting `.claude/skills/code-review/` and `.claude/skills/review/` to get the built-in review back.Write
ARGS_TOKENas a dollar sign followed byARGUMENTS, no space: Claude Code fills that token with the caller's arguments when the shim runs. It is spelled out here because in this file it would already hold init's own.review/SKILL.mdis the same file withname: reviewand"/review"in place of"/code-review"in the description.
Say that the project's own conventions can be added to the review later in
.lexi/review.json (see the jev README) — do not write that file now.
6. Verify before declaring done
- Run the gate command once. It has to pass, or the starting state is already broken and the user needs to know that first.
- Take a test file that already exists in the repo and check the mirror rule resolves to it from its source file. If it does not, the config is wrong — fix the config, never move the project's files to satisfy it.
- Count the source files under
testablewith no mirror test. Report the number. Do not fix it: that is the standing debt, and the guard will surface it one file at a time as the code gets touched.
Report the gate command, the testable list, what you deliberately left out,
that count, and that Jev's prerequisites are in place. The router confirms
itself on the first prompt of the next session:
[jev-router] session: ….
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

