Agent skill

Afa Diagnose

by afadtc in afadtc/afa-dtc-skills

DTC 全链路诊断与归因——异常检测、跨业务线问题定位、根因分析、ICE 排序。触发词: 诊断, diagnose, 归因, 根因, 指标下降, 问题出在哪, 为什么下降, 全链路, sales dropped, revenue drop, root cause, funnel diagnosis, attribution。

Custom licenceAuto-check passedMarketing & SEO

Install Afa Diagnose

skills CLI
$ npx skills add afadtc/afa-dtc-skills --skill afa-diagnose -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install afadtc/afa-dtc-skills afa-diagnose --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/afadtc/afa-dtc-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/afa-diagnose .claude/skills/afa-diagnose && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
afa-diagnose
GitHub stars
168
Token cost
~1.9k tokens
SKILL.md length
383 words
Files
10 (incl. references)
Skills in repo
31
Repo updated
First seen
Licence
Custom licence

At a glance

DTC 全链路诊断与归因——异常检测、跨业务线问题定位、根因分析、ICE 排序。触发词: 诊断, diagnose, 归因, 根因, 指标下降, 问题出在哪, 为什么下降, 全链路, sales dropped, revenue drop, root cause, funnel diagnosis, attribution。

  • Works in 5 steps: Context Matrix (上下文矩阵) → Preamble & Visible Loading (启动协议) → Core Workflow → …
  • Tasks that involve Root cause analysis
  • SKILL.md covers 1. Context Matrix (上下文矩阵), 2. Preamble & Visible Loading…, 3. Core Workflow and 4. Completion Protocol, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Afa Diagnose is an agent skill from afadtc/afa-dtc-skills. DTC 全链路诊断与归因——异常检测、跨业务线问题定位、根因分析、ICE 排序。触发词: 诊断, diagnose, 归因, 根因, 指标下降, 问题出在哪, 为什么下降, 全链路, sales dropped, revenue drop, root cause, funnel diagnosis, attribution。

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including reference files (for example `references/anti-patterns.md`, `references/core-frameworks.md` and `references/diagnostic-cases.md`).

It sits in Marketing & SEO, covering Root cause analysis. The repository describes itself as: 做了十年独立站,操盘超1亿美金预算,我把我自己蒸馏成了31 个独立站AI顾问。这是一套面向独立站与 DTC 品牌的全链路增长顾问 Skill 系统,覆盖诊断、选品、品牌、广告投放、CRO、留存、运营与规模化增长等模块。【作者:1亿美刀站长阿发】.

When your agent uses it

  • Tasks that involve Root cause analysis

Example prompts

  • “/afa-diagnose”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Context Matrix (上下文矩阵)
  2. Preamble & Visible Loading (启动协议)
  3. Core Workflow
  4. Completion Protocol
  5. 边界与越界处理

What it can do on your machine

Read from SKILL.md and the folder at commit e4edb28. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown and yaml).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Afa Diagnose loads about 1.9k tokens when it runs, and up to ~40k if it reads all its reference files. Until then it costs about 44 tokens; SKILL.md has 383 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~44
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~40k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 383 words (~1,900 tokens).

name
afa-diagnose

Read the full SKILL.md on GitHub

Files

SKILL.md and 9 other files (references) in skills/afa-diagnose of afadtc/afa-dtc-skills.

  • SKILL.md
  • references/anti-patterns.md
  • references/core-frameworks.md
  • references/diagnostic-cases.md
  • references/diagnostic-frameworks.md
  • references/diagnostic-system.md
  • references/diagnostic-templates.md
  • references/industry-benchmarks.md
  • references/priority-scoring.md
  • references/work-modes-and-templates.md

Open the folder on GitHubat commit e4edb28

Compare with similar skills

