Przejdź do treści
Biblioteka skilli
Programowanie · Testowanie

fraimz

/fraimz

Prowadzi pełną pętlę fraimz: formułuje tezę, steruje prawdziwą aplikacją przez CDP, waliduje i naprawia oraz generuje fraimz.html jako dowód działania end-to-end dla zmiany lub PR.

Repozytorium
iPolloWork ↗
Licencja
MIT
Ostatnia zmiana repozytorium
24.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
1
Przestarzałość

Brak sygnałów. Repozytorium zmienione 24.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Prowadzi pełną pętlę fraimz: formułuje tezę, steruje prawdziwą aplikacją przez CDP, waliduje i naprawia oraz generuje fraimz.html jako dowód działania end-to-end dla zmiany lub PR.

Wyzwalacze z opisu

please create a fraimz
Oryginalny opis (EN)

create a fraimz, make fraimz, prove it works, frame proof, PR proof, validate experience, e2e evidence, fraimz.html. The full fraimz loop — frame the claim, drive the real app via CDP, validate/repair, output fraimz.html. Use whenever a task ends with "please create a fraimz" or any change needs end-to-end proof.

Jak działa

  1. Every fraimz is a demo
  2. Voiceover first
  3. When this applies
  4. The loop
  5. Driving the real app
  6. Pitfalls (learned the hard way)
  7. ctx. helpers (the flow API)
  8. Source of truth
Sekcje z nagłówków SKILL.md, w oryginale · 144 linii, 1 023 słów
Podgląd SKILL.md
---
name: fraimz
description: create a fraimz, make fraimz, prove it works, frame proof, PR proof, validate experience, e2e evidence, fraimz.html. The full fraimz loop — frame the claim, drive the real app via CDP, validate/repair, output fraimz.html. Use whenever a task ends with "please create a fraimz" or any change needs end-to-end proof.
---

# Skill: fraimz

**fraimz** is the canonical proof artifact: a single `fraimz.html`
(`evals/results/<run-id>/fraimz.html`) with one frame per step. Each frame binds
a **claim**, the **action** the end user took, the **assertion** that witnesses
the side effect, a **voiceover** that narrates the step, and a validated
**screenshot**. It is the thing a human looks at (and listens to) to understand,
at a glance, that an experience works.

This skill owns the prove-it loop. In the demo-driven journey (`voiceover`
skill: script → worktree → build → fraimz → PR) this is how the build is
verified; when orchestrating, the orchestrator drives this loop and delegates
code repairs to the executor.

## Every fraimz is a demo

A fraimz is never a bare test log. The flow declares which demo it is via
`kind` in `evals/flows/<id>.flow.mjs`:

- **`kind: "user-facing"`** — the end user is the protagonist; the frames walk
  a real journey through the UI. Default for any feature, fix, or UX change.
- **`kind: "internal"`** — for changes with no visible surface (perf, storage
  swaps, invariants, refactors): the frames demonstrate the internal claim in
  a way a reviewer can still follow. Terminal/tooling demos may set
  `requiresApp: false` to run without CDP; their frames carry claims,
  assertions, and `ctx.output` command output instead of screenshots (see
  `evals/flows/voiceover-first-dx.flow.mjs`).

If you cannot say which of the two your fraimz is, you have not framed the
experience yet.

## Voiceover first

The narration is the spec and it comes BEFORE the flow (and ideally before the
feature) — alignment and approval belong to the **`voiceover` skill** /
`/voiceover`. The approved script lives at `evals/voiceovers/<flow-id>.md`;
`pnpm fraimz scaffold <flow-id>` generates the flow from it, and the runner
**fails any flow whose narration drifts** from the approved file. Every
`ctx.prove` must carry a `voiceover` (one or two spoken-style sentences about
what the viewer sees, never implementation); frames without one are flagged in
the artifact — treat that as a failure for any flow you touch.

## When this applies

Make fraimz whenever a change can alter behavior observable outside the
process: filesystem, runtime DB, server endpoints, sessions, config,
provisioning, cloud sync, network. **Also for changes you expect to be inert**
(refactors, renames, dead-code removal): the job is then to prove the canonical
core flow is unchanged — open the app → write a message → get a response →
close → reopen with the session intact (`evals/flows/core-flow.flow.mjs`).
Pure docs/comments and types-only changes with no runtime path may skip — but
say so explicitly.

## The loop

Never report success from a click or a return value alone. Every meaningful
step is: **observe → act → observe → assert** — and repair before verdict.

1. **Frame the experience** as a one-line claim ("user can do X and sees Y")
   and pick the demo kind. State both back before proceeding.
2. **Get the script.** Approved voiceover at `evals/voiceovers/<id>.md`
   (via the `voiceover` skill), then `pnpm fraimz scaffold <id>` — or reuse an
   existing flow in `evals/flows/`.
3. **Code the flow.** The end user is the protagonist (driven via CDP);
   REST/DB/filesystem checks only witness the side effects. Every meaningful
   step uses `ctx.prove("claim", { voiceover, action, assert, screenshot })`.
4. **Drive it for real.** Launch the app (see below), then
   `pnpm fraimz --flow <id> --cdp-url <electron-cdp-url>`.
5. **Validate, repair, repeat.** If a frame does not support its claim (wrong
   route, error state, missing text, stale dialog, duplicate image, missing
   voiceover), fix the visible state or the code and rerun until every claim
   has a passing assertion, a narrated voiceover, and a valid screenshot.
6. **Verdict, on the PR.** The run writes `fraimz.html` + `report.md` /
   `report.json` to `evals/results/<run-id>/`; post it as a PR comment with
   `pnpm fraimz --flow <id> --pr [number]` (`--pr` alone targets the current
   branch's PR). Report `Passed` only when fraimz exists and every claim is
   backed by an observable assertion; otherwise `Incomplete` / `Failed`,
   stated honestly with repro steps.

## Driving the real app

Local Electron (fastest for a worktree you changed):

```bash
IPOLLOWORK_ELECTRON_REMOTE_DEBUG_PORT=9826 pnpm dev   # & in background
pnpm fraimz --flow <id> --cdp-url http://127.0.0.1:9826
```

Daytona sandbox (isolated, VNC-visible; see `daytona-electron-test`):

```bash
bash .devcontainer/test-on-daytona.sh <branch> --artifacts-volume
pnpm fraimz --flow <id> --cdp-url <printed-electron-cdp-url>
```

The runner default-probes `:9825` (Daytona) then `:9823` (local `pnpm dev`);
pass `--cdp-url` for any other port. `pnpm evals --all --stack den` brings up
the cloud stack for env-gated cloud flows.

## Pitfalls (learned the hard way)

- **Target the right CDP page.** A sandbox can expose several targets. Declare
  `cdpTarget` on the coded flow when the default iPolloWork page is not the
  intended surface; do not depend on an ambient browser-tool target.
- **`__ipolloworkControl` readiness.** Attaches after boot and resets on config
  reload: `ctx.waitFor("Boolean(window.__ipolloworkControl)")` before driving,
  and re-wait after any "Reloading OpenCode config".
- **Flows must be idempotent.** A failed run can leave dialogs open or state
  dirty; start steps by restoring the state you need (e.g. Escape a stale
  dialog).
- **Don't race streamed/debounced UI.** Wait for the concrete artifact you
  assert on (the rendered row), not for a spinner to disappear.
- **Split reflow from measurement.** First a `waitFor` that returns true only
  once the DOM actually reflowed, then a separate `ctx.eval` to measure.
- **Screenshot validation takes arrays** (`requireText: ["foo"]`,
  `rejectText: [...]`, `hashIncludes: "/route"`). A screenshot with no
  validation metadata is a checkpoint, not proof.
- **Assert the regression, not nice-to-haves.** Prove what the change
  guarantees; don't fail the run on a cosmetic extra the fix never promised.
- **Eval-only seed affordances are fine** behind `import.meta.env.DEV` on
  existing `eval.*` control actions; keep them out of production paths and say
  so.

## ctx.* helpers (the flow API)

`ctx.eval`, `ctx.waitFor`, `ctx.waitForText`, `ctx.clickText`, `ctx.fill`,
`ctx.navigateHash`, `ctx.control(actionId, args)`, `ctx.expectText`,
`ctx.expectNoText`, `ctx.expectHashIncludes`, `ctx.assert`,
`ctx.screenshot(name, { claim, voiceover, requireText, rejectText, hashIncludes })`,
`ctx.output(name, text)`, and the headline
`ctx.prove("claim", { voiceover, action, assert, screenshot })`.
Reference flow: `evals/flows/session-search-grouped.flow.mjs`.

## Source of truth

- `evals/README.md` — runner, flags, conventions, full `ctx.*` reference.
- `evals/flows/` — existing coded flows to reuse or pattern-match.
- `evals/voiceovers/` + `evals/runner/voiceover.mjs` — approved scripts,
  parser, drift check, scaffolder; the `voiceover` skill owns the journey
  around this loop.
- `daytona-electron-test` (sandbox launch), the runner's Daytona-native
  computer-use helpers, and `daytona-recording-artifacts` (video).

Wersje

W bazie nie ma innych skilli o nazwie fraimz.

Migawka bazy z 13.11.2026 · wersja paczki 4aca930b878f (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 86browser-automation
    Pomaga pisać kod sterujący prawdziwą przeglądarką przez Playwright lub CDP.
  • 100create-verification-skill
    Tworzy lokalny skill, który uruchamia i steruje prawdziwą aplikacją jak użytkownik, zachowuje trwałe dowody i bezpiecznie po sobie sprząta, dla UI, CLI, desktopu, mobile, API lub usług.
  • 100agent-first-screenshots
    Tworzy czyste zrzuty ekranu produktu bez defektów: agent steruje prawdziwą aplikacją przez CDP, a pętla przechwytywania weryfikuje wynik przez DOM, piksele i model wizyjny.
  • 100drive-desktop-cdp
    Steruje działającą aplikacją OpenWork przez CDP z powłoki, domyślnie bez okna: wykonuje JS, robi zrzuty ekranu, otwiera sesję i wysyła prompt z wybranym modelem.
  • 95create-verification-skill
    Tworzy lokalny skill weryfikacji, który uruchamia aplikację, prowadzi ją przez interfejs i zapisuje dowody działania.
  • 95canvas-driving
    Steruje aplikacją canvas przez CDP: wejście zaufane, prawdziwy stan aplikacji i zamknięta pętla sprawdzania wyniku.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.