Skip to content

Fix five rook skill findings: CI recipe variables, paid steps and silent checks; update authorization; secrets - #89

Merged
gauravBansal06 merged 1 commit into
mainfrom
chore/skill-review-fixes
Dec 2, 2026
Merged

gauravBansal06 merged 1 commit into
mainfrom
chore/skill-review-fixes

Conversation

@samyakLambda

Copy link
Copy Markdown
Contributor

These five problems in the rook skill came up while reviewing LambdaTest/rook-plugin#7, which ships a copy of this skill. This repo's skill-installer/skills/ is the source, so the fixes go here and the plugin repo syncs them afterwards.

Changes

references/ci.md

  • ROOK_AGENT_ID is now listed with the variables CI must supply. The recipe runs rook agent use "$ROOK_AGENT_ID" under set -u, but the setup text never asked for it, so the job aborted with "unbound variable".
  • The paid rook explore and rook generate steps are gone from the per-change recipe. They ran on every push, spent credits each time, and changed the scenario set that sync --yes then recorded upstream. A new paragraph says to run them locally or in a manually triggered job, then review and commit the result.
  • The completion check and the report check now say why they fail. Before, a declined or halted run, an exit 0 with no JSON document, or a mismatched report stopped the job with jq's exit status and no message.

references/troubleshooting.md

  • remedy: update now runs rook update only with the user's authorization, as SKILL.md requires for installation changes. Before, it only said to announce it.

references/profiles.md

  • The headless authoring example writes to a mktemp file and removes it, instead of a fixed /tmp/profile.txt.
  • Secrets: import them with rook env set --from <file>, or ask the user to run rook env set KEY value in their own terminal. A secret on a command line the agent runs ends up in the transcript and the shell history. The agent no longer runs rook env show, which prints the full value, for the user.

The .claude/skills/rook/ and .agents/skills/rook/ mirrors are regenerated with scripts/sync-skill-mirrors.sh.

Tests

  • scripts/test-skill-contract.sh: 17/17. The fixtures now assert the new messages for declined, interrupted_with_report and stale_report, and a new case, empty_stdout_exit_0, covers a run that exits 0 with no JSON. Against the old ci.md, those four fail (13/17).
  • SKILL_FLAGS_SELFTEST=1 scripts/test-skill-flags.sh: all 45 rook command lines match @testmuai/rook 0.1.26, including env set --from and profile add --from "$profile_src".
  • scripts/test-skill-mirrors.sh and scripts/test-skill-installer.sh pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KxTgyL5kwZu8ZnQ5DN79eE

…medies

- ci.md: list ROOK_AGENT_ID with the CI variables (the recipe uses it under
  set -u); drop the paid explore and generate steps from the per-change job
  and say where they belong; make the completion and report checks say why
  they fail instead of exiting silently.
- troubleshooting.md: remedy update runs `rook update` only with the user's
  authorization, as SKILL.md requires for installation changes.
- profiles.md: write the profile source to a mktemp file, not a fixed
  /tmp path; import secrets with `rook env set --from` or have the user set
  them, never on a command line the agent runs; don't run `env show` for the
  user.
- Contract fixtures assert the new diagnostics, plus an exit-0 run with no
  JSON document. The four new assertions fail against the old recipe.

Found reviewing LambdaTest/rook-plugin#7, which carries a copy of this skill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KxTgyL5kwZu8ZnQ5DN79eE
@vipulkv

vipulkv commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Continuous Review — Round 1 — ⚠️ INCOMPLETE

Head: 696eb23 Reviewer panel: 4 CI: pass=8
only 1/4 reviewers responded (need ≥2); abstained: claude=ABSTAIN_ERROR, codex=ABSTAIN_ERROR, agy=ABSTAIN_ERROR

Per-reviewer summary

Reviewer Verdict CRIT HIGH MED LOW Duration
claude ABSTAIN_ERROR 0 0 0 0 0s
codex ABSTAIN_ERROR 0 0 0 0 17s
agy ABSTAIN_ERROR 0 0 0 0 7s
glm PASS 0 0 0 1 108s

Auto-posted by continuous-review-agent v1.3 (findings now include a suggested fix / code snippet). Contact @vipulkv for feedback.

@gauravBansal06
gauravBansal06 merged commit 8b75227 into main Dec 2, 2026
8 checks passed
@gauravBansal06
gauravBansal06 deleted the chore/skill-review-fixes branch December 2, 2026 16:06
gauravBansal06 added a commit to LambdaTest/rook-plugin that referenced this pull request Dec 2, 2026
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.

3 participants