Skip to content

Improve agent commands/skills - #359

Merged
bubacoder merged 2 commits into
mainfrom
agent-commands
Jul 4, 2026
Merged

Improve agent commands/skills#359
bubacoder merged 2 commits into
mainfrom
agent-commands

Conversation

@bubacoder

@bubacoder bubacoder commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

Summary by CodeRabbit

  • Documentation
    • Expanded container deployment guidance, including required PRP steps, networking approach, Traefik/UI labeling, Homepage dashboard metadata, environment variable handling, and GPU compose overrides.
    • Improved container service troubleshooting with better step structure, environment precedence, safer GitHub CLI error handling, and a clearer rollback procedure.
    • Strengthened AI model sync instructions with stricter alignment checks and more targeted config edits.
    • Updated planning and GitHub workflow guidance to use gh consistently with clearer preflight/token and input parsing.
    • Removed outdated Python PRP/command/template content and other obsolete guidance artifacts.

@coderabbitai

coderabbitai Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

This PR updates Claude command, skill, and Docker guideline documentation for container deployment, GitHub workflow analysis, AI model syncing, and container debugging. It also removes obsolete Python PRP command/template files and a credits file section.

Changes

Documentation and command guidance updates

Layer / File(s) Summary
Container deployment planning and implementation docs
.claude/commands/plan-container-deployment.md, .claude/commands/implement-container-deployment.md, docker/guidelines.md
Adds $ARGUMENTS parsing, AMD GPU research and override handling, networking and Traefik labeling rules, service registration in services.yaml, validation/image-pull finishing steps, and matching Docker guideline updates for service location, registration, management, and GPU overrides.
GitHub workflow analysis command
.claude/commands/improve-github-workflows.md
Adds a preflight gh CLI auth check and replaces MCP-based calls with gh CLI commands for workflows, runs, jobs, and failure logs.
AI model sync command
.claude/commands/update-ai-models.md
Clarifies version rules, enforces one-to-one Ollama/config alignment, switches to targeted Edit-tool config updates with fallback handling, and expands verification steps and model ID references.
Container debugging skill
.claude/skills/debug-container-service/SKILL.md
Adds a service-existence check step, env var precedence clarification, gh auth failure handling, and a rewritten image downgrade procedure.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

  • bubacoder/infra#167: Both PRs modify docker/guidelines.md, updating deployment and override conventions.
  • bubacoder/infra#224: Both PRs modify the container-deployment instruction docs and reshape the deployment workflow.
  • bubacoder/infra#329: Both PRs update .claude/skills/debug-container-service/SKILL.md with env precedence, gh handling, and downgrade changes.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is broad, but it accurately reflects the PR's focus on improving agent commands and skills documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent-commands

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 5

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.claude/commands/implement-container-deployment.md:
- Around line 42-51: The service registration instructions are using the wrong
schema for config-example/docker/myhost/services.yaml; update them to reflect
that categories are nested under the top-level services list rather than as
top-level keys. Adjust the guidance in implement-container-deployment.md so the
service is added under services with the appropriate category grouping, keeping
the existing formatting and category structure used by labctl.py / task
docker:apply.

In @.claude/commands/improve-github-workflows.md:
- Around line 30-36: The gh run list projection in the workflow guidance is
missing startedAt, which the timing analysis depends on. Update the workflow
instructions to include startedAt alongside the existing fields in the gh run
list command, and keep the rest of the timing workflow unchanged so the later
startedAt/completedAt comparison works correctly.
- Line 19: The GitHub CLI guidance here uses an invalid `--limit 3-5` range and
omits `startedAt` from the `gh run list` JSON fields. Update the command
examples in `improve-github-workflows.md` to use a single integer value for
`--limit` (for example, 5) and include `startedAt` in the `--json` list when
timing data is needed. Keep the guidance aligned with the `gh run list` usage
shown in this section and the token-management note.

In @.claude/commands/update-ai-models.md:
- Around line 63-70: The Ollama sync rule in the update-ai-models guide
currently applies the chat model mapping to every ollama-local-* entry, but
embeddings need a separate treatment. Update the config.yaml sync instructions
so chat models still use ollama_chat/<model> and stay one-to-one with the
Taskfile, while nomic-embed-text is called out as a special case that must use
ollama/nomic-embed-text:latest and not be matched to the chat-model rule. Keep
the existing exceptions and references to the ollama-local-* entries, but
explicitly separate embeddings from the chat sync logic.

In @.claude/skills/debug-container-service/SKILL.md:
- Around line 172-176: The downgrade workflow in the skill docs is missing an
explicit image pull before recreating the service, so `scripts/labctl.py service
recreate` may still fail if the pinned tag is not cached. Update the downgrade
instructions around the `service recreate` step to include a pull of the pinned
image first, then recreate the container and continue with the log re-check;
reference the downgrade guidance that mentions setting the service YAML image
tag and running `scripts/labctl.py service recreate`.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f42a1f85-cd8c-481c-9c83-44c8d710efe8

