Skip to content

Import skills from OpenHands/extensions PRs#3

Merged
enyst merged 1 commit intomainfrom
openhands/sync-skills-from-extensions
Feb 26, 2026
Merged

Import skills from OpenHands/extensions PRs#3
enyst merged 1 commit intomainfrom
openhands/sync-skills-from-extensions

Conversation

@enyst
Copy link
Copy Markdown
Owner

@enyst enyst commented Feb 26, 2026

Closes #2.

Summary

This PR syncs skill content from PRs opened by @enyst in OpenHands/extensions into this repo.

Changes

Testing

  • python -m unittest discover -s tests -p 'test_*.py' -v

Summary by CodeRabbit

  • New Features

    • Added self-modification playbook skill with extensibility architecture guidance
    • Added GitHub PR automation skill with CI/review monitoring and flaky retry capabilities
    • Added frontend slide generation skill with HTML presentation templates and visual presets
    • Added OpenHands Cloud API v1 client libraries (Python and TypeScript) with sandbox and conversation endpoints
  • Documentation

    • Comprehensive skill guides, workflow references, architecture documentation, and usage templates
    • API client documentation with quick-start examples and endpoint descriptions
  • Tests

    • Added Python script compilation verification tests

Imported adapt-yourself, openhands-api-v1, babysit-pr, and frontend-slides skills from enyst PRs in OpenHands/extensions.

Co-authored-by: openhands <openhands@all-hands.dev>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Feb 26, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 05f3ceb and b2e7b61.

📒 Files selected for processing (44)
  • .gitignore
  • skills/adapt-yourself/README.md
  • skills/adapt-yourself/SKILL.md
  • skills/adapt-yourself/references/ARCHITECTURE.md
  • skills/adapt-yourself/references/INSTALLATION_MODES.md
  • skills/adapt-yourself/references/TEMPLATES.md
  • skills/babysit-pr/README.md
  • skills/babysit-pr/SKILL.md
  • skills/babysit-pr/references/github-api-notes.md
  • skills/babysit-pr/references/heuristics.md
  • skills/babysit-pr/scripts/gh_pr_watch.py
  • skills/frontend-slides/LICENSE.txt
  • skills/frontend-slides/README.md
  • skills/frontend-slides/SKILL.md
  • skills/frontend-slides/references/ANIMATION_PATTERNS.md
  • skills/frontend-slides/references/PPT_CONVERSION.md
  • skills/frontend-slides/references/STYLE_EFFECT_MAPPING.md
  • skills/frontend-slides/references/STYLE_PRESETS.md
  • skills/frontend-slides/references/TROUBLESHOOTING.md
  • skills/frontend-slides/references/VIEWPORT_FITTING.md
  • skills/frontend-slides/references/WORKFLOW.md
  • skills/frontend-slides/references/WORKFLOW_BUILD_PRESENTATION.md
  • skills/frontend-slides/references/WORKFLOW_DELIVERY.md
  • skills/frontend-slides/references/WORKFLOW_ENHANCEMENT.md
  • skills/frontend-slides/references/WORKFLOW_NEW_PRESENTATION.md
  • skills/frontend-slides/references/presets/bold-signal.md
  • skills/frontend-slides/references/presets/creative-voltage.md
  • skills/frontend-slides/references/presets/dark-botanical.md
  • skills/frontend-slides/references/presets/electric-studio.md
  • skills/frontend-slides/references/presets/neon-cyber.md
  • skills/frontend-slides/references/presets/notebook-tabs.md
  • skills/frontend-slides/references/presets/paper-ink.md
  • skills/frontend-slides/references/presets/pastel-geometry.md
  • skills/frontend-slides/references/presets/split-pastel.md
  • skills/frontend-slides/references/presets/swiss-modern.md
  • skills/frontend-slides/references/presets/terminal-green.md
  • skills/frontend-slides/references/presets/vintage-editorial.md
  • skills/openhands-api-v1/README.md
  • skills/openhands-api-v1/SKILL.md
  • skills/openhands-api-v1/references/README.md
  • skills/openhands-api-v1/references/example_prompt.md
  • skills/openhands-api-v1/scripts/openhands_api_v1.py
  • skills/openhands-api-v1/scripts/openhands_api_v1.ts
  • tests/test_python_scripts_compile.py

📝 Walkthrough

Walkthrough

