Skip to content

Add Claude commands#39

Open
tschm wants to merge 1 commit into
alihaskar:masterfrom
tschm:add-claude-commands
Open

Add Claude commands#39
tschm wants to merge 1 commit into
alihaskar:masterfrom
tschm:add-claude-commands

Conversation

@tschm

@tschm tschm commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Adds three Claude Code slash commands under .claude/commands/:

  • rhiza_book.md
  • rhiza_quality.md
  • rhiza_update.md

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 25, 2026 16:14
@tschm tschm changed the title Add Claude commands from shrinkage repo Add Claude commands Jun 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds three Claude Code slash-command guides under .claude/commands/ to help maintain the repo’s Rhiza template sync workflow, run Rhiza quality gates, and build/serve the docs book.

Changes:

  • Add /rhiza_update instructions to bump .rhiza/template.yml, run make sync, resolve conflicts, and verify gates.
  • Add /rhiza_quality instructions to run Rhiza “gates” in order and produce a scored report.
  • Add /rhiza_book instructions to build and serve the MkDocs/zensical book locally.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.

File Description
.claude/commands/rhiza_update.md New command documentation for updating/syncing the Rhiza template and verifying gates.
.claude/commands/rhiza_quality.md New command documentation for running Rhiza quality checks and producing a scorecard.
.claude/commands/rhiza_book.md New command documentation for building and serving the docs book locally.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +3
---
description: Run the Rhiza code-quality gate and score the repo (lint, types, docs, deps, security, tests)
---
Comment on lines +56 to +60
**Scope the scorecard to locally-owned items — not what the mother repo (Rhiza)
owns.** This project syncs its dev infrastructure from `jebel-quant/rhiza`; see
`CLAUDE.md` for the authoritative split and the `files:` block of
`.rhiza/template.lock` for the machine-generated list of synced files. Score
only what this repo actually controls — `src/`, `tests/`, `pyproject.toml`,
Comment on lines +1 to +3
---
description: Update the pinned Rhiza version in .rhiza/template.yml, sync, resolve conflicts, and verify
---
Comment on lines +17 to +21
- Resolve the target version:
- If `$ARGUMENTS` names a version, use it (verify the tag exists:
`gh api repos/<repository>/git/ref/tags/<ref>`).
- Otherwise get the latest release:
`gh release view --repo <repository> --json tagName,publishedAt`.
Comment on lines +72 to +74
**Conflict-marked files.** Resolve by the ownership rule (see `CLAUDE.md` and the
`files:` block of `.rhiza/template.lock` for the authoritative managed-file list):

Comment on lines +111 to +115
make sure the configuration they read is present. These are **GitHub Actions
repository variables and secrets** — *not* local env vars or files — set under
**Settings → Secrets and variables → Actions** (or via `gh`), and documented in
`.github/CONFIG.md`. Skip this step entirely if neither workflow is present.

Comment on lines +27 to +31
for the built folder **in the background** so it does not block the session:

```
(cd _book && uv run python -m http.server 8000)
```
@tschm

tschm commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

@alihaskar Those are very useful commands for a claude prompt. Kind of useless if you don't use Claude. I recommend Claude :-)

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.

2 participants