greenlight
CLAUDE.md2 starsChanged 5 days agoMITView on GitHub
greenlight is a Claude Code plugin for AI × BDD spec-driven development: a feature request becomes human-approved rules and examples, then red tests, then green code, under gates the AI cannot bypass. Plugin name and repo: greenlight. CLI: bdd. Project data: .bdd/.
The file
We split this CLAUDE.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Run claude plugin validate .
- Distinctive: line 17
Never weaken a test to make it pass.
- Distinctive: line 32
Never present soft enforcement as hard.
- Very specific: line 33
Only 6 skills (init, feature, approve, status, change, adopt).
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md — greenlight
greenlight is a Claude Code plugin for AI × BDD spec-driven development: a feature request
becomes human-approved rules and examples, then red tests, then green code, under gates the
AI cannot bypass. Plugin name and repo: greenlight. CLI: bdd. Project data: .bdd/.
How to work
- One task per branch and PR (
lint-near-duplicates, …). The PR description lists the task's acceptance criteria and how each was verified (command output or test name). - Run
claude plugin validate . --strictandclaude plugin validate skills --strictbefore releases (a root-levelCLAUDE.mdwarning on the plugin manifest is expected). - Squash-merge when checks pass. Update
CHANGELOG.mdunder Unreleased in every PR. - Record new design decisions in
docs/dev/decisions.md; platform facts indocs/dev/platform-notes.md(verified by experiment, with the date). - Dogfood: specify greenlight's own CLI behaviour as Gherkin in
specs/before implementing it, using the rules the plugin enforces (trace tags, vocabulary, red first). - Never weaken a test to make it pass; fix the code or raise the spec issue.
Engineering rules
tools/bddis Python 3.11+, stdlib only (TOML viatomllib). No third-party imports at runtime. Dev/test-only dependencies go inrequirements-dev.txt.- Cross-platform: Windows (hooks need Git for Windows, D11), macOS, Linux. Run
python evals/platform-probe/probe.pyafter Claude Code upgrades. Usepathlib. Hooks run under Git Bash on Windows. Hooks and skills call${CLAUDE_PLUGIN_ROOT}/tools/bdd/bdd, neverpythondirectly; the wrapper is POSIXsh, LF line endings (see.gitattributes), and runs Python with-I. - Hooks must be no-ops outside repos with
.bdd/and finish in < 200 ms (macOS/Linux) or < 300 ms (Windows). - Deterministic work (lint, hash, trace, status, classify) belongs in the CLI, never in a prompt.
- File formats: TOML for human-edited files, JSON for tool-owned files (D1).
- Human approvals are written only by
bdd approve --from-hook(UserPromptSubmit).--self-reportedexists for soft mode and must refuse when hard enforcement is active. Never present soft enforcement as hard. - Only 6 skills (
init,feature,approve,status,change,adopt); phase logic goes inphases/<phase>.md; reusable knowledge goes incards/(frontmatter + Known pitfalls). - Agents: explicit tool lists, read artifacts not chat history, state their output files.
Definition of done (per task)
- Acceptance criteria met and demonstrated.
- Unit tests for CLI changes; CI green on all three OSes.
- Docs and CHANGELOG updated.
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.

