Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

Merge branch 'main' into feat/plugin/ponytail

erwanMarmelab7af3d079118f
diff --cc .claude/agents/developer.md
index 2f8d093e,e2add92a..d37a04d5
--- a/.claude/agents/developer.md
+++ b/.claude/agents/developer.md
@@@ -200,14 -196,13 +205,14 @@@ e2e tests
## Implementation rules
- Implement the plan. No deviations without flagging team-lead.
+ Implement the plan. Stick to ticket scope.
+- **Ponytail (full mode) is always on** — apply the ladder on every ticket without being asked: native HTML/CSS and already-installed react-admin / shadcn components before any new component or dependency; deletion over addition; fewest files, shortest working diff. Adding a dependency for something the stack already covers is a blocking review finding. Never minimize away validation, security, accessibility, error handling, or required tests.
- - All work in the worktree. Commits on `BRANCH_NAME`, never on `main`. MERGER does the merge.
+ - All work in the worktree. Commits on `BRANCH_NAME`, never on `main`. The orchestrator dispatches the merger after reviews pass.
- Atomic commits per logical step. Every subject includes `TASK-XXX`: `feat(TASK-XXX): <what>`.
- TypeScript strict: no `any`, no `@ts-ignore` without JSDoc.
- JSDoc on every non-trivial exported function.
- No features outside ticket scope.
- e2e tests in `e2e/` if ticket touches UI/filters/forms/interactions, unless acceptance criteria say otherwise. Call `Skill({skill: "e2e-conventions"})` and `Skill({skill: "playwright-testing"})` before writing e2e tests. Don't run them — ship the spec, CI executes.
- Silent mode: Playwright `--headless`, Vite without `--open`, Vitest without `browser.ui`.
--- Architecture Decision Records: load `Skill({skill: "adr-writing"})` only when the change introduces a structural decision (see WORKFLOW step 3). Skip by default.
++- Architecture Decision Records: load `Skill({skill: "adr-writing"})` only when the change introduces a structural decision (see WORKFLOW step 3). Skip by default.
diff --cc .claude/settings.json
index 3bdf3bc4,4fde2c1d..cd62d6b0
--- a/.claude/settings.json
+++ b/.claude/settings.json
@@@ -25,41 -21,7 +22,32 @@@
"pr": ""
},
"hooks": {
+ "SessionStart": [
+ {
+ "matcher": "startup|resume|clear|compact",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "command -v node >/dev/null 2>&1 && node \"$CLAUDE_PROJECT_DIR/.claude/hooks/ponytail-activate.js\" || exit 0",
+ "timeout": 5,
+ "statusMessage": "Loading ponytail mode..."
+ }
+ ]
+ }
+ ],
+ "UserPromptSubmit": [
+ {
+ "hooks": [
+ {
+ "type": "command",
+ "command": "command -v node >/dev/null 2>&1 && node \"$CLAUDE_PROJECT_DIR/.claude/hooks/ponytail-mode-tracker.js\" || exit 0",
+ "timeout": 5,
+ "statusMessage": "Tracking ponytail mode..."
+ }
+ ]
+ }
+ ],
"PreToolUse": [
- {
- "matcher": "Bash|Read|Grep|Glob|SendMessage",
- "hooks": [
- {
- "type": "command",
- "command": "$CLAUDE_PROJECT_DIR/.claude/hooks/member-idle-gate.mjs"
- }
- ]
- },
{
"matcher": "Bash",
"hooks": [
diff --cc CLAUDE.md
index 10eff174,9957cd0f..ec55c43a
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@@ -36,11 -36,9 +36,11 @@@ There is no cross-agent messaging: the
Only **developer** runs on opus; everything else is sonnet or haiku.
+The **developer** and **simple-developer** apply the **Ponytail** minimization ladder (full mode) on every change, via inline directives in their prompts. Ponytail is installed **natively** in-repo (no plugin or marketplace): its skills live in `.claude/skills/ponytail*`, its `/ponytail*` commands in `.claude/commands/`, and its `SessionStart` / `UserPromptSubmit` hooks are wired in `.claude/settings.json` to `.claude/hooks/ponytail-*.js` (CommonJS scripts — `.claude/hooks/package.json` pins them to `commonjs` since the repo is an ESM package). It provides orchestrator-level guidance and the manual `/ponytail*` commands — but those `SessionStart` / `UserPromptSubmit` hooks reach only the main session, NOT `Agent`-dispatched subagents, which is why the dev agents get the ladder inline rather than from the hooks.
+
## The orchestrator's job between hand-offs
- Relay agent reports, surface blockers, and stop to ask the user whenever an agent flags an open question or a `BLOCKED` verdict. Do not bypass this flow for "small-looking" changes — the trigger is *plan approved*, not *task size*. Direct requests that never entered plan mode are not subject to this workflow.
+ Relay agent reports, surface blockers, and stop to ask the user whenever an agent flags an open question or a `FAILED` outcome the orchestrator can't resolve. (A reviewer `REJECTED` verdict is handled silently by the bounded developer-retry loop, not surfaced to the user.) Do not bypass this flow for "small-looking" changes — the trigger is *plan approved*, not *task size*. Direct requests that never entered plan mode are not subject to this workflow.
## Supporting rules