Stats
Actions
Tags
From palimpsest
Auto-approves web search/fetch and file edit operations; validates structured markdown files (core, competitors, hypotheses, interviews, surveys, MVP plan) after each write/edit to enforce documentation conventions.
2 events · 2 hooks
Safety signals detected in this hook configuration
Where this hook configuration is defined
Defined in hooks/hooks.json
Event handlers and matchers — expand Raw Configuration for the full JSON
Edit|WriteFILE=$(jq -r '.tool_input.file_path'); if echo "$FILE" | grep -q 'previous.mdx$'; then echo 'Error: previous.mdx is read-only. AI must only edit article.mdx.' >&2; exit 2; fi; if echo "$FILE" | grep -q 'assets/articles/.*/article.mdx$'; then cp "$FILE" "$(dirname "$FILE")/previous.mdx"; fiEdit|WriteFILE=$(jq -r '.tool_input.file_path'); if echo "$FILE" | grep -q 'assets/mdx-components/.*\.tsx$'; then DIR=$(dirname "$FILE"); CLAUDE_MD="$DIR/CLAUDE.md"; echo '# MDX Components Reference' > "$CLAUDE_MD"; echo '' >> "$CLAUDE_MD"; echo 'Available components for use in Palimpsest MDX articles.' >> "$CLAUDE_MD"; echo '' >> "$CLAUDE_MD"; echo 'Auto-generated from components in this directory.' >> "$CLAUDE_MD"; echo '' >> "$CLAUDE_MD"; echo '## Component List' >> "$CLAUDE_MD"; echo '' >> "$CLAUDE_MD"; for f in "$DIR"/*.tsx; do [ -f "$f" ] || continue; NAME=$(basename "$f" .tsx); echo "### $NAME" >> "$CLAUDE_MD"; echo '' >> "$CLAUDE_MD"; echo "File: \`assets/mdx-components/$NAME.tsx\`" >> "$CLAUDE_MD"; echo '' >> "$CLAUDE_MD"; echo 'Props and usage: see source file.' >> "$CLAUDE_MD"; echo '' >> "$CLAUDE_MD"; done; echo '## Component Guidelines' >> "$CLAUDE_MD"; echo '' >> "$CLAUDE_MD"; echo '- Prefer fenced \`mermaid\` blocks over raw \`<MermaidBlock>\` tags' >> "$CLAUDE_MD"; echo '- Use Tailwind utility classes for styling JSX elements' >> "$CLAUDE_MD"; echo '- Keep components self-contained — do not depend on article-specific state' >> "$CLAUDE_MD"; echo '- Test components in both "new" mode (full render) and diff modes (text fallback)' >> "$CLAUDE_MD"; finpx claudepluginhub fourwindff/palimpsest --plugin palimpsest