# Lex

Show CocoLex project lexicon status.

- Repository: https://github.com/Snowflake-Labs/cocoplus (727 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-10-04
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add Snowflake-Labs/cocoplus --skill lex -g -a claude-code -y`
Codex: `npx skills add Snowflake-Labs/cocoplus --skill lex -g -a codex -y`
Cursor: `npx skills add Snowflake-Labs/cocoplus --skill lex -g -a cursor -y`
Gemini CLI: `npx skills add Snowflake-Labs/cocoplus --skill lex -g -a gemini-cli -y`

## Description

Show CocoLex project lexicon status.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

Your objective is to implement `$lex`.

Before proceeding, verify that `.cocoplus/` exists. If not, output: "CocoPlus not initialized in this directory. Run `$pod init` to begin." Then stop.

Read `.cocoplus/lexicon.md` and any `.cocoplus/lexicon/*.md` files. Summarize defined term count, undefined candidates, conflicts, and stale extracted terms.

Available subcommands: `$lex define`, `$lex list`, `$lex show`, `$lex extract`, `$lex validate`.

## Anti-Rationalization

| Shortcut / Temptation | Why It Fails |
|-----------------------|--------------|
| Treat the skill as complete because the file exists | Skill contracts must describe observable behavior and verification, not just command names. |
| Skip artifact and safety checks for a small command | Small commands still mutate state or guide execution; preserve the same gates. |

## Exit Criteria

- [ ] Command behavior matches the owning feature contract.
- [ ] Required reads, writes, and user-visible outputs are described.
- [ ] Safety, governance, and artifact constraints are preserved.
- [ ] Missing state produces a clear, non-destructive result.

