Skip to content

feat(me): add refactor-clean command and standardize argument-hint across commands - #48

Merged
baleen37 merged 1 commit into
mainfrom
chore/add-refactor
Jan 23, 2026
Merged

feat(me): add refactor-clean command and standardize argument-hint across commands#48
baleen37 merged 1 commit into
mainfrom
chore/add-refactor

Conversation

@baleen37

@baleen37 baleen37 commented Jan 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add refactor-clean.md command for dead code detection and removal
  • Change all hint fields to argument-hint for consistency
  • Add appropriate argument hints to all commands

Test plan

  • BATS tests pass (bats tests/command_files.bats)

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

Summary by CodeRabbit

  • Documentation
    • Added argument hints to multiple command files for improved user guidance and interface clarity
    • Introduced new documentation outlining a safe dead-code refactoring workflow, including detection methods, severity categorization (SAFE, CAUTION, DANGER), and test-backed deletion practices

✏️ Tip: You can customize this high-level summary in your review settings.

…ross commands

- Add refactor-clean.md command for dead code detection and removal
- Change all hint fields to argument-hint for consistency
- Add appropriate argument hints to all commands
@baleen37
baleen37 enabled auto-merge (squash) January 23, 2026 08:18
@coderabbitai

coderabbitai Bot commented Jan 23, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

This PR augments command documentation files by adding argument-hint metadata fields to their YAML headers, providing semantic guidance for command arguments. Additionally, a new refactor-clean.md documentation file is introduced detailing a safe dead-code refactoring workflow.

Changes

Cohort / File(s) Summary
Argument-hint metadata additions
plugins/me/commands/brainstorm.md, debug.md, orchestrate.md, research.md, sdd.md, verify.md
Added argument-hint front-matter field to 6 command files. Each specifies expected argument format or type (e.g., [<task>], <feature|bugfix|refactor|security|custom> <task>, [quick|full|pre-commit|pre-pr]). Pure metadata enrichment; no functional changes.
New documentation file
plugins/me/commands/refactor-clean.md
New 33-line documentation file detailing a safe dead-code refactoring workflow. Covers detection of unused exports, functions, classes, modules, dependencies, imports, and files. Prescribes severity-based categorization (SAFE/CAUTION/DANGER), test-first deletion methodology, and mandatory test-backed validation.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~4 minutes

Possibly related PRs

Poem

🐰 Hints in the headers, so clear and so bright,
Commands now whisper what arguments are right,
Dead code detection with tests as our shield,
Documentation blooms across the whole field!


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@baleen37
baleen37 merged commit 129d996 into main Jan 23, 2026
1 of 2 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request Feb 4, 2026
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant