Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

sync-unique-positions

Skill by chromium

Guides developers implementing and reviewing entity ordering in Chrome Sync with UniquePosition in DataTypeSyncBridge. Use it when a Sync data type needs relative ordering of entities across devices. Do not use it for unordered Sync data types.

  • Score 89
  • 25k stars
  • BSD-3-Clause
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install sync-unique-positions

Built from the published package, never by AI.

git clone --depth 1 https://github.com/chromium/chromium /tmp/chromium && mkdir -p ~/.claude/skills && cp -r /tmp/chromium/agents/skills/sync-unique-positions ~/.claude/skills/sync-unique-positions

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install sync-unique-positions in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides the implementation and review of entity ordering in Chrome Sync using sync_pb::UniquePosition. It covers the unique_position field in the specifics protobuf, DataTypeSyncBridge overrides such as SupportsUniquePositions and GetUniquePosition, validation in IsEntityDataValid(), and how the processor persists positions in EntityMetadata. It also explains generating positions for local inserts and moves, and handling remote updates in ApplyIncrementalSyncChanges.

The skill recommends applying ordered remote additions and updates from right to left, and warns that the processor updates metadata for the whole batch before the bridge runs. It also covers unit tests with mocked processors and two-client sync integration tests. It is intended for developers working on a Sync data type that needs consistent ordering across devices.

Written from the project's SKILL.md and checked against it.

What it can do

  • Protobuf and bridge setupAdds a unique_position field to the specifics proto and overrides the bridge methods for ordering.
  • ValidationRejects remote ordered entities with missing or corrupt positions in IsEntityDataValid().
  • Local position generationGenerates positions for local inserts and moves using the processor's UniquePosition helpers.
  • Remote update orderingApplies remote additions and updates in right-to-left order inside ApplyIncrementalSyncChanges.
  • Testing guidanceDescribes mocked unit tests and two-client sync integration tests for ordering convergence.

Try asking

  • Review my DataTypeSyncBridge code for UniquePosition ordering bugs.
  • Add a unique_position field to my Sync data type's specifics proto.
  • Write ApplyIncrementalSyncChanges logic that keeps remote items in order.

Good to know

  • Only for Sync data types that need relative ordering across devices.
  • Does not apply to unordered Sync data types.
  • Describes Chromium's Chrome Sync internals and APIs as they exist in the source.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: agents/skills/sync-unique-positions/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • OWNERS30 B
  • SKILL.md11 KB

Alternatives to sync-unique-positions

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

sync-unique-positions: common questions

What is a UniquePosition in Chrome Sync?

The source describes sync_pb::UniquePosition as an arbitrary-precision relative position between neighboring entities. Inserting or moving an entity commits only that entity to the server.

Why are remote updates applied from right to left?

The processor updates metadata for all entities in a batch before ApplyIncrementalSyncChanges runs. Applying changes right to left keeps unchanged items from temporarily jumping past pending right neighbors.

Should I use this for every Sync data type?

No. The source says not to use it for unordered Sync data types. It applies only when entities need relative ordering across devices.

How do I install sync-unique-positions?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is sync-unique-positions free?

The code is published under the BSD-3-Clause licence. The service it connects to may have its own pricing.

Is sync-unique-positions safe to use?

It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to sync-unique-positions?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

sync-unique-positions Install

Add to stack

Loading.