Phase 2: Enforcement nits
Goal: Fix broken/incomplete hooks and agent configs in claude-custom.
Owner: Dev agent
Repo:
forgejo_admin/claude-customDepends on: None
Scope
Six open TODOs/bugs targeting claude-custom hooks and agent configs. All are small, independent fixes that can ship together as one PR.
todo-dottie-agent-type-missing— Add "dottie" toagent-spawn-requirements.jsonso the spawn gate recognizes Dottie as a valid agent type.todo-dottie-config-nits— Dottie agent config wording fix + add PreToolUse hook to block code writes (Write/Edit/Bash on repos).todo-fix-remind-mcp-review-loop-paldocs-ref— Fix stale pal-e-docs reference inremind-mcp-review-loop.sh.bug-plan-template-hook-large-content— Plan template hook fails on large HTML content. Likely a shell argument length issue.todo-delete-note-warning-hook— Add PreToolUse hook that warns beforedelete_notecalls (per sop-note-deletion).todo-worktree-cleanup— Automate post-merge worktree cleanup (stale worktrees break ruff).
Deliverables
- PR #85 merged (claude-custom) — 4 of 6 scoped items shipped
schemas/agent-spawn-requirements.json— added "dottie" agent type + SubagentStart matcher + context injection casehooks/remind-mcp-review-loop.sh— removed stale mcp__pal-e-docs referencehooks/check-note-template.sh— temp file fix for large HTML truncationhooks/warn-delete-note.sh— new advisory hook for note deletion (registered in settings.json)- Forgejo issue #84 closed
- Deferred: Dottie PreToolUse hook for code write blocking (
todo-dottie-config-nits), worktree cleanup automation (todo-worktree-cleanup) - QA nits: block-docs-writes.sh missing board tools (pre-existing), dottie/general-purpose schema duplication
Related
plan-pal-e-agency— parent plansop-note-deletion— governs delete_note warning hookagent-dottie— Dottie agent definition