Skip to main content

Content Studio

@shrug/content-studiov2026.11.19.1· MIT· 2d agoBEHAVIORSSKILLSACCEPTED WARNINGS
01README

content-studio

A swamp-native toolkit for keeping a body of documents sendable: a reusable content hub plus the checks that catch what makes a document unshippable (unresolved placeholders, draft scaffolding, internal-filename leakage).

Two domain-agnostic behavior types:

  • library -- the canonical answer / content hub (the model a content-review professional works with). Entries keyed by key, each carrying value, scope (company / state / namespace), status, owner, review cadence, tags, the literal placeholder tokens it satisfies, and provenance. Methods: lookup (read), upsert (gated write), review (approve / retire), audit (flip entries past their review cadence to expiring).
  • document -- a piece of content under review. Methods: scan (defect inventory, each placeholder mapped to a library key via its tokens), fill (resolve placeholders from library entries passed in as a method argument; dry-run-gated, writes only on confirm=true), check (the sendability gate -- severity-rated findings if any bracket, draft marker, or internal filename survives), render (PDF / DOCX via an injectable pandoc runner).

Cross-type library data reaches document.fill as a method argument wired by a pipeline via CEL -- a method never reads another behavior's resources.

Bundles a generic content-review-pipeline stagecraft factory template and a content-review skill. The types carry no instance data; consumer values live in local instance config only.

02Behaviors2
@shrug/content-studio/libraryv2026.11.19.1library.ts
fn lookup(key?: string, scope?: string, tag?: string)
Read the approved value(s) for a key / scope / tag / status. A read:
ArgumentTypeDescription
key?stringMatch entries with this exact key.
scope?stringMatch entries in this scope.
tag?stringMatch entries carrying this tag.
fn upsert()
Add or replace an entry (matched by key + scope) with its value +
fn review(key: string, scope?: string, action: enum, decidedBy: string)
Approve or retire an entry: stamps status + provenance + lastReviewed.
ArgumentTypeDescription
keystringKey of the entry to review.
scope?stringScope of the entry to review.
actionenumapprove -> approved; retire -> retired.
decidedBystringWho made the review decision (provenance).
fn audit()
Surface approved entries whose review cadence has lapsed and flip them

Resources

entries(infinite)— The full entry list for this library (the content hub). Written by
lookupResult(infinite)— Entries matched by a lookup query (a read snapshot; the entry store is
auditReport(infinite)— Entries whose review cadence has lapsed as of the audit date, and
@shrug/content-studio/documentv2026.11.19.1document.ts
fn scan()
Inventory a document's defects (no mutation): unresolved placeholders
fn fill()
Resolve placeholders against the library entries passed in (via CEL
fn check()
The sendability gate: severity-rated findings if any bracket, draft
fn render()
Produce PDF/DOCX from the final markdown via an injectable pandoc

Resources

scanReport(infinite)— Defect inventory: placeholders (with library-key mapping), draft
fillReport(infinite)— Outcome of a fill: resolved placeholders, the unresolved[] report, the
checkReport(infinite)— Sendability-gate result: severity-rated findings and whether the
renderReport(infinite)— Outcome of a render: the input/output paths, format, the pandoc command,
03Skills1
content-review3 files
04Stats
A
100 / 100
Downloads
3
Archive size
33.9 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Docs keep secrets in a vault1/1earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License2/2earned
  • Verified public repository2/2earned

06Platforms
07Labels