Skip to content
Back to skills

Set Metadata

ASecurity

Attach or update metadata on a Note or Collection

  • 10 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 6, 2026
businessgo

Security analysis

A100/100

Scanned June 6, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Set Metadata?

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

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

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: set-metadata
type: primitive
description: Attach or update metadata on a Note or Collection
---

# Set-Metadata

## INPUT CONTRACT

- `target` (required): `$variable`, Note/Collection ID, or name
- `value` (required): Metadata text (string, may be JSON)
- `out` (optional): `$variable` — bound to the metadata Note ID

**REQUIREMENTS:**
- Target resource must exist
- Value must be provided

## BEHAVIOR

Associates a metadata text string with the target Note or Collection. Idempotent: updates existing metadata if already present. If `out` is provided, the variable is bound to the metadata Note ID.

## EXAMPLES

```json
{"type": "set-metadata", "target": "$report", "value": "{\"source\": \"weather.gov\", \"retrieved\": \"2026-02-21\"}"}
```
```json
{"type": "set-metadata", "target": "$report", "value": "$meta_text", "out": "$meta_note"}
```

## OUTPUT

Returns `success` with the metadata Note ID.

## FAILURE SEMANTICS

- Target resource not found
- Missing `target` or `value` parameter

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…