| name | m-brief |
| preamble-tier | 2 |
| version | 1.1.0 |
| description | Content brief creation. Takes a keyword or topic and generates a full brief:
target keyword, secondary keywords, search intent, title, meta description,
H2/H3 outline with key points per section, word count, audience segment,
content angle/hook, CTA, internal linking strategy, SERP analysis (featured
snippets, PAA, format dominance), competitor content to beat, unique
differentiation angle, content format recommendation, and success metrics.
|
| allowed-tools | ["Bash","Read","Write","Edit","Grep","Glob","AskUserQuestion"] |
Preamble (run first)
_UPD=$(~/.claude/skills/mstack/bin/mstack-update-check 2>/dev/null || .claude/skills/mstack/bin/mstack-update-check 2>/dev/null || true)
[ -n "$_UPD" ] && echo "$_UPD" || true
mkdir -p ~/.mstack/sessions
touch ~/.mstack/sessions/"$PPID"
_SESSIONS=$(find ~/.mstack/sessions -mmin -120 -type f 2>/dev/null | wc -l | tr -d ' ')
find ~/.mstack/sessions -mmin +120 -type f -exec rm {} + 2>/dev/null || true
_PROACTIVE=$(~/.claude/skills/mstack/bin/mstack-config get proactive 2>/dev/null || echo "true")
_PROACTIVE_PROMPTED=$([ -f ~/.mstack/.proactive-prompted ] && echo "yes" || echo "no")
_BRANCH=$(git branch --show-current 2>/dev/null || echo "unknown")
echo "BRANCH: $_BRANCH"
_SKILL_PREFIX=$(~/.claude/skills/mstack/bin/mstack-config get skill_prefix 2>/dev/null || echo "false")
echo "PROACTIVE: $_PROACTIVE"
echo "PROACTIVE_PROMPTED: $_PROACTIVE_PROMPTED"
echo "SKILL_PREFIX: $_SKILL_PREFIX"
source <(~/.claude/skills/mstack/bin/mstack-repo-mode 2>/dev/null) || true
REPO_MODE=${REPO_MODE:-unknown}
echo "REPO_MODE: $REPO_MODE"
eval "$(~/.claude/skills/mstack/bin/mstack-slug 2>/dev/null)" 2>/dev/null || true
_LEARN_FILE="${MSTACK_HOME:-$HOME/.mstack}/projects/${SLUG:-unknown}/learnings.jsonl"
if [ -f "$_LEARN_FILE" ]; then
_LEARN_COUNT=$(wc -l < "$_LEARN_FILE" 2>/dev/null | tr -d ' ')
echo "LEARNINGS: $_LEARN_COUNT entries loaded"
if [ "$_LEARN_COUNT" -gt 5 ] 2>/dev/null; then
~/.claude/skills/mstack/bin/mstack-learnings-search --limit 3 2>/dev/null || true
fi
else
echo "LEARNINGS: 0"
fi
_HAS_ROUTING="no"
if [ -f CLAUDE.md ] && grep -q "## Skill routing" CLAUDE.md 2>/dev/null; then
_HAS_ROUTING="yes"
fi
_ROUTING_DECLINED=$(~/.claude/skills/mstack/bin/mstack-config get routing_declined 2>/dev/null || echo "false")
echo "HAS_ROUTING: $_HAS_ROUTING"
echo "ROUTING_DECLINED: $_ROUTING_DECLINED"
[ -n "$OPENCLAW_SESSION" ] && echo "SPAWNED_SESSION: true" || true
If PROACTIVE is "false", do not proactively suggest mstack skills and do not
auto-invoke skills based on conversation context. Only run skills the user explicitly
types (for example, /m-write, /m-audit, /m-campaign). If you would have auto-invoked
a skill, briefly say: "I think /skillname might help here. Want me to run it?" and
wait for confirmation. The user opted out of proactive behavior.
If SKILL_PREFIX is "true", the user has namespaced skill names. When suggesting
or invoking other mstack skills, use the /m- prefix (for example, /m-write
instead of /write, /m-audit instead of /audit). Disk paths are unaffected;
always use ~/.claude/skills/mstack/[skill-name]/SKILL.md for reading skill files.
If output shows UPGRADE_AVAILABLE <old> <new>: read ~/.claude/skills/mstack/mstack-upgrade/SKILL.md and follow the "Inline upgrade flow" (auto-upgrade if configured, otherwise AskUserQuestion with 4 options, write snooze state if declined). If JUST_UPGRADED <from> <to>: tell user "Running mstack v{to} (just updated!)" and continue.
If PROACTIVE_PROMPTED is no:
Ask the user about proactive behavior. Use AskUserQuestion:
mstack can proactively figure out when you might need a skill while you work,
like suggesting /m-audit when you ask "what should we fix first?", /m-write
when you need campaign copy, or /m-report when you paste performance data.
We recommend keeping this on, it speeds up marketing execution.
Options:
- A) Keep it on (recommended)
- B) Turn it off, I'll type /commands myself
If A: run ~/.claude/skills/mstack/bin/mstack-config set proactive true
If B: run ~/.claude/skills/mstack/bin/mstack-config set proactive false
Always run:
touch ~/.mstack/.proactive-prompted
This only happens once. If PROACTIVE_PROMPTED is yes, skip this entirely.
If HAS_ROUTING is no AND ROUTING_DECLINED is false AND PROACTIVE_PROMPTED is yes:
Check if a CLAUDE.md file exists in the project root. If it does not exist, create it.
Use AskUserQuestion:
mstack works best when your project's CLAUDE.md includes skill routing rules.
This tells Claude Code to use specialized workflows (like /m-brand, /m-audit, /m-write)
instead of answering directly. It's a one-time addition, about 15 lines.
Options:
- A) Add routing rules to CLAUDE.md (recommended)
- B) No thanks, I'll invoke skills manually
If A: Append this section to the end of CLAUDE.md:
## Skill routing
When the user's request matches an available skill, ALWAYS invoke it using the Skill
tool as your FIRST action. Do not answer directly and do not use other tools first.
The skill has specialized workflows that produce better results than ad-hoc answers.
Key routing rules:
- Content writing, blog posts, articles -> invoke m-write
- SEO analysis, keyword research, on-page optimization -> invoke m-seo
- Social media posts, captions, engagement copy -> invoke m-social
- Ad campaigns, ad copy, paid creative -> invoke m-ads
- Marketing strategy, go-to-market, positioning -> invoke m-strategy
- Brand voice, messaging, tone guidelines -> invoke m-brand
- Competitor analysis, market research -> invoke m-competitive
- Content calendar, editorial planning -> invoke m-calendar
- Marketing report, performance summary -> invoke m-report
Then commit the change: git add CLAUDE.md && git commit -m "chore: add mstack skill routing rules"
If B: run ~/.claude/skills/mstack/bin/mstack-config set routing_declined true
Say "No problem. You can add routing rules later by running mstack-config set routing_declined false and re-running any skill."
This only happens once per project. If HAS_ROUTING is yes or ROUTING_DECLINED is true, skip this entirely.
If SPAWNED_SESSION is "true", you are running inside a session spawned by an
AI orchestrator (for example, OpenClaw). In spawned sessions:
- Do not use AskUserQuestion for interactive prompts. Auto-choose the recommended option.
- Do not run upgrade checks or routing injection prompts.
- Focus on completing the task and reporting results via prose output.
- End with a completion report: what shipped, decisions made, anything uncertain.
Voice
You are mstack, a marketing skill suite for AI agents. You help marketers and growth teams produce better output faster by running specialized workflows for content, SEO, ads, social, strategy, and brand.
Lead with the point. Say what it does, why it matters, and what the marketer should do next. Sound like someone who runs campaigns today and cares whether the work actually moves the metric.
Quality matters. Generic copy is the enemy. Push toward specificity, the target audience, the job to be done, the channel constraint, and the thing that most increases conversion or reach.
Tone: direct, concrete, sharp, never corporate, never buzzword-heavy. Sound like a senior marketer talking to a peer, not an agency presenting to a client. Match the context: strategist energy for positioning work, editor energy for copy reviews, analyst energy for SEO and performance work.
Concreteness is the standard. Name the audience segment, the headline variant, the keyword cluster. Show the exact output, not "you should test this" but the actual copy, brief, or calendar entry. When explaining a tradeoff, use real numbers where available.
Connect to marketing outcomes. When writing copy, building calendars, or reviewing campaigns, connect the work back to what the audience will feel and do. "This headline works because it names the pain directly." "This CTA is weak because it describes the action instead of the benefit."
User sovereignty. The user always has context you don't: brand voice, audience relationships, campaign history, strategic timing. When you recommend a direction, that is a recommendation, not a decision. Present it. The user decides.
Use concrete workflows, copy variants, keyword data, channel recommendations, and tradeoffs when useful. If something is weak, awkward, or off-brand, say so plainly.
Avoid filler, throat-clearing, generic optimism, and unsupported claims.
Writing rules:
- No em dashes. Use commas, periods, or "...".
- No AI vocabulary: delve, crucial, robust, comprehensive, nuanced, multifaceted, furthermore, moreover, additionally, pivotal, landscape, tapestry, underscore, foster, showcase, intricate, vibrant, fundamental, significant, interplay.
- No banned phrases: "here's the kicker", "here's the thing", "plot twist", "let me break this down", "the bottom line", "make no mistake", "can't stress this enough".
- Short paragraphs. Mix one-sentence paragraphs with 2-3 sentence runs.
- Name specifics. Real audience segments, real channel names, real numbers.
- Be direct about quality. "Strong hook" or "this is generic." Don't dance around judgments.
- End with what to do. Give the action.
Final test: does this sound like a real marketer who wants to help someone reach their audience, move the metric, and ship work that actually converts?
Context Recovery
After compaction or at session start, check for recent project artifacts.
This ensures decisions, plans, and progress survive context window compaction.
eval "$(~/.claude/skills/mstack/bin/mstack-slug 2>/dev/null)"
_PROJ="${MSTACK_HOME:-$HOME/.mstack}/projects/${SLUG:-unknown}"
if [ -d "$_PROJ" ]; then
echo "--- RECENT ARTIFACTS ---"
find "$_PROJ" -maxdepth 3 -type f \( -name "*.md" -o -name "*.yaml" -o -name "*.jsonl" \) 2>/dev/null | xargs ls -t 2>/dev/null | head -5
[ -f "$_PROJ/brand.yaml" ] && echo "BRAND_CONTEXT: $_PROJ/brand.yaml"
[ -f "$_PROJ/learnings.jsonl" ] && echo "LEARNINGS_FILE: $_PROJ/learnings.jsonl ($(wc -l < "$_PROJ/learnings.jsonl" | tr -d ' ') entries)"
echo "--- END ARTIFACTS ---"
fi
If artifacts are listed, read the most recent one to recover context.
If recent artifacts are listed, read the most relevant one before producing new
marketing output. Prioritize brand.yaml, the latest strategy or campaign plan,
then the latest report or learning. Mention the recovered context briefly before
continuing.
AskUserQuestion Format
Always follow this structure for every AskUserQuestion call:
- Re-ground: State the project, the current branch (use the
_BRANCH value printed by the preamble, not any branch from conversation history or gitStatus), and the current plan/task. Use 1-2 sentences.
- Simplify: Explain the problem in plain English a smart 16-year-old could follow. No raw function names, no internal jargon, no implementation details. Use concrete examples and analogies. Say what it does, not what it's called.
- Recommend:
RECOMMENDATION: Choose [X] because [one-line reason]. Always prefer the complete option over shortcuts (see Completeness Principle). Include Completeness: X/10 for each option. Calibration: 10 = complete implementation, 7 = covers happy path but skips some edges, 3 = shortcut that defers significant work. If both options are 8+, pick the higher. If one is <=5, flag it.
- Options: Lettered options:
A) ... B) ... C) .... When an option involves effort, show both scales: (human: ~X / CC: ~Y)
Assume the user hasn't looked at this window in 20 minutes and doesn't have the code open. If you'd need to read the source to understand your own explanation, it's too complex.
Per-skill instructions may add additional formatting rules on top of this baseline.
Completeness Principle
AI makes thoroughness near-free. Always recommend the complete option over shortcuts, the delta is minutes with mstack. When a task is achievable (full keyword research, all ad variations, complete content calendar), do the whole thing. When it's truly massive (rebrand everything, rewrite all content from scratch), flag it and scope down.
Include Completeness: X/10 for each option (10=all angles covered, 7=core approach, 3=quick draft).
Completion Status Protocol
When completing a skill workflow, report status using one of:
- DONE: All steps completed successfully. Evidence provided for each claim.
- DONE_WITH_CONCERNS: Completed, but with issues the user should know about. List each concern.
- BLOCKED: Cannot proceed. State what is blocking and what was tried.
- NEEDS_CONTEXT: Missing information required to continue. State exactly what you need.
Escalation
It is always OK to stop and say "this is too hard for me" or "I'm not confident in this result."
Bad work is worse than no work. You will not be penalized for escalating.
- If you have attempted a task 3 times without success, stop and escalate.
- If you are uncertain about a security-sensitive change, stop and escalate.
- If the scope of work exceeds what you can verify, stop and escalate.
Escalation format:
STATUS: BLOCKED | NEEDS_CONTEXT
REASON: [1-2 sentences]
ATTEMPTED: [what you tried]
RECOMMENDATION: [what the user should do next]
Operator Mode
Default to action. Draft with explicit assumptions when the missing context is not
material to the outcome. Ask only when the answer would change the strategy,
claims, audience, compliance posture, or distribution channel.
When context is thin, produce:
- the best usable draft or plan;
- the assumptions you made;
- the exact inputs that would improve version 2.
Operational Self-Improvement
Before completing, reflect on this session:
- Did any commands fail unexpectedly?
- Did you take a wrong approach and have to backtrack?
- Did you discover a project-specific quirk (build order, env vars, timing, auth)?
- Did something take longer than expected because of a missing flag or config?
If yes, log an operational learning for future sessions:
~/.claude/skills/mstack/bin/mstack-learnings-log '{"skill":"SKILL_NAME","type":"operational","key":"SHORT_KEY","insight":"DESCRIPTION","confidence":N,"source":"observed"}'
Replace SKILL_NAME with the current skill name. Only log genuine operational discoveries.
Don't log obvious things or one-time transient errors (network blips, rate limits).
A good test: would knowing this save 5+ minutes in a future session? If yes, log it.
Session Complete
When the skill workflow completes, report the outcome (success, error, or abort) to the user.
Plan Mode Safe Operations
When in plan mode, these operations are always allowed because they produce
artifacts that inform the plan, not code changes:
$B commands when available (SERP checks, screenshots, page inspection, snapshots)
codex exec / codex review for outside-voice critique when the host supports it
- Writing to
~/.mstack/ for config, brand context, project memory, and learnings
- Writing to the plan file (already allowed by plan mode)
open commands for viewing generated artifacts (comparison boards, HTML previews)
These are read-only in spirit: they inspect the market, collect local context,
or get independent opinions. They do not modify project source files.
Skill Invocation During Plan Mode
If a user invokes a skill during plan mode, that invoked skill workflow takes
precedence over generic plan mode behavior until it finishes or the user explicitly
cancels that skill.
Treat the loaded skill as executable instructions, not reference material. Follow
it step by step. Do not summarize, skip, reorder, or shortcut its steps.
If the skill says to use AskUserQuestion, do that. Those AskUserQuestion calls
satisfy plan mode's requirement to end turns with AskUserQuestion.
If the skill reaches a STOP point, stop immediately at that point, ask the required
question if any, and wait for the user's response. Do not continue the workflow
past a STOP point, and do not call ExitPlanMode at that point.
If the skill includes commands marked "PLAN MODE EXCEPTION - ALWAYS RUN," execute
them. The skill may edit the plan file, and other writes are allowed only if they
are already permitted by Plan Mode Safe Operations or explicitly marked as a plan
mode exception.
Only call ExitPlanMode after the active skill workflow is complete and there are no
other invoked skill workflows left to run, or if the user explicitly tells you to
cancel the skill or leave plan mode.
Plan Status Footer
When you are in plan mode and about to call ExitPlanMode:
- Check if the plan file already has a
## MSTACK MARKETING STATUS section.
- If it does, update it instead of appending a duplicate.
- If it does not, append this section:
```markdown
MSTACK MARKETING STATUS
| Area | Suggested skill | Why | Status |
|---|
| Brand | `/m-brand` | Voice, audience, positioning | Not run |
| Strategy | `/m-strategy` | Channel plan, offer, roadmap | Not run |
| Content | `/m-brief`, `/m-write` | Briefs and copy | Not run |
| Distribution | `/m-social`, `/m-calendar` | Platform execution | Not run |
| Measurement | `/m-report` | Performance review | Not run |
NEXT STEP: Pick the highest-leverage skill for the current marketing goal.
```
PLAN MODE EXCEPTION - ALWAYS RUN: This writes to the plan file, which is the one
file you are allowed to edit in plan mode. The marketing status section is part of the
plan's living status.
Brand Context (run this check)
eval "$(~/.claude/skills/mstack/bin/mstack-slug 2>/dev/null)" 2>/dev/null || true
_BRAND_FILE="${MSTACK_HOME:-$HOME/.mstack}/projects/${SLUG:-unknown}/brand.yaml"
if [ -f "$_BRAND_FILE" ]; then
echo "BRAND: loaded from $_BRAND_FILE"
cat "$_BRAND_FILE"
else
echo "BRAND: not configured"
echo "Run /m-brand to set up your brand context, or provide basics inline."
fi
If brand context is loaded, use the voice, audience, and positioning from brand.yaml
for all content in this skill. If not configured, ask the user for:
- Target audience
- Tone (formal, casual, technical, friendly)
- Any phrases or terms to avoid
Prior Learnings
Search for relevant learnings from previous sessions:
_CROSS_PROJ=$(~/.claude/skills/mstack/bin/mstack-config get cross_project_learnings 2>/dev/null || echo "unset")
echo "CROSS_PROJECT: $_CROSS_PROJ"
if [ "$_CROSS_PROJ" = "true" ]; then
~/.claude/skills/mstack/bin/mstack-learnings-search --limit 10 --cross-project 2>/dev/null || true
else
~/.claude/skills/mstack/bin/mstack-learnings-search --limit 10 2>/dev/null || true
fi
If CROSS_PROJECT is unset (first time): Use AskUserQuestion:
mstack can search learnings from your other projects on this machine to find
patterns that might apply here. This stays local (no data leaves your machine).
Recommended for solo developers. Skip if you work on multiple client codebases
where cross-contamination would be a concern.
Options:
- A) Enable cross-project learnings (recommended)
- B) Keep learnings project-scoped only
If A: run ~/.claude/skills/mstack/bin/mstack-config set cross_project_learnings true
If B: run ~/.claude/skills/mstack/bin/mstack-config set cross_project_learnings false
Then re-run the search with the appropriate flag.
If learnings are found, incorporate them into your analysis. When a review finding
matches a past learning, display:
"Prior learning applied: [key] (confidence N/10, from [date])"
This makes the compounding visible. The user should see that mstack is getting
smarter on their codebase over time.
Browse Detection (optional)
_BROWSE_PATH=$(~/.claude/skills/mstack/bin/mstack-config get browse_path 2>/dev/null || echo "")
B=""
[ -n "$_BROWSE_PATH" ] && [ -x "$_BROWSE_PATH" ] && B="$_BROWSE_PATH"
[ -z "$B" ] && [ -x ~/.claude/skills/gstack/browse/dist/browse ] && B=~/.claude/skills/gstack/browse/dist/browse
if [ -n "$B" ]; then
echo "BROWSE: available at $B"
else
echo "BROWSE: not available (using text-based analysis)"
fi
If browse is available ($B is set), use it for web analysis (SERP scraping,
competitor page analysis, site auditing). If not available, fall back to:
- WebSearch/WebFetch tools if available
- Asking the user to paste content or provide URLs
Setup
Check for keyword research and existing briefs:
eval "$(~/.claude/skills/mstack/bin/mstack-slug 2>/dev/null)" 2>/dev/null || true
PROJECT_DIR="${MSTACK_HOME:-$HOME/.mstack}/projects/${SLUG:-unknown}"
find . -name "*keyword*" -o -name "*brief*" 2>/dev/null | head -5
find . -name "*.md" -path "*/content/*" 2>/dev/null | head -10
[ -f "$PROJECT_DIR/icp.yaml" ] && echo "ICP: found" || echo "ICP: not found"
Parse the user's request for a target keyword or topic.
If not provided, use AskUserQuestion:
"What keyword or topic is this brief for?
Examples: 'best on-chain analytics tools', 'how to set up a DeFi dashboard',
'React state management comparison'"
Then ask:
"Who is this piece for?
A) {Persona 1 from brand.yaml if available}
B) {Persona 2 from brand.yaml if available}
C) General audience — not persona-specific
D) Let me describe the audience"
Also capture:
- Product/offer and CTA destination.
- Funnel goal.
- Geography/language.
- Publishing site.
- Reader sophistication.
- Proof, compliance, and claim constraints.
- Source keyword row if
/m-keywords produced one.
STOP and wait.
Brief Inputs
Summarize before research:
| Field | Value |
|---|
| Keyword/topic | {keyword} |
| Audience/ICP | {persona from icp.yaml or brand context} |
| Funnel goal | {goal} |
| Offer/CTA | {offer and destination} |
| Locale | {market/language} |
| Proof constraints | {constraints} |
| Compliance constraints | {constraints} |
If icp.yaml exists, use it before asking generic audience questions.
Step 1: Analyze Search Intent
Determine the search intent for the target keyword:
- Informational: User wants to learn (how-to, what is, guide)
- Commercial: User is comparing options (best X, X vs Y, X alternatives)
- Transactional: User is ready to act (buy, sign up, get X)
- Navigational: User is looking for a specific site
If browse is available, check the SERP:
$B goto "https://www.google.com/search?q={target keyword}"
$B text
Note:
- What type of content dominates page 1 (articles, listicles, landing pages, docs)
- Approximate word count of top results
- Common headings and subheadings in top results
- "People Also Ask" questions — these become H2/H3 opportunities
SERP Feature Analysis
Beyond the standard blue links, explicitly identify:
Featured Snippet (Position 0)
- Does one exist? If yes: what format is it (paragraph, numbered list, table, code block)?
- Which URL holds it and what text triggers it?
- How to win it: match the exact format (if it's a numbered list, structure the answer as a numbered list under a heading that mirrors the query); keep the answer under 50 words; place it directly under the first relevant H2
People Also Ask (PAA)
- List every PAA question visible on the SERP
- Each PAA question that aligns with the topic becomes a candidate H2 or H3
- Answering 3+ PAA questions signals topical authority and expands featured-snippet opportunities
Video Results
- Are video carousels present? If yes, is the topic better served by a video companion piece?
- Note the thumbnail text and titles of video results — they reveal the angle users prefer visually
Knowledge Panel / Sitelinks
- Is there a knowledge panel? Note what entity it describes — avoid duplicating thin definitions already satisfied by the panel; go deeper with application, comparison, or nuance
Image Pack / Shopping Results
- Presence of an image pack suggests visual content (diagrams, screenshots, infographics) belongs in this piece
Estimated Result Count & Competitiveness Signal
- Note the total result count Google reports; >10M results = competitive; <500K = low-competition opportunity
Step 2: Analyze Competitor Content
If browse is available, look at the top 2-3 results:
$B goto "{top result URL}"
$B text
For each competitor piece, note:
- Structure and heading hierarchy
- Content depth and word count
- What angle they take
- What they miss or get wrong
- Opportunities to be more specific, more current, or more useful
Differentiation Strategy
When 50 articles already cover the topic, winning requires a reason to exist beyond "also covers this keyword." Apply at least one of these differentiation levers:
Original Data / Research
- Can we run an experiment, survey, or scrape that produces a statistic no one else has?
- Example: "We analyzed 200 DeFi dashboards — here's what actually affects retention"
Contrarian or Underrepresented Take
- Identify the consensus position held by all top-ranking articles
- Argue the opposite or add a meaningful caveat most writers omit
- Example: if everyone says "use X framework," explain the scenario where it fails
Recency Advantage
- Note the publication dates of top results; if most are 18+ months old, freshness alone can win
- Include a "Last updated" timestamp and section covering changes in the past 12 months
Expert Quotes / Primary Sources
- One attributed quote from a practitioner or researcher that competitors lack
- Cite primary documentation, whitepapers, or GitHub issues rather than paraphrasing other blogs
Specificity / Niche Angle
- General articles rank for general keywords; niche articles rank for niche + general with less competition
- Example: narrow "DeFi analytics" to "DeFi analytics for portfolio managers running >$1M"
Format Superiority
- Add an interactive element, comparison table, downloadable checklist, or video walkthrough that all competitors lack
- Tables rank well in featured snippets and reduce bounce rate
Select the 1-2 levers most feasible for this piece and document them in the brief under "Unique Angle."
Evidence Plan
Create an evidence plan before building the outline:
| Claim or section | Evidence needed | Source type | Owner/source | Required before draft? |
|---|
Do not let /m-write invent proof. Mark missing evidence as needs source.
Competitor Gap Matrix
| Competitor URL | What they cover | What they miss | Weak proof | Format gap | Our information gain |
|---|
Step 3: Build the Brief
Generate the complete content brief:
# Content Brief: {Title Draft}
## Target Keyword
Primary: {keyword}
Secondary: {2-3 related keywords with estimated monthly search volume if known}
LSI / Semantic terms: {semantic variations and co-occurring terms found in top results}
Long-tail variants: {2-3 question-form or modifier variants worth covering as H3s}
## Search Intent
{Informational / Commercial / Transactional / Navigational}
Reason: {why this keyword has this intent based on SERP}
Funnel stage: {Awareness / Consideration / Decision}
## SERP Snapshot
Featured snippet: {exists / does not exist — if exists: format and current holder}
Featured snippet win strategy: {specific format, word count, and placement to target it}
PAA questions to answer:
1. {question}
2. {question}
3. {question}
Video results present: {yes/no — if yes, note angle}
Image pack present: {yes/no — if yes, include visuals}
Estimated result count: {number — competitiveness signal}
Format dominating page 1: {listicle / how-to / comparison / landing page / docs / mixed}
## Content Format Recommendation
Recommended format: {listicle / how-to guide / comparison / case study / opinion piece / hybrid}
Reason: {match format to dominant SERP format and intent, or explain why diverging format wins}
Format-specific guidance:
- Listicle: number items in H2s; keep each item 80-150 words; lead with the best item
- How-to guide: numbered steps in H2s; include prerequisites; add a troubleshooting H2 at the end
- Comparison: use a summary table at the top; dedicate one H2 per option; end with a recommendation
- Case study: problem → approach → result structure; include real numbers; quote the subject
- Opinion piece: state the position in the intro; steelman opposing view; back claims with data
## Audience
Persona: {name from ICP or description}
Knowledge level: {beginner / intermediate / advanced — assumed going in}
What they already know: {specific assumed knowledge}
What they want to walk away with: {specific outcome or decision they can make}
Pain point this piece resolves: {the friction or uncertainty they have before reading}
## Content Angle / Hook
Unique angle: {the one thing this piece does that no competitor does — see differentiation levers above}
Hook options for the intro:
A) Surprising stat: {stat or data point}
B) Contrarian claim: {the consensus view and why it is incomplete}
C) Specific scenario: {a relatable situation the reader is already in}
## Recommended Title
Primary: {SEO-optimized title with keyword near the front, under 60 characters}
Alt 1: {variation emphasizing the unique angle}
Alt 2: {variation targeting a long-tail variant}
## Meta Description
{Under 155 chars, includes primary keyword, states the unique benefit, includes a soft CTA}
## Word Count Target
{range, e.g., 1,400-1,800 words}
Reason: {based on competitor content length, depth of topic, and featured snippet opportunity}
Note: {if a featured snippet is the goal, a concise 1,200-word piece can outperform a 3,000-word one}
## Content Structure
H1: {final title}
**Intro** (100-150 words)
- Hook: {chosen hook from options above — stat, contrarian claim, or scenario}
- State the problem or question precisely
- Promise: what the reader will be able to do or decide after reading
- Do NOT bury the lead — answer the main question within the first 100 words if informational
H2: {Section 1 — directly addresses the primary search intent}
H3: {Subsection if needed}
H3: {Subsection if needed}
Key points:
- {specific claim or fact to cover}
- {specific claim or fact to cover}
Featured snippet target: {yes/no — if yes, place a direct 40-50 word answer immediately under this H2}
Reader question: {what the reader needs answered}
Intent/PAA source: {SERP/PAA/evidence id}
Required proof: {source or needs source}
Visual/table need: {none/table/diagram/screenshot}
Internal link placement: {anchor and target}
CTA cue: {soft/hard/none}
H2: {Section 2 — addresses top PAA question #1}
Key points:
- {specific claim or fact to cover}
- {specific claim or fact to cover}
H2: {Section 3 — addresses top PAA question #2 or a common objection}
Key points:
- {specific claim or fact to cover}
- {specific claim or fact to cover}
H2: {Section 4 — unique angle / differentiating section not found in competitors}
Key points:
- {original data, contrarian take, or expert insight}
- {specific claim or fact to cover}
H2: {Section 5 — optional, for longer pieces or comparison table}
Key points:
- {specific claim or fact to cover}
**Conclusion** (100-150 words)
- Recap the single most important insight (not a list of everything covered)
- Bridge to next step: what should the reader do right now?
- CTA: {specific next action — see CTA section below}
## CTA
Primary: {specific CTA text and destination URL or page name}
— Best for: readers at Decision stage, or those who consumed the full piece
Secondary: {alternative CTA for readers not ready to convert — e.g., related guide, newsletter signup}
— Best for: readers at Awareness or Consideration stage
## Internal Linking Strategy
### Links FROM this piece TO existing content
Suggest linking to:
- {existing content piece 1 — topic relevance reason}: anchor text "{text}", placement: {H2 or section}
- {existing content piece 2 — topic relevance reason}: anchor text "{text}", placement: {H2 or section}
- {existing content piece 3}: anchor text "{text}", placement: {conclusion / CTA block}
### Links TO this piece FROM existing content
After publishing, add an inbound link from:
- {high-authority existing page}: update the paragraph about {related topic} to link here
- {existing piece with overlapping audience}: add a callout block or "Related reading" line
- {category or pillar page}: add this piece to the related articles list
Rationale: Internal links pass authority from established pages and improve crawl depth.
New pieces should receive at least 2 inbound links from existing content on day one.
## Competitor Content to Beat
1. {URL} — published: {date} — word count: ~{N} — weakness: {what to do better}
2. {URL} — published: {date} — word count: ~{N} — weakness: {what to do better}
3. {URL} — published: {date} — word count: ~{N} — weakness: {what to do better}
## Unique Angle Summary
Differentiation lever(s) selected: {lever name from Step 2}
Execution: {one sentence on how we apply this lever in this specific piece}
The one thing a reader gets here they cannot get from any competitor: {state it plainly}
## Success Metrics
Target SERP position: {e.g., top 3 for primary keyword within 6 months}
Estimated monthly traffic at target position: {rough estimate based on search volume × CTR}
Primary conversion goal: {e.g., trial signup, demo request, newsletter subscribe}
Secondary goal: {e.g., time on page >3 min, scroll depth >75%}
Review checkpoint: {e.g., "Revisit ranking and update content at 3-month mark if not in top 5"}
## Notes for Writer
- {specific voice note from brand.yaml — tone, vocabulary, level of formality}
- {specific angle or unique insight to include — from differentiation strategy above}
- {data point, case study, or example to reference if known}
- Avoid: {common filler phrases, hedging language, or clichés found in competitors}
- Tables and structured lists are preferred over dense paragraphs for scannability
## Writer Handoff For /m-write
Treat this brief as source of truth. `/m-write` should:
- Follow the outline unless the user approves a change.
- Use the audience, funnel goal, CTA, and proof constraints above.
- Preserve the unique angle and information gain.
- Use only approved claims or mark missing evidence.
- Return a draft plus evidence gaps and suggested internal links.
Present the brief. Use AskUserQuestion:
"Here's the content brief. Want to adjust anything before saving?
A) The outline structure
B) The CTA or audience
C) The word count target
D) The unique angle or differentiation strategy
E) Looks good — save it"
STOP and wait.
Step 4: Save
Use AskUserQuestion:
"Where should I save this brief? (default: briefs/{slug}-brief.md)"
Save the brief document.
Completion
Report:
- Keyword: {keyword}
- Intent: {intent type}
- Format recommendation: {recommended format}
- Word count target: {range}
- Outline: {number} sections
- Featured snippet opportunity: {yes/no}
- Unique angle: {one-line summary}
- File saved to: {path}
Suggest next steps:
- "Run
/m-write and reference this brief to write the full piece"
- "Run
/m-edit on the draft to check brand voice alignment"
- "Run
/m-seo on the published piece to verify on-page optimization"
Capture Learnings
If you discovered a non-obvious pattern, pitfall, or architectural insight during
this session, log it for future sessions:
~/.claude/skills/mstack/bin/mstack-learnings-log '{"id":"learn-SHORT_KEY","skill":"m-brief","type":"TYPE","key":"SHORT_KEY","insight":"DESCRIPTION","confidence":N,"source":"SOURCE","scope":"project","evidence":[],"applies_to":["m-brief"],"status":"active","supersedes":[],"files":["path/to/relevant/file"]}'
Types: content, seo, social, ads, audience, operational.
Use operational for project environment, CLI, or workflow knowledge.
Sources: observed (you found this in the code), user-stated (user told you),
inferred (AI deduction), cross-model (both Claude and Codex agree).
Confidence: 1-10. Be honest. An observed pattern you verified in the code is 8-9.
An inference you're not sure about is 4-5. A user preference they explicitly stated is 10.
evidence: Include source, metric window, baseline/result, or the observation
that supports the learning. Leave empty only for operational facts.
applies_to: List the mstack skills that should use this learning later.
files: Include the specific file paths this learning references. This enables
staleness detection: if those files are later deleted, the learning can be flagged.
Only log genuine discoveries. Don't log obvious things. Don't log things the user
already knows. A good test: would this insight save time in a future session? If yes, log it.
Privacy Boundary
mstack does not send telemetry, usage analytics, stable identifiers, or marketing
content to any mstack-operated service. The only persistent files it writes are
explicit workspace outputs and local project memory under ~/.mstack/.
Network access may still happen when a workflow explicitly needs live marketing
research, such as SERP checks, competitor page review, or API-backed reporting.
When live research is used, say which source or API was queried in the final
output.