Afa Diagnose next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Afa Diagnose compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Afa Diagnose this skillafadtc/afa-dtc-skills168—~1.9kAutomated safety check: PassCustom licence
Sif Amazon Researchliangdabiao/amazon-sorftime-research-MCP-skill959—~1kAutomated safety check: PassNone
Brand Discoveryaffaan-m/ECC276k1 repos~1.9kAutomated safety check: PassMIT
Site Architecturealirezarezvani/claude-skills28k1 repos~3.5kAutomated safety check: PassMIT
03 Performance Eval Globalminhnv0807/ai-business-skills609—~3.5kAutomated safety check: PassMIT
03 Danh Gia Hieu Suatminhnv0807/ai-business-skills609—~4.6kAutomated safety check: PassMIT

Similar skills

  • Sif Amazon Research

    liangdabiao/amazon-sorftime-research-MCP-skill

    A skill your agent uses for Amazon e-commerce research, market validation, competitor analysis, traffic diagnosis, keyword strategy, advertising review, launch evaluation, and growth optimization…

    959 GitHub stars~1k tokensUpdated yesterday
    Marketing & SEOAuto-check passed
  • Brand Discovery

    affaan-m/ECC

    Run a structured, resumable multi-session brand identity interview across 8 modules (purpose, positioning, audience, personality, voice, narrative, founder tension) using laddering, 5 Whys, and…

    276k GitHub starsUsed in 1 repo~1.9k tokens
    Marketing & SEOAuto-check passed
  • Site Architecture

    alirezarezvani/claude-skills

    When the user wants to audit, redesign, or plan their website's structure, URL hierarchy, navigation design, or internal linking strategy.

    28k GitHub starsUsed in 1 repo~3.5k tokens
    Marketing & SEOAuto-check passed
  • 03 Performance Eval Global

    minhnv0807/ai-business-skills

    A skill your agent uses when marketing numbers look bad and the user needs to know WHY — layered root-cause diagnosis across tracking, delivery, creative, landing page, offer, and audience quality…

    609 GitHub stars~3.5k tokensUpdated 27 days ago
    Marketing & SEOAuto-check passed
  • 03 Danh Gia Hieu Suat

    minhnv0807/ai-business-skills

    Dung khi so lieu marketing dang xau va can biet TAI SAO — chan doan theo 5 lop tu tracking, delivery, creative, landing den chat luong audience, roi ra action plan 48h.

    609 GitHub stars~4.6k tokensUpdated 27 days ago
    Marketing & SEOAuto-check passed
  • Winback Playbook

    mohitagw15856/pm-claude-skills

    Turn an at-risk or churned account into a save play — root-cause hypothesis, the offer ladder, the outreach sequence, and the honest call on when to let go.

    1.4k GitHub stars~947 tokensUpdated today
    Marketing & SEOAuto-check passed

More from afadtc/afa-dtc-skills

