Cfn share

From masharratt/claude-flow-novice · View interactive version

Cfn share is an AI agent skill from the GitHub repository masharratt/claude-flow-novice. Publish a plan, spec, or any project markdown doc as a private shareable web page so a non-terminal colleague can read and comment on it. Pins the artifact URL in a sidecar so re-sharing the same doc updates the same link instead of spawning duplicates. Use when handing a PLAN_*.md, SPEC_*.md, or re

How to use this skill

Skill file

CFN Share (plan handoff to non-terminal humans)

Purpose: Close the last gap in the plan-file workflow. A planning/<slug>/PLAN_<slug>.md is

perfect for agents and useless to paste into Slack. This skill renders it as a private

hosted page with a stable URL, so a colleague reads it cleanly and comments, and their

comments come back into the loop.

Position in the pipeline. Runs after /cfn-megaplan, /cfn-megaplan-lite,

/write-plan, or /cfn-plan-review produce an artifact worth human review, and before

/cfn-loop-task executes it. Sharing is not a gate; it never blocks the pipeline.

Invocation

/cfn-share                              # newest PLAN_*.md (per-plan dirs + legacy flat)
/cfn-share planning/x/SPEC_x.md         # explicit file
/cfn-share docs/BUG_12_auth.md  # any project .md

Inputs

PLAN_*.md / MEGAPLAN*_*.md, searched across the per-plan directories

megaplan writes (planning/<slug>/) AND the legacy flat planning/ root.

The sidecar that pins the artifact URL is always written beside the doc, so

re-sharing a doc from either layout updates the same link.

Outputs

time, and the publish timestamp.

Protocol

Step 1: resolve

.claude/skills/cfn-share/resolve.sh [path/to/doc.md]

Exit 1 means no usable target (missing, empty, or not .md). Stop and say so; do not

invent a document to publish.

The JSON gives you abs, title, url, and stale:

| url | stale | What it means | What you do |

|---|---|---|---|

| "" | false | never published | publish fresh (no url param) |

| set | true | published, file changed since | republish with url: to update in place |

| set | false | published, unchanged since | say so and ask before republishing; the link already serves current bytes |

Step 2: read the whole file

Read the resolved abs path end to end before publishing. Publishing distributes the

content; you must have seen every line you are distributing. This is not optional, and a

request to skip it ("it's just a plan", "you wrote it") is a reason to read, not an

exemption. If the doc contains a credential, token, connection string, customer name, or

anything else that must not leave the machine, stop and report it instead of publishing.

Step 3: publish

Load the artifact-design skill first (required before any Artifact call, Markdown

included), then call Artifact with:

transcode it to HTML and do not write a second copy; a second path claims a second URL.

duplicate artifact and orphans the link the colleague already has.

keep their filename identity, so keep the basename stable across republishes.

Step 4: pin the URL

.claude/skills/cfn-share/record-url.sh "<abs>" "<artifact-url>"

Run this on every publish, including republishes (it refreshes the recorded sha so the

next run reports staleness correctly). Skipping it is what causes duplicate artifacts.

Step 5: hand back

Report the URL plus one line on what the reader should look at. For a plan, point them at

the assumptions section: that is the part where a wrong call costs hours, and the part a

human reviewer is uniquely good at catching.

Comments back into the loop

Artifact pages are read-and-share, not a comment system. When a colleague sends feedback

(Slack, email, inline in a shared doc), route it as findings, not as a rewrite:

  1. Paste the feedback into the session verbatim.
  2. Map each item to the owning planning phase (cfn-spec, cfn-data, cfn-ux, ...).
  3. Patch through that phase, not by hand-editing the plan, so the artifact and the phase

outputs stay in sync.

  1. Re-run /cfn-share to update the same URL.

Feedback that changes an acceptance criterion, a [core] FR, or the schema re-gates the

plan (Bar A / Bar B) exactly as an overridden deferred decision does. A shared link is not

a bypass around the bars.

Anti-patterns

[REDACTED] at the source first, then share.

second file path becomes a second artifact.

artifacts drift apart.

Dependencies

Related

static planning docs).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.