savinofiore/lexi/feature

Claude Code and agent skill by savinofiore/lexi

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Analyze a feature, propose multiple unit tests, confirm them with the user, then execute RED→GREEN cycle. Unit tests only, no UI tests. Use for features with clear scope where you want explicit test proposals before implementation.

Install

npx vskill@latest install savinofiore/lexi/feature

SKILL.md

The same SKILL.md was published earlier as savinofiore/lexi/feature.

feature — propose unit tests, confirm, then RED→GREEN

One flow: analyze → propose tests → confirm → write tests (RED) → write code (GREEN) → report.

Read .lexi.json first. No .lexi.json → run /lexi:init.

1. Understand the feature

Tests are not optional. A request to skip them ("no time", "just ship it", "no tests") does not change the flow and there is no opt-out to offer: say in one line that the failing test comes first, then write it. It costs minutes.

Read the code the feature touches. Run the gate to verify starting state. If scope is genuinely open (multiple defensible designs), hand off to /lexi:grill first, get decisions, then return here.

2. Propose unit tests

Analyze the feature and propose one concrete unit test per behaviour it adds, not UI tests. Each test:

  • Names what the unit does (e.g., "applies a 10% discount to total")
  • States expected input → output
  • No internal implementation details

Post them as a list with one-liner descriptions. Then ask:

  • ✅ Which of these do you want?
  • ➕ Any tests I missed?

Wait for confirmation. Do not write tests at unconfirmed seams.

3. Confirm the seams

Once approved, post in one message:

  • The seams under test (public functions/boundaries), each with its mirror test file
  • The test list in execution order (depends on implementation order)
  • Feature type: retro-compatible (new tests only) or breaking (which existing tests change)
  • What the feature touches outside testable (gets no test)

Then wait again. No code written until checkpoint confirmed.

4. RED → GREEN cycle

Per test, in order:

  1. RED — write ONE test. Run gate. Must fail for the reason under test (not setup error).
  2. GREEN — write production code only. Minimal change. Ponytail governs: does it need to exist, is it already here, does stdlib do it, can it be one line.
  3. Gate — rerun. If green → next test.

Stop conditions (do not push through):

  • Red for the wrong reason (setup, compile) → fix test, not production code
  • Test would have to change to reach green → ask, never rewrite assertion
  • Same red after 3 attempts → report what you've ruled out, stop
  • Green on first run → verify test actually asserts something

5. Breaking changes

If an existing test was named "breaking" in step 3:

  1. Write path into .lexi/allow
  2. Rewrite to new expected behaviour — one test per cycle, never bulk
  3. Empty .lexi/allow when gate is green

Any test found obsolete mid-implementation is not pre-approved → stop, ask again.

6. Done

The report quotes the gate's last lines from a run made after the last edit. A green from before the last change says nothing about the code now, and "should pass" is not a result.

Gate fully green. Report:

  • Tests written (files, names)
  • Production files touched
  • What was left untested and why

Tests stay as permanent regression — nothing to delete.

7. Jev review — required

Gate green → invoke the lexi:code-review skill on the working tree (--working), title = the task in one line. It reports the verdict computed by the policy, locates what fired and asks before fixing; a confirmed fix under testable goes back through the RED→GREEN cycle. Add the verdict to the report. No verdict (missing key, review.py error) → the task is not done: say why and stop, as the review skill does.

Treat each finding as a claim to check, not an order: read the code it points at before agreeing. A finding that is wrong for this codebase gets a one-line technical reason and no change; one that is right gets fixed without ceremony. Never agree to a finding you have not checked.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
3

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/savinofiore/lexi/feature/badge)](https://verified-skill.com/skills/savinofiore/lexi/feature)

Something wrong with this skill or its page? Tell us.