From 4fdd346be97a870e4f5dc417c0c26c9efab2b6b5 Mon Sep 17 00:00:00 2001 From: Baiheng Xie <874256269@qq.com> Date: Fri, 30 Jan 2026 21:07:18 +0800 Subject: [PATCH] feat: commands for calling agents --- .claude/commands/plan.md | 5 +++++ .claude/commands/refactor.md | 5 +++++ .claude/commands/review.md | 5 +++++ 3 files changed, 15 insertions(+) create mode 100644 .claude/commands/plan.md create mode 100644 .claude/commands/refactor.md create mode 100644 .claude/commands/review.md diff --git a/.claude/commands/plan.md b/.claude/commands/plan.md new file mode 100644 index 0000000..d1b3b44 --- /dev/null +++ b/.claude/commands/plan.md @@ -0,0 +1,5 @@ +Plan implementation approach for the given task using the planner agent. + +Follow the Explore → Plan → Implement paradigm. Read relevant files, identify affected modules, choose the simplest approach that aligns with existing patterns. Ask one critical clarifying question if requirements are unclear. + +Task: $ARGUMENTS diff --git a/.claude/commands/refactor.md b/.claude/commands/refactor.md new file mode 100644 index 0000000..ee9e5b2 --- /dev/null +++ b/.claude/commands/refactor.md @@ -0,0 +1,5 @@ +Identify and remove dead code, consolidate duplicates, and perform cleanup refactoring using the refactor-cleaner agent. + +Run vulture and grep to detect unused code. Verify each finding against the safety checklist before removal. Keep diffs minimal and scoped to cleanup only. + +Scope: $ARGUMENTS diff --git a/.claude/commands/review.md b/.claude/commands/review.md new file mode 100644 index 0000000..e8134fb --- /dev/null +++ b/.claude/commands/review.md @@ -0,0 +1,5 @@ +Review code changes on the current branch using the code-reviewer agent. + +Run `git diff` to see all staged and unstaged changes. If on a feature branch, also run `git diff main...HEAD` to see all branch changes. Begin review immediately following the code-reviewer agent guidelines. + +$ARGUMENTS