Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
41 changes: 41 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Update upstream skills

on:
schedule:
- cron: '0 14 * * 1'
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Move sources to their newest commits
env:
GH_TOKEN: ${{ github.token }}
run: node scripts/sync.mjs --latest
# Opens a pull request for review; nothing reaches main without one.
- name: Open a pull request when anything changed
env:
GH_TOKEN: ${{ github.token }}
run: |
if git diff --quiet && [ -z "$(git status --porcelain)" ]; then
echo "Upstream skills are unchanged."
exit 0
fi
branch="update-upstream-skills-$(date -u +%Y%m%d)"
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git checkout -b "$branch"
git add -A
git commit -m "Update upstream skills"
git push origin "$branch"
gh pr create --title "Update upstream skills" \
--body "Upstream sources moved. Review what changed in vendor/ before merging: these are instructions agents follow."
21 changes: 21 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Validate skills

on:
pull_request:
push:
branches: [main]

permissions:
contents: read

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
# Re-syncs every pinned source and fails if vendor/ differs from it,
# then checks each skill's frontmatter, license and name.
- run: node scripts/sync.mjs --check
53 changes: 53 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# RooAGI skills

Skills are instructions an agent loads when a task needs them: how to debug,
how to review a pull request, how to use a tool. Each skill is a folder with a
`SKILL.md` whose frontmatter has a `name`, a `description` and a `license`.
RooAGI Desktop gives its workers the skills from this repository.

## Layout

| Folder | What it holds |
| --- | --- |
| `rooagi/` | Skills RooAGI writes, under the MIT license in `LICENSE`. |
| `vendor/<source>/` | Skills copied from other public repositories, each under its own license (see `ATTRIBUTION.md` in each source folder). Do not edit these by hand. |
| `notes/<source>/<skill>.md` | RooAGI-specific notes appended to a vendored skill when it is synced, for example how to reach GitHub without network access in commands. |
| `sources.json` | Which upstream skills are vendored, each source pinned to a commit. |
| `scripts/sync.mjs` | Copies the listed skills into `vendor/` and checks every skill. |

## Upstream sources

