discord-content
Scannednpx machina-cli add skill jikig-ai/soleur/discord-content --openclawDiscord Content
Create and post brand-consistent community content to Discord. Content is generated from a user-provided topic, validated against the brand guide, and posted via webhook after explicit user approval.
Prerequisites
Before generating content, verify both prerequisites. If either fails, display the error message and stop.
1. Brand Guide
Check if knowledge-base/overview/brand-guide.md exists.
If missing:
No brand guide found. Run the brand architect agent first to establish brand identity:
Use the brand-architect agent to define our brand.
Stop execution.
2. Discord Webhook URL
Check if the DISCORD_WEBHOOK_URL environment variable is set.
If missing:
DISCORD_WEBHOOK_URLis not set. To configure:
- Open Discord server > Server Settings > Integrations > Webhooks
- Click "New Webhook" and configure the target channel
- Copy the webhook URL
- Set the environment variable:
export DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/..."
Stop execution.
Content Generation
Phase 1: Topic Input
Ask the user: "What would you like to post about?"
Accept a freeform topic description. Optionally offer: "Summarize recent git activity?" -- if accepted, run git log --oneline -20 to gather recent commits and PRs as source material.
Phase 2: Generate Draft
Read the brand guide sections that inform content generation:
- Read
## Voice-- apply brand voice, tone, do's and don'ts - Read
## Channel Notes > ### Discord-- apply Discord-specific guidelines (if the section exists)
Generate a draft post that:
- Addresses the user's topic
- Matches the brand voice from
## Voice - Follows Discord channel guidelines from
## Channel Notes - Stays within the 2000-character Discord message limit
Phase 3: Inline Brand Voice Check
Before presenting the draft to the user, validate it against the brand guide:
- Check the draft against the
### Do's and Don'tssection - If any "Don't" patterns are found, revise the draft to remove them
- If the draft exceeds 2000 characters, trim it while preserving key messages
- Note any adjustments made
Phase 4: User Approval
Present the final draft to the user with character count displayed. Use the AskUserQuestion tool with three options:
- Accept -- Post this content to Discord
- Edit -- Provide feedback to revise the draft (return to Phase 2 with feedback)
- Reject -- Discard the draft and exit
Phase 5: Post to Discord
On acceptance, post the content via webhook:
First get the webhook URL with printenv DISCORD_WEBHOOK_URL, then use the literal URL:
curl -s -o /dev/null -w "%{http_code}" \
-H "Content-Type: application/json" \
-d "{\"content\": \"ESCAPED_CONTENT\", \"username\": \"Sol\", \"avatar_url\": \"AVATAR_URL\"}" \
"<webhook-url>"
Replace <webhook-url> with the actual URL from printenv.
Set avatar_url to the hosted logo URL (e.g., the GitHub-hosted logo-mark-512.png). Webhook messages freeze author identity at post time -- these fields ensure consistent branding.
Content must be properly JSON-escaped before inserting into the payload. Escape double quotes, backslashes, and newlines.
Payload format: Plain content field only. No rich embeds in v1.
Phase 6: Result
On success (HTTP 2xx):
Posted to Discord successfully.
On failure (HTTP 4xx/5xx):
Failed to post to Discord (HTTP [status_code]).
Draft content (copy-paste manually):
[full draft content]
Display the draft so the user can post it manually. Do not retry automatically.
Important Guidelines
- All content requires explicit user approval before posting -- no auto-send
- The 2000-character limit is enforced during generation, not as a post-hoc check
- Content uses the plain
contentfield, not Discord rich embeds - JSON-escape all content before inserting into the webhook payload
- If the brand guide's
## Channel Notes > ### Discordsection is missing, generate content using only the## Voicesection (no error) - If the user selects "Edit", incorporate their feedback and regenerate -- do not present the same draft
- When posting via webhook, always include
usernameandavatar_urlfields to ensure consistent bot identity -- webhook messages freeze author identity at post time
Source
git clone https://github.com/jikig-ai/soleur/blob/main/plugins/soleur/skills/discord-content/SKILL.mdView on GitHub Overview
Discord Content creates brand-consistent community posts for Discord from a user-provided topic. It validates posts against the brand guide and posts via webhook only after explicit user approval, ensuring consistency and control for every announcement.
How This Skill Works
The skill reads the brand voice and any Discord-specific channel notes from the brand guide, generates a draft post for the given topic, and validates it against the Do's and Don'ts. If needed, it trims the draft to the 2000-character limit and then presents it to the user for approval. On acceptance, it posts the content via webhook using the configured DISCORD_WEBHOOK_URL.
When to Use It
- Announce project updates or milestones on Discord while preserving brand tone.
- Share tips, best practices, or how-tos that align with the brand voice.
- Post community announcements or upcoming events in a controlled, approved manner.
- Publish content on custom topics requested by the community or team.
- Provide recaps of recent activity or Git activity summarized for Discord audiences.
Quick Start
- Step 1: Confirm prerequisites (brand guide exists and DISCORD_WEBHOOK_URL is set).
- Step 2: Provide a topic for the Discord post and optionally request git activity summary.
- Step 3: Review the generated draft, then Accept to post, Edit to revise, or Reject to discard.
Best Practices
- Always verify the Brand Guide exists before generating content.
- Ensure the DISCORD_WEBHOOK_URL environment variable is configured.
- Draft content should reflect the brand voice and follow Discord guidelines in the brand notes.
- Keep posts under the 2000-character Discord limit and trim if necessary.
- Use Phase 4 user approval (Accept/Edit/Reject) to control posting.
Example Use Cases
- Example: Project update — 'v2.1 is live: milestones reached, next steps, and how to upgrade'
- Example: Quick tip — 'Pro tip for getting the most out of our new feature with a short checklist'
- Example: Milestone — 'Community hits 10k users: what this means and upcoming improvements'
- Example: Discord announcement — 'Join our AMA on Friday to chat with the team'
- Example: Custom topic — 'Behind the scenes: our dev workflow and release cadence'