diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..0744987 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,15 @@ +{ + "hooks": { + "PostToolUse": [ + { + "matcher": "Write|Edit", + "hooks": [ + { + "type": "command", + "command": "python -c \"import sys,json; d=json.load(sys.stdin); fp=d.get('tool_input',{}).get('file_path') or d.get('tool_response',{}).get('filePath'); print(fp or '')\" | { IFS= read -r f; f=\"${f%$'\r'}\"; case \"$f\" in *.ts|*.tsx) root=$(git rev-parse --show-toplevel 2>/dev/null); (cd \"$root/web\" && npx eslint --fix \"$f\") 2>/dev/null;; esac; } || true" + } + ] + } + ] + } +} diff --git a/.claude/skills/curl-server-action/SKILL.md b/.claude/skills/curl-server-action/SKILL.md new file mode 100644 index 0000000..6dcb581 --- /dev/null +++ b/.claude/skills/curl-server-action/SKILL.md @@ -0,0 +1,63 @@ +--- +name: curl-server-action +description: Technique for driving this project's Next.js Server Actions via curl, without a browser — for manual/live verification of forms and mutations. Use whenever you need to test a Server Action (login, form submit, a drag-triggered action) from the command line. +--- + +# Driving Next.js Server Actions with curl + +Next.js Server Actions (`"use server"` functions used as `