AGENT SKILL

solid-listening

Use when reading or writing Solid listening-history scrobbles through @jeswr/solid-listening, changing its codegen inputs or SHACL, regenerating its model core, or maintaining its facade over the generated media-sector composite.

License 许可
MIT
所属仓库
jeswr/solid-sdk
最近更新
2026-11-15
Stars
★ 2
Forks
0

01 前言 Front Matter

name
solid-listening
description
Use when reading or writing Solid listening-history scrobbles through @jeswr/solid-listening, changing its codegen inputs or SHACL, regenerating its model core, or maintaining its facade over the generated media-sector composite.

02 资源文件 36

03 SKILL.md 正文

<!-- AUTHORED-BY Claude Opus 5.5 -->

Solid listening-history model

A scrobble is a five-node composite from the media sector: #it (media:PlaybackEvent), #track (media:Track), #playedAt (time:Instant), #artist and #album. It mints no IRIs. src/scrobble.ts is a thin facade over the generated core in src/generated/, which @jeswr/model-runtime interprets; iri.ts, acl.ts, vocab.ts, nodes.ts and shape.ts stay hand-written. Never edit src/generated/ directly.

Generation inputs live in codegen/: the media ontology subset, the scrobble shapes subset and codegen.config.json (fragments, renames, links). The shapes subset leaves out the ISRC pattern and media:playedVia, and narrows playedWork to media:Track; the reasons are in its header. listening.shacl.ttl is the published, complete profile validated in src/shape.test.ts.

Parse behaviour: required links (playedWork, atTime) and the track title fail closed on any non-conforming value (a language-tagged title rejects the scrobble; README "Exact divergences" lists the changes from the July package). The links are sh:class-only, so an optional problem on a child (two artists, two albums, a malformed optional value) drops only that field.

From the workspace root:

pnpm --filter @jeswr/federation-codegen... run build
pnpm --filter @jeswr/solid-listening run codegen

For a deliberate input change, review the diff and pass --update-lock. The drift test test/codegen.test.ts must stay green; pnpm run check:codegen enforces that it exists.

04 同仓库更多 Skills