{"id":100977,"plugin_id":"plugins_6aed3278a3848191925fc74753ecbe72","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-17T06:15:21.322Z","digest":"df4355d019d0100f9c5a5b783045c485c0cda72f50516989092a5ccd306aa7f7","against":null,"payload":{"description":"IDMP annotation skill. Use it to read and write element annotations while keeping element annotations separate from event annotations.","included_files":[{"relative_path":"references/annotation-read-flows.md","size_in_bytes":620}],"name":"idmp-annotation","skill_md_contents":"---\nname: idmp-annotation\ndescription: \"IDMP annotation skill. Use it to read and write element annotations while keeping element annotations separate from event annotations.\"\nmetadata:\n  author: \"TAOS Data\"\n  version: \"0.4.1\"\n  owner_team: \"AI\"\n  requires:\n    bins:\n      - idmp-cli\n  cliHelp: \"idmp-cli annotation --help\"\n---\n\n# annotation\n\n**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**\n\n## What this skill covers\n\n- Read, create, update, and delete annotations attached to elements.\n- Keep element annotations separate from event annotations, which use the `event annotations *` family.\n- Use annotation IDs for follow-up changes after the initial list read.\n- Use filtered rereads by `content` or time window to prove the exact note you just changed.\n\n## Recommended shortcuts\n\n| Shortcut | Purpose |\n|----------|---------|\n| `+list` | List annotations for one element, optionally filtered by content |\n\n## Recommended reference\n\n- [`Annotation read flows`](references/annotation-read-flows.md)\n\n## Missing context to resolve first\n\n| Context | Why it must be resolved before mutation |\n| --- | --- |\n| Annotation scope | Decide whether the note belongs to an element or an event before choosing the command family. |\n| Owner element | Element annotation create needs the final `elementId`. |\n| Target annotation ID | Update and delete need `annotationId`, not the element ID. |\n| Verification plan | Decide how you will reread the annotation list after create, update, and delete. |\n\n## Constrained live behaviors\n\n- `annotation annotation create` writes element annotations only; event notes use the `event annotations *` family.\n- `annotation annotation update` and `annotation annotation delete` act on `annotationId`, not on the owner element.\n- Annotation writes are not complete until `annotation annotation list` reread shows the expected text or confirms deletion.\n- `annotation annotation list` supports `content`, time windows, and small page sizes, so use filtered rereads before widening to the full page.\n- `annotation annotation list` time-window filters expect epoch milliseconds, even though `annotation annotation update` can return a timestamp string. Convert the returned time before you feed it back into `updateTimeFrom` or `updateTimeTo`.\n- Disposable debug notes should be deleted when the workflow ends so shared environments do not accumulate stale annotations.\n\n## Operator workflow\n\n1. Use this skill for element annotations only.\n2. If the operator is discussing an event timeline, switch to `event annotations *`.\n3. Read the element annotation list first and capture the `annotationId` before any update or delete.\n4. `update` and `delete` operate on the annotation record, not on the element itself.\n5. Re-read with a `content` filter first, then widen to the unfiltered first page if needed, to confirm the final text and timestamps.\n6. When you need an `updateTime*` filter after `update`, normalize the returned timestamp to epoch milliseconds before the reread.\n\n## Key commands\n\n```bash\nidmp-cli schema annotation.annotation.list\nidmp-cli annotation annotation list --params '{\"elementId\":123,\"current\":1,\"size\":20}'\nidmp-cli annotation annotation list --params '{\"elementId\":123,\"content\":\"copilot note\",\"current\":1,\"size\":1}'\n\nidmp-cli schema annotation.annotation.create\nidmp-cli annotation annotation create --ack-risk --data '{...}'\n\nidmp-cli schema annotation.annotation.update\nidmp-cli annotation annotation update --ack-risk --data '{...}'\n\nidmp-cli schema annotation.annotation.delete\nidmp-cli annotation annotation delete --ack-risk --params '{\"annotationId\":456}'\n```\n\n## Exception paths\n\n- The list is empty: treat that as “no annotations yet,” not as a product failure.\n- Reads return 404 or permission errors: verify the `elementId` and the current user’s access level.\n- Update or delete fails unexpectedly: confirm you passed `annotationId`, not `elementId`.\n- The operator expected event notes: switch to `event annotations *` instead of forcing element commands.\n- A write succeeds but the note still seems missing: remove filters and re-read the first page of results.\n- Update succeeds but `updateTimeFrom` filtering misses the note: convert the returned update time to epoch milliseconds and retry the filtered list.\n\n## Validation scenarios\n\n1. List annotations for a known element with `idmp-cli annotation annotation list`.\n2. Repeat the list with a content filter and small page size to isolate one known note.\n3. Create a disposable annotation with `idmp-cli annotation annotation create --ack-risk`.\n4. Update that annotation by `annotationId` with `idmp-cli annotation annotation update --ack-risk`.\n5. Delete the same annotation by `annotationId` and confirm it no longer appears in the list.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}