📥 Commits

Reviewing files that changed from the base of the PR and between 46fc39f and a639fc5.

📒 Files selected for processing (10)
  • .claude/commands/CREDITS
  • .claude/commands/implement-container-deployment.md
  • .claude/commands/implement-python.md
  • .claude/commands/improve-github-workflows.md
  • .claude/commands/plan-container-deployment.md
  • .claude/commands/plan-python.md
  • .claude/commands/update-ai-models.md
  • .claude/skills/debug-container-service/SKILL.md
  • docker/guidelines.md
  • docs/PRPs/templates/prp-python.md
💤 Files with no reviewable changes (4)
  • .claude/commands/CREDITS
  • .claude/commands/plan-python.md
  • .claude/commands/implement-python.md
  • docs/PRPs/templates/prp-python.md

Comment thread .claude/commands/implement-container-deployment.md
Comment thread .claude/commands/improve-github-workflows.md Outdated
Comment thread .claude/commands/improve-github-workflows.md
Comment thread .claude/commands/update-ai-models.md
Comment thread .claude/skills/debug-container-service/SKILL.md
@bubacoder bubacoder changed the title Agent commands Improve agent commands/skills Jul 3, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

♻️ Duplicate comments (1)
.claude/skills/debug-container-service/SKILL.md (1)

172-176: 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

Add the missing pull before recreate.

service recreate can still fail on a clean host if the pinned tag is not cached yet. Pull the image first, then recreate and re-check logs.

Suggested fix
-**Downgrading:** If a recent update introduced the regression, note the last known-good version, set the image tag in the service YAML back to it, and recreate the container:
-```bash
-scripts/labctl.py service recreate category/service-name
-```
+**Downgrading:** If a recent update introduced the regression, note the last known-good version, set the image tag in the service YAML back to it, pull that image, and recreate the container:
+```bash
+scripts/labctl.py service pull category/service-name --quiet
+scripts/labctl.py service recreate category/service-name
+```
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.claude/skills/debug-container-service/SKILL.md around lines 172 - 176, The
downgrade flow in SKILL.md is missing the image pull step before recreating the
service, which can fail on a clean host if the pinned tag is not cached. Update
the “Downgrading” instructions to tell users to pin the last known-good image
tag in the service YAML, then run the service pull command before calling
scripts/labctl.py service recreate, and finally re-check the logs and report
that the version was pinned; use the existing “Downgrading” section text so it
stays consistent.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.claude/commands/implement-container-deployment.md:
- Around line 19-23: Update the container deployment instructions to avoid
copying upstream .env files verbatim: in implement-container-deployment.md, keep
the compose setup reference flow in the section that mentions fetching from a
git repository, but change the guidance around the referenced compose and .env
files so upstream .env files are treated as reference only and any target
example file is regenerated with placeholder values instead of reused unchanged.
Use the existing container deployment wording and the fetch/clone steps as the
anchor, and make sure the instruction explicitly preserves the placeholder-only
rule while still allowing compose files and any additional referenced config
files to be copied as needed.

---

Duplicate comments:
In @.claude/skills/debug-container-service/SKILL.md:
- Around line 172-176: The downgrade flow in SKILL.md is missing the image pull
step before recreating the service, which can fail on a clean host if the pinned
tag is not cached. Update the “Downgrading” instructions to tell users to pin
the last known-good image tag in the service YAML, then run the service pull
command before calling scripts/labctl.py service recreate, and finally re-check
the logs and report that the version was pinned; use the existing “Downgrading”
section text so it stays consistent.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 1df7115c-9950-4763-80f7-47d88eafec5e

📥 Commits

Reviewing files that changed from the base of the PR and between a639fc5 and 1ec50fe.

📒 Files selected for processing (6)
  • .claude/commands/implement-container-deployment.md
  • .claude/commands/improve-github-workflows.md
  • .claude/commands/plan-container-deployment.md
  • .claude/commands/update-ai-models.md
  • .claude/skills/debug-container-service/SKILL.md
  • docker/guidelines.md
✅ Files skipped from review due to trivial changes (1)
  • docker/guidelines.md
🚧 Files skipped from review as they are similar to previous changes (2)
  • .claude/commands/improve-github-workflows.md
  • .claude/commands/plan-container-deployment.md

Comment thread .claude/commands/implement-container-deployment.md
@bubacoder
bubacoder merged commit c2fc501 into main Jul 4, 2026
4 checks passed
@bubacoder
bubacoder deleted the agent-commands branch July 4, 2026 06:55
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