Claude Ads CN 是基于
AgriciDaniel/claude-ads
的中文本地化、Codex/Claude Code 多 Agent 技能适配和维护分发仓库。
本仓库的目标不是重新包装上游作者的成果,而是把 Claude Ads 的广告审计、 投放规划、素材生成、监控、实验和报告工作流,整理成更适合中文维护者、 中国出海团队和 Codex/Agent Skills 使用场景的公开版本。
- 中文 README、使用说明、申请说明和运行边界说明。
- 面向 Codex、Claude Code、Gemini、Cursor 等 Agent Skills 主机的安装和使用提示。
- 对安装脚本、依赖锁、测试、报告输出和安全边界做公开可复核的维护。
- 保留上游 MIT License、版权声明、第三方声明和来源记录。
- 不声称本仓库拥有上游 GitHub stars、forks 或全部贡献历史。
本仓库来自公开 MIT 许可代码,保留原始版权声明。后续中文本地化、文档、 Codex 适配和维护记录会在本仓库公开提交。详见 FORK_NOTICE.md。
git clone https://github.com/Chance-Linx/claude-ads-cn.git
cd claude-ads-cn
python3.12 -m venv .venv
.venv/bin/python -m pip install --no-deps -e .
.venv/bin/python -m pip install --require-hashes --only-binary=:all: -r requirements.lock
.venv/bin/python -m pytest -q基础命令:
python -m claude_ads_core --version
python -m claude_ads_core --help
python -m claude_ads_core validate finding path/to/finding.json本仓库继续采用 MIT License。第三方广告平台、API、商标、文档和引用材料 分别受其自身条款约束。不要把客户账号导出、凭证、Prompt 记录、原始调研 或私有投放数据提交到 Git 历史。
Claude-first, portable paid-media operations for agencies, consultants, and in-house performance teams.
Claude Ads turns authorized exports or account reads into source-grounded audits, plans, creative workflows, experiments, monitoring, and reports. It is read-only by default. Live changes stay disabled until the exact platform and operation pass approval, idempotency, verification, audit, and rollback gates.
Note
The original Claude Ads project ships from two homes: the public release at
AgriciDaniel/claude-ads
(MIT, no membership required) and the community mirror at
AI-Marketing-Hub/claude-ads, where
AI Marketing Hub Pro members
get early access and direct collaboration. This claude-ads-cn repository is
an independent Chinese localization and maintenance fork.
- Audits paid-media accounts with dated evidence and explicit confidence.
- Plans campaigns, channels, budgets, measurement, and experiments.
- Creates copy, image, video, and product-photo briefs and assets.
- Monitors pacing, delivery, tracking, fatigue, policy, and performance.
- Produces versioned JSON, then renders Markdown, HTML, and optional PDF.
- Drafts safe account changes without applying them by default.
- Reports missing data, stale sources, contradictions, and partial failures.
| Segment | Platforms |
|---|---|
| Search, video, and social | Google Ads, Meta Ads, YouTube Ads, LinkedIn Ads, TikTok Ads, Microsoft Advertising, Reddit Ads, Snapchat Ads, X Ads |
| Commerce and retail media | Apple Ads, Amazon Ads, Pinterest Ads |
Each platform has a focused skill, audit worker, control reference, capability declaration, and testable routing surface. The capability manifest is the authoritative record for live reads and writes.
Standalone installs use /ads. Claude Code plugins are namespaced and use
/claude-ads:ads. Both load the same ads/SKILL.md contract.
| Command | Outcome |
|---|---|
/ads setup |
Create the client, account, KPI, privacy, and guardrail profile |
/ads audit [all|platform|scope] |
Run a complete or scoped evidence-backed audit |
/ads plan |
Build channel, campaign, budget, competitor, and measurement plans |
/ads create |
Produce copy, image, video, or product-photo assets |
/ads launch --draft |
Draft a campaign mutation plan without changing the account |
/ads monitor |
Review pacing, delivery, tracking, fatigue, policy, and performance |
/ads optimize --draft |
Draft evidence-backed optimization changes |
/ads experiment |
Design or read out a controlled test |
/ads report |
Render a validated JSON run bundle |
/ads research refresh |
Refresh platform, policy, API, benchmark, and ecosystem evidence |
/ads validate |
Validate contracts, runs, capabilities, maturity, or release readiness |
/ads status, /ads next |
Show current status and the highest-priority blocker |
Platform shortcuts such as /ads google, /ads meta, /ads amazon, and
/ads reddit route to the matching platform audit.
The GIF shows the original command-discovery experience. The v2 command table above and the platform table are current and authoritative.
Claude Code is the canonical runtime. Codex, Gemini, Cursor, Windsurf, Goose, and compatible Agent Skills hosts can consume the same skill files where their runtime supports them.
Prefer the host's native plugin flow or a tagged release archive with a verified SHA-256 checksum. Never pipe a remote installer directly to a shell.
For the original Claude Code plugin, the native plugin flow is:
/plugin marketplace add AgriciDaniel/claude-ads
/plugin install claude-ads@ai-marketing-hub-claude-ads
Or install from this Chinese maintenance fork:
git clone https://github.com/Chance-Linx/claude-ads-cn.git
cd claude-ads-cn
bash install.sh --source=localSelect another standalone host explicitly:
bash install.sh --target=codex --source=local
bash install.sh --target=gemini --source=local --no-depsPowerShell uses the same managed ownership model:
git clone https://github.com/Chance-Linx/claude-ads-cn.git
Set-Location claude-ads-cn
.\install.ps1 -Source localManaged dependencies support CPython 3.11 and 3.12 on the declared Linux,
macOS, and Windows wheel matrix. Unsupported interpreters fail before the
destination changes. Use --no-deps or -NoDeps for a skill-only install.
Browser capture requires an operator-installed Playwright browser payload. PDF rendering requires the host's WeasyPrint and Pango system libraries. These are documented in the external runtime dependency manifest.
Uninstall only manifest-owned files:
bash uninstall.sh --target=claudeThe PowerShell equivalent is uninstall.ps1.
One conductor owns scope, policy, aggregation, and final artifacts. Workers analyze bounded slices and return schema-valid findings. Required-worker failure makes the run partial. It is never silently presented as a complete audit.
The canonical result is versioned JSON. Markdown, HTML, and PDF are renderings of the same validated run bundle.
Controls use pass, fail, unknown, or not_applicable.
- Health, evidence coverage, regulatory exposure, and opportunities stay separate.
- Unknown controls reduce evidence coverage without changing known health.
- Coverage of 80% or more is graded, 60 to 79% is provisional, and below 60% is insufficient evidence.
- Optional, beta, premium, unavailable, and ineligible features stay unscored.
- A disabled or unapproved platform profile produces no health score.
- A failed platform is excluded from portfolio scoring and makes the run partial.
See the scoring reference and production
implementation in claude_ads_core/scoring.py.
All adapters are read-only by default. Applying a change requires:
- A tested and enabled capability for the exact operation.
- Explicit account and object IDs.
- A human-readable before and after diff with blast radius.
- Owner approval within account-defined ceilings.
- An idempotency key, audit destination, rollback, and verification window.
- Verification that remote state still matches the mutation precondition.
Missing ceilings mean no write. Permanent deletion is not supported in v2. Credentials belong in environment variables, an OS keychain, or an approved secret manager. They never belong in the repository, profiles, reports, or logs.
The public-safe control-plane/ records product boundaries, dated sources,
claims, capabilities, safety rules, privacy rules, ecosystem decisions, and
release requirements.
- No source means no current platform claim.
- No implementation, fixture, and test means no capability claim.
- No approval and rollback means no account mutation.
- No independent verification means no release.
See the release requirements and publishing policy.
Create a virtual environment and run the complete suite:
python3.12 -m venv .venv
.venv/bin/python -m pip install --no-deps -e .
.venv/bin/python -m pip install --require-hashes --only-binary=:all: -r requirements.lock
.venv/bin/python -m pip install --require-hashes --only-binary=:all: -r requirements-dev.lock
.venv/bin/python -m pip check
.venv/bin/python -m pytest -qUseful focused checks:
python -m claude_ads_core --version
python -m claude_ads_core validate finding path/to/finding.json
bash -n install.sh uninstall.shads/ main skill, interface metadata, and shared references
skills/ platform and lifecycle skills
agents/ platform, cross-platform, research, and verifier workers
claude_ads_core/ typed contracts, adapters, validation, and scoring
control-plane/ evidence, capability, safety, maturity, and release state
scripts/ browser, creative, reporting, and release helpers
evals/ routing and behavioral evaluation cases
tests/ deterministic, security, installer, and adapter tests
Client data, raw private research, captured prompts, credentials, account exports, and agent transcripts must never enter Git history, reports, or release archives. Keep credentials in environment variables, an OS keychain, or an approved secret manager.
Original Claude Ads code and documentation are available under the MIT License. Third-party APIs, trademarks, documentation, and cited artifacts remain subject to their own terms. Review the source ledger and third-party notices before importing external work.
