Repository navigation
skills: rewrite and trim the seven non-orchestration guides - #19128
Conversation
…st standard Every guide leads with Result / Done / Safe failure, states conditions instead of case lists, keeps one done bar and one autonomy envelope, and loads references at the point of use via `skills get <topic> --full`. orca-cli drops from 424 to 260 always-loaded lines with three references; orca-per-workspace-env from 794 to 397 with five. Defects fixed in shipped guides: `emulator camera` (no such command), iOS `permissions` (backend refuses it), Android pane described as in development, `relayGracePeriodSeconds: 0` documented as immediate teardown (it is unbounded), doctor `ok: true` hiding `warn`, an SSH exemplar setting both `jumpHost` and `proxyCommand`, a provisioned-root fetch from `origin`, and the Linear unconfirmed-write rule keyed on four verbs when ten emit it. The resolver ladder, placeholder rule, and older-binary fallback shared by every installable SKILL.md now come from one skill-stubs/_shared/cli-resolution.md fragment composed by the generator, which also bundles per-guide references into --full. New guards: every ORCA invocation and flag resolves against COMMAND_SPECS, descriptions carry no angle-bracket tokens, reference routing is checked both ways, and an always-loaded size ratchet (300 lines) that guides may leave but never join.
- ssh-host create script: route the bootstrap ssh through the chosen jump host or proxy command, refuse both at once, use StrictHostKeyChecking=accept-new instead of a blind ssh-keyscan append, and pass gh_token/project_root/repo_url/repo_ref to the remote bash via printf %q so a quote in a value cannot break out of the command. - per-workspace-env envelope: the step-10 workspace test the user asked for is no longer forbidden by the same paragraph. - linear guides: name the full verb, ORCA linear list-issues. - parity guard: a prefix reference such as ORCA linear --help or ORCA emulator --webcam now has its flags checked against every command under that prefix; only an exact path or an explicit ... was checked before.
Shorter outcome spines, one idea per sentence, no restated rationale after a rule. No rule, command, or pinned phrase changes; 47 net lines fewer across the guides and references.
Resolves the skills-get --reference seam from #16904: the generator, its test, the skills spec, help text, and the orchestration stub all take main's per-reference support; the shared resolver fragment and the generalized reference-routing test from this branch stay. orca-cli.md keeps main's --wait-submit bullets plus this branch's accepted-bytes rule. The size-budget ratchet drops orchestration, which is now a 200-line kernel.
Both guides told agents to load --full at a gate because the per-reference selector did not exist when they were written. Now that main serves `skills get <topic> --reference references/<file>.md`, load only the named file and keep --full as the fallback for an older CLI, matching the orchestration kernel.
The Result/Done/Safe-failure preambles and Next Action closers restated rules the body already carries. Agents stop fine without them, and for a CLI wrapper the command surface is the guide. Keeps the one substantive rule computer-use's Done block added (never report unverified as success) inside Action Rules. orchestration and per-workspace-env keep theirs: those are multi-step workflows where the done bar is load-bearing. (cherry picked from commit 44a74ba)
- Drop the Result/Done/Safe-failure preambles and Next Action closers from the six CLI-wrapper guides; the one substantive rule (never report an unverified computer-use action as success) moves into Action Rules. - Drop the 'guide may be stale, trust --help' lines: the guide is served by the binary that runs the commands, so it cannot be stale relative to it. - Drop the status --json / open --json preflight from every guide; the stub no-guessing paragraph now says to start Orca only when a command reports it is not running. - Cut the ORCA placeholder paragraph in each guide to one line that points back at the stub's resolution. - Trim the orchestration, orca-cli, and computer-use descriptions to trigger phrases plus one line of scope. - Remove the older-binary fallback section from every stub (and its two shared blocks); a binary without skills get gets one sentence. - Remove the guide size ratchet test.
There was a problem hiding this comment.
ℹ️ No critical issues — one minor suggestion inline.
Reviewed changes
A single-pass review of the full 47-file rewrite: the seven trimmed guides and their new bundled references, the shared stub composition, the regenerated bundle and manifests, and the new guide↔CLI parity test.
- Guide rewrites — the six CLI-wrapper guides drop their
Result/Done/Safe failurepreambles andNext Actionclosers, command catalogs move behind--referencegates, and theorca/orca-ide/orca-devresolution ladders leave the guide bodies (orca-per-workspace-envkeeps its outcome spine). The one load-bearing done rule moves into computer-use's Action Rules. - Shared stub composition — the resolver ladder and no-guessing paragraph are single-authored in
skill-stubs/_shared/cli-resolution.mdand projected into each stub via markers, with a newskill-stub-composition.mjsthat fails loudly on unknown, missing, duplicated, or re-inlined blocks. - Parity test — new
skill-guide-cli-parity.test.tsscans every guide and reference and asserts eachORCAinvocation's command path and flags exist inCOMMAND_SPECS(the mechanism that would have caught a re-documentedemulator camera --webcam). - Schema-accuracy fixes —
references/ssh-host.mdnow documentsrelayGracePeriodSecondscorrectly (0= unbounded, 1–59 rejected) and the strictportForwardsshape; verified both againstsrc/shared/ephemeral-vm-recipes.ts. - Regenerated artifacts —
bundled-skill-guides.ts,current-manifest.json,snapshot-registry.json, plus the new_sharedeol pin in.gitattributes.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe update centralizes shared stub guidance and adds bundled reference routing. Skill guides were revised for CLI usage, handoffs, Linear workflows, emulator control, and workspace environments. New reference documents cover browser, publishing, provider, SSH, Docker, Windows, and failure procedures. Tests now validate shared composition, command parity, descriptions, critical guidance, reference routing, and release metadata. Merge Risk: 🟡 Moderate · up to The workspace-environment guide may still direct recursive deletion of an environment-selected path, risking unintended local data removal. This should be constrained or explicitly accepted before merge. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the scope, history, key changes, approval requirement, and verification results. However, it omits most required template sections, including ELI5, Why, explicit Linked Issue, Visual Proof, Testing checkboxes and platform coverage, AI Disclosure, Review, Agent skill upstream boundary, Notes, and the Checklist. Resolution Complete the required description template. Add the missing headings and required information, including an explicit linked issue such as ✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 8
🧹 Nitpick comments (1)
skill-guides/orca-per-workspace-env.md (1)
129-129: 🔒 Security & Privacy | 🔵 TrivialGuard the cleanup path before
rm -rf.The guide runs this command in an operator-controlled environment, so
ORCA_USER_DATA_PATHis not an external attacker input. A value such as/or$HOMEcan still delete unrelated files. Reject root, home, relative, and empty paths before deletion.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Team
Run ID: e64878fa-f26b-4bec-812f-3085d388297e
📒 Files selected for processing (47)
.gitattributesconfig/scripts/computer-use-skill-guidance.test.mjsconfig/scripts/generate-bundled-skill-guides.mjsconfig/scripts/generate-bundled-skill-guides.test.mjsconfig/scripts/orca-cli-skill-guidance.test.mjsconfig/scripts/orca-linear-skill-guidance.test.mjsconfig/scripts/orchestration-skill-guidance.test.mjsconfig/scripts/skill-description-length.test.mjsconfig/scripts/skill-stub-composition.mjsresources/skills/current-manifest.jsonresources/skills/snapshot-registry.jsonskill-guides/computer-use.mdskill-guides/linear-tickets.mdskill-guides/orca-cli.mdskill-guides/orca-cli/references/automations.mdskill-guides/orca-cli/references/browser.mdskill-guides/orca-cli/references/publishing.mdskill-guides/orca-emulator-android.mdskill-guides/orca-emulator.mdskill-guides/orca-linear.mdskill-guides/orca-per-workspace-env.mdskill-guides/orca-per-workspace-env/references/docker-ssh.mdskill-guides/orca-per-workspace-env/references/failure-modes.mdskill-guides/orca-per-workspace-env/references/provider-vercel.mdskill-guides/orca-per-workspace-env/references/ssh-host.mdskill-guides/orca-per-workspace-env/references/windows-scripts.mdskill-guides/orchestration.mdskill-stubs/_shared/cli-resolution.mdskill-stubs/computer-use.mdskill-stubs/linear-tickets.mdskill-stubs/orca-cli.mdskill-stubs/orca-emulator-android.mdskill-stubs/orca-emulator.mdskill-stubs/orca-linear.mdskill-stubs/orca-per-workspace-env.mdskill-stubs/orchestration.mdskills/computer-use/SKILL.mdskills/linear-tickets/SKILL.mdskills/orca-cli/SKILL.mdskills/orca-emulator-android/SKILL.mdskills/orca-emulator/SKILL.mdskills/orca-linear/SKILL.mdskills/orca-per-workspace-env/SKILL.mdskills/orchestration/SKILL.mdsrc/cli/bundled-skill-guides.tssrc/cli/help.tssrc/cli/skill-guide-cli-parity.test.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
A delta review of commit 908e196 ("skills: apply independent review cleanup") against the prior pullfrog review.
- Dormant reflow machinery removed — the
topic/reflow/reflowParagraph/atomicTokens/countBacktickspaths flagged in the prior review were deleted fromskill-stub-composition.mjsrather than left dead, and the composition signatures were simplified to match. - Computer-use guide deepened — new Action Rules (
press-keyvshotkey,click --modifiers, background-app caveat, window-local coordinates) plus a## Screenshotssection documenting scale conversion andresult.screenshot.path/.data. Verified the new claims againstsrc/cli/computer-format.ts,specs/computer.ts,help.ts, and the press-key/hotkey validation tests; the coordinate/scale formula and verification reasons match the implementation verbatim. - per-workspace-env restructured — the
Result/Next consumer/Done/Safe failurespine was folded into the Autonomy envelope and section 9; the load-bearing rules ("awarnkeepsok: true", paid-step OKs, provider-error fidelity) are retained and pinned by the new test. - Stub discovery intros — each stub gained a
# Titleand a one-line discovery-stub intro; the shared no-guessing block now routes through--helpandskills getinstead of an older-binary fallback paragraph. - Orchestration description reverted — the orchestration guide's description returned to its base form, keeping this PR scoped to the seven non-orchestration guides; the orchestration routing test was reconciled to the long description.
- New safeguards —
skill-critical-guidance.test.mjspins the critical guidance strings, and the manifestgitTreeShatest now compares against a freshly computedgit write-treeso it is immune to uncommitted edits.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Team
Run ID: d09331ae-cbf9-453b-9a5a-a13d0ab9d6cf
📒 Files selected for processing (32)
config/scripts/computer-use-skill-guidance.test.mjsconfig/scripts/generate-bundled-skill-guides.mjsconfig/scripts/generate-bundled-skill-guides.test.mjsconfig/scripts/generate-skill-bundle-manifest.test.mjsconfig/scripts/orca-linear-skill-guidance.test.mjsconfig/scripts/orchestration-skill-guidance.test.mjsconfig/scripts/skill-critical-guidance.test.mjsconfig/scripts/skill-stub-composition.mjsresources/skills/current-manifest.jsonresources/skills/snapshot-registry.jsonskill-guides/computer-use.mdskill-guides/orca-cli.mdskill-guides/orca-per-workspace-env.mdskill-guides/orca-per-workspace-env/references/ssh-host.mdskill-stubs/_shared/cli-resolution.mdskill-stubs/computer-use.mdskill-stubs/linear-tickets.mdskill-stubs/orca-cli.mdskill-stubs/orca-emulator-android.mdskill-stubs/orca-emulator.mdskill-stubs/orca-linear.mdskill-stubs/orca-per-workspace-env.mdskills/computer-use/SKILL.mdskills/linear-tickets/SKILL.mdskills/orca-cli/SKILL.mdskills/orca-emulator-android/SKILL.mdskills/orca-emulator/SKILL.mdskills/orca-linear/SKILL.mdskills/orca-per-workspace-env/SKILL.mdskills/orchestration/SKILL.mdsrc/cli/bundled-skill-guides.tssrc/cli/skill-guide-cli-parity.test.ts
🚧 Files skipped from review as they are similar to previous changes (13)
- skill-stubs/orca-cli.md
- skill-stubs/orca-emulator-android.md
- skills/computer-use/SKILL.md
- skill-guides/orca-per-workspace-env/references/ssh-host.md
- src/cli/skill-guide-cli-parity.test.ts
- skill-guides/orca-cli.md
- skills/orca-linear/SKILL.md
- skill-stubs/orca-per-workspace-env.md
- skill-stubs/computer-use.md
- skills/orca-emulator-android/SKILL.md
- skill-stubs/orca-linear.md
- skill-guides/orca-per-workspace-env.md
- skill-stubs/orca-emulator.md
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
A delta review of commit b00257a ("skills: clarify guide loading and Linear command discovery") against the prior pullfrog review at 908e196.
- Heading clarified — the stub/SKILL.md heading "Load the full guide before running Orca commands" became "Load the version-matched guide before running Orca commands" across the seven non-orchestration stubs and their generated
SKILL.mdfiles, matching the intro line's "version-matched" wording. - Linear discovery guidance — the
orca-linearandlinear-ticketsguides gained a "For operations not shown here, runORCA linear --help, thenORCA linear <command> --help" sentence in Discovery And Triage. - Artifacts regenerated —
bundled-skill-guides.ts,current-manifest.json, andsnapshot-registry.jsonreflect the two guide edits and the stub rename.
Verified generate-bundled-skill-guides.mjs --check is clean, no remaining "Load the full guide" text survives in the seven non-orchestration stubs/SKILL.md files, and the new ORCA linear <command> --help invocation is harmless to the parity test (<command> breaks token parsing; --help is a global flag).
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
A delta review of commit a960005 ("skills: harden environment recipe examples") against the prior pullfrog review at b00257a.
- Recipe shell examples hardened —
provider-vercel.mdgained acleanup_snapshottrap that removes the sandbox on success and failure alike, plus snapshot-id validation and an unconditionalGIT_TERMINAL_PROMPT=0export (previously only set inside the token-present branch). - SSH host-key and credential handling locked down —
ssh-host.mdanddocker-ssh.mdswitched fromStrictHostKeyChecking=accept-newtoBatchMode=yes/StrictHostKeyChecking=yes, dropped desktop-token forwarding in favor of host-configured credentials, and reworked the Docker guidance toward per-container unique host keys instead of a shared baked-in private key. - Shell-example test added — new
skill-recipe-shell.test.mjsexecutes the documented snippets, asserting the cleanup trap fires on both success and failure, failed cleanup stays visible, Git prompts are disabled when no token is present, and SSH refuses unverified hosts without forwardingGH_TOKEN. - Linear guides moved off a bare
orcacommand name — examples now use theORCAplaceholder (a bareorcaresolves to the GNOME Orca screen reader on Linux), andorca-linear-skill-guidance.test.mjswas refactored to assert discovery/assignment flags againstLINEAR_COMMAND_SPECSdirectly.
Verified generate-bundled-skill-guides.mjs --check, skill-guide-cli-parity.test.ts, and the three touched test files all pass (28 tests).
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
A delta review of the two commits landed since the prior pullfrog review at a960005.
- Merged
main—ea3e7903b5syncedmain(through2e8fa3fe) into the branch, bringing the SQLite agent-session-journal refactor whoseAgentSessionJournalinterface now exposeslastActivityAt(). - Test doubles completed —
75d6fd0addedlastActivityAt: () => 1to the twojournalmock objects insrc/main/agent-hooks/first-work-branch-rename.test.ts, so they satisfy the updated interface and the runtime call atstructured-agent-session-status-feed.ts:131(journal.lastActivityAt() || this.deps.now()).
Both mocks return 1, matching the feed's frozen now: () => 1 clock, and no other AgentSessionJournal cast in the file is missing the method. The change is test-only with no production or guide-content surface.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
A delta review of commit 264d6cc ("skills: clarify custom Codex launch and refresh model example") against the prior pullfrog review at 75d6fd0.
- Custom Codex handoff clarified — the
orca-cliguide's Custom Codex model/effort paragraph now states thatworktree create --agent codexuses Orca's configured launcher with no per-call model/effort flags or arbitrary Codex argument forwarding, and routes custom argv throughterminal create --commandinstead. - Model example refreshed — the
gpt-5.5 xhighexample becamegpt-6-astra xhighin both the prose and the recipe block. - Guidance test and bundle regenerated —
orca-cli-skill-guidance.test.mjsassertions and theORCA_CLI_MARKDOWNbundle constant were updated to match.
Verified the "no per-call model/effort flags" claim against src/cli/specs/core.ts:93 (the worktree create usage accepts --agent/--prompt but offers no --model/-c forwarding), and confirmed the new --model/-c model_reasoning_effort tokens stay inside the quoted --command value so the CLI-parity test's quote-blanking keeps them inert.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

Do not merge without Jinwoo's explicit sign-off.
Successor to #18724, which was merged without authorization and reverted in #19126. Same branch, so its full history and review thread carry over. This is the single home for the non-orchestration skill work; no follow-up PRs.
What's here
The original rewrite (see #18724 for the per-guide explanation) plus two commits on top:
914b766 drops the Result/Done/Safe-failure preambles and Next Action closers from the six CLI-wrapper guides. Orchestration and per-workspace-env keep theirs. The one substantive rule the computer-use Done block added (never report an
unverifiedaction as success) moved into Action Rules.f344a77 trims the redundancy:
--help" lines removed. The guide is served by the binary that runs the commands.status --json/open --jsonpreflight removed from every guide. The stub's no-guessing paragraph now says to start Orca only when a command reports it is not running.ORCAplaceholder paragraph cut to one line per guide, pointing back at the stub's resolution.skills getgets one sentence. Two shared blocks retired.Verification
Skill guidance, generator, manifest, parity, description-length, and CLI skills suites: 194 passed.
generate-bundled-skill-guides.mjs --checkand manifest check clean. Changed-code lint andtc:cligreen.