Commit Graph

12 Commits

Author SHA1 Message Date
bcefc18e51 refactor(claude/commands): defer file reads to agent in commit-push-pr
Avoid bloating the prompt context with file contents that may not be
needed. Instead of injecting AGENTS.md, CLAUDE.md, and PR template
via shell commands, instruct the agent to read them on demand. Also
tighten allowed-tools (git branch -m instead of wildcard), add git
log permission, and require PR descriptions to cover all branch
commits.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 22:47:31 +00:00
250279b40f feat(claude/commands): add AGENTS.md/CLAUDE.md review step to commit-push-pr
Ensure agent documentation stays in sync with code changes by
having the command review AGENTS.md and CLAUDE.md before committing.
Adds both files to the context section and inserts a new first step
that checks whether changes warrant documentation updates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 22:41:23 +00:00
6297f5b61d feat(claude/commands): improve commit-push-pr with PR template and master branch support
Add PR template auto-detection context, handle master as a default
branch alongside main, and use template content for PR body when
available.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 19:26:02 +00:00
3f25c7e4fe feat(claude/commands): add description front matter to AGENTS.md commands
Makes commands discoverable in skill listings by adding description
fields to claude-to-agents, generate-agents.md, and refactor-agents.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 19:25:29 +00:00
27330ceae1 feat(claude/commands): support staged-only commits and add git diff permission
Allow commit commands to operate on only staged changes when requested,
rather than always staging everything. This enables more granular control
over what gets committed.

- Add `Bash(git diff:*)` to allowed-tools in both commit and
  commit-push-pr commands
- Add instructions to check staged changes with `git diff --staged`
  and skip staging additional files when asked for staged-only commits
- Restructure commit.md flow to clarify staged-only vs full commit

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 17:30:35 +00:00
623e3896e6 fix(claude/commands): improve line wrapping for 80-char line length
Reflow long lines in command files to stay within 80 characters,
matching the project's line length convention. Also fix lowercase
"markdown" to "Markdown" in refactor-agents.md.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 17:22:22 +00:00
9dca4582d0 fix(claude/commands): handle AGENTS.md-only projects in claude-to-agents
Previously the command required CLAUDE.md to exist and AGENTS.md to not
exist. Now it handles the case where only AGENTS.md exists by creating
a CLAUDE.md reference file pointing to it, and clarifies the
precondition logic with explicit branching.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 17:02:07 +00:00
46b6b051c8 feat(claude/commands): add commit and branch cleanup commands
Bring in three slash commands from the official claude-plugins repo
to streamline common git workflows directly from Claude.

- clean-gone-branches: remove local branches deleted on remote
- commit-push-pr: commit, push, and open a PR in one step
- commit: create a git commit from current changes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 14:23:17 +00:00
da793359de feat(claude/commands): generalize agent language in claude-to-agents
The conversion command now rewrites Claude-specific agent language
(e.g. "Claude should..." → "Agents should...") to be agent-agnostic,
while preserving "Claude Code" as a proper product name. Also minor
line-wrapping cleanup in generate-agents command.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-05 23:42:29 +00:00
b738a9bb18 fix(claude/commands): update suggested docs folder path in refactor-agents
Suggest .agents/docs/ as an alternative to docs/ for the refactored
AGENTS.md file structure, keeping the output more flexible.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 18:57:12 +00:00
c1844bead4 feat(claude/commands): add claude-to-agents conversion command
Provide a reusable command to convert a project's CLAUDE.md into an
AGENTS.md file while replacing the original with a thin @-reference.
Includes precondition checks, self-reference updating, and summary
reporting steps.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 18:56:46 +00:00
daeda663a4 feat(claude): add AGENTS.md commands and refactor symlink handling
Add two new Claude Code slash commands:
- generate-agents.md.md: Generate hierarchical AGENTS.md structures
- refactor-agents.md.md: Refactor existing AGENTS.md files

Changes to siren script:
- Make Claude symlinks conditional on CLI installation
- Extract _add_command_symlinks() for reusable command symlinking
- Extract _cleanup_stale_commands() for generic stale link cleanup
- Add plan mode instructions to CLAUDE.md

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 01:17:30 +00:00