en un clic
cobalt-new-checkout
// Guides the agent through setting up a new checkout of the Cobalt repository. Use when cloning and building Cobalt for the first time in a new workspace.
// Guides the agent through setting up a new checkout of the Cobalt repository. Use when cloning and building Cobalt for the first time in a new workspace.
| name | cobalt-new-checkout |
| description | Guides the agent through setting up a new checkout of the Cobalt repository. Use when cloning and building Cobalt for the first time in a new workspace. |
Orchestrates environment analysis, workspace validation, persistent state recording, and post-checks execution across checked out working directories.
Projects operating through gclient need structured directory bounds:
workspace/
├── .gclient <- Declarative dependencies configuration
├── .setup_checkpoints.json <- Persistent execution checkpoints state
├── tools/
│ └── depot_tools/ <- Native chromium build utilities
└── src/ <- Repository checkout root
└── .agent/
└── skills/
└── cobalt-new-checkout/
└── scripts/
└── cobalt_new_checkout.py <- Setup automation orchestrator
[!IMPORTANT] Script logic executes mutations inside the directory enclosing the
src/project code root. Verify runtime constraints allow write tasks inside matching paths.
AI Assistants run actions by completing 5 primary configuration milestones:
graph TD
P1[Phase I: Runtime Environment Check] --> P2[Phase II: Depot Tools Bootstrap]
P2 --> P3[Phase III: Git Identity Verification]
P3 --> P4[Phase IV: System Sync & Configuration]
P4 --> P5[Phase V: Validation Post-Checks]
Validate execution dependencies and script parameters:
python3 availability..git state tracking.--github-user).Establish Chromium infrastructure components:
tools/depot_tools sibling directory.gclient --version).Register development origins and configure tracking parameters:
git ls-remote)._gclient and remote fork.Execute heavy infrastructure synchronization workflows:
gclient sync tasks..gclient setup.cobalt/build/gn.py).Confirm stability metrics on completed compilation workspace environments:
pre-commit.python3 .agent/skills/cobalt-new-checkout/scripts/cobalt_new_checkout.py --non-interactive --internal --github-user "<github_user>"
Options:
--non-interactive: Restricts prompt logic blocking from execution.--internal / --no-internal: Specifies access configurations matching workspace context.--github-user: Fork integration target parameter.--reset-checkpoints: Drops tracking status markers to perform clean runs.python3 .agent/skills/cobalt-new-checkout/scripts/cobalt_new_checkout.py
System milestones persist to storage file .setup_checkpoints.json. In the event of underlying platform failure conditions: