Ghostwriting

Turn validated evidence and operator intent into publication-ready drafts, deterministic channel packages, and provider-neutral handoffs.

You’re reading version sha-6effd6bc33cc. 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

  • admit
  • draft
  • handoff
  • package
  • verify

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_evidence rather 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 message-send, a publication skill, or the relevant provider connector.

Inputs and result

  • objective, audience, and channel define 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 applicability names the requested audience exactly and lists the requested channel among its brand channels or taste surfaces. A packet outside that scope, or one that declares none, returns needs_more_evidence so 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 profile and applicability, not just its evidence-rule summaries. Brand vocabulary, cadence, claim limits and channel adjustments matter; taste principles, examples and dislikes matter.
  • verify takes the evidence context admit returned and the candidate draft written from it. The admitted context, not the candidate, is the authority for source digests and context rules.
  • package takes a runx.content.draft.v1 packet; handoff takes the runx.content.publish.v1 packet package returned, its channel, the exact target, and boundary_kind (internal or external).

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-6effd6bc33cc, shown as its exact bytes.

Runners
  • admit
  • draft
  • handoff
  • package
  • verify
Profile digestsha256:6ec3f1f62394fecc723f9efb7708f19f93677e75a348c9dba8ddb570e63490e7
skill: ghostwrite
version: "0.4.3"

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

harness:
  files: [fixtures/support/composed.graph]
  cases: []

Published package and test evidence.

The latest recorded test covers an earlier version, 0.4.7. It does not establish a result for this version.

Test result

Harness resultAn earlier version was tested
Tested version0.4.7Not this page’s version, sha-6effd6bc33cc
Recorded result7 checks passed · 0 failed
Result sourceRun by the Runx registry at publication
Suiterunx-harness
Test recorded

Package identity

Published revisionsha-6effd6bc33cc
Content digestsha256:ff29ebe1d38afcd6c691a58d87e72e1273b822466539bbb9faa9f220498554c3
SKILL.md digestsha256:bba553adeb3df24a28a79e941601080c10171fbace844c8ea66a2c7507b41261
Execution profile digestsha256:6ec3f1f62394fecc723f9efb7708f19f93677e75a348c9dba8ddb570e63490e7
Publisher identityVerified publisher · runx
Trust tierVerified publisherRunx has verified this publisher. This tier is not a code assessment.
Attestations
  • Publisher · Verifiedrunx · 16 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.4.7Content digest sha256:a903a896dfb47f08cf927a85c057d28fb22dc89971ddcea744d13627e65681b7
  2. sha-22fb993f5dcaContent digest sha256:22fb993f5dcafd643e9e89ee2cd1b1690e389c9558374aa8d998a1754bf3fd25
  3. sha-780742dd3197Content digest sha256:780742dd3197d2f487a7139fc86d871a059213fd426502cfd2660014a1373482
  4. sha-79ff35aff9bfContent digest sha256:79ff35aff9bf728a7bdffb13214d249a591c942bda46c85701a6e2bdb5b68ae5
  5. sha-6effd6bc33ccViewingContent digest sha256:ff29ebe1d38afcd6c691a58d87e72e1273b822466539bbb9faa9f220498554c3
  6. sha-cae291d827bfContent digest sha256:cd72193fd31e21e0e8327de978f86b7b7383271c43a9c84b7f95c2a24e3b2704
  7. sha-84791f83a2a1Content digest sha256:71d3427cc0511a3905ae0a9eaf0c3cc61bceeb2f5a50173dcf57c5fe940f6e0e