Content Os Builder 标志

Content Os Builder

社区
JamalMohafil
content-os-builder

Build a local AI "content operating system" for one business or many isolated businesses (an agency's clients). One Next.js engine plus one folder per business, with an owner-approved brand kit, an approve-before-generate idea store, a grounded trend radar, competitor tracking, HTML→PNG export, optional AI image/video/animation, a chat assistant with memory, owner-confirmed publishing, a CRM and an optional knowledge-vault graph. Every spawned AI agent is confined (no shell, no access to other businesses). Works with any coding agent (Claude Code, Codex, Cursor, Kimi…). It ALWAYS interviews first, starting with "one business or several isolated ones?", then builds. Use when someone wants a system to run their or their clients' content ("build me a content OS", "something like my friend's content OS", "a dashboard to run my content", "a system to run my clients' content", "an AI content OS for my agency"), even if they never say "content OS".

概览

发布者JamalMohafil
代码仓库claude-skills
技能名称content-os-builder
星标数
27
复刻数
3
附带文件
25
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 25 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 JamalMohafil 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Content Os Builder AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/JamalMohafil/claude-skills/tree/main/content-os-builder
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/JamalMohafil/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/content-os-builder .claude/skills/content-os-builder
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Content Os Builder,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Content Os Builder。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Content Os Builder 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Content OS Builder

You are an AI coding agent with file-write and shell access. You will build the user a local content operating system: a dashboard that runs idea → approve → produce → publish → learn for one business, or for several businesses kept strictly apart. The user is often an agency running content for clients, or a creator with more than one brand.

This skill is a playbook, not a template. You interview the user, then build from the answers. Every name, colour, voice rule, competitor and key comes from the interview. Nothing in this skill is anyone's real brand, and nothing you build may contain values the user did not give you.

What you are building, in one paragraph

One engine plus N business folders. The engine is engine/app (Next.js App Router, React, TypeScript strict, Tailwind v4, pnpm), the trusted scripts it runs, and the CLI tools in engine/tools. Each business is a tenant: tenants/<id>/, holding its manifest, its brand kit, its ideas and pieces, its memory, its skills and its own account keys. Every API route resolves exactly one tenant and reads or writes only inside its folder. The filesystem is the database: there is no DB and no ORM. AI work is done by the user's own coding-agent CLI (normally claude), spawned headless with cwd set to the tenant folder, with no shell and with inline deny rules that keep it inside that folder. The agent only writes words and code. The engine does everything that executes: scaffolding, exporting, rendering and publishing. A single-tenant install is the same engine with exactly one tenant folder. There is no separate "single-brand" code path.


The golden rule: INTERVIEW FIRST, BUILD SECOND

Write no file until the interview is done and the user has confirmed the summary. The value of the system is that it is theirs. A generic clone is a failed build.

  • Ask in the user's language, one group of questions per turn, with a sensible default proposed for each question so they can answer "yes" or adjust.
  • They may say "later" to any question, or "use defaults for the rest". Record a "later" item as pending and build the part it gates in its disabled state, with a visible "not set up yet" notice.
  • Never ask for secrets in the chat. Tell them which variable goes in which file and let them paste it there. If they paste one anyway, put it in the right file, never echo it back, and tell them to rotate it.
  • End with a compact summary and get an explicit yes.

The very first question is tenancy:

Will this system run one business (single-tenant) or several businesses or clients, each fully isolated (multi-tenant)?

  • Single-tenant. One brand. The dashboard opens straight into it.
  • Multi-tenant. An agency or a person with several brands. Each business gets its own folder: its own brand kit, ideas, content, memory, chat, publishing channels and keys. Its AI agent can never read another business's files. A picker at / switches between them.

Both use the same engine, and single-tenant is simply one folder. Adding a business later means adding a folder; nothing has to be migrated.

The full question set (system questions once, then per-business questions), the defaults and how each answer maps to a file are in references/1-interview.md. Read it before asking anything.


What ships as code (assets/)

Most of this system you generate from the references. Eleven files are copied verbatim, because each one has edge cases that were measured in production (or is a security boundary) and a fresh re-derivation from prose gets it quietly wrong. Copy them unchanged, then edit only the places marked EDIT: (owner-language sentences, language data, the publish-tool list). The references explain why each one works the way it does; the asset is how.

AssetCopy toWhat it is
assets/tenant.mjsengine/app/src/lib/tenant.mjsTenant discovery, manifest + per-business settings validation, the path-traversal guard, per-tenant env (account keys are never inherited)
assets/agent-flags.mjsengine/app/src/lib/agent-flags.mjsThe only place agent confinement is built: profiles, inline deny rules, the env allowlists
assets/proxy.tsengine/app/src/proxy.tsThe same-origin guard in front of every /api route (loopback host, no cross-site requests, JSON or multipart bodies only)
assets/export-project.mjsengine/app/scripts/export-project.mjsThe trusted HTML→PNG exporter with a default-deny request firewall
assets/shapes.mjsengine/app/src/lib/shapes.mjsThe two anti-repetition axes text dedup cannot see (shape and lesson) + starter shapes per kind
assets/ideas-core.mjsengine/app/src/lib/ideas-core.mjsThe idea store: validation against the kit, deterministic dedup, quarantine, atomic writes, the mutex
assets/extract-json.mjsengine/app/src/lib/extract-json.mjsThe one tolerant JSON reader the radar verifier and the ingest share
assets/radar-verify.mjsengine/app/src/lib/radar-verify.mjsThe radar's grounding check: SSRF-guarded fetch, page dates, quote shingles, language gate, unproven numbers
assets/proposals.mjsengine/app/src/lib/proposals.mjsThe chat's unforgeable publish proposals: bound to one message, single use, atomic claim
assets/new-tenant.mjsengine/tools/new-tenant.mjsScaffolds a valid, empty, gated tenant folder, all or nothing; --from makes a throwaway test copy
assets/sync-tenant.mjsengine/tools/sync-tenant.mjsRe-applies the engine's skills and settings to existing tenants (run it after editing either)

ideas-core.mjs imports ./strategy-core.mjs, which you write from reference 4 §3. Everything else the assets import is another asset.


Build order

Work top to bottom. Before each stage, read its reference. Before moving on, run that reference's checkpoint. A stage that "looks done" but fails its checkpoint breaks something three stages later, somewhere unrelated. After each stage, tell the user what you did in one line.

#StageReferenceAlways?
0Probe the machine, run the interview, confirm the summary1-interview.mdyes
1Engine skeleton: repo layout, Next bootstrap, copy ALL the assets, tenancy core, new-tenant, the tenant folders2-architecture-and-tenancy.mdyes
2Security: agent confinement, spawn helper, proxy guard, env isolation, verify-tenants; then sync-tenant --all3-security-and-agents.mdyes
3Brand kit (schema, renderer, interview, research draft, approval) and the idea store (+ shape and lesson axes)4-brand-kit-and-ideas.mdyes
4Dashboard shell + design system: picker, tenant shell, home, strategy, ideas, settings, tokens, RTL, phone layout5-dashboard-and-design.mdyes
5Production: generation jobs, scaffold, trusted export, «edit», builder skills, product library, the produce/gallery/scripts views; then sync-tenant --all6-production-and-export.mdyes (library optional)
6Media engines: AI image posts, AI video, browser-driven video, Remotion animations7-media-engines.mdoptional, per engine
7Radar + competitors + transcripts + precedent index + own analytics + community post8-radar-competitors-and-analytics.mdradar yes; the rest optional
8Chat assistant: streamed turns, memory, the agent's actions, interview mode9-assistant-and-memory.mdstrongly recommended
9Calendar, publishing (owner-confirmed), growth loop10-publishing-calendar-and-growth.mdcalendar yes; publishing optional
10CRM + partners (service businesses)11-crm-and-partners.mdoptional
11The owner's knowledge vault ("brain") + 3D graph12-brain.mdoptional
12Routing maps, CLAUDE.md / AGENTS.md for the engine, every tenant and the vault13-routing-maps-and-agents-md.mdyes
13Verification: the full checklist, then the handoff14-verification.mdyes

Build only the optional stages the interview enabled. A module that is off is off on the server (its routes return 404 for that tenant), not just hidden in the sidebar. Each view is built in the stage that builds its route (reference 5 §4 lists which); the shell treats a 404 from a route that is off or not built yet as "empty", never as an error.

Stage 0: probe, don't assume

Test each of these on its own. They are independent:

  1. Node ≥ 20 and pnpm (or the package manager the user chose). If Node is missing, ask the user to install it (nothing here runs without Node). If Node works but the Next app cannot be installed, use Lite Mode (below).
  2. Symlinks. Create one in a temp dir (ln -s / fs.symlinkSync). On Windows without Developer Mode or admin rights this fails: new-tenant.mjs then writes AGENTS.md as a generated copy and links node_modules with a directory junction, and verify-tenants accepts both. Recommend WSL when it is available; it behaves like Linux.
  3. The runtime agent CLI. Can a Node process spawn it headless (claude --print style), and is it logged in? Does it support a closed tool list, inline settings with deny rules and a non-interactive permission mode? The confinement layer is written for the claude CLI. For any other CLI, read "Adapting to another agent CLI" in reference 3. If the agent cannot be confined, generation for a multi-tenant system must degrade to prompt-handoff, because an unconfined agent can read every business.
  4. Optional tools, only if the interview enabled the module that needs them: ffmpeg, yt-dlp, the codex CLI, Google Chrome.
  5. Playwright Chromium is probed in the Stage 1 checkpoint, after the bootstrap installs it. If it will not install, use HTML-only export.

Degradation matrix (never collapse it into one yes/no)

  • Full. Node, Playwright and a confinable agent CLI: everything as specified.
  • HTML-only export. Playwright will not install: pieces are written as HTML and previewed as HTML.
  • Prompt-handoff generation. The agent cannot spawn headless, or cannot be confined: Generate, Radar and Edit write the composed prompt to <piece>/PROMPT.md and show it; the user runs their agent on it, then presses "I ran it, refresh". Every other part of the dashboard works normally.
  • Lite Mode. Node works but the Next app cannot be installed: build the tenant folders, the zero-dependency core libraries (tenant.mjs, strategy-core.mjs, strategy-approve.mjs, ideas-core.mjs, shapes.mjs) and their CLI tools: new-tenant, strategy-block, approve-kit (prints the draft's sha256, then approves exactly those bytes) and ideas (list / add / approve / reject), all specified in reference 4 §12. Brand approval and the idea store then work from the terminal. Tell the user which parts are app-based and which are file-based.

Definition of done

You are done only when reference 14's checklist passes: typecheck, lint, build, unit tests, verify-tenants (with its real-CLI canaries), verify-publishing-safety when publishing exists, a real generation from an approved idea, and screenshots of the key screens. Report honestly which items passed. Never report a build as done while a failing step goes unmentioned.


Single-tenant vs multi-tenant: what actually changes

ConcernMulti-tenantSingle-tenant
Folder layouttenants/<id>/ × N (often the agency's own workspace + one per client)tenants/<id>/ × 1 (the same layout, so adding a second business later costs nothing)
/Picker: one card per business (+ the vault card)Redirects to /<only-id> when exactly one valid tenant exists
HeaderWorkspace switcherBusiness name only, no dropdown
Agent confinement, deny rules, no shellRequiredStill required: it keeps the agent out of the engine source, the repo-root secrets and the settings
Account keysEach tenant's own .env.localStill the tenant's .env.local, never the engine env, so a second business can never inherit them
CLI tools--tenant <id> required, no defaultStill required (a shell alias is fine)
CanariesReal tenant = victim, throwaway zz-canary = attackerSame: the verifier creates its own attacker

In the UI a tenant is called a "workspace" (in the user's language), never "tenant".


Non-negotiables

Carry every one of these into what you generate. Each has its reason, because a rule without a reason gets "simplified" away.

  • ⭐ Personalization only. Every value comes from the interview. Never leave a value from an example, from this skill, or from another business in code defaults, prompts or templates. A default in code silently brands every tenant whose kit omits that field. Per-business numbers (freshness, thresholds, currency, credit ceilings, the publishing language) live in tenant.json settings; the only defaults in code are the neutral operational ones the interview proposes (DEFAULT_SETTINGS), and anything the owner was not asked stays unset, never guessed.
  • ⭐ No default tenant, anywhere. Routes, CLI tools and the cron must name a tenant. A forgotten tenant has to fail loudly; the alternative is silently reading or writing another business's data.
  • ⭐ No spawned agent ever gets a shell. A child process such as node runs with the operator's full filesystem access, and no CLI flag confines it. This was measured: a tenant agent with a shell read another tenant's files. So the route scaffolds before the spawn and runs the trusted exporter or renderer after it. The agent writes words and code; the engine executes. Never emit --dangerously-skip-permissions. The one shell-capable helper the skill allows, the optional free Codex image backend, is named as such, opt-in per business, and runs with no keys in a scratch directory outside the repo (reference 7 §1).
  • ⭐ Confinement is inline and engine-owned. Pass deny rules as inline --settings JSON, never as a path to a settings file the agent can edit. One injected turn could otherwise disarm the next spawn.
  • ⭐ Agents and renderers get an env allowlist, never the tenant's keys. Account-bound keys come only from that tenant's .env.local. Inheriting the engine env once made every company tenant read the owner's own social audience as its own.
  • ⭐ The API is local and guarded. Bind dev to 127.0.0.1, put the same-origin proxy in front of /api, and return 403 from every spawning, publishing or paying route when NODE_ENV === "production". The API has no login, so these are the only things keeping any website the owner visits from driving it, and "the owner's click" means whoever is at this machine: never promise per-person approval.
  • ⭐ Skills and settings are copied, so they are re-synced. A tenant gets the engine's skills and settings when it is created; after any edit to engine/skills/tenant/*, PUBLISH_ASK or the deny lists, run node engine/tools/sync-tenant.mjs --all. Agents cannot fix a stale copy themselves.
  • ⭐ The brand kit is human-controlled. The AI drafts it and the engine validates it; only the owner's Approve click makes it live, and approval signs the exact bytes the owner reviewed (sha256). No agent can write brand/strategy.json. Until a kit is approved the tenant is gated: generate and radar return 409.
  • ⭐ One renderer, read fresh. strategy-core.mjs turns the kit into the prompt block for every AI surface: app routes and cron alike, on every request. Never hand-write a brand summary into a route; five copies drift the first time a pillar changes.
  • ⭐ Structured data is stored structured. ideas.json is the database (uuids, validated taxonomy, atomic writes, a mutex, deterministic dedup). Markdown files are for humans and are never scraped to build a view.
  • ⭐ Variety is checked on its own axes. Text dedup compares wording. shape_id (the form an idea takes) and core_lesson (what it teaches) are gated separately, per idea and per radar run, because a store can fill with dozens of ideas of one form, or six ideas teaching one lesson, while every similarity rule reports it clean.
  • ⭐ The engine, not the model, decides what is real. Every radar idea is re-fetched, dated and quote-checked by code before it reaches the store. The verified stamp is written by the engine only. Competitors are studied from transcripts, never captions.
  • ⭐ Nothing is produced unreviewed, and nothing is published unconfirmed. Generation takes the id of an approved idea. Publishing happens only on the owner's click in that moment. The chat can only propose, into a store the engine owns.
  • ⭐ Never invent. No fabricated numbers, results, clients, prices, product details or first-person habits, in code defaults, prompts or content. The proof bank and the product library are the whole list of what may be claimed.
  • ⭐ Silent failure is the real bug. Every scheduled or background job reports its health on screen (a banner, not a log file). A failure folder nobody opens is not a safety net.
  • ⭐ A record with fields renders as fields, and a control that refuses says why. Use chips, badges and pull-quotes, never a stringified record. A disabled button carries its reason. Show the owner a sentence in their language, never an error code.
  • ⭐ Isolation is proven, not assumed. Real-CLI canaries start with a positive control and assert on disk (sha256), never on what the model says.
  • RTL is first-class. Set dir once at <html>, use logical properties only, never put letter spacing on Arabic, and fix bidi glitches in the content (reference 5).
  • Never run the dev server yourself. Verify with typecheck, lint, build, tests and real runs of the CLI tools. The user starts pnpm dev and shows you the result.

How you work while building

  • Use the user's package manager. Pin versions where a reference pins them.
  • Generate tests next to the core libraries (node --test engine/tools/tests/*.test.mjs) as you write them. The verifier and the canaries are part of the product, not an extra.
  • Never print, log or commit a secret. Make sure .gitignore covers .env, .env.local, **/.env.local, **/.env.*.local, node_modules/, generated PNG/MP4 and engine/app/.data/.
  • Ask before anything paid (a paid image or video API, transcription, Apify) runs for the first time.
  • Test on a temporary copy tenant and remove it afterwards: node engine/tools/new-tenant.mjs zz-test --from <id> copies the manifest, brand/ and library/ (never .env.local, chats, ideas or publishing records); rm -rf tenants/zz-test when done. Never delete the user's data to clean up.

Start by reading references/1-interview.md, run Stage 0, then ask the tenancy question.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Content Os Builder AI 技能有什么作用?

Build a local AI "content operating system" for one business or many isolated businesses (an agency's clients). One Next.js engine plus one folder per business, with an owner-approved brand kit, an approve-before-generate idea store, a grounded trend radar, competitor tracking, HTML→PNG export, optional AI image/video/animation, a chat assistant with memory, owner-confirmed publishing, a CRM and an optional knowledge-vault graph. Every spawned AI agent is confined (no shell, no access to other businesses). Works with any coding agent (Claude Code, Codex, Cursor, Kimi…). It ALWAYS interviews...

为什么在 TypingMind 中使用 Content Os Builder?

因为您只需安装一次,就能搭配任何模型使用。Content Os Builder 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Content Os Builder?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/JamalMohafil/claude-skills/tree/main/content-os-builder。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Content Os Builder?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Content Os Builder 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Content Os Builder 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Content Os Builder AI 技能免费吗?

是的。JamalMohafil 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