Generate Text
Generate on-brand social media copy using brand voice, memory of past winning posts, and today's trend brief. Presents drafts for…
Claude CodeGeneric
# /generate-text
Generate on-brand social media copy using brand voice, memory of past winning posts, and today's trend brief. Presents drafts for user review. Locks text before image generation can begin.
## Usage
/generate-text
## Instructions
### Step 1: Validate prerequisites
Check `brands/<slug>/brand.md` exists. If not: "❌ Run `/extract-brand` first." Stop.
Check `brands/<slug>/<today>/research/brief.md` exists and is non-empty. If not:
> "❌ No trend brief found for today. Run `/trend-research <slug>` first."
Stop.
### Step 2: Resolve platforms
Use argument platforms if provided. Otherwise fall back to brand.md checked platforms (lines with `[x]` in the Target platforms section).
If still none found:
> "❌ No platforms specified. Either add `[x]` to platforms in brand.md or pass platforms as arguments."
Stop.
### Step 3: Create output directory
Create `brands/<slug>/<YYYY-MM-DD>/text/` if it doesn't exist.
### Step 4: Dispatch copy-humanizer agent
Invoke `copy-humanizer` subagent with:
- `brand_slug` = slug
- `platforms` = resolved list
- `date` = today YYYY-MM-DD
- `brief_path` = `brands/<slug>/<today>/research/brief.md`
### Step 5: Wait for text lock
The copy-humanizer agent will present drafts and ask for lock. This command waits.
When user replies **LOCKED** or **approve**:
1. For each `text/<platform>.md`, update frontmatter: set `locked: true`
2. Confirm:
> "✅ Text locked for: [platforms].
>
> Run `/generate-image <slug> [platforms]` to generate images."
If user provides edits instead of locking: pass edits to copy-humanizer for revision. Repeat until locked.
## Error handling
If copy-humanizer agent fails: surface the error. User can write text manually into `text/<platform>.md` (with `locked: true` in frontmatter) and proceed to `/generate-image`.
Maintain Generate Text?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[Generate Text on getagentictools](https://getagentictools.com/loops/techware-hub-generate-text?ref=badge)