/aos:aos-build-brand-systemfrom aos
Orchestrate the 9-file Client Intelligence Profile end-to-end. Harvests scattered intelligence from a client's directory, drafts each missing brand/ file with citations, confirms each draft with the user, and hard-gates on 9/9 complete before downstream content/strategy work runs.
Ships in aos. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill's data lives in the granted folder — the folder Cowork was given access to, which is one client's folder (no per-client nesting). The granted-folder root is the working directory. Resolve zones (client/, inbox/, brand/, …) per docs/data-access-router.md and the AOS_CONFIG.md manifest at the granted-folder root. Never hard-code paths beyond the documented zone layout. Client identity is read from client/CLIENT_CONFIG.md and the client field of AOS_CONFIG.md — it is never a directory level.
Resolve communication-language and content-language from AOS_CONFIG.md during context assembly (per docs/language-context.md) — never hard-code a language. Talk to the user in communication-language; write client-facing artifacts in content-language.
Most clients have a brand/ directory scaffolded with 9 standard files — and 5+ of them are empty stubs while the actual intelligence sits scattered in strategic plans, session logs, OKR docs, belief-profile working files in the inbox/. This skill consolidates the scatter into the standard.
It is an orchestrator, not a thinker. The thinking belongs to the sub-skills (aos-diagnose-7layer, aos-build-belief-profile, aos-build-brand, aos-build-offer, aos-analyze-gtm). This skill's job is:
Anti-goal: This skill does NOT replace the sub-skills. If a file is missing rich diagnostic work (e.g., no 7-layer has ever been run), the orchestrator routes the user to run that sub-skill first rather than fake the output.
Discovery, not pronouncement. Every draft is presented with sources and the question "what did we get wrong? what's missing?" before write — present findings as drafts for the user to correct, never as verdicts.
This skill operates on the granted folder — which is the client's folder. There is no client-slug argument: the granted-folder root is the working directory and client identity is read from client/CLIENT_CONFIG.md / AOS_CONFIG.md.
AOS_CONFIG.md for the zone manifest and client identity.client/CLIENT_CONFIG.md exists. If not, the folder hasn't been onboarded — suggest running aos-onboard.brand/ zone exists. If not, abort with a clear message (run aos-onboard to scaffold the layout).brand/ files listed in Step 3.1 — confirm none have been added/removed since this skill was written.Baseline (bash + filesystem — the contract). For each of the 9 brand/ files, stat its byte size and count its H2/H3 headings, then classify it with the substance thresholds below. Plain ls -l brand/ + grep -c '^#\{2,3\} ' brand/<file> is sufficient — no Node required.
Optional accelerator. node scripts/survey.mjs does the same survey in one call and prints the table below; --prep adds the source-doc inventory and harvest-richness preview. Use it if Node is available; otherwise do the survey by hand — the result is identical.
Either way the survey produces:
Brand intelligence profile
┌─────────────────────────┬────────┬─────────┐
│ File │ Bytes │ Status │
├─────────────────────────┼────────┼─────────┤
│ 7LAYER_DIAGNOSTIC.md │ 11238 │ FILLED │
│ BELIEF_PROFILE.md │ 53449 │ FILLED │
│ CONSTRAINT_MAP.md │ 73 │ STUB │
│ OFFER.md │ 68 │ STUB │
│ ICP.md │ 62 │ STUB │
│ POSITIONING.md │ 70 │ STUB │
│ REPAIR_ROADMAP.md │ 73 │ STUB │
│ VOICE.md │ 64 │ STUB │
│ COMPETITIVE_LANDSCAPE │ --- │ MISSING │
└─────────────────────────┴────────┴─────────┘
Completeness: 2/9 (22%)
Substance thresholds (per reference/file-substance-criteria.md):
status: stub-no-source — explicit stub written when harvest had zero matches for that bucket (see Step 3.1)For each of the 9 target files, estimate the harvest richness before drafting. This determines the recommended execution mode and the website-scrape decision.
Inventory two things in parallel:
ls the inbox/ zone and its typed subfolders (strategy/, transcripts/, correspondence/, research/, brand-material/) by file size. Documents >2KB are candidate sources. Count how many fall into each bucket (use the keyword patterns in reference/harvest-patterns.md).depends_on: upstream files are FILLED (from Step 1).Score each STUB/MISSING file:
| Signal | Points |
|---|---|
| 3+ candidate source documents matching the bucket | +3 |
| 1-2 candidate source documents | +1 |
All depends_on: upstream files are FILLED | +2 |
| File is website-REQUIRED (VOICE, COMPETITIVE_LANDSCAPE) and web harvest is skipped | -3 |
File has a pre-existing user-written reference file in client root (e.g., kocsibeallo-belief-profile.md) | +2 |
Confidence levels:
/7layer, /belief-profile, etc.) — don't fake-draftSurface the score table to the user before mode selection. Example:
Harvest-richness preview — deluxe
File Sources Deps Website Score Confidence
─────────────────────────────────────────────────────────────────────
CONSTRAINT_MAP.md 3+ ✓ opt 5 HIGH
REPAIR_ROADMAP.md 3+ ✓ opt 5 HIGH
ICP.md 3+ ✓ pref 5 HIGH
POSITIONING.md 2 ✓ STRONG 3 MEDIUM ← scrape recommended
VOICE.md 2 ✓ REQ 0 LOW ← scrape REQUIRED or waiver
COMPETITIVE_LANDSCAPE.md 2 — REQ -1 LOW ← scrape REQUIRED or waiver
Recommended: stepwise for VOICE + COMPETITIVE_LANDSCAPE (or scrape first).
batch for CONSTRAINT_MAP + REPAIR_ROADMAP + ICP.
The harvest has two passes. Both feed the same per-bucket index.
2a — Local file harvest. Recursively scan the inbox/ zone (inbox/**/*.md, excluding inbox/_processed/) for intelligence — plus any markdown elsewhere in the granted folder outside the brand/ zone. Use the keyword patterns in reference/harvest-patterns.md to classify each found paragraph into one of the 8 buckets.
2b — Website harvest. The client's live website is often the highest-signal source for voice, positioning, and ICP — local files describe the brand; the website is the brand.
Discovery tiers — start cheap, escalate only when needed:
WebFetch (default). Fetch the client's key pages directly (homepage, about, services, a few posts) → markdown. No connector, no cost. Sufficient for single-client brand discovery — the signal lives in ~8–12 key pages, not a full crawl. URL discovery at Tier 0: WebFetch the homepage + /sitemap.xml, extract candidate links, score with the path-priority table in reference/harvest-patterns.md. On Claude Cowork, WebFetch is provenance-gated — read the box below before relying on Tier 0.Claude in Chrome. Escalate to the browser connector when WebFetch returns thin content (heavy JS rendering).map crawls, large competitor sweeps, or anti-bot-heavy domains. Requires the Firecrawl MCP connector (per-client, paid) added to allowed-tools + .mcp.json. Not bundled by default.⚠ Cowork — the WebFetch provenance gate. On the Claude Cowork runtime, WebFetch only retrieves URLs that appeared in a user message (or in a prior WebFetch result). A URL the skill read from client/CLIENT_CONFIG.md / client/DOMAIN_CHANNEL_MAP.yaml, or that the user picked from an options list, is not in the provenance set — WebFetch refuses it with "URL not in provenance set." This is a Cowork runtime rule, not a harvest failure. So at Tier 0, before any config-derived fetch:
client/CLIENT_CONFIG.md / client/DOMAIN_CHANNEL_MAP.yaml) and ask the user to paste them back. The provenance window may be only the immediately-prior user message — so WebFetch the pasted URLs in the very next step, before doing anything else. If other turns have intervened since the paste, treat the URL as possibly aged out of the provenance set and re-ask rather than assume it is still fetchable. A URL only the skill mentioned (in its own prior response) is never provenance-eligible.WebFetch-ed normally without a second paste.Outside Cowork (terminal / Claude Code) WebFetch has no provenance restriction and Tier 0 fetches config URLs directly. When in doubt, do the paste step — it is harmless off-Cowork and mandatory on it.
The scrape plan below applies at any tier — the firecrawl_map / firecrawl_scrape calls named in it are the Tier-2 form; at Tier 0 substitute WebFetch.
Website-required gate (per reference/file-substance-criteria.md "Website source preference" field):
VOICE.md, COMPETITIVE_LANDSCAPE.md. If website harvest hasn't run for these (no cached scrape, Firecrawl unavailable, or --skip-website flag), the orchestrator MUST prompt the user before drafting:
WebFetch by default; on Cowork, first ask the user to paste the site URL(s) into chat — see the provenance-gate box above)sources_consulted: frontmatter as website-harvest: waived ({reason})POSITIONING.md, ICP.md. Recommend scrape, but skip with single user confirmation rather than enforced waiver.The --skip-website flag is a global waiver for the entire run. Logged once at the start, applies to all REQUIRED files. Use only when website harvest is genuinely infeasible (no auth, broken DNS, etc.).
URLs to scrape come from (in priority order):
client/CLIENT_CONFIG.md — primary domainclient/DOMAIN_CHANNEL_MAP.yaml — all domains owned by the client (multi-domain clients have several)Per-domain scrape plan:
WebFetch /sitemap.xml or extract links from the homepage; Tier 2: mcp__firecrawl__firecrawl_map (limit ≤30 to control cost)/, /about*, /rolunk, /who-we-are, /team, /services*, /szolgaltatasok, /products*, /termekek, /case-stud*, /esettanulmany*, /testimonial*, /velemenyek, /blog*, /hirek*, /manifesto, /kuldetes. Skip: /contact*, /legal*, /privacy*, /cookie*, /sitemap*, /login*, /admin*, anything with ?utm_, file-extension .pdf|.jpg|.png|.zip.WebFetch each (markdown); Tier 2: mcp__firecrawl__firecrawl_scrape (markdown, main content only).aos/cache/website-harvest/<domain>/<slugified-path>.md (the .aos/ runtime zone, rebuildable) with frontmatter recording scraped_at, url, status_code. Subsequent runs reuse the cache if newer than 14 days.reference/harvest-patterns.md "Website harvest patterns"). Example: H1 + H2 of homepage count as strong POSITIONING signal; testimonial sections count as strong ICP signal.Failure modes for website harvest (do not crash the orchestrator):
WebFetch refuses with "URL not in provenance set" (Cowork provenance gate) → not a harvest failure. Ask the user to paste the site URL into chat, then retry the fetch. Only if they decline does this fall through to local-only harvest. See the provenance-gate box in Step 2b.client/CLIENT_CONFIG.md.client/CLIENT_CONFIG.md primary_language field if present; otherwise ask).2c — Output: harvest index. Combined index keyed by intelligence file, with source-type labels:
Harvest index
ICP signals (18 matches — 12 local, 6 website):
[LOCAL] 2026-05-03_kocsibeallo-master-plan.md:L42 — "Premium garage segment, age 35-55..."
[LOCAL] DELUXE_STRATEGIC_PLAN_Q1_Q2_2026.md:L88 — "Two distinct customer types..."
[WEBSITE] kocsibeallo.hu/rolunk — testimonial section: "Mi 20 éve építjük..."
[WEBSITE] kocsibeallo.hu/galeria — repeated customer profile language
...
VOICE signals (11 matches — 4 local, 7 website):
[WEBSITE] kocsibeallo.hu/ — homepage H1 + subhead (strongest voice sample)
[WEBSITE] kocsibeallo.hu/szolgaltatasok — service descriptions
[LOCAL] 2026-05-08_PETER_VALASZ_STRATEGIAI_KERDESEKRE.md:L23 — peer-email voice sample
[LOCAL] SESSION_LOG_2026_01_20.md:L102 — Péter spoken pattern
...
POSITIONING signals (14 matches — 8 local, 6 website):
[WEBSITE] kocsibeallo.hu/ — "Magyarország prémium kocsibeálló-építője"
[LOCAL] DELUXE_STRATEGIC_PLAN_Q1_Q2_2026.md:L120 — "Premium vs Standard pole..."
...
COMPETITIVE_LANDSCAPE signals (5 matches — 2 local, 3 competitor-website):
[WEBSITE] <competitor-a>.hu/ (scraped from positioning doc reference)
...
Surface this to the user — they should see what already exists before any drafting. The user can drop URLs that look low-signal or add URLs auto-discovery missed.
Step 3.0 — Mode selection. Based on --mode argument:
auto (default) — use Step 1.5 scoring to split files into HIGH-confidence (batch) and MEDIUM/LOW-confidence (stepwise). Present the split to the user; they can override before execution.stepwise — every STUB/MISSING file gets accept/revise/regenerate individually (original v0.1 behavior). Best for thin-material clients or first engagements.batch — draft all needing files in one pass, present at end as a batch for collective accept/revise. Refuses if ANY file scored LOW in Step 1.5 (forces user to either scrape or explicitly waive).Surface the chosen mode to the user before drafting begins. Mode auto-recommendations should err toward stepwise on borderline cases — batch is the optimization, not the default.
Step 3.1 — Per-file procedure. Process STUB/PARTIAL/MISSING files in dependency order. Skip files marked FILLED. The profile always keeps its full 9-file shape: every slot ends FILLED or as an honest stub-with-reason — never silently skipped.
Order (do not change without updating downstream skills):
7LAYER_DIAGNOSTIC.md — foundation; everything else depends on layer findingsCONSTRAINT_MAP.md — derives from 7-layerREPAIR_ROADMAP.md — derives from constraintsBELIEF_PROFILE.md — independent but feeds VOICE + OFFERICP.md — independent but feeds POSITIONING + VOICE + OFFERPOSITIONING.md — depends on ICP + 7-layerOFFER.md — depends on ICP + POSITIONING + BELIEF_PROFILEVOICE.md — depends on BELIEF_PROFILE + ICPCOMPETITIVE_LANDSCAPE.md — depends on POSITIONINGPer-file procedure — four paths (pick one per file):
Classify harvest signal for this file's bucket in the Step 2c harvest index. Read reference/file-substance-criteria.md for minimum-substance criteria and the per-file unblock action.
/7layer before this orchestrator can draft 7LAYER_DIAGNOSTIC.md."). Do not draft. Continue to the next file; track as blocked in the scorecard.blocked-on-website-harvest.No-source stub. Write brand/<FILE>.md immediately (no Accept/Revise/Regenerate — nothing was drafted). Frontmatter:
---
scope: int-confidential
client: <slug>
generated_by: aos-build-brand-system
skill_version: <this skill's version: frontmatter value>
generated_date: YYYY-MM-DD
aos_schema: <schema-version read from AOS_CONFIG.md>
status: stub-no-source
---
Body (one short block, plain language):
No source material — this file cannot be drafted from the current harvest. To fill it: <specific unblock from
reference/file-substance-criteria.mdfor this file>.
Surface a one-line note to the user, then write. Re-survey shows NO-SOURCE (per reference/file-substance-criteria.md).
Draft. Synthesize a draft from harvested material, using reference/file-templates/<FILE>.md as the skeleton. Every claim cites its source file:line.
Surface to user (stepwise mode) or defer to end of batch (batch mode). When surfacing, show three options:
brand/<FILE>.mdWrite. Only on Accept (or post-Revise). The file gets a frontmatter block:
---
scope: int-confidential
client: <slug>
generated_by: aos-build-brand-system # provenance block — see docs/artifact-versioning.md
skill_version: <this skill's version: frontmatter value>
generated_date: YYYY-MM-DD
aos_schema: <schema-version read from AOS_CONFIG.md>
sources_consulted:
- <path>:L<line>
- <path>:L<line>
status: confirmed-by-user
needs_refresh_by: <YYYY-MM-DD + 90 days>
---
The first four fields are the standard provenance block (docs/artifact-versioning.md §1) — every generated artifact carries it. Stamp skill_version from this skill's own version: frontmatter and aos_schema from AOS_CONFIG.md's schema-version; never hard-code either.
Lock awareness. Brand intelligence files are NOT in .gitattributes lockable list today. The orchestrator does not lock. If the user is editing the file concurrently in another session, last-write-wins — flag this as a caveat in the user-facing summary.
After the per-file pass, re-run the survey (Step 1 — bash baseline, or node scripts/survey.mjs as the accelerator). If completeness < 9/9:
⚠️ HARD GATE — incomplete profile
Blocked / no-source files (not FILLED — need sub-skill, more harvest, or website):
- 7LAYER_DIAGNOSTIC.md → run /7layer
- VOICE.md (NO-SOURCE) → add founder correspondence to inbox/ or run website harvest, then re-run
User skipped:
- POSITIONING.md (regenerate requested but not provided)
Status: 4/9 complete. /build-content-system will NOT run until 9/9.
Do NOT mark the profile complete. Emit a PROFILE_SCORECARD.md showing what's done, what's blocked, what's user-skipped, and what to do next.
When 9/9 is reached:
brand/PROFILE_SCORECARD.md with the final state, sources used per file, and unblock-signal for /build-content-system.CAPTAINS_LOG.md (granted-folder root): "Client intelligence profile completed via /build-brand-system — 9/9 files filled."status: stub-no-source), not a draft. Thin but non-zero signal → route to a sub-skill, do not fake-draft.Final user-facing output:
aos-onboard (scaffolds the granted folder); aos-diagnose-7layer, aos-build-belief-profile, aos-build-brand, aos-build-offer, aos-analyze-gtm (the diagnostic sub-skills this orchestrates)/build-content-system (gated on 9/9 from this skill); /blog-draft and other content skills (consume the filled brand intelligence)brand/ files this skill enforces (defined in Step 3.1 above) — there is no separate spec file.This skill is most valuable on existing clients with scattered material (Deluxe, Wellis, Damanhur). On a brand-new client with empty everything, the experience is "run /7layer first, then this." That's fine — the orchestrator's job is consolidation; on a clean-slate it just enforces ordering.
The harvest step is the hardest to get right. Expect to refine reference/harvest-patterns.md after each dogfood run.
What did we get wrong? What's missing?
reference/file-substance-criteria.md (opens in a new tab)reference/file-templates/7LAYER_DIAGNOSTIC.md (opens in a new tab)reference/file-templates/BELIEF_PROFILE.md (opens in a new tab)reference/file-templates/COMPETITIVE_LANDSCAPE.md (opens in a new tab)reference/file-templates/CONSTRAINT_MAP.md (opens in a new tab)reference/file-templates/ICP.md (opens in a new tab)reference/file-templates/OFFER.md (opens in a new tab)reference/file-templates/POSITIONING.md (opens in a new tab)reference/file-templates/PROFILE_SCORECARD.md (opens in a new tab)reference/file-templates/REPAIR_ROADMAP.md (opens in a new tab)reference/file-templates/VOICE.md (opens in a new tab)reference/harvest-patterns.md (opens in a new tab)scripts/survey.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
37 skills in this plugin
/aos-analyze-competitionMap a client's competitive landscape — name the real competitors, build one profile file per competitor (domain, positioning, the products/services it actually competes on, strengths, observable weaknesses, pages/keywords to watch), maintain a per-business-unit competitor catalogue, and surface the positioning gaps the client can own. Produces brand/competitors/ profiles + CATALOGUE.md + brand/COMPETITIVE_LANDSCAPE.md. SEMrush-aware; degrades to manual research. Trigger on 'analyse the competition', 'who are our competitors', 'competitor map', or when COMPETITIVE_LANDSCAPE.md is a stub./aos-analyze-gtmDiagnoses a business's Go-To-Market strategy against the complete GTM Strategist framework — finds gaps, weaknesses, and opportunities before any action planning./aos-npx claudepluginhub arcanianhq/aos-mkt-624292f82fda --plugin aos