Skip to content

fix: Compress simulate-keyboard and execute-dynamic-code skill prose#1976

Merged
hatayama merged 2 commits into
feature/skill-prose-compressionfrom
feature/skill-prose-input-dynamic
Jul 24, 2026
Merged

fix: Compress simulate-keyboard and execute-dynamic-code skill prose#1976
hatayama merged 2 commits into
feature/skill-prose-compressionfrom
feature/skill-prose-input-dynamic

Conversation

@hatayama

@hatayama hatayama commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

Fact-preserving compression of two skills, following the same editorial rule as #1975 (state each fact once, drop restatements and justification prose).

  • simulate-keyboard: the ReleaseAll paragraph repeated the command spelling and ReleasedKeys (both already in the Actions table / Output list). The three press-edge diagnostics were one run-on bullet; they are now a value → meaning → next-action table, which is also easier for an agent to apply mid-retry.
  • execute-dynamic-code: the pause-point hand-off and live-state-injection intro paragraphs lose example enumerations and justification prose; the contract facts (locals unreachable → use pause-point, no poll/sleep in snippets, reflection allowed because snippets never land in source) all remain.

Test plan

  • dist/darwin-arm64/uloop skills install --claude --agents; sources and generated .claude/ / .agents/ copies verified byte-identical
  • Fact-preservation pass over both diffs: every removed clause either restated elsewhere in the file or reworded in place

Review in cubic

Both skills carried run-on paragraphs that restated facts documented
elsewhere in the same file. Compress them without dropping any
contract fact:

- simulate-keyboard: drop ReleaseAll restatements (command spelling and
  ReleasedKeys are already in the Actions table and Output), tighten
  the PressEdgeObserved bullet, and convert the three press-edge
  diagnostics from one run-on bullet into a value/meaning/next-action
  table
- execute-dynamic-code: tighten the pause-point hand-off paragraph and
  the live-state-injection paragraph, removing example enumerations and
  justification prose while keeping the reflection-permission and
  main-thread rules
@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@hatayama, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 50 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: b8a66419-a7ed-4ffe-8077-ea3342b96594

📥 Commits

Reviewing files that changed from the base of the PR and between d8cefb4 and 2e7e258.

📒 Files selected for processing (3)
  • .agents/skills/uloop-simulate-keyboard/SKILL.md
  • .claude/skills/uloop-simulate-keyboard/SKILL.md
  • Packages/src/Editor/FirstPartyTools/SimulateKeyboard/Skill/SKILL.md
📝 Walkthrough

Walkthrough

Documentation updates refine dynamic-code access constraints, pause-point workflows, PlayMode state injection, keyboard recovery semantics, and press-edge diagnostic guidance across mirrored skill specifications.

Changes

Skill documentation updates

Layer / File(s) Summary
Dynamic-code access and PlayMode guidance
.agents/skills/uloop-execute-dynamic-code/SKILL.md, .claude/skills/uloop-execute-dynamic-code/SKILL.md, Packages/src/Editor/FirstPartyTools/ExecuteDynamicCode/Skill/SKILL.md
The documentation distinguishes reachable Unity state from inaccessible locals and intermediate calculations, directs captured-value inspection through pause points, documents synchronous watcher usage, and revises reflection-based PlayMode state correction guidance.
Keyboard recovery and press-edge diagnostics
.agents/skills/uloop-simulate-keyboard/SKILL.md, .claude/skills/uloop-simulate-keyboard/SKILL.md, Packages/src/Editor/FirstPartyTools/SimulateKeyboard/Skill/SKILL.md
ReleaseAll is documented as pause-point recovery that preserves captures, while press-edge observability diagnostics are reorganized into meanings and recommended next actions.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed It clearly summarizes the main change: compressing prose in the simulate-keyboard and execute-dynamic-code skill docs.
Description check ✅ Passed The description matches the diff and objectives, describing the prose compression and fact-preserving edits to both skill docs.
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 feature/skill-prose-input-dynamic

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: 1

🤖 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 `@Packages/src/Editor/FirstPartyTools/SimulateKeyboard/Skill/SKILL.md`:
- Around line 96-103: Update the press-edge recovery guidance so it is
action-specific: in
Packages/src/Editor/FirstPartyTools/SimulateKeyboard/Skill/SKILL.md lines
96-103, retain direct retry for Press but require KeyUp followed by KeyDown for
KeyDown recovery. Regenerate .agents/skills/uloop-simulate-keyboard/SKILL.md
lines 96-103 and .claude/skills/uloop-simulate-keyboard/SKILL.md lines 96-103
with the same guidance.
🪄 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 Plus

Run ID: d351ad39-1b95-48f2-bfc2-a65d8f05d585

📥 Commits

Reviewing files that changed from the base of the PR and between 6394326 and d8cefb4.

📒 Files selected for processing (6)
  • .agents/skills/uloop-execute-dynamic-code/SKILL.md
  • .agents/skills/uloop-simulate-keyboard/SKILL.md
  • .claude/skills/uloop-execute-dynamic-code/SKILL.md
  • .claude/skills/uloop-simulate-keyboard/SKILL.md
  • Packages/src/Editor/FirstPartyTools/ExecuteDynamicCode/Skill/SKILL.md
  • Packages/src/Editor/FirstPartyTools/SimulateKeyboard/Skill/SKILL.md

Comment thread Packages/src/Editor/FirstPartyTools/SimulateKeyboard/Skill/SKILL.md
CodeRabbit review: the diagnostics table said "Retry the input" for an
edge consumed by a non-Dynamic update, but a missed KeyDown leaves the
key held on the device, and KeyDown rejects an already-held key. Spell
out the per-action recovery: Press retries directly, KeyDown needs
KeyUp first.
@hatayama
hatayama merged commit 8099b67 into feature/skill-prose-compression Jul 24, 2026
2 checks passed
@hatayama
hatayama deleted the feature/skill-prose-input-dynamic branch July 24, 2026 09:31
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