Ghostwriting
Turn validated evidence and operator intent into publication-ready drafts, deterministic channel packages, and provider-neutral handoffs.
You’re reading version sha-84791f83a2a1. Go to the current version
Overview
Write one bounded artifact in the voice of the human or team responsible for it. The skill turns validated evidence and a clear objective into useful public or internal prose without exposing the machinery that produced the evidence or inventing facts to make the draft feel complete.
This is the reusable authorship primitive behind briefs, release notes, trust reports, maintainer updates, newsletters, and social drafts. It can also package an accepted draft for a channel and prepare a provider-neutral handoff. It never publishes, posts, sends, or claims provider acknowledgement.
In the manual
Runners
admitdrafthandoffpackageverify
Declared by its execution profile. Read the profile
SKILL.md
Ghostwrite
Write one bounded artifact in the voice of the human or team responsible for it. The skill turns validated evidence and a clear objective into useful public or internal prose without exposing the machinery that produced the evidence or inventing facts to make the draft feel complete.
This is the reusable authorship primitive behind briefs, release notes, trust reports, maintainer updates, newsletters, and social drafts. It can also package an accepted draft for a channel and prepare a provider-neutral handoff. It never publishes, posts, sends, or claims provider acknowledgement.
Writing standard
- Lead with the reader's problem, decision, or next action—not the evidence collection process.
- Turn evidence into concrete claims and examples; do not dump receipts, issue threads, graph traces, or machine packets into the body.
- Match the project's vocabulary and supplied writing context instead of defaulting to generic AI, launch, preview, or adoption language.
- Write as the responsible maintainer or operator. The surfaced artifact should not call itself agent-generated or narrate how a model worked.
- Prefer one sharp, useful artifact over several thin sections.
- Narrow the claim or return
needs_more_evidencerather than filling a gap with plausible prose.
Runners and chain boundaries
draft composes admit, one writing turn and verify. admit binds a ready
research or evidence packet by its native digest and optionally admits
digest-bound brand-voice and taste-profile context. Only admitted claims and
source digests may enter the draft. verify checks every material claim and
every context binding before releasing it, and withholds anything it cannot
bind. A skill that owns its own writing judgment composes admit and verify
around its own writing turn, so its draft keeps the same guarantees.
package converts a validated draft bound to its evidence into a deterministic
channel payload, bound to its digest, in not_sent state; a draft without an
evidence binding, or with a claim citing a source it is not bound to, is held.
handoff binds that payload's digest to the exact target and records whether
delivery crosses outside the team, whether it then needs the delivering lane's
approval, and the next actor. Neither runner grants external authority.
Delivery belongs to send-as, a publication skill, or the relevant provider
connector.
Inputs and result
objective,audience, andchanneldefine what the artifact must achieve.- The evidence input must be a validated packet with stable claim and source digests; raw assertions are not promoted into evidence.
- Optional writing-context packets apply voice or taste. A packet is admitted
only when its declared
applicabilitynames the requestedaudienceexactly and lists the requestedchannelamong its brandchannelsor tastesurfaces. A packet outside that scope, or one that declares none, returnsneeds_more_evidenceso the right context can be supplied. Each admitted packet's exact digest, the audience and channel it was admitted for, and only the rules actually used are recorded. - Apply the admitted context's structured
profileandapplicability, not just its evidence-rule summaries. Brand vocabulary, cadence, claim limits and channel adjustments matter; taste principles, examples and dislikes matter. verifytakes the evidence contextadmitreturned and the candidate draft written from it. The admitted context, not the candidate, is the authority for source digests and context rules.packagetakes arunx.content.draft.v1packet;handofftakes therunx.content.publish.v1packetpackagereturned, its channel, the exact target, andboundary_kind(internalorexternal).
The draft result contains the content brief, reader-facing body with claim
references, review checklist, distribution notes, and writing-context bindings.
Packaging returns the channel payload, its evidence binding and digest, and
not_sent state. Handoff returns the target, boundary and next actor, without
delivery evidence.
Stop conditions
- Withhold the draft when material claims lack admitted evidence.
- Reject unknown source or writing-context digests and any context rule that was not present in the supplied packet.
- Withhold the draft when a supplied writing context does not apply to the requested audience and channel.
- Do not let voice guidance turn an unsupported factual claim into a safe one.
- Do not mark a package published, delivered, acknowledged, or approved merely because its local formatting succeeded.
- Keep confidential source content and secrets out of public bodies and handoff metadata.
Example
A research packet supports three claims about a release. A brand-voice packet
asks for direct, evidence-led language. draft can write a concise release note
using those claims and record the voice packet digest. package can create the
newsletter payload. handoff can point to the email provider lane. None of those
steps means the newsletter was approved or sent.
Agent task contract
ghostwrite-draft
Write only from the supplied evidence context. Return the content brief, draft,
review checklist, distribution notes, and exact context bindings. Every material
claim must cite admitted source digests. When writing contexts are present,
record each exact packet digest and only rules actually applied. Return
needs_more_evidence when the requested artifact cannot be supported. Do not
add publication state, provider claims, or facts absent from the evidence.
Respect each context's applicability, structured profile and stop conditions.
Profile examples guide style; they are not evidence for new factual claims.
Published execution profile
The execution profile published with sha-84791f83a2a1, shown as its exact bytes.
| Runners |
|
|---|---|
| Profile digest | sha256:66d6d9367ccb8bc836afdd749a476477b5cc738c721db593f7845bffdb0f0eac |
skill: ghostwrite
version: "0.4.1"
catalog:
kind: skill
audience: public
visibility: public
role: context
execution: read
completion: runtime_receipt
approval: none
category: content
input_definitions:
objective:
type: string
required: true
description: What the content must accomplish.
audience:
type: string
required: true
description: Intended reader.
channel:
type: string
required: true
description: Intended content channel.
evidence_pack:
type: json
required: true
packet: runx.research.packet.v1
description: Validated runx.research.packet.v1 evidence.
brand_context:
type: json
required: false
packet: runx.context.brand_voice.v1
description: Validated runx.context.brand_voice.v1 packet.
taste_context:
type: json
required: false
packet: runx.context.taste_profile.v1
description: Validated runx.context.taste_profile.v1 packet.
runners:
draft:
default: true
inputs:
objective: { definition: objective }
audience: { definition: audience }
channel: { definition: channel }
evidence_pack: { definition: evidence_pack }
voice_guide:
type: string
required: false
description: Additional project-specific voice constraints.
brand_context: { definition: brand_context }
taste_context: { definition: taste_context }
result_from: [reject, finalize]
steps:
- id: admit
label: admit validated evidence
skill: .
runner: admit
inputs:
objective: $input.objective
audience: $input.audience
channel: $input.channel
evidence_pack: $input.evidence_pack
brand_context: $input.brand_context
taste_context: $input.taste_context
- id: reject
label: withhold unsupported draft
when:
value: $steps.admit.evidence_context.decision
equals: needs_more_evidence
skill: .
runner: verify
inputs:
evidence_context: $steps.admit.evidence_context
- id: author
label: author from bounded evidence
when:
value: $steps.admit.evidence_context.decision
equals: ready
agent: { role: writer, task: ghostwrite-draft }
outputs:
content_draft: object
inputs:
objective: $input.objective
audience: $input.audience
channel: $input.channel
voice_guide: $input.voice_guide
evidence_context: $steps.admit.evidence_context
evidence_pack: $input.evidence_pack
brand_context: $input.brand_context
taste_context: $input.taste_context
artifacts:
named_emits:
content_draft: content_draft
- id: finalize
label: verify draft evidence and context bindings
when:
value: $steps.admit.evidence_context.decision
equals: ready
skill: .
runner: verify
inputs:
evidence_context: $steps.admit.evidence_context
content_draft: $steps.author.content_draft
admit:
inputs:
objective: { definition: objective }
audience: { definition: audience }
channel: { definition: channel }
evidence_pack: { definition: evidence_pack }
brand_context: { definition: brand_context }
taste_context: { definition: taste_context }
result_from: [prepare]
steps:
- id: digest-evidence
tool: data.digest
inputs:
value: $input.evidence_pack
- id: digest-brand-context
tool: data.digest
inputs:
value:
type: brand_voice
packet: $input.brand_context
- id: digest-taste-context
tool: data.digest
inputs:
value:
type: taste_profile
packet: $input.taste_context
- id: prepare
label: admit validated evidence
inputs:
objective: $input.objective
audience: $input.audience
channel: $input.channel
evidence_pack: $input.evidence_pack
brand_context: $input.brand_context
taste_context: $input.taste_context
evidence_packet_digest: $steps.digest-evidence.digest_result.digest
brand_context_digest: $steps.digest-brand-context.digest_result.digest
taste_context_digest: $steps.digest-taste-context.digest_result.digest
tool: { module: ghostwrite.mjs, export: prepareEvidence }
outputs:
evidence_context: object
artifacts:
named_emits:
evidence_context: evidence_context
verify:
inputs:
evidence_context:
type: json
required: true
description: Evidence context returned by `admit`, the authority for source digests and context rules.
content_draft:
type: json
required: false
description: Candidate draft written from that evidence context; absent when admission withheld the draft.
result_from: [reject, finalize]
steps:
- id: reject
label: withhold unsupported draft
when:
value: $input.evidence_context.decision
equals: needs_more_evidence
tool: evidence.verify_artifact
scopes:
- runx:evidence:read
inputs:
artifact_name: content_draft_packet
candidate:
decision: ready
require_claim_bindings: true
fallback_artifact:
decision: needs_more_evidence
content_brief:
objective: ""
audience: ""
channel: ""
draft:
title: ""
body: ""
claim_refs: []
review_checklist: []
distribution_notes: {}
evidence_binding:
evidence_packet_digest: ""
source_digests: []
context_binding:
required: []
applied: []
fallback_bindings:
- target_path: content_brief.objective
source_path: objective
- target_path: content_brief.audience
source_path: audience
- target_path: content_brief.channel
source_path: channel
- target_path: evidence_binding.evidence_packet_digest
source_path: evidence_packet_digest
- target_path: evidence_binding.source_digests
source_path: source_digests
- target_path: context_binding.required
source_path: context_requirements
source_digests: $input.evidence_context.source_digests
context_requirements: $input.evidence_context.context_requirements
fallback_source: $input.evidence_context
artifacts:
named_emits:
content_draft_packet: content_draft_packet
packets:
content_draft_packet: runx.content.draft.v1
- id: finalize
label: verify draft evidence and context bindings
when:
value: $input.evidence_context.decision
equals: ready
tool: evidence.verify_artifact
scopes:
- runx:evidence:read
inputs:
artifact_name: content_draft_packet
required_paths:
- content_brief.objective
- content_brief.audience
- content_brief.channel
- draft.title
- draft.body
- draft.claim_refs
required_value_bindings:
- candidate_path: content_brief.objective
source_path: objective
- candidate_path: content_brief.audience
source_path: audience
- candidate_path: content_brief.channel
source_path: channel
authoritative_bindings:
- target_path: evidence_binding.evidence_packet_digest
source_path: evidence_packet_digest
- target_path: evidence_binding.source_digests
source_path: source_digests
- target_path: context_binding.required
source_path: context_requirements
fallback_artifact:
decision: needs_more_evidence
content_brief:
objective: ""
audience: ""
channel: ""
draft:
title: ""
body: ""
claim_refs: []
review_checklist: []
distribution_notes: {}
evidence_binding:
evidence_packet_digest: ""
source_digests: []
context_binding:
required: []
applied: []
fallback_bindings:
- target_path: content_brief.objective
source_path: objective
- target_path: content_brief.audience
source_path: audience
- target_path: content_brief.channel
source_path: channel
- target_path: evidence_binding.evidence_packet_digest
source_path: evidence_packet_digest
- target_path: evidence_binding.source_digests
source_path: source_digests
- target_path: context_binding.required
source_path: context_requirements
candidate: $input.content_draft
identity_source: $input.evidence_context
authoritative_source: $input.evidence_context
fallback_source: $input.evidence_context
source_digests: $input.evidence_context.source_digests
claim_bindings: $input.content_draft.draft.claim_refs
context_requirements: $input.evidence_context.context_requirements
context_bindings: $input.content_draft.context_binding.applied
artifacts:
named_emits:
content_draft_packet: content_draft_packet
packets:
content_draft_packet: runx.content.draft.v1
package:
inputs:
channel:
type: string
required: true
description: Target delivery channel.
draft:
type: json
required: true
packet: runx.content.draft.v1
description: Validated, evidence-bound runx.content.draft.v1 packet.
result_from: [bind]
steps:
- id: prepare
inputs:
channel: $input.channel
draft: $input.draft
tool: { module: ghostwrite.mjs, export: prepareContent }
outputs:
publish_draft: object
digest_input: string
- id: digest
tool: data.digest
inputs:
encoding: utf8_text
value: $steps.prepare.digest_input
- id: bind
inputs:
publish_draft: $steps.prepare.publish_draft
digest_result: $steps.digest.digest_result
tool: { module: ghostwrite.mjs, export: bindContent }
outputs:
content_publish_packet:
type: object
schema:
additionalProperties: false
required: [decision, channel, headline, body, evidence_binding, delivery_status, blockers, payload_digest]
properties:
decision: { enum: [ready_for_handoff, needs_input] }
channel: { type: string }
headline: { type: string }
body: { type: string }
evidence_binding:
type: object
additionalProperties: false
properties:
evidence_packet_digest: { type: string, pattern: '^sha256:[0-9a-f]{64}$' }
source_digests:
type: array
minItems: 1
items: { type: string, pattern: '^sha256:[0-9a-f]{64}$' }
delivery_status: { const: not_sent }
blockers: { type: array, items: { type: string, minLength: 1 } }
payload_digest: { type: string }
# A packet ready for handoff carries its evidence binding and its
# payload's digest.
if: { properties: { decision: { const: ready_for_handoff } } }
then:
properties:
headline: { minLength: 1 }
body: { minLength: 1 }
evidence_binding: { required: [evidence_packet_digest, source_digests] }
payload_digest: { pattern: '^sha256:[0-9a-f]{64}$' }
blockers: { maxItems: 0 }
artifacts:
named_emits:
content_publish_packet: content_publish_packet
packets:
content_publish_packet: runx.content.publish.v1
handoff:
inputs:
channel:
type: string
required: true
description: Target outward channel.
boundary_kind:
type: string
required: true
schema: { enum: [internal, external] }
description: Whether delivery crosses outside the team; an external delivery needs the delivering lane's own approval.
packet:
type: json
required: true
packet: runx.content.publish.v1
description: Content publication packet from `package`, bound to its payload digest.
target:
type: json
required: true
description: Exact downstream target locator.
steps:
- id: handoff
tool: { module: ghostwrite.mjs, export: prepareHandoff }
inputs:
channel: $input.channel
boundary_kind: $input.boundary_kind
packet: $input.packet
target: $input.target
outputs:
handoff_packet:
type: object
schema:
additionalProperties: false
required: [decision, channel, payload_digest, packet, target, delivery_status, blockers]
properties:
decision: { enum: [handoff_ready, needs_input] }
channel: { type: string }
payload_digest: { type: string }
# The publication packet as `package` produced it.
packet: { type: object, additionalProperties: true }
# The target locator the delivering lane reads.
target: { type: object, additionalProperties: true }
delivery_status: { const: not_sent }
blockers: { type: array, items: { type: string, minLength: 1 } }
boundary_state:
type: object
schema:
additionalProperties: false
required: [boundary_kind, completion_state, next_actor, approval_required_for_delivery, ack_expected]
properties:
boundary_kind: { enum: [internal, external] }
completion_state: { enum: [handoff_ready, needs_input] }
next_actor: { enum: [governed_provider_adapter, operator] }
approval_required_for_delivery: { type: boolean }
ack_expected: { type: boolean }
artifacts:
wrap_as: content_handoff_packet
packet: runx.content.handoff.v1
Published package and test evidence.
This exact version passed its recorded harness run: 6 checks passed · 0 failed.
Test result
| Harness result | Passed |
|---|---|
| Tested version | sha-84791f83a2a1 |
| Recorded result | 6 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Test record | Open the recorded run |
Inspect receipt references
sha256:72f00edc69eb0867161b7f99d5f306a80d4642ca5237d139ce1c4f031d275e25sha256:fc3d7f4f9b5049479b927d6754a829771ec7559c8508dc8919d8227ca1951895sha256:1902b80bc08b5f48cde615cc955fcac199f7df0a11de6bd424c6f26969679396sha256:8be2af1667847ca5dc001f893dd659088917236aff44a2adf8ce06bedf4c60a8sha256:651159bffe16f10694350f612d87ad315fc5a63055e19c83b5b31ea858cf0703sha256:d0d5e9c61530d6d61acb94952e887006c097702bc6af7e4f0a004295cd7df6fePackage identity
| Published revision | sha-84791f83a2a1 |
|---|---|
| Content digest | sha256:71d3427cc0511a3905ae0a9eaf0c3cc61bceeb2f5a50173dcf57c5fe940f6e0e |
| SKILL.md digest | sha256:7f67e9387592755d36cc51a23425ec66ff20ca143258d316e31cd497fb018181 |
| Execution profile digest | sha256:66d6d9367ccb8bc836afdd749a476477b5cc738c721db593f7845bffdb0f0eac |
| Publisher identity | Verified publisher · runx |
| Trust tier | Verified publisherRunx has verified this publisher. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
0.4.7Content digest sha256:a903a896dfb47f08cf927a85c057d28fb22dc89971ddcea744d13627e65681b7sha-22fb993f5dcaContent digest sha256:22fb993f5dcafd643e9e89ee2cd1b1690e389c9558374aa8d998a1754bf3fd25sha-780742dd3197Content digest sha256:780742dd3197d2f487a7139fc86d871a059213fd426502cfd2660014a1373482sha-79ff35aff9bfContent digest sha256:79ff35aff9bf728a7bdffb13214d249a591c942bda46c85701a6e2bdb5b68ae5sha-6effd6bc33ccContent digest sha256:ff29ebe1d38afcd6c691a58d87e72e1273b822466539bbb9faa9f220498554c3sha-cae291d827bfContent digest sha256:cd72193fd31e21e0e8327de978f86b7b7383271c43a9c84b7f95c2a24e3b2704sha-84791f83a2a1ViewingContent digest sha256:71d3427cc0511a3905ae0a9eaf0c3cc61bceeb2f5a50173dcf57c5fe940f6e0e