direct
install
source · Clone the upstream repo
git clone https://github.com/Silverov/yandex-direct-skill
Claude Code · Install into ~/.claude/skills/
git clone --depth=1 https://github.com/Silverov/yandex-direct-skill ~/.claude/skills/silverov-yandex-direct-skill-direct
manifest:
SKILL.mdsource content
Yandex Direct — PPC Audit & Management (API v5)
Authors: Nick Serebrov & Kobe 🐍
Full-cycle Yandex Direct management: account audits, campaign CRUD, keyword management, reporting, optimization, and budget analysis.
Quick Reference
| Command | What it does |
|---|---|
| Full account audit (all campaigns), scoring 0-100 |
| List campaigns with statuses and key metrics |
| Create campaign (Search/YAN) with ad groups, keywords, ads |
| Keyword management (list, add, update bids, pause) |
| Performance stats (CTR, CPC, conversions, spend) |
| Optimization recommendations (pause losers, adjust bids) |
| Budget spend analysis and forecasting |
| Negative keyword management (campaign & shared sets) |
API Configuration
Credentials:
~/.secrets/yandex-direct.json
{ "client_id": "...", "client_secret": "...", "oauth_token": "..." }
Endpoint:
https://api.direct.yandex.com/json/v5/
Auth: Authorization: Bearer {oauth_token}
API wrapper script:
scripts/yd-api.sh
Orchestration Logic
/direct audit
/direct audit- Load credentials from
~/.secrets/yandex-direct.json - Fetch all campaigns via API (
service)campaigns - Fetch ad groups, keywords, ads, sitelinks for each campaign
- Run 50+ checks from
references/yandex-audit.md - Score using
references/scoring-system.md - Compare metrics against
references/benchmarks.md - Generate report with grade (A-F), findings, and prioritized action plan
/direct campaigns
/direct campaigns- Call
with fields: Id, Name, Status, State, Statistics, DailyBudget, Strategycampaigns.get - Format table with status indicators
- Show key metrics if available (impressions, clicks, spend)
/direct create
/direct create- Gather: campaign name, type (SEARCH/YAN), geo, budget, strategy
- Create campaign via
campaigns.add - Create ad groups via
adgroups.add - Add keywords via
keywords.add - Create ads via
(TextAd for search, TextImageAd for YAN)ads.add - Add sitelinks and callouts
/direct keywords
/direct keywords- Fetch keywords via
with campaign/adgroup filterkeywords.get - Operations: add, suspend, resume, update bids, delete
- Show quality metrics where available
/direct report
/direct report- Use Reports service (
)/json/v5/reports - Build TSV report request with selected fields
- Available presets: campaign, adgroup, keyword, search_query
- Date ranges: today, yesterday, last7, last30, custom
- Parse and format results
/direct optimize
/direct optimize- Run report for last 30 days
- Identify: zero-conversion keywords (spend > 2x avg CPA), low CTR ads, expensive placements
- Cross-reference with
references/benchmarks.md - Generate recommendations sorted by impact
- Apply 3x Kill Rule: flag anything with CPA > 3x target
/direct budget
/direct budget- Fetch campaign budgets and daily spend
- Calculate run rate, projected monthly spend
- Flag underspending (< 70% of budget) and overspending campaigns
- Budget sufficiency check vs strategy requirements
/direct negative
/direct negative- Fetch negative keywords at campaign and ad group level
- Fetch shared negative keyword sets (
)negativekeywordsharedsets - Analyze search query report for new negatives
- Add/remove negatives via API
Quality Gates
- Never recommend broad match keywords without auto-strategy (Yandex best practice)
- 3x Kill Rule: flag keywords/groups with CPA > 3x target for pause
- Budget sufficiency: daily budget should support ≥10 clicks at current CPC
- Moderation: always check ad moderation status before optimizing
- Learning phase: don't change strategy settings during first 7 days
- UTM: all ads must have UTM parameters for Metrika attribution
Reference Files
Load on-demand, NOT at startup:
— 50+ audit checks (YD01-YD55)references/yandex-audit.md
— Weighted scoring (0-100, grades A-F)references/scoring-system.md
— Russian market benchmarks (CTR, CPC, CVR)references/benchmarks.md
— Yandex Direct bidding strategy guidereferences/bidding-strategies.md
— Yandex moderation rules & ad policiesreferences/compliance.md
— Image sizes and specs for YAN (RSY) adsreferences/image-specs.md
Scripts
— Generic API v5 call wrapperscripts/yd-api.sh
— Reports service wrapperscripts/yd-report.sh
— Automated audit data collectionscripts/yd-audit.sh
Subagents
— Audit subagent for parallel campaign analysisagents/audit-yandex.md