Commit Graph

49 Commits

Author SHA1 Message Date
95516fc615 fix(claude): remove hardcoded model override from settings
Let the model be determined by context/defaults rather than forcing
opus globally.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 13:20:09 +00:00
6b3170fea6 fix(commands): handle CLAUDE.md symlink in claude-to-agents command
Some projects use a symlink from CLAUDE.md to AGENTS.md instead of an
@-reference. Add a symlink check as the first precondition so these
are detected and replaced with a proper @AGENTS.md reference file.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 20:17:39 +00:00
Jim Myhrberg
1b19cc450e fix(claude/commands): standardize progressive disclosure dir to docs/agents/
Both generate-agents.md and refactor-agents.md referenced inconsistent
directory conventions for progressive disclosure docs (docs/*.md,
.agents/docs/). Standardize all references to docs/agents/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 20:33:56 +00:00
c27f891365 fix(claude/commands): add missing tool permissions to rebase command
Context template commands go through the tool permission system, so
all git subcommands used in context and task steps need allowed-tools
entries. Add git status, git branch, and git rev-parse. Replace piped
git symbolic-ref|sed with git rev-parse --abbrev-ref to avoid needing
a sed permission.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 00:12:16 +00:00
7d3af85adb refactor(claude/commands): clarify PR description expectations in commit-push-pr
The previous instructions were vague about what the PR description should
contain, leading to redundant commit lists in PR bodies. Now explicitly
instructs the agent to use git diff alongside git log, write a cohesive
summary of purpose and impact, and avoid listing commits since the PR
already shows those.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 00:00:29 +00:00
52aef8b07d feat(claude/commands): add rebase command
Automate rebasing onto upstream default branch with auto-stash,
conflict resolution, and clean abort/restore on low confidence.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 23:34:57 +00:00
745535eb84 feat(claude/commands): add recent commits to commit-push-pr context
Give the agent visibility into recent commit history so it can
follow the project's commit message conventions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 23:13:27 +00:00
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
015ad895b4 feat(siren): add skills symlink support
Skills are directories (containing SKILL.md) rather than flat files,
so this adds dedicated _add_skill_symlinks() and _cleanup_stale_skills()
functions mirroring the existing command symlink pattern. Only symlinks
pointing into our source tree are managed; skills from other sources
(e.g. ~/.agents/skills/) are left untouched.

Also adds the frontend-design-systems skill for systematic visual
design consistency rules.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 19:19:21 +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
d84f91ba3a refactor(claude/settings): move env and teammateMode to canonical positions
Move `env` block to the top of settings and `teammateMode` to the end,
keeping the file organized with related settings grouped together.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 17:03:03 +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
3e31f7f100 feat(claude): add documenting discoveries instructions
Agents should capture surprising or non-obvious findings in the
project's AGENTS.md or CLAUDE.md to prevent future sessions from
re-discovering the same gotchas. Also removes the tongue-in-cheek
"Quality Work" section that was previously added as a joke.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 17:34:54 +00:00
cf43434200 fix(claude/statusline): update default model check to Opus 4.6
Reflect the latest default model version in the statusline script
so the model name is only displayed for non-default models.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 16:57:25 +00:00
254fce8292 feat(claude/settings): enable agent teams and use local commands
Enable experimental agent teams support and switch to local commit
commands, disabling the official commit-commands plugin now that
equivalent commands exist in claude/commands/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 14:24:28 +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
839c0026cd chore(claude/settings): allow git branch command
Add git branch to the list of auto-allowed Bash commands so Claude
can inspect and manage branches without prompting for permission.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 14:34:37 +00:00
cc79b5eb88 chore(claude/settings): disable security-guidance plugin
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-05 23:43:39 +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
59d4a997e2 fix(claude): clarify git working directory instruction
Be explicit about avoiding the `-C` flag rather than the vague
"flags to specify a working directory" phrasing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-05 19:56:30 +00:00
c2625efb78 feat(claude/settings): add npm, helm, and context7 permissions
Add Bash permissions for npm run, go mod download, and helm create.
Allow mcp__context7__get-library-docs tool.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 12:25:23 +00:00
4086bf5140 feat(claude/settings): toggle rust-analyzer-lsp and sentry plugins
Enable rust-analyzer-lsp plugin for Rust development support and
disable sentry plugin as it's not currently needed.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 19:02:09 +00:00
8969997846 feat(claude/settings): expand permissions and update plugin config
Add new Bash allow rules (awk, bat, cat, du, git diff, git fetch,
tail, tree, and additional pnpm shortcuts), WebSearch, and context7
MCP permissions. Sort enabledPlugins alphabetically, toggle swift-lsp
off, and remove plansDirectory setting.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 18:57:38 +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
Jim Myhrberg
9f0fc051b8 feat(claude/settings): add commit command option to Bash plugin toggles 2026-01-30 17:47:27 +00:00
Jim Myhrberg
370bc98eec feat(claude/CLAUDE.md): expand git commits and add pull requests section
Commit messages and PR descriptions that explain "why" lead to better
code review and future archaeology. This adds guidance to prioritize
motivation over technical details, and asks for clarification when the
reason for a change isn't clear.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 15:06:32 +00:00
Jim Myhrberg
001986e831 feat(claude/settings): add mkdir command option to Bash plugin toggles 2026-01-30 10:38:20 +00:00
Jim Myhrberg
e15ed6d4ea feat(claude/settings): update plugin toggles and remove curl deny rule
Disable unused plugins (playwright, ralph-loop, pr-review-toolkit,
rust-analyzer-lsp, lua-lsp), enable sentry plugin, and remove the
curl deny rule from permissions.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 17:00:28 +00:00
Jim Myhrberg
ee6bb514e0 feat(claude/settings): add new Bash command options for fd and rg 2026-01-26 09:44:12 +00:00
f6f64a3ca6 feat(claude): require testing in plan mode
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 19:13:02 +00:00
4efe626609 chore(claude): add bash permissions for gh, git, and pnpm commands
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 14:30:25 +00:00
dc96333cfc feat(claude): add git commits and dependencies guidelines
Move "Importance of Quality Work" to top of file. Add sections for
conventional commits preference and dependency philosophy.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 14:29:51 +00:00
dadc194812 refactor(claude): reorganize and clarify CLAUDE.md instructions
Restructure flat rule list into logical sections (Communication Style,
Code Style, Code Comments, Code Quality, Technical Considerations).
Fix typos, improve clarity, and remove weak examples.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 14:21:22 +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
Jim Myhrberg
91bcb7d67c claude: update settings with new permissions and reorder keys 2026-01-22 14:58:39 +00:00
05b3ce18a1 feat(claude): allow ls command in bash tools
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 09:05:56 +00:00
Jim Myhrberg
efc1e30b0d feat(claude): deny reading mcp.json files
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 19:53:36 +00:00
Jim Myhrberg
8774eb2452 feat(claude): add new allowed tools for gh, git, helm, and wc
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 19:36:20 +00:00
96f148f081 feat(claude): add Claude Code settings and statusline configuration
Add global Claude Code configuration with permission allowlists for
common build/test commands, statusline script showing git status,
context usage, token counts, and cost. Update siren to symlink these
files to ~/.claude/ directory.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 22:56:15 +00:00
6c99079407 fix(claude): correct capitalization and grammar in CLAUDE.md
- Changed "Rules to always follow" to "Rules to Always Follow" for consistency.
- Capitalized "if" in the comment removal guideline for proper sentence structure.
2026-01-07 08:29:38 +00:00
Jim Myhrberg
03f35bf82b docs(claude): update user guidelines for command execution and third-party library investigation 2025-10-21 12:54:59 +01:00
Jim Myhrberg
8a4cc26920 docs: add AGENTS.md for project overview and guidelines 2025-10-06 09:28:27 +01:00
0d65a072ae chore(ai-rules): add rule about comments 2025-07-26 18:31:51 +01:00
Jim Myhrberg
93dfef071c feat(claude): add global ~/.claude/CLAUDE.md file 2025-07-25 12:29:56 +01:00