From 983221df3318a74d978aff60db6dd26b721eeb32 Mon Sep 17 00:00:00 2001 From: limiteinductive Date: Sun, 29 Mar 2026 18:45:13 +0200 Subject: [PATCH] add frontend-design rule, fix codex-reviewer, route table update - add .claude/rules/frontend.md: auto-loads /frontend-design for ui/** files - add frontend-design to CLAUDE.md route table - fix codex reviewer: use direct Bash instead of subagent (permissions issue) Co-Authored-By: Claude Opus 4.6 (1M context) --- .claude/rules/frontend.md | 6 ++++++ .claude/skills/ax/SKILL.md | 9 ++++----- .claude/skills/critic/SKILL.md | 9 ++++----- CLAUDE.md | 1 + 4 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 .claude/rules/frontend.md diff --git a/.claude/rules/frontend.md b/.claude/rules/frontend.md new file mode 100644 index 0000000..327ca4d --- /dev/null +++ b/.claude/rules/frontend.md @@ -0,0 +1,6 @@ +--- +paths: + - "ui/**" +--- + +When working on frontend code, always use the `/frontend-design` skill for component design, layout decisions, and UI implementation. diff --git a/.claude/skills/ax/SKILL.md b/.claude/skills/ax/SKILL.md index 013ae91..ac4b819 100644 --- a/.claude/skills/ax/SKILL.md +++ b/.claude/skills/ax/SKILL.md @@ -108,14 +108,13 @@ For each: ## Parallel Codex Review -On every AX audit invocation, **immediately** spawn the `codex-reviewer` subagent in the background before starting your own audit: +On every AX audit invocation, **immediately** launch a background codex review before starting your own audit: -``` -Agent(subagent_type="codex-reviewer", run_in_background=true, - prompt="AX audit: $ARGUMENTS. Read CLAUDE.md, .claude/ directory, and config files. Find: missing docs, unclear commands, split-brain config, stale references. File paths and exact fixes.") +```bash +codex exec -c 'reasoning_effort="high"' "AX audit: $ARGUMENTS. Read CLAUDE.md, .claude/ directory, and config files. Find: missing docs, unclear commands, split-brain config, stale references. File paths and exact fixes. Do NOT spawn sub-agents. Answer directly in bullet points." 2>&1 ``` -Continue your own audit without waiting. When the codex-reviewer returns, integrate its findings into Phase 3 (REPORT): +Run this via `Bash` tool with `run_in_background: true`. Continue your own audit without waiting. When the codex output returns, integrate its findings into Phase 3 (REPORT): - Codex findings that match yours → strengthen confidence - Codex findings you missed → add to recommendations - Disagreements → address explicitly in the report diff --git a/.claude/skills/critic/SKILL.md b/.claude/skills/critic/SKILL.md index 851db99..0d88cc8 100644 --- a/.claude/skills/critic/SKILL.md +++ b/.claude/skills/critic/SKILL.md @@ -58,14 +58,13 @@ Optional prose narrative follows after a blank line. ## Parallel Codex Review -On every critic invocation, **immediately** spawn the `codex-reviewer` subagent in the background before starting your own analysis: +On every critic invocation, **immediately** launch a background codex review before starting your own analysis: -``` -Agent(subagent_type="codex-reviewer", run_in_background=true, - prompt="Critique: $ARGUMENTS. Read all relevant files. What will break? What's missing? What's over-engineered?") +```bash +codex exec -c 'reasoning_effort="high"' "Critique: $ARGUMENTS. Read all relevant files. What will break? What's missing? What's over-engineered? Do NOT spawn sub-agents. Answer directly in bullet points." 2>&1 ``` -Continue your own critique without waiting. When the codex-reviewer returns, integrate its findings into your verdict: +Run this via `Bash` tool with `run_in_background: true`. Continue your own critique without waiting. When the codex output returns, integrate its findings into your verdict: - Codex issues you missed → add to `breakpoints` - Codex agrees with you → note in `survives` as independent confirmation - Codex disagrees → address in prose narrative diff --git a/CLAUDE.md b/CLAUDE.md index 0abbf1d..0a7a6c2 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -39,6 +39,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co | GCP commands | `/gcloud` skill | | Stress-test a decision | `/critic` skill | | Audit agent config quality | `/ax` skill | +| Frontend/UI work | `/frontend-design` skill (auto-loaded for `ui/**` files) | ## Git (Gitea)