Skip to content
Back to skills

Flatten

ASecurity

Flatten Collection to single Note

  • 10 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 6, 2026
business

Security analysis

A100/100

Scanned June 6, 2026

npx -y skills add bdambrosio/Cognitive_workbench --skill flatten --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Flatten?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Flatten
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bdambrosio-flatten/badge)](https://www.skillsdirectory.com/skills/bdambrosio-flatten)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: flatten
type: primitive
description: Flatten Collection to single Note
---

# Flatten

## INPUT CONTRACT

- `target`: Collection (variable or ID)
- `out`: Variable name

**REQUIREMENTS:**
- `target` MUST be Collection

**NOT SUPPORTED:**
- ❌ Note (use `split` to convert Note → Collection first)

## OUTPUT

Returns single Note containing merged content from all Collection items.

## FAILURE SEMANTICS

**Returns `failed` when:**
- Target is Note (not Collection)
- Missing parameters

**Empty Note ≠ error** — indicates empty Collection, not failure.

## REPRESENTATION INVARIANTS

- Collection ≠ Note containing array
- `flatten` performs inverse of `split` (Collection → Note)
- Use `split` to convert array → Collection

## ANTI-PATTERNS

❌ `flatten(target=$note)` → Must be Collection
❌ Expecting structured output → Returns merged content, structure may be lost

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…