This PR adds multiple OpenHands skills with comprehensive documentation and implementations, including self-modification guidance (adapt-yourself), GitHub PR automation (babysit-pr), presentation generation (frontend-slides), and OpenHands API v1 clients (Python and TypeScript), alongside a Python compilation test.

Changes

Cohort / File(s) Summary
Configuration
.gitignore
Adds Python bytecode cache ignores (__pycache__/, *.py[cod], .pytest_cache/).
adapt-yourself Skill
skills/adapt-yourself/README.md, skills/adapt-yourself/SKILL.md, skills/adapt-yourself/references/ARCHITECTURE.md, skills/adapt-yourself/references/INSTALLATION_MODES.md, skills/adapt-yourself/references/TEMPLATES.md
Comprehensive documentation for self-modification playbook, including architecture overview, installation modes, and templates for extending OpenHands without code changes (skills, hooks, plugins, MCPs).
babysit-pr Skill
skills/babysit-pr/README.md, skills/babysit-pr/SKILL.md, skills/babysit-pr/references/github-api-notes.md, skills/babysit-pr/references/heuristics.md
Documentation for GitHub PR monitoring and automation skill, including CI failure classification, review handling rules, and GitHub API reference notes.
babysit-pr Implementation
skills/babysit-pr/scripts/gh_pr_watch.py
Python script for automated PR monitoring and CI/review state management, featuring GH CLI integration, state tracking, retry logic, and continuous watch loops with decision-based actions (~886 lines).
frontend-slides Skill
skills/frontend-slides/LICENSE.txt, skills/frontend-slides/README.md, skills/frontend-slides/SKILL.md, skills/frontend-slides/references/WORKFLOW.md, skills/frontend-slides/references/ANIMATION_PATTERNS.md, skills/frontend-slides/references/PPT_CONVERSION.md, skills/frontend-slides/references/STYLE_EFFECT_MAPPING.md, skills/frontend-slides/references/STYLE_PRESETS.md, skills/frontend-slides/references/TROUBLESHOOTING.md, skills/frontend-slides/references/VIEWPORT_FITTING.md, skills/frontend-slides/references/WORKFLOW_*.md
Extensive documentation and presets for presentation generation skill, covering workflow phases (content/style discovery, build, delivery), visual styles, animation patterns, PPT conversion, and viewport fitting guidelines.
frontend-slides Presets
skills/frontend-slides/references/presets/*.md
Visual design presets for presentations: Bold Signal, Creative Voltage, Dark Botanical, Electric Studio, Neon Cyber, Notebook Tabs, Paper & Ink, Pastel Geometry, Split Pastel, Swiss Modern, Terminal Green, Vintage Editorial (12 style templates).
openhands-api-v1 Skill
skills/openhands-api-v1/README.md, skills/openhands-api-v1/SKILL.md, skills/openhands-api-v1/references/README.md, skills/openhands-api-v1/references/example_prompt.md
Documentation for OpenHands Cloud API v1 client, including authentication schemes, endpoint references, quick-start examples, and prompt templates.
openhands-api-v1 Implementation
skills/openhands-api-v1/scripts/openhands_api_v1.py
Python client library for OpenHands Cloud API v1 with app server (Bearer auth) and agent-server (X-Session-API-Key) endpoints, state polling, file upload/download, and CLI integration (~589 lines).
openhands-api-v1 TypeScript Client
skills/openhands-api-v1/scripts/openhands_api_v1.ts
TypeScript client for OpenHands API v1 with equivalent app/agent server interactions and type-safe request handling (~248 lines).
Tests
tests/test_python_scripts_compile.py
Unit test module verifying Python scripts compile to bytecode, with test cases for openhands-api-v1 and babysit-pr scripts.

Sequence Diagram

sequenceDiagram
    participant Agent as babysit-pr Agent
    participant GH as GitHub API
    participant PR as PR & Checks
    participant Bot as Review/CI System
    
    Agent->>GH: Fetch PR state, checks, reviews
    GH-->>Agent: PR metadata, CI status, review items
    
    Agent->>Agent: Classify failures (branch vs flaky)
    Agent->>Agent: Recommend action (fix, retry, stop)
    
    alt CI Failure - Branch Related
        Agent->>GH: Push fix commit
        GH-->>PR: Trigger CI re-run
    else CI Failure - Flaky
        Agent->>GH: Retry failed workflow
        GH-->>PR: Re-run checks
    else Review Blocker
        Agent->>Bot: Analyze review comment
        Agent->>GH: Push fix or request details
    else Ready to Merge
        Agent-->>Agent: Stop watch loop
    end
    
    Note over Agent,PR: Poll cadence: 1min (not green) → exponential backoff (green)
    loop Continuous Watch
        Agent->>GH: Snapshot PR/CI/review state
        GH-->>Agent: Updated snapshot
        Agent->>Agent: Check terminal conditions
    end
Loading

Estimated Code Review Effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Poem

🐰 A warren of skills now grows so bright,
Adapt yourself, watch PRs through the night,
Slide presentations from dust to delight,
APIs unified in TypeScript and Python's might—
Open-paws extensibility in flight! 🚀

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch openhands/sync-skills-from-extensions

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 and usage tips.

@openhands-ai openhands-ai bot mentioned this pull request Feb 26, 2026
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly expands the capabilities of OpenHands by integrating several new skills from the OpenHands/extensions repository. These additions empower the system with enhanced self-modification guidance, automated GitHub PR monitoring, advanced presentation generation, and a dedicated client for the OpenHands Cloud API. The changes aim to streamline development workflows and provide more robust tools for agents.

Highlights

  • New 'adapt-yourself' Skill: Introduced a new skill providing a playbook for self-modification requests, guiding users through various extensibility layers like skills, hooks, plugins, and code changes.
  • New 'babysit-pr' Skill: Added a skill designed to monitor GitHub pull requests, continuously polling CI checks, workflow runs, review comments, and mergeability status, with automated retry logic for flaky failures.
  • New 'frontend-slides' Skill: Integrated a skill for creating stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files, focusing on visual style discovery and zero-dependency output.
  • New 'openhands-api-v1' Skill: Included a skill offering a minimal client and reference for the OpenHands Cloud REST API (V1), facilitating automation of common OpenHands Cloud actions.
  • Improved Build Hygiene: Added Python bytecode and pytest cache directories to .gitignore to prevent unnecessary tracking of generated files, and a minimal unittest to ensure compilation of included Python scripts.
Changelog
  • .gitignore
    • Added entries to ignore Python bytecode and pytest cache files.
  • skills/adapt-yourself/README.md
    • Added a README describing the adapt-yourself skill's purpose.
  • skills/adapt-yourself/SKILL.md
    • Added the main skill definition for adapt-yourself, detailing its objective and decision tree for self-modification.
  • skills/adapt-yourself/references/ARCHITECTURE.md
    • Added documentation outlining the OpenHands extensibility architecture.
  • skills/adapt-yourself/references/INSTALLATION_MODES.md
    • Added a reference for uv installation and development modes.
  • skills/adapt-yourself/references/TEMPLATES.md
    • Added templates for various extensibility mechanisms like AgentSkills, hooks, and plugins.
  • skills/babysit-pr/README.md
    • Added a README for the babysit-pr skill, explaining its function and triggers.
  • skills/babysit-pr/SKILL.md
    • Added the core skill definition for babysit-pr, detailing its objective and workflow for monitoring PRs.
  • skills/babysit-pr/references/github-api-notes.md
    • Added notes on GitHub CLI/API commands used by the babysit-pr watcher.
  • skills/babysit-pr/references/heuristics.md
    • Added heuristics for classifying CI failures and review comments within babysit-pr.
  • skills/babysit-pr/scripts/gh_pr_watch.py
    • Added a Python script for watching GitHub PR CI and review activity.
  • skills/frontend-slides/LICENSE.txt
    • Added the MIT License for the frontend-slides skill.
  • skills/frontend-slides/README.md
    • Added a README for the frontend-slides skill, describing its features and installation.
  • skills/frontend-slides/SKILL.md
    • Added the main skill definition for frontend-slides, outlining its non-negotiables and usage modes.
  • skills/frontend-slides/references/ANIMATION_PATTERNS.md
    • Added a reference for animation patterns used in frontend-slides.
  • skills/frontend-slides/references/PPT_CONVERSION.md
    • Added a workflow for converting PowerPoint files to HTML presentations.
  • skills/frontend-slides/references/STYLE_EFFECT_MAPPING.md
    • Added a guide for mapping animation effects to desired feelings.
  • skills/frontend-slides/references/STYLE_PRESETS.md
    • Added a reference for curated visual style presets.
  • skills/frontend-slides/references/TROUBLESHOOTING.md
    • Added a troubleshooting guide for common issues in frontend-slides.
  • skills/frontend-slides/references/VIEWPORT_FITTING.md
    • Added critical requirements and CSS architecture for viewport fitting in presentations.
  • skills/frontend-slides/references/WORKFLOW.md
    • Added an index for the frontend-slides workflow.
  • skills/frontend-slides/references/WORKFLOW_BUILD_PRESENTATION.md
    • Added a detailed workflow for building presentations.
  • skills/frontend-slides/references/WORKFLOW_DELIVERY.md
    • Added a workflow for delivering completed presentations.
  • skills/frontend-slides/references/WORKFLOW_ENHANCEMENT.md
    • Added a workflow for enhancing existing HTML presentations.
  • skills/frontend-slides/references/WORKFLOW_NEW_PRESENTATION.md
    • Added a workflow for creating new presentations from scratch.
  • skills/frontend-slides/references/presets/bold-signal.md
    • Added the "Bold Signal" style preset definition.
  • skills/frontend-slides/references/presets/creative-voltage.md
    • Added the "Creative Voltage" style preset definition.
  • skills/frontend-slides/references/presets/dark-botanical.md
    • Added the "Dark Botanical" style preset definition.
  • skills/frontend-slides/references/presets/electric-studio.md
    • Added the "Electric Studio" style preset definition.
  • skills/frontend-slides/references/presets/neon-cyber.md
    • Added the "Neon Cyber" style preset definition.
  • skills/frontend-slides/references/presets/notebook-tabs.md
    • Added the "Notebook Tabs" style preset definition.
  • skills/frontend-slides/references/presets/paper-ink.md
    • Added the "Paper & Ink" style preset definition.
  • skills/frontend-slides/references/presets/pastel-geometry.md
    • Added the "Pastel Geometry" style preset definition.
  • skills/frontend-slides/references/presets/split-pastel.md
    • Added the "Split Pastel" style preset definition.
  • skills/frontend-slides/references/presets/swiss-modern.md
    • Added the "Swiss Modern" style preset definition.
  • skills/frontend-slides/references/presets/terminal-green.md
    • Added the "Terminal Green" style preset definition.
  • skills/frontend-slides/references/presets/vintage-editorial.md
    • Added the "Vintage Editorial" style preset definition.
  • skills/openhands-api-v1/README.md
    • Added a README for the openhands-api-v1 skill, including quick start instructions.
  • skills/openhands-api-v1/SKILL.md
    • Added the main skill definition for openhands-api-v1, detailing API authentication and endpoints.
  • skills/openhands-api-v1/references/README.md
    • Added references for the OpenHands Cloud API V1.
  • skills/openhands-api-v1/references/example_prompt.md
    • Added an example prompt file for the OpenHands V1 API.
  • skills/openhands-api-v1/scripts/openhands_api_v1.py
    • Added a minimal Python client for the OpenHands Cloud API V1.
  • skills/openhands-api-v1/scripts/openhands_api_v1.ts
    • Added a minimal TypeScript client for the OpenHands Cloud API V1.
  • tests/test_python_scripts_compile.py
    • Added a unit test to verify the compilation of Python scripts within the skills.
Activity
  • No human activity has been recorded on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request effectively imports several new skills from the OpenHands/extensions repository, including adapt-yourself, babysit-pr, frontend-slides, and openhands-api-v1. The new skills are well-documented and include helpful scripts and reference materials. The addition of a compilation test for the new Python scripts is a great step towards ensuring code quality. My review includes a couple of minor suggestions for cleaning up the documentation to enhance clarity and correctness.

Comment on lines +12 to +15
from pptx.util import Inches, Pt
import json
import os
import base64
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.

medium

The Python code snippet for extract_pptx imports Inches, Pt from pptx.util, and the json and base64 modules, but they are not used within the function. These unused imports should be removed to keep the example code clean and clear.


---

## Specialty Themes
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.

medium

This heading ## Specialty Themes appears to be a copy-paste artifact and seems out of place in this preset file. It should probably be removed for clarity.

@enyst enyst marked this pull request as ready for review February 26, 2026 23:44
@enyst enyst merged commit ec33b6c into main Feb 26, 2026
1 check passed
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.

skills

2 participants