All 31 skills in this repo
  • Afa Aov

    afadtc/afa-dtc-skills

    DTC 客单价与利润优化——捆绑、Upsell/Cross-sell、定价心理学、免邮门槛。触发词: 客单价, AOV, upsell, cross-sell, 捆绑, bundle, 定价, 免邮门槛, average order value, free shipping threshold。复杂问题先经 afa。

    168 GitHub stars~2.2k tokensUpdated yesterday
    Auto-check passed
  • Afa Convert

    afadtc/afa-dtc-skills

    DTC 转化率优化——结账优化、弃单挽回、落地页、A/B测试、信任与无障碍。触发词: 转化率, CRO, 加购, 结账, 弃单, 落地页, A/B测试, 转化漏斗, conversion rate, abandoned cart, checkout optimization, landing page, a/b test, add to cart。复杂问题先经 afa。

    168 GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed
  • Afa Dashboard

    afadtc/afa-dtc-skills

    DTC 数据仪表盘与体检——三层看板、KPI 追踪、北极星、异常预警。触发词: 数据体检, 仪表盘, dashboard, KPI, 指标追踪, 基准线, 营收报表, 异常预警, metrics, benchmark, data health check, revenue report。复杂问题先经 afa。

    168 GitHub stars~2.2k tokensUpdated yesterday
    Auto-check passed
  • Afa Expand

    afadtc/afa-dtc-skills

    DTC 渠道扩张与多元化——多市场、亚马逊、批发、国际化合规、关税落地成本。触发词: 扩张, expansion, 新市场, 亚马逊, 多渠道, 国际化, wholesale, 批发, MEURO, new market, amazon expansion, international expansion, tariffs, landed cost。复杂问题先经 afa。

    168 GitHub stars~2.5k tokensUpdated yesterday
    Auto-check passed
  • Afa Ops

    afadtc/afa-dtc-skills

    DTC 运营与供应链——仓储物流、库存、3PL、发货时效、供应商、关税成本。触发词: 运营, operations, 供应链, 仓储, 物流, 库存, 3PL, 履约, 供应商, supply chain, fulfillment, inventory management, shipping times。复杂问题先经 afa。

    168 GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Afa Payments

    afadtc/afa-dtc-skills

    DTC 支付风控与争议率——VAMP 自查、chargeback 反驳、Stripe/PayPal 冻结应对、支付组合、欺诈过滤。触发词: 争议率, chargeback, 拒付, VAMP, Stripe 冻结, PayPal 冻结, Rolling Reserve, 3DS, BNPL, dispute rate, frozen account, Stripe, PayPal。复杂问题先经…

    168 GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Afa Diagnose

What does Afa Diagnose do?

DTC 全链路诊断与归因——异常检测、跨业务线问题定位、根因分析、ICE 排序。触发词: 诊断, diagnose, 归因, 根因, 指标下降, 问题出在哪, 为什么下降, 全链路, sales dropped, revenue drop, root cause, funnel diagnosis, attribution。. Afa Diagnose is an agent skill from afadtc/afa-dtc-skills.

When should I use Afa Diagnose?

Afa Diagnose fits situations like: tasks that involve Root cause analysis.

How do I install Afa Diagnose in Claude Code?

Run `npx skills add afadtc/afa-dtc-skills --skill afa-diagnose -a claude-code`. Or copy the skill folder (skills/afa-diagnose in afadtc/afa-dtc-skills) into .claude/skills/afa-diagnose in your project. Claude Code loads it when a task matches its description.

How do I install Afa Diagnose in Codex?

Run `npx skills add afadtc/afa-dtc-skills --skill afa-diagnose -a codex`. Or copy the skill folder (skills/afa-diagnose in afadtc/afa-dtc-skills) into .agents/skills/afa-diagnose in your project. Codex loads it when a task matches its description.

Can I use Afa Diagnose in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add afadtc/afa-dtc-skills --skill afa-diagnose -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/afa-diagnose, .gemini/skills/afa-diagnose, .github/skills/afa-diagnose and .opencode/skills/afa-diagnose in your project.

What does Afa Diagnose need to run?

SKILL.md names no scripts, command-line tools or credentials: Afa Diagnose is instructions for the agent only.

Does Afa Diagnose access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Afa Diagnose safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Afa Diagnose use?

Afa Diagnose has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Afa Diagnose use?

About 1.9k tokens (SKILL.md is roughly 7.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 38k tokens, read only when the agent opens those files.

What are the alternatives to Afa Diagnose?

Skills that share tags, products or a category with Afa Diagnose: Sif Amazon Research (liangdabiao/amazon-sorftime-research-MCP-skill, 959 stars), Brand Discovery (affaan-m/ECC, 276k stars), Site Architecture (alirezarezvani/claude-skills, 28k stars) and 03 Performance Eval Global (minhnv0807/ai-business-skills, 609 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Afa Diagnose?

afadtc (a GitHub user) maintains it in afadtc/afa-dtc-skills, which has 168 GitHub stars. The repository holds 31 skills in this directory. The repository was last updated on October 8, 2026.

Source: afadtc/afa-dtc-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.