Publish To FRE|Nxt Cables
End-to-end operating procedure for publishing a cable in the FRE|Nxt cables ecosystem.
Goal
Take a cable from "drafted content" to "published and resolvable" with deterministic checks.
Use This Skill When
- You are creating a new cable under
content/cables/content/claude-code/<slug>/. - You are changing frontmatter, artifact files, or
registry.jsonfor an existing cable. - You need to ship both submodule and parent repo changes without broken pointers.
Required Inputs
- Cable
slug - Intent:
new(brand new cable)update(existing cable changes)
- Target branch names for:
content/cablesrepo- parent
frenxtrepo
Output Contract
Always produce these sections:
ScopeChanges MadeValidationGit StatePublish CommandsRisks / Follow-ups
Workflow
1) Preflight
- Confirm working tree state in both repos:
- parent:
git status --short - submodule:
git -C content/cables status --short
- parent:
- Do not revert unrelated local changes.
- Isolate only files relevant to this cable.
2) Content Authoring
For new cables, create:
content/cables/content/claude-code/<slug>/index.mdxcontent/cables/content/claude-code/<slug>/registry.json(if installable)content/cables/content/claude-code/<slug>/artifact/*(if installable)
Frontmatter requirements:
- Required:
title,slug,tool,track,category,difficulty,last_verified,contributors - Optional but recommended:
tags,time_required,source_links,has_war_story - Installable cables must set
artifact_typeand includeregistry.json.
Authoring quality checks:
- Clear problem statement
- Concrete workflow or operating pattern
- No placeholder TODO text
- Markdown and heading structure is readable
3) Artifact Quality (Installable Cables)
For artifact_type: "skill":
- Artifact must be at
artifact/SKILL.md registry.jsonmust map source -> target skill path:- target pattern:
.claude/skills/<slug>/SKILL.md
- target pattern:
- Keep instructions deterministic and scoped.
4) Validate and Rebuild Index
Run in submodule:
npm --prefix content/cables run validate
npm --prefix content/cables run build-index
Optional confidence check:
npm --prefix content/cables test
If tsx sandbox IPC fails, rerun with elevated permissions.
5) Git Sequencing
Commit order must be:
- Submodule (
content/cables) commit - Parent repo commit to update submodule pointer and site code (if any)
Submodule sequence:
git -C content/cables add <files>
git -C content/cables commit -m "<message>"
git -C content/cables push origin <branch>
Parent sequence:
git add content/cables <any parent files>
git commit -m "<message>"
git push origin <branch>
6) Definition Of Done
A publish-ready result requires all:
validatepassesbuild-indexruns andcontent/index.jsonupdated when needed- installable artifact paths are valid
- submodule commit is pushed
- parent pointer commit is pushed
Failure Modes To Catch Early
- Missing required frontmatter field
artifact_typeset butregistry.jsonmissingregistry.jsontarget path typo- Submodule commit exists locally but not pushed
- Parent pointer updated to a submodule commit that remote cannot resolve
Reporting Template
Use this exact structure when you finish:
## Scope
- ...
## Changes Made
- ...
## Validation
- `npm --prefix content/cables run validate`: pass/fail
- `npm --prefix content/cables run build-index`: pass/fail
- `npm --prefix content/cables test` (optional): pass/fail
## Git State
- submodule branch + commit:
- parent branch + commit:
## Publish Commands
- ...
## Risks / Follow-ups
- ...