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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>