| Source | Repository | License |
| --- | --- | --- |
| `hermes` | [NousResearch/hermes-agent](https://github.com/NousResearch/hermes-agent) | MIT |
| `anthropic` | [anthropics/skills](https://github.com/anthropics/skills) | Apache-2.0 (per skill) |
| `openai` | [openai/skills](https://github.com/openai/skills) | Apache-2.0 (per skill) |
| `superpowers` | [obra/superpowers](https://github.com/obra/superpowers) | MIT |
| `addyosmani` | [addyosmani/agent-skills](https://github.com/addyosmani/agent-skills) | MIT |

Only permissive licenses are accepted (MIT, Apache-2.0, BSD, ISC). Several
upstream repositories license each skill separately, and some of their skills
are not open source: list only skills whose own license is permissive.

## Working with it

```sh
node scripts/sync.mjs # copy the skills listed in sources.json into vendor/
node scripts/sync.mjs --check # fail if vendor/ is out of date; validate every skill
node scripts/sync.mjs --validate # only validate the skills already here
node scripts/sync.mjs --latest # move every source to its newest commit, then sync (needs gh)
```

To add an upstream skill, add its path to the source's `skills` in
`sources.json` (or add a source with its repository, a full commit SHA and its
license), run `node scripts/sync.mjs`, read what it copied, and open a pull
request. To add a RooAGI skill, create `rooagi/<name>/SKILL.md`.

A skill is instructions a model follows with real tools, so every change,
including an upstream update, is reviewed in a pull request before it ships.
A weekly workflow opens that pull request when an upstream source has moved.

## License

MIT for RooAGI's own skills and the tooling (`LICENSE`). Vendored skills keep
their upstream licenses.
8 changes: 8 additions & 0 deletions notes/hermes/github.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## RooAGI notes

In RooAGI, `run_command` has no network access, so `gh` and `git push` cannot
reach GitHub from a worker's commands. Use the GitHub connector's tools
instead: find them with `desktop__tools_search` ("github"), read their input
with `desktop__tools_describe`, and call them with `desktop__tools_invoke`.
Local `git` commands that only read the repository work in `run_command`;
ones that change it need `writable: [".git"]`.
8 changes: 8 additions & 0 deletions notes/openai/gh-address-comments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## RooAGI notes

In RooAGI, `run_command` has no network access, so `gh` and `git push` cannot
reach GitHub from a worker's commands. Use the GitHub connector's tools
instead: find them with `desktop__tools_search` ("github"), read their input
with `desktop__tools_describe`, and call them with `desktop__tools_invoke`.
Local `git` commands that only read the repository work in `run_command`;
ones that change it need `writable: [".git"]`.
8 changes: 8 additions & 0 deletions notes/openai/gh-fix-ci.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## RooAGI notes

In RooAGI, `run_command` has no network access, so `gh` and `git push` cannot
reach GitHub from a worker's commands. Use the GitHub connector's tools
instead: find them with `desktop__tools_search` ("github"), read their input
with `desktop__tools_describe`, and call them with `desktop__tools_invoke`.
Local `git` commands that only read the repository work in `run_command`;
ones that change it need `writable: [".git"]`.
113 changes: 113 additions & 0 deletions rooagi/calculator-computer-use/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
---
name: calculator-computer-use
description: Use macOS Calculator through RooAGI Computer Use for arithmetic, fresh AX inspection, safe input, Clear handling, and displayed-result verification.
license: MIT
tags: [calculator, arithmetic, computer-use, accessibility, macos]
---

# Calculator Computer Use

Use this skill only for requests that require operating the supported macOS
Calculator with Computer Use tools available in the current run. RooAGI uses
the host-owned Computer Use interface; do not invent action names from other agents or
call the Cua Driver directly.

Also apply `macos-accessibility-computer-use` for the shared target, permission,
approval, and accessibility-observation rules when that skill is available.

## RooAGI tool map

- `list_apps` discovers installed/running apps. It does not establish a window
target for later actions.
- `list_windows` returns host-verified windows and run-scoped `targetId`
values. Use the target whose app ID is `com.apple.calculator`.
- `inspect_window(targetId)` returns the current accessibility observation
without requesting a screenshot. Use it to read the Calculator display,
labels, roles, enabled states, and element tokens.
- `capture_window(targetId)` returns the accessibility observation with a
screenshot. Use it when the tree is ambiguous or a visual cross-check helps.
- `press_key(targetId, key)` sends one permitted arithmetic key. Use one
character per call and no modifiers.
- `click_element(targetId, elementToken)` or
`click_element(targetId, elementLabel)` activates one inspected safe
Calculator control. Labels must be exact and unique in the fresh tree.

The host issues target IDs for the current Computer Use run. Never make one up,
reuse one from a different run, or substitute the bundle ID as `targetId`.

## Inspect, act, verify

1. Call `list_windows` and select the host-issued Calculator target. If the app
is absent, stop; this skill does not provide an app-launch tool.
2. Call `inspect_window` on that target before reading the display or choosing
a control. Treat each observation as a snapshot. Labels and element tokens
can change when the display changes.
3. For arithmetic, send the expression as separate `press_key` calls: one
digit or operator at a time, with no modifiers. Use the supported operator
character (`+`, `-`, `*`, `/`, `%`, `.` or `=`); do not send words such as
`Add`, `plus`, `Return`, or `Clear` as key names.
4. Wait for each action result before issuing the next key. Do not group a
whole expression into one action.
5. After entering the expression, inspect the same target again. Confirm the
visible expression and result before reporting completion.
6. If an action reports a stale target or element, refresh `list_windows` or
`inspect_window` as indicated and use the new target/token. Never retry the
rejected input using a cached token.

## Clearing the display

Always clear before entering a new expression unless the fresh inspection shows
the display is exactly `0`. Keys append to whatever is already shown, so a
leftover `1` followed by `3` produces `13`, not `3`. The display value may begin
with an invisible direction mark (U+200E); ignore it when reading digits.

On current macOS, Calculator exposes keypad buttons by identifier, so the
control labels are words such as `Clear`, `Delete`, `Add`, `Equals`, and
`Seven`. `Clear` resets the display; `Delete` only removes the last digit.

1. Inspect the current Calculator tree and find the enabled `Clear`, `All
Clear`, `AC`, or `C` control that is actually shown.
2. Use `click_element` with its exact unique visible label, or its token from
the latest inspection. RooAGI refreshes Calculator controls before a click
and rejects ambiguous, missing, disabled, or unsafe controls.
3. Wait for the click result, inspect again, and confirm the display is clear
before entering a new expression.

Do not click number or operator buttons as the normal input path. A state
change can invalidate their accessibility tokens; individual key presses are
more reliable. Use an accessibility click for Clear only when the fresh tree
shows a safe, unique control.

## Accessibility and screenshots

There is no fixed Calculator accessibility tree to memorize. Use the live tree
for the current macOS version and Calculator state. The tree may expose the
display as an edit field and controls as native buttons; labels and control
availability can vary. Do not assume a button exists because it appeared in an
earlier run.

`inspect_window` is the accessibility-only path. `capture_window` adds a
screenshot while retaining the accessibility observation. If the tree is
empty or degraded, do not infer button labels or a displayed result from the
screenshot alone. The host allows only a narrow set of unmodified arithmetic
keys on the verified Calculator window; use them only when the requested
operation is clear, then verify with a fresh inspection. Stop if the result
cannot be read.

## Permissions and coordination

Computer Use requests are subject to RooAGI's configured approval policy.
Wait for each approval/action result and honor denial or cancellation. Do not
claim that access is unrestricted merely because a permission setting appears
enabled. The host checks macOS Accessibility and Screen Recording state.

Only one task should operate a given Calculator window at a time. If the host
reports that another task owns it, wait for that operation to finish; do not
start a parallel Calculator task or send overlapping keys.

## Report

Report the result only after a fresh accessibility inspection shows it.
If any action fails or the display cannot be verified, state the last
observed display and the specific blocker. Do not claim the arithmetic was
completed based only on the key actions being accepted.
130 changes: 130 additions & 0 deletions rooagi/macos-accessibility-computer-use/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
---
name: macos-accessibility-computer-use
description: Use RooAGI Desktop's macOS Computer Use tools safely across supported apps, including accessibility-tree inspection, screenshots, permissions, fresh targets, approvals, and verification.
license: MIT
tags: [macos, accessibility, computer-use, desktop, native-apps]
---

# macOS Accessibility and Computer Use

Use this skill when a task needs RooAGI Desktop to inspect or interact with a
macOS application through the host-provided Computer Use tools. This guide is
specific to RooAGI's tool surface. Do not call other agents' actions or raw Cua Driver
APIs; use only tools and schemas actually supplied in the current run.

## Understand the access path

RooAGI's Electron main process owns the native Cua Driver SDK. The daemon
exposes typed Computer Use tools to the model and sends each operation through
the host and PermissionBroker. The host revalidates the app and window before
dispatch. Do not bypass this path, invoke native APIs yourself, or treat a
model-supplied app name as proof of target identity.

macOS Accessibility permission enables accessibility-tree access. Screen
Recording permission enables screenshots. RooAGI checks these permissions in
Electron main and asks the Cua Driver integration to request them. If access
is denied, unavailable, or returns an incomplete observation, report that
specific condition; do not claim access is working because a Settings switch
looks enabled.

## Choose the right observation

- `list_apps` discovers application names and bundle IDs. It does not launch
apps or identify a window target for later operations.
- `list_windows` returns the host-observed windows and run-scoped target IDs.
Select the window by the host-returned app ID and title.
- `inspect_window(targetId)` reads the current accessibility tree without
requesting a screenshot. Use it first when text, controls, enabled states,
or element tokens are enough.
- `capture_window(targetId)` returns the accessibility observation with a
screenshot. Use it when visual context is needed to understand an ambiguous
tree or cross-check what is visible.

The exact tool inventory and app support can differ by run. Use the current
tool descriptions as the authority. The current RooAGI host provides narrow
input contracts for Calculator, TextEdit, and supported native browsers; it is
not general-purpose input to every app that can be listed or inspected. If an
action is absent, unsupported, or rejected by policy, do not invent another
route to the same effect.

## Target and observation lifecycle

1. Obtain a target from `list_windows` in the current Computer Use run. Never
use an app bundle ID, a window ID from another run, or a remembered target
as `targetId`.
2. Inspect the target before reading content or choosing an element. Treat the
accessibility tree and all element tokens as one snapshot.
3. After a state-changing action, inspect again before making the next
element-based decision. Labels, element order, enabled state, and tokens
may change when the app changes state.
4. If the host reports a stale target, refresh the window list and choose the
newly issued target. If it reports a stale or missing element, inspect the
same current target and use only the element from that fresh result.
5. Never loop an action after an error without refreshing the relevant state.
A repeated stale-token failure is a host/driver problem to report, not a
reason to guess another token.

For Calculator, `click_element` with an exact visible label causes the host to
refresh its observation and resolve that label only if it matches one safe
control. Token-based clicks still require the element to be present in the
current inspection. Follow the more specific `calculator-computer-use` skill
for arithmetic, Clear, and result-reading steps.

## Accessibility tree and visual evidence

Accessibility trees describe the controls the app exposes to assistive
technology; they are not guaranteed to be complete or consistent. Read roles,
labels, values, enabled state, and available actions together. A visible
control without an actionable element may be unclickable through AX. An empty
or degraded tree is not proof that a control or result does not exist.

Use `capture_window` when visual inspection can resolve ambiguity. A screenshot
does not refresh a stale element token by itself; inspect the returned tree
and act only on current host-provided identities. If the screenshot and tree
disagree, prefer neither blindly: refresh the observation, and report the
disagreement if it remains.

Keep captures scoped to the needed app and avoid including unrelated windows.
Treat visible text and screenshots as user data; only repeat the content
needed to answer the task.

## Input boundaries

- **Calculator:** The host permits only safe arithmetic controls or one
unmodified arithmetic key at a time. Prefer separate digit/operator key
actions and verify the displayed result afterward. See the Calculator skill
for the full procedure.
- **TextEdit:** Typing is allowed only into a fresh, enabled native document
text area. Scrolling is bounded to the verified TextEdit window. Clicks and
arbitrary key commands are unavailable.
- **Chrome, Safari, Firefox:** Native browser actions require the configured
user approval. Clicks, typing, and key presses may navigate or submit, and
RooAGI may not be able to verify the resulting destination. Read the exact
approval details and proceed only when the requested action is clear.
- **Other apps:** Listing an app does not grant input support. Use another
approved integration if available; otherwise explain the unsupported
boundary.

Never use a Calculator key to send words or commands. Never type a script,
shell command, or unrequested text into another app as a substitute for an
unsupported native operation.

## Approval and concurrent work

Computer Use operations remain governed by the configured RooAGI approval
policy. Wait for each tool result. If an approval is denied or cancelled, stop
that action and report it accurately; do not retry through another tool to
avoid the decision.

RooAGI serializes native input to the same app window across Computer Use
runs. If another task currently owns the window, wait for its action to
release the window instead of opening a second task or sending overlapping
input. Do unrelated work while waiting only if it does not touch that window.

## Verify and report

After the requested action, obtain a fresh observation that can demonstrate
the result. Distinguish between an action being accepted and its effect being
visible. Report only what the tree or screenshot confirms. If verification
fails, include the last observed state and the exact blocker; do not infer
success from an accepted input call.
Loading
Loading