Atlas / Skills / snowflake-labs / Cocobrew

CocobrewSAFE

skills/snowflake-labs/cocobrew

CocoPlus is an Agentic Operating System for Snowflake Coco. It brings structured, multi-agent workflows to data engineering projects — covering everything from project initialization through spec, plan, build, test, review, and ship phases.

Verdict
SAFE
Grade
B
Trust score
89 /100
Version
1.0.0
Hosts
—
License
MIT
Stars
724
01

Overview

CocoPlus is an Agentic Operating System for Snowflake Coco. It brings structured, multi-agent workflows to data engineering projects — covering everything from project initialization through spec, plan, build, test, review, and ship phases.

Read from source at commit 6b58edc143d7OBSERVED · 2026-10-13
Advertisement
02

What it tells the agent

The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.

---
name: "build"
description: "Enter the Build phase of CocoBrew. Reads plan.md, invokes CocoHarvest to decompose the plan into parallel workstreams, assigns personas, generates flow.json stages, and begins execution via $flow run. Must have $plan completed and approved first."
version: "1.0.1"
author: "CocoPlus"
tags:
  - cocoplus
  - lifecycle-engine
---

You are executing the Build phase (3/6) of CocoBrew. Your objective is to transform the approved plan into executing workstreams.

Before proceeding, verify that `.cocoplus/` exists in the current directory.
If it does not, output: "CocoPlus not initialized in this directory. Run `$pod init` to begin." Then stop.

Read `.cocoplus/lifecycle/meta.json`. Verify `phases_completed` contains both `"spec"` and `"plan"`.
If not: output "The Spec and Plan phases must be completed before building. Check `$pod status` for current state." Then stop.

Verify that the artifact files actually exist on disk — meta.json alone is not sufficient:
- Check `.cocoplus/lifecycle/spec.md` exists. If not: output "spec.md is missing from `.cocoplus/lifecycle/`. The Spec phase record is incomplete. Re-run `$spec` to regenerate it." Then stop.
- Check `.cocoplus/lifecycle/plan.md` exists. If not: output "plan.md is missing from `.cocoplus/lifecycle/`. The Plan phase record is incomplete. Re-run `$plan` to regenerate it." Then stop.

## SecondEye Gate Check

Scan `.cocoplus/lifecycle/` for any files matching `secondeye-*.md`.
For each file found, check YAML frontmatter for `critical_open: true` and `acknowledged: false`.
If any such file exists:
- Output: "Unacknowledged critical findings from SecondEye review. Run `$secondeye acknowledge` to review and acknowledge before building."
- List the finding summaries.
- Stop.

## Complexity Assessment

Read `.cocoplus/lifecycle/plan.md`. Assess complexity:
- Count workstreams listed in the plan
- Identify if multiple personas are required
- Check if any stages have external dependencies

If 3 or more workstreams OR multiple personas required:
→ Complexity = HIGH → invoke CocoHarvest automatically

If fewer than 3 workstreams AND single persona sufficient:
→ Complexity = LOW → offer simple execution without CocoHarvest

Tell the developer the complexity assessment and proceed accordingly.

## Invoke CocoHarvest (for HIGH complexity)

Activate the `cocoharvest` skill to:
1. Decompose plan.md into parallel workstreams
2. Assign personas
3. Generate flow.json stages
4. Create per-stage prompt files in `.cocoplus/prompts/`

## Update Build State

Update `.cocoplus/lifecycle/meta.json` — add build to phases_completed.

Append to AGENTS.md (keep ≤200 lines):
```
Phase: Build (3/6)
Build started: [timestamp]
CocoHarvest: [invoked/skipped]
```

Create git commit:
```
git add .cocoplus/lifecycle/meta.json .cocoplus/AGENTS.md .cocoplus/flow.json
git commit -m "build: begin build phase — CocoHarvest pipeline initialized"
```

## Begin Execution

If HIGH complexity: Activate `flow-run` skill to begin pipeline execution.
If LOW complexity: Execute the plan directly using the appropriate persona.

Output: "Build phase initiated. Use `$flow status` to monitor pipeline progress."

## Anti-Rationalization

| Shortcut / Temptation | Why It Fails |
|-----------------------|--------------|
| Skip SecondEye gate check and proceed directly to build | Unacknowledged Critical findings represent unresolved risks — building on top of them silently buries problems |
| Always invoke CocoHarvest regardless of complexity | Low-complexity plans don't need full pipeline decomposition; over-engineering wastes tokens and adds unnecessary stages |
| Mark build as complete before flow-run finishes | Build phase is only complete when execution has started, not just when CocoHarvest generates flow.json |

## Exit Criteria

- [ ] `.cocoplus/lifecycle/meta.json` `phases_completed` array contains `"build"`
- [ ] `.cocoplus/flow.json` has non-empty `stages` array (for HIGH complexity) or execution is underway
- [ ] Git commit with message `build: begin build phase` exists in log
- [ ] No unacknowledged SecondEye files with `critical_open: true` exist in `.cocoplus/lifecycle/`
03

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeNA
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
none-observed
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (0)

No findings outside the package's declared scope.

Gates applied: no_behavioural_pass.

Audited 2026-10-13 · audit v0.4.1 · source sha 6b58edc143d7full audit observations/trust-audit/skill/snowflake-labs__cocobrew.json · Report an issue / request a re-scan
04

Audit history

Every audit this skill has had.

DateSourceVerdictGradeScoreChange
2026-10-136b58edc143d7SAFEB89first audit
05

Questions

What does the Cocobrew skill do?

CocoPlus is an Agentic Operating System for Snowflake Coco. It brings structured, multi-agent workflows to data engineering projects — covering everything from project initialization through spec, plan, build, test, review, and ship phases.

Is Cocobrew safe to install?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.

What can Cocobrew access on my machine?

The audit observed no filesystem, network or shell use at all in its source.

How current is this page?

The grade is for one exact copy of the source (6b58edc143d7), read on 2026-10-13. The repository is watched, and a new audit runs when it changes — this is the first audit.

Advertisement