# Office Lab

> A GitHub-style collaboration workflow for Office content: connect requirements, Issues, pull requests, native review, prototypes and delivery plans in one Workspace repository.

- Human documentation: [https://docs.univer.ai/overview/examples/office-lab](https://docs.univer.ai/overview/examples/office-lab)

- Agent Markdown: [https://docs.univer.ai/overview/examples/office-lab.md](https://docs.univer.ai/overview/examples/office-lab.md)

- Requested language: `en-US`

- Content language: `en-US`

- Documentation version: `1.6.1`

- Source: [examples/office-lab.mdx](https://github.com/dream-num/documentation/blob/dev/content/docs/examples/office-lab.mdx)

---

**Office Lab** applies the repository workflow to everyday product work. It is built on the **[Univer Office SDK](https://docs.univer.ai/overview.md)** and runs in Workspace’s Repo mode, where requirements, spreadsheets, interactive prototypes, Issues and pull requests share one project. Every team member can see what was requested, what changed, and what is ready to use.

Consider a product manager and an engineer developing a team invitation flow. Their agents prepare and inspect the material, and the people involved discuss how the flow should behave, review the changes, and decide what to deliver. The working context remains with the project as the conversation develops.

[One project, two perspectives](#case-study) · [Turn a finding into an actionable Issue](#issues) · [Review the content with Worktree and Compare](#review) · [Generate, publish and manage the Web App](#web-apps) · [Try Office Lab](#quick-start)

The screenshots are taken from the live [cloud Workspace](https://space.univer.ai) and use fictional English case data. They show the repository workflow in practice. The two named agents illustrate one suggested division of work.

## One project, two perspectives

The **Team Invitations** case starts with a small and familiar problem: invite a teammate, select a role, and confirm whether the invitation succeeded. A duplicate pending email becomes the improvement that connects the prototype, the acceptance criteria, analytics, and the delivery schedule.

| Role | Agent of their choice | Contribution |
| --- | --- | --- |
| Maya · Product | Codex, for example | Define the experience, requirements, acceptance criteria, and tracking plan, then review the result. |
| Alex · Engineering | Claude Code, for example | Inspect the requirements and prototype, raise an Issue, prepare revisions, and verify behavior. |

| Project material | What it contributes |
| --- | --- |
| Product brief · Doc | Purpose, invitation rules, acceptance criteria, and release gate. |
| Tracking plan · Doc | Event triggers, properties, and measurement rules. |
| Event catalog · Sheet | A structured inventory of events, their owners, and readiness. |
| Delivery schedule · Sheet | Workstreams, owners, dates, progress, and estimates. |
| Invite Prototype / Team Access Console · Web App | A working invitation form that the team can test directly. |

```mermaid
flowchart TD
A["Issue"]
B["Maya · Product"]
C["Alex · Engineering"]
D["Office Worktree"]
E["PR + Compare"]
F["Shared Office content"]
G["Web App"]
H["Pages"]
A --> B --> D --> E --> F
A --> C --> D
C --> G --> H
E -->|Issue| A
```

## Browse the repository and its working material

Open a Team Space in Repo mode. **Code** collects the editable documents and application files. You can search, preview a file, and return to the project without losing your place. Issues, Pull requests, Pages, and Settings appear next to the material they concern.

Repo mode is another view of the same Workspace Space and uses the content and permissions of that Space. The repository homepage can also preview a selected Web App, so a project opens with content that the team can both read and use.

![Browse the repository and its working material](https://raw.githubusercontent.com/dream-num/documentation/dev/public/assets/examples/office-lab/cloud-repository-rich.png)

## Turn a finding into an actionable Issue

Alex tries the prototype and finds the duplicate-invitation path unclear. **Prevent duplicate invitations** records the expected message, the blocked-invite event, and the QA follow-up. Linked files bring the product brief, tracking plan, event catalog, and schedule into the discussion.

Descriptions, comments, assignees, and labels make the next action clear. Issues belong to Team Spaces. An agent can use Workspace CLI to read the same task and its linked material, then return with a concrete proposal. Feedback stays in the Issue or on the document it concerns.

![Turn a finding into an actionable Issue](https://raw.githubusercontent.com/dream-num/documentation/dev/public/assets/examples/office-lab/cloud-issue.png)

## Propose a change through a pull request

A PR turns a Workspace Worktree into a proposal that others can review. Create a task draft, add the existing documents it requires, make the changes, and mark the draft Ready. The proposal has its own title, summary, author, state, and changed-file list. Shared content remains available while the draft is revised.

The PR in the screenshot adds `invite_duplicate_blocked` to the event catalog and extends QA in the delivery schedule. Its summary references Issue #1. Product and engineering can work in separate drafts, open them to reviewers with permission, and check each other’s work against the same source material.

![Propose a change through a pull request](https://raw.githubusercontent.com/dream-num/documentation/dev/public/assets/examples/office-lab/cloud-pull-request.png)

## Review the content with Worktree and Compare

Start with the summary, then open **Files changed**. **View** opens the changed content as a read-only review. **Compare** places the official version next to the proposed revision and provides a change list that you can navigate. You can inspect the event name, trigger, owner, and scheduling impact in their native Office context.

[Worktree](https://docs.univer.ai/overview/features/shared/worktree.md) isolates the changes of the task, and [Compare](https://docs.univer.ai/overview/features/shared/compare.md) exposes differences through the content model, snapshots, and changesets. A person can request a revision or confirm the merge when authorized. In the captured example, the two-file PR remains Ready and unmerged.

![Review the content with Worktree and Compare](https://raw.githubusercontent.com/dream-num/documentation/dev/public/assets/examples/office-lab/cloud-compare.png)

### Review the delivery impact too

The same PR moves Usability and QA from November 9 to November 10 and raises the estimate from two to three days. Check the owner, dates, and status next to the event change, so that the acceptance decision covers the work required to ship the change.

![Review the delivery impact too](https://raw.githubusercontent.com/dream-num/documentation/dev/public/assets/examples/office-lab/cloud-schedule.png)

## Generate, publish and manage the Web App

The prototype is a live HTML View. Open **Pages** to find the Web Apps published by the project, then visit one, copy its address, or set it as the homepage preview. The default page you select is a preference of the current browser. File organization and access remain with Workspace.

The invitation prototype becomes **Team Access Console**, which provides a member and role directory, status filters, search, invitation and cancellation, recent activity, acceptance criteria, and session event counters on a single page. Adding a sample email updates both the list and the pending count, and duplicate invitations are blocked. Data stays in memory, with no email or analytics requests. A product manager can test the behavior and turn a finding into an Issue.

Native Office changes go through Worktree review and merge. HTML View publication has its own save and authorization flow, so this example publishes the prototype separately from the pending document PR. To connect a Web App to live Office data, see [Binding](https://docs.univer.ai/overview/features/shared/binding.md), which is experimental.

[Open the interactive prototype](/assets/examples/office-lab/invite-prototype.univer.html)

![Team Access Console: members, invitations and review checks](https://raw.githubusercontent.com/dream-num/documentation/dev/public/assets/examples/office-lab/cloud-team-access.png)

## Give the team a clear collaboration boundary

**Settings** collects the repository name, description, and visibility together with collaborator management and Trash. Owners and administrators organize access. Editing, reviewing, and merging follow the effective permissions of the current user, and a project link respects those permissions as well.

The release decision should remain explicit. The product manager checks the experience and the acceptance criteria, engineering checks the implementation and measurement, and an authorized person merges the Office changes, verifies the published prototype, and closes the Issue when the work is complete.

![Give the team a clear collaboration boundary](https://raw.githubusercontent.com/dream-num/documentation/dev/public/assets/examples/office-lab/cloud-settings.png)

## Try Office Lab

1. Sign in to the [cloud Workspace](https://space.univer.ai), or open your [private deployment](https://docs.univer.ai/overview/examples/workspace.md#self-host). Create or open a **Team Space**.
2. Open **Application settings → Page theme → Repository (experimental)**. This changes the view of the same Space, and the preference is saved only in this browser.
3. Browse documents in **Code**, follow work in **Issues**, review changes in **Pull requests**, and open published Web Apps in **Pages**.

![Switch a Team Space to Repository mode, then explore documents, an Issue, a PR and a Web App](https://raw.githubusercontent.com/dream-num/documentation/dev/public/assets/examples/office-lab/cloud-office-lab-tour.gif)

To work with your own agent, follow the [Workspace CLI setup](https://docs.univer.ai/overview/examples/workspace.md#cli-start). Each agent uses the authorized account of its user. The tasks below provide a workflow that you can reproduce.

### 1. Product: establish the shared context

```text
In the Team Invitations Team Space, prepare an English product brief, tracking plan, event catalog and delivery schedule. Create an interactive invitation prototype as a Web App preview. Include owners, dates and clear acceptance criteria. Keep native Office changes in a Worktree, verify the content and return review links. Ask before merging or publishing the prototype.
```

### 2. Engineering: propose a focused improvement

```text
Read the Team Invitations requirements, event catalog, schedule and prototype. Inspect duplicate pending invitations. Create an Issue with reproduction steps and expected behavior. Propose the native document changes in a separate Worktree and prepare the prototype update using its own publication flow. Verify the result, reference the Issue in the PR summary, and wait for human review.
```

### 3. Product review: connect the changes to acceptance

```text
Review the proposed Team Invitations PR and inspect the native changes with Compare. Check the duplicate-invite event, acceptance criteria and QA schedule; try the prototype. Record any missing behavior in the Issue and ask the author to revise. Summarize what is ready and what is pending. Do not merge or publish until I approve.
```

## Build on the same SDK and Skills

Both agents can use the same version-matched Workspace CLI Skills: `core` for discovery and Worktrees, `doc` and `sheet` for requirements and plans, and `html-view` for the prototype. Each agent can read the material and Issue feedback that the other can access. People retain the final delivery decision.

Web SDK supplies the content models, editors, and Headless operations, Server SDK supports collaboration, versions, and Worktrees, and AI SDK provides content operations and inspection. Workspace adds the project, identity, Issues, repository views, and publishing workflow. That combination can support a product lab, a research workspace, or an internal delivery hub.

[Explore Workspace](https://docs.univer.ai/overview/examples/workspace.md) · [Source repository](https://github.com/dream-num/univer-workspace) · [All examples](https://docs.univer.ai/overview/examples.md)
