Skip to content

Upgrade skill docs with missing commands and engine semantics#4

Merged
Ring-wdr merged 1 commit intomainfrom
upgrade-skills-docs
Mar 20, 2026
Merged

Upgrade skill docs with missing commands and engine semantics#4
Ring-wdr merged 1 commit intomainfrom
upgrade-skills-docs

Conversation

@Ring-wdr
Copy link
Owner

Summary

  • Add missing command documentation: session status, session close, node pick, profiler export
  • Add missing session open options: --browser, --channel, --device, --storage-state, --user-data-dir, --headless
  • Add --profile-id for profiler start, --compress/--output for profiler export
  • Add engine selection semantics (auto/custom/devtools) to runtime-semantics.md
  • Improve skill descriptions for better triggering accuracy
  • Add Node.js >= 22 requirement to cli-workflows.md

Test plan

  • Verify all documented commands match rdt --help output
  • Confirm skill descriptions trigger correctly in Claude Code sessions
  • Review engine semantics section against session doctor output

🤖 Generated with Claude Code

Both skills were missing documentation for session status/close,
node pick, profiler export, and advanced session open options
(--browser, --channel, --device, --storage-state, --user-data-dir,
--headless). Also adds engine selection semantics (auto/custom/devtools)
to runtime-semantics.md and improves skill descriptions for better
triggering accuracy.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Ring-wdr
Copy link
Owner Author

Documentation-only change — no source code, tests, or build artifacts are modified. All changes are scoped to skills/ markdown files which are not part of the published npm package (dist/ only). CI runs are expected to pass without impact.

@Ring-wdr Ring-wdr merged commit 8f8e64c into main Mar 20, 2026
2 checks passed
@Ring-wdr Ring-wdr deleted the upgrade-skills-docs branch March 20, 2026 06:11
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fbfa9c8677

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


| Engine | Behavior |
|---|---|
| `auto` | Tries the custom engine first, falls back to DevTools-aligned if unavailable |

Choose a reason for hiding this comment

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

P1 Badge Correct the --engine auto resolution order

This table inverts the default engine selection. In detectDevtoolsCapabilities() the runtime sets recommendedEngine to devtools when the hook is usable and then resolves auto to that recommendation (src/runtime-script.js:206-209), so --engine auto prefers DevTools and falls back to custom, not the reverse. As written, the default workflow in this skill will make agents assume custom-engine semantics when the session is actually on the DevTools-backed path.

Useful? React with 👍 / 👎.

| `selectedEngine` | The engine actually in use after resolution |
| `availableEngines` | Engines that the runtime supports for this page |
| `recommendedEngine` | The engine the runtime considers optimal |
| `engineFallback` | `true` if the selected engine differs from the preference (auto resolved to a specific engine, or a forced engine was unavailable) |

Choose a reason for hiding this comment

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

P2 Badge Describe engineFallback as a forced-devtools fallback only

The new definition says this flag becomes true whenever selectedEngine differs from enginePreference, including normal auto resolution, but both detectDevtoolsCapabilities() and buildResolvedEngineMetadata() only set engineFallback when an explicit devtools request had to fall back to custom (src/runtime-script.js:227,255). That mislabels ordinary --engine auto sessions and will cause agents to misread session doctor / session status output.

Useful? React with 👍 / 👎.

## Prefer Built-in Interact Commands

- Use `interact click`, `interact type`, `interact press`, and `interact wait` before ad hoc helper scripts.
- All interact commands accept optional `--timeout-ms <ms>` for element location timeout.

Choose a reason for hiding this comment

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

P2 Badge Remove --timeout-ms guidance for interact wait

This says every interact command accepts --timeout-ms, but rdt --help only advertises that flag on interact click, interact type, and interact press; interact wait is rdt interact wait --session <name> --ms <n>, and handleInteractCommand() ignores options.timeoutMs in the wait branch (src/cli.js:371-375). Agents following this skill will think they shortened a wait when the flag is actually a no-op.

Useful? React with 👍 / 👎.

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