Export the entire conversation context into Open-Token format (including tools and optional internal traces) for agent collaboration, auditability, and reproducibility.
54
61%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
High
Do not use without reviewing
Fix and improve this skill with Tessl
tessl review fix ./public/skills/247arjun/stream-of-consciousness/SKILL.mdWhen invoked, output the entirety of the currently available conversation in Open-Token format as a single export artifact, suitable for:
The output MUST be machine-parseable and complete per the chosen mode.
Parse $ARGUMENTS as space-separated key=value pairs.
Supported options:
mode=json|ndjson
Default: json
pretty=true|false
Default: true for json; false for ndjson
include=visible-only|include-internal
Default: visible-only
internal=redacted|summary|full
Default: redacted
Meaning:
redacted: include internal events only as placeholders (no content)summary: include brief summaries of internal traces (if available)full: include internal traces verbatim (ONLY if available and permitted)redact=none|secrets|pii|strict
Default: secrets
max_bytes=<int> (optional)
If present, apply truncation rules defined below.
If include=include-internal is requested but internal traces (hidden reasoning, hidden system routing, hidden intermediate tokens) are not available in the current runtime context, DO NOT fabricate them.
In that case:
conversation.internal_availability="unavailable"internal=redactedtool_result events.redact option (unless redact=none).Emit exactly one JSON object:
{
"open_token_version": "0.1",
"exported_at": "RFC3339 timestamp in UTC if available, else omit",
"conversation": {},
"participants": [],
"events": [],
"integrity": {}
}Constraints:
events MUST be in strictly increasing sequence order.Emit newline-delimited JSON records:
Header line: { "type": "header", "open_token_version": "0.1", "exported_at": "..." }
Then one line per event: { "type": "event", ...event object... }
Optional footer line: { "type": "footer", "integrity": { ... } }
Constraints:
conversation fields:
id (required): stable identifier if provided by runtime; else generate conv_<YYYYMMDD>_<hash8>title (optional)started_at (optional; RFC3339; do not guess)timezone (optional)source_runtime (optional): "cli"|"web"|"api"|"ide"|"other"provider (optional): "openai"|"anthropic"|"google"|"meta"|"other"internal_availability (optional): "available"|"unavailable"|"unknown"redaction (required if redact != none):
mode: none|secrets|pii|strictstrategy: mask|drop|hashnotes: array of high-level notes (no secrets)Each participant:
{ "actor_id": "act_###", "kind": "human|model|tool|system", "name": "string", "provider": "string (optional)", "model": "string (optional)", "instance_id": "string (optional)" }
Rules:
participants entry per distinct speaker/agent/tool/system originator.kind="system" for system/developer prompt originators.kind="tool" for external tools/functions.kind="model" for model/agent outputs (including subagents).Each events[] entry MUST follow:
{ "id": "evt_000001", "seq": 1, "ts": "RFC3339 UTC timestamp (optional if unknown)", "type": "message|tool_use|tool_result|span_start|span_end|annotation", "actor_id": "act_###", "visibility": "public|internal|metadata", "role": "system|developer|user|assistant|assistant_thought|tool", "content": { "mime": "text/plain|application/json", "text": "string (optional)", "data": {} }, "links": { "parent_id": "evt_###### (optional)", "replies_to": "evt_###### (optional)", "call_id": "call_###### (optional)", "span_id": "span_###### (optional)" }, "usage": { "input_tokens": 0, "output_tokens": 0, "reasoning_tokens": 0 } }
Rules:
id REQUIRED; seq REQUIRED and must be contiguous (1..N).ts OPTIONAL; do not guess timestamps.usage OPTIONAL; include only if available.content.text is used, content.mime should be text/plain.content.data is used, content.mime should be application/json.Map provider concepts to role + visibility:
role="system", visibility="internal" (or public if explicitly shown)role="developer", visibility="internal"role="user", visibility="public"role="assistant", visibility="public"include=include-internal:
role="assistant_thought", visibility="internal"internal:
full: include verbatim thought contentsummary: include a brief summary stringredacted: include placeholder with no thought contentconversation.internal_availability="unavailable" when applicabletype="tool_use", role="assistant", visibility="internal"type="tool_result", role="tool", visibility="internal"For every tool call:
tool_use event and one tool_result event.links.call_id.tool_use.content.data MUST include:
tool_name (string)arguments (object/array)tool_result.content MUST contain ONLY the tool output.
content.mime="application/json" and put output in content.datacontent.mime="text/plain" and put output in content.textIf a tool call was initiated but no result exists in context:
tool_use event.tool_result event with:
content.mime="application/json"content.data={"missing_result":true}conversation.redaction.notes or an event-level annotation if relevant.If subagents exist:
kind="model").span_start event opens span (links.span_id)links.span_idspan_end event closes spanIf spawn metadata is available, put it in span_start.content.data:
spawn_reasonrequested_capabilitiestooling_scopemodel (if specified)Apply redaction according to redact:
none: no redaction (still avoid emitting known-prohibited private keys if policy requires)secrets: mask API keys, auth tokens, passwords, session cookies, private keyspii: additionally mask emails, phone numbers, street addresses, direct personal identifiersstrict: mask secrets + pii + any internal-only configuration strings and untrusted tool outputs that may contain sensitive dataMechanics:
[REDACTED:<type>:<hash8>]conversation.redaction.notes (no secret values).If max_bytes is set and output exceeds limit:
content.text fields:
…content.mime="text/plain":
content.data={"truncated":true,"original_length":<int if known>} and keep text truncatedcontent.mime="application/json":
{"truncated":true} in the JSON structure where applicableannotation event describing the omission.If feasible, include:
"integrity": { "hash_alg": "sha256", "canonicalization": "json-c14n-like", "events_hash": "hex string" }
If not feasible, omit integrity.
seq is contiguous and strictly increasing.tool_use paired with tool_result via call_id (or explicit missing-result marker).redact option.{
"open_token_version": "0.1",
"exported_at": "2026-01-31T00:00:00Z",
"conversation": {
"id": "conv_20260131_ab12cd34",
"provider": "unknown",
"source_runtime": "unknown",
"internal_availability": "unavailable",
"redaction": {
"mode": "secrets",
"strategy": "mask",
"notes": ["masked api keys"]
}
},
"participants": [
{ "actor_id": "act_001", "kind": "system", "name": "system" },
{ "actor_id": "act_002", "kind": "human", "name": "user" },
{ "actor_id": "act_003", "kind": "model", "name": "assistant", "provider": "unknown", "model": "unknown" },
{ "actor_id": "act_004", "kind": "tool", "name": "CalculatorAPI" }
],
"events": [
{
"id": "evt_000001",
"seq": 1,
"type": "message",
"actor_id": "act_001",
"visibility": "internal",
"role": "system",
"content": { "mime": "text/plain", "text": "You are a math tutor." }
},
{
"id": "evt_000002",
"seq": 2,
"type": "message",
"actor_id": "act_002",
"visibility": "public",
"role": "user",
"content": { "mime": "text/plain", "text": "What is 5 factorial?" }
},
{
"id": "evt_000003",
"seq": 3,
"type": "tool_use",
"actor_id": "act_003",
"visibility": "internal",
"role": "assistant",
"content": {
"mime": "application/json",
"data": { "tool_name": "CalculatorAPI", "arguments": { "op": "factorial", "n": 5 } }
},
"links": { "call_id": "call_000001" }
},
{
"id": "evt_000004",
"seq": 4,
"type": "tool_result",
"actor_id": "act_004",
"visibility": "internal",
"role": "tool",
"content": { "mime": "text/plain", "text": "120" },
"links": { "call_id": "call_000001" }
},
{
"id": "evt_000005",
"seq": 5,
"type": "message",
"actor_id": "act_003",
"visibility": "public",
"role": "assistant",
"content": { "mime": "text/plain", "text": "5! equals 120." }
}
]
}f45fcb5
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.