Run the GTM-OS health check across all 5 diagnostic layers (environment, database, configuration, provider connectivity, runtime state).

MITAuto-check: notesMarketing & SEO

Install Run Doctor

skills CLI
$ npx skills add Othmane-Khadri/YALC-the-GTM-operating-system --skill run-doctor -a claude-code

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

GitHub CLI
$ gh skill install Othmane-Khadri/YALC-the-GTM-operating-system run-doctor --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/Othmane-Khadri/YALC-the-GTM-operating-system.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/run-doctor .claude/skills/run-doctor && 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
run-doctor
GitHub stars
318
Token cost
~1.9k tokens
SKILL.md length
896 words
Files
2 (incl. references)
Skills in repo
57
Repo updated
First seen
Licence
MIT

At a glance

Run the GTM-OS health check across all 5 diagnostic layers (environment, database, configuration, provider connectivity, runtime state).

  • Works in 7 steps: No user input needed → Generate the inline runner → Run it → …
  • The user says is YALC working
  • SKILL.md covers When This Skill Applies, What This Skill Does, What This Skill Does NOT and Pre-flight (do this before…, plus 2 more sections
  • Calls npx; needs ANTHROPIC_API_KEY

What it does

Run Doctor is an agent skill from Othmane-Khadri/YALC-the-GTM-operating-system. Run the GTM-OS health check across all 5 diagnostic layers (environment, database, configuration, provider connectivity, runtime state). Use when the user says 'is YALC working', 'diagnose YALC', 'check YALC health', 'is everything configured', 'run the health check', or 'are my keys set up'. Read-only — never writes anything. Surfaces /keys/connect/<provider URLs alongside any failed provider so the user has a one-click path to fix.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/example-output.md`).

It sits in Marketing & SEO, covering Go-to-market strategy. The repository describes itself as: YALC 1.0, the open-source Clay alternative. MIT, CLI-first, self-hosted, runs in Claude Code. Yalc today is an intelligent orchestration layer that runs pre configured GTM agents…. The licence is MIT.

When your agent uses it

  • The user says is YALC working
  • Check YALC health
  • Is everything configured
  • Run the health check

Example prompts

  • “is YALC working”
  • “diagnose YALC”
  • “check YALC health”
  • “/run-doctor”

Requirements

  • Node.js
  • A credential in ANTHROPIC_API_KEY

Workflow steps

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

  1. No user input needed
  2. Generate the inline runner
  3. Run it
  4. Parse the JSON output
  5. Render a clean diagnosis
  6. Offer to fix any FAIL or provider-related WARN
  7. Fallback path

What it can do on your machine

Read from SKILL.md and the folder at commit 5686d1f. 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

    Shell commands in SKILL.md call:

    • npx

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

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

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

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • ANTHROPIC_API_KEY

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

Context cost

Run Doctor loads about 1.9k tokens when it runs, and up to ~2.8k if it reads all its reference files. Until then it costs about 112 tokens; SKILL.md has 896 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~112
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
~2.8k

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:135
    For non-provider failures (missing `.env` file, missing core tables, malformed YAML), surface the specific recovery hint

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

The full file from Othmane-Khadri/YALC-the-GTM-operating-system at commit 5686d1f, republished under its MIT licence (© Othmane-Khadri). 896 words, ~1,934 tokens.

Download SKILL.mdSave it as .claude/skills/run-doctor/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
run-doctor
description
Run the GTM-OS health check across all 5 diagnostic layers (environment, database, configuration, provider connectivity, runtime state). Use when the user says 'is YALC working', 'diagnose YALC', 'check YALC health', 'is everything configured', 'run the health check', or 'are my keys set up'. Read-only — never writes anything. Surfaces /keys/connect/<provider> URLs alongside any failed provider so the user has a one-click path to fix.
version
1.0.0

Run Doctor

I'll run the 5-layer health check and tell you what's missing. This is the read-only diagnostic that proves YALC is wired up correctly — environment file, SQLite schema, framework + user config, live provider connectivity, and runtime state. Nothing here writes to disk or burns credits.

When This Skill Applies

Use this skill when the user says:

  • "is YALC working"
  • "diagnose YALC"
  • "check YALC health"
  • "is everything configured"
  • "run the health check"
  • "are my keys set up"

NOT this skill (use debugger instead):

  • A specific command failed — debugger walks the error funnel layer by layer.
  • "fix", "not working", "broken", "troubleshoot" — those route to debugger.

NOT this skill (use setup instead):

  • "set up YALC" — that's the onboarding flow.

What This Skill Does

  1. Imports the runDoctor function from src/lib/diagnostics/doctor.ts directly (no fresh CLI subprocess).
  2. Captures the printed health check output by intercepting console.log and process.exit.
  3. Renders a clean per-layer summary: PASS / FAIL / WARN / SKIP for each check.
  4. For any FAIL'd or WARN'd provider, surfaces the matching /keys/connect/<provider> URL (the URL hint A5 added).
  5. Offers to walk you through fixing each failure — typically by opening the relevant /keys/connect/... route in your browser via yalc-gtm dashboard --route /keys/connect/<provider>.

What This Skill Does NOT

  • Modify env files, configs, or the database. Read-only.
  • Send any external requests beyond the live provider probes that doctor itself runs.
  • Auto-fix anything. All fixes need your approval.

Pre-flight (do this before step 1)

Onboarding interruption guard. Run:

bash
test -f ~/.gtm-os/.in-flight-setup && echo "BLOCKED" || echo "OK"

If BLOCKED, surface a soft warning: setup is mid-flight and the diagnostic snapshot may be incomplete (config + DB are still being assembled). Since this skill is read-only and never writes anything, ask the user whether to (a) run anyway against the in-flight state, or (b) finish yalc-gtm setup --resume first and re-invoke. Default to (b) unless the user explicitly opts in to (a).

Workflow

Step 0: No user input needed

This is a read-only command. Skip straight to step 1.

Step 1: Generate the inline runner

Generate /tmp/yalc-skill-run-doctor.mjs from the gtm-os root (~/Desktop/gtm-os/). The runner imports runDoctor directly (the import-direct pattern from 0.13.0), monkey-patches console.log and process.exit so the output is collected as structured lines, and prints JSON to stdout.

Important — the import path must be absolute. tsx resolves relative imports against the script's own directory, not against cwd. Since the runner lives in /tmp/, a relative ./src/... import resolves to /tmp/src/... and fails. Build the runner with the absolute path baked in via heredoc expansion:

bash
cd ~/Desktop/gtm-os && cat > /tmp/yalc-skill-run-doctor.mjs <<RUNNEREOF
import { runDoctor } from '\${PWD}/src/lib/diagnostics/doctor.ts'

const lines = []
const origLog = console.log
const origExit = process.exit

console.log = (...args) => {
  lines.push(args.map((a) => (typeof a === 'string' ? a : JSON.stringify(a))).join(' '))
}

let exitCode = 0
process.exit = (code) => {
  exitCode = typeof code === 'number' ? code : 0
}

let runError = null
try {
  await runDoctor({ report: false })
} catch (err) {
  runError = err instanceof Error ? { message: err.message, stack: err.stack } : { message: String(err) }
}

console.log = origLog
process.exit = origExit

process.stdout.write(JSON.stringify({ exitCode, runError, lines }, null, 2))
process.stdout.write('\n')
RUNNEREOF

Note: do not add a --json flag — runDoctor does not accept one; this wrapper is how we get JSON.

Step 2: Run it

From the gtm-os root (~/Desktop/gtm-os/):

bash
npx tsx /tmp/yalc-skill-run-doctor.mjs
Step 3: Parse the JSON output

The runner emits { exitCode, runError, lines }. The lines array is the verbatim sequence of console.log calls doctor made — including the layer headers (── Environment ──, ── Database ──, etc.), the per-check rows ( ✓ [OK ] ANTHROPIC_API_KEY, ✗ [FAIL] Crustdata), and the summary block.

Parse it like this:

  • A line starting with ── and ending with ── opens a new layer.
  • A line starting with ✓ [OK ], ✗ [FAIL], ! [WARN], or ✓ [SKIP] is a check row. The bracketed token is the status; the rest is the check name.
  • Indented lines (prefix ) that follow a non-PASS check carry the detail/explanation.
  • The summary lines (X passed, Y failed, Z warnings, W skipped) appear under ── Summary ──.
  • A trailing line of MCP-loader noise ([mcp-loader] ...) may appear between the layer headers — ignore it.
Show full SKILL.md (338 more words)Show less
Step 4: Render a clean diagnosis

Group checks by layer. For each layer, list the checks in order with their status. For any check whose detail contains Fix: http://localhost:3847/keys/connect/<provider>, surface the URL prominently next to the failing line.

See references/example-output.md for a full rendered example.

End the summary with the overall verdict: healthy / minor warnings / N issues need attention.

For each FAIL or WARN row whose detail includes a /keys/connect/<provider> URL, ask the user:

"Want me to open /keys/connect/<provider> in your browser? I'll run yalc-gtm dashboard --route /keys/connect/<provider>."

Don't run the dashboard command unless they say yes. The dashboard command (A2) starts the SPA on port 3847 and routes the user to the connect screen for that provider.

For non-provider failures (missing .env file, missing core tables, malformed YAML), surface the specific recovery hint the doctor itself emitted in the detail line — those are already actionable.

Step 6: Fallback path

If the inline runner errors out (e.g., the import path moves, the function signature changes, an unhandled exception escapes runDoctor), fall back to the CLI:

bash
npx tsx src/cli/index.ts doctor

The CLI command takes only --report (no --json flag). Its stdout is the same human-readable output doctor would have printed; parse it the same way as the captured lines from the runner.

Notes

  • runDoctor accepts only { report?: boolean }. There is no { json: true } option. The inline runner is the JSON wrapper.
  • The 5 layers are: Environment, Database, Configuration, Provider Connectivity, Runtime State. Two optional layers — Preview Confidence (when a _preview/ folder exists) and Retired Frameworks (when ≥1 retired framework is installed) — appear only when relevant.
  • Doctor never prints secrets. Env values are masked before any line is logged. Safe to re-render the lines verbatim.
  • The /keys/connect/<provider> URLs hard-code http://localhost:3847 — they're only useful once the dashboard is running.
  • The runner's heredoc must use '\${PWD}/...' (single-quoted with escaped $) so the shell expands $PWD on write but the resulting JS file contains a literal absolute path. Inside JS, plain string literal syntax — no template literal needed.

© Othmane-Khadri, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in .claude/skills/run-doctor of Othmane-Khadri/YALC-the-GTM-operating-system.

  • SKILL.md
  • references/example-output.md

Open the folder on GitHubat commit 5686d1f

Compare with similar skills

Run Doctor 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.

Run Doctor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Run Doctor this skillOthmane-Khadri/YALC-the-GTM-operating-system318—~1.9kAutomated safety check: NotesMIT
Marketing PlanNexus-JPF/note-companion8705 repos~5.2kAutomated safety check: PassMIT
Revenue Centric Designheliocosta-dev/revenue-centric-design740—~1.6kAutomated safety check: PassCustom licence
Startup Designferdinandobons/startup-skill1.2k—~8.1kAutomated safety check: PassMIT
Jaredrhod Marketingjaredrhod/ai-marketing-skills282—~584Automated safety check: PassCC-BY-SA-4.0
Traffic Acquisitionvivy-yi/xiaohongshu-skills4811 repos~4kAutomated safety check: PassNone

Similar skills

  • Marketing Plan

    Nexus-JPF/note-companion

    When the user needs a comprehensive marketing plan for a client, a company they advise, or their own product.

    870 GitHub starsUsed in 5 repos~5.2k tokens
    Marketing & SEOAuto-check passed
  • Revenue Centric Design

    heliocosta-dev/revenue-centric-design

    Playbook for designing SaaS and startup products that convert, retain, and monetize — landing pages & CRO, checkout & forms, onboarding/activation, churn reduction, pricing psychology, dashboards…

    740 GitHub stars~1.6k tokensUpdated 1 mo ago
    Marketing & SEOAuto-check passed
  • Startup Design

    ferdinandobons/startup-skill

    Design, validate, and plan a startup from scratch. An agent skill from ferdinandobons/startup-skill.

    1.2k GitHub stars~8.1k tokensUpdated 3 mo ago
    Marketing & SEOAuto-check passed
  • Jaredrhod Marketing

    jaredrhod/ai-marketing-skills

    Run any marketing task the way jaredrhod actually runs it. An agent skill from jaredrhod/ai-marketing-skills.

    282 GitHub stars~584 tokensUpdated 1 mo ago
    Marketing & SEOAuto-check passed
  • Traffic Acquisition

    vivy-yi/xiaohongshu-skills

    A skill your agent uses when driving traffic to Xiaohongshu account from external sources, acquiring new followers beyond organic discovery, implementing multi-platform growth strategy, or scaling…

    481 GitHub starsUsed in 1 repo~4k tokens
    Marketing & SEOAuto-check passed
  • Amazon Product Research

    nexscope-ai/Amazon-Skills

    Comprehensive product research and opportunity analysis for Amazon sellers.

    744 GitHub starsUsed in 1 repo~3.2k tokens
    Marketing & SEOAuto-check passed

More from Othmane-Khadri/YALC-the-GTM-operating-system

All 57 skills in this repo
  • Claap Weekly Recap

    Othmane-Khadri/YALC-the-GTM-operating-system

    Turns a week of Claap-recorded sales calls into action items and focus blocks on a Notion Kanban, delivered with a Slack summary.

    318 GitHub stars~5.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Fullenrich Plg Reverse Lookup

    Othmane-Khadri/YALC-the-GTM-operating-system

    A skill your agent uses when the user says "set up FullEnrich reverse lookup for trial signups", "PLG enrichment webhook", "identify free trial signups via FullEnrich", "reverse email lookup for…

    318 GitHub stars~1.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Fullenrich Content Engagers

    Othmane-Khadri/YALC-the-GTM-operating-system

    A skill your agent uses when the user says "enrich people who engaged with this post", "qualify post engagers with FullEnrich", "scrape and enrich LinkedIn post {URL}", "engagers from this post into…

    318 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check: warnings
  • Fullenrich Event Attendees

    Othmane-Khadri/YALC-the-GTM-operating-system

    A skill your agent uses when the user says "enrich this LinkedIn event", "enrich attendees of this event", "enrich this attendees CSV", "scrape and enrich LinkedIn event {URL}", "FullEnrich event…

    318 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check: warnings
  • Answer Linkedin Comments

    Othmane-Khadri/YALC-the-GTM-operating-system

    Reply to comments on a LinkedIn post via Unipile — drafts thread-aware replies grounded in the user's voice and the conversation context, then sends on approval.

    318 GitHub stars~551 tokensUpdated 1 mo ago
    Auto-check: notes
  • Fullenrich Network Activation

    Othmane-Khadri/YALC-the-GTM-operating-system

    A skill your agent uses when the user says "activate co-founder network with FullEnrich", "enrich LinkedIn connections export", "qualify my LinkedIn connections CSV", "turn Connections.csv into a…

    318 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check: warnings

Categories

Questions about Run Doctor

What does Run Doctor do?

Run the GTM-OS health check across all 5 diagnostic layers (environment, database, configuration, provider connectivity, runtime state). Run Doctor is an agent skill from Othmane-Khadri/YALC-the-GTM-operating-system. Run the GTM-OS health check across all 5 diagnostic layers (environment, database, configuration, provider connectivity, runtime state).

When should I use Run Doctor?

Run Doctor fits situations like: the user says is YALC working; check YALC health; is everything configured; run the health check.

How do I install Run Doctor in Claude Code?

Run `npx skills add Othmane-Khadri/YALC-the-GTM-operating-system --skill run-doctor -a claude-code`. Or copy the skill folder (.claude/skills/run-doctor in Othmane-Khadri/YALC-the-GTM-operating-system) into .claude/skills/run-doctor in your project. Claude Code loads it when a task matches its description.

How do I install Run Doctor in Codex?

Run `npx skills add Othmane-Khadri/YALC-the-GTM-operating-system --skill run-doctor -a codex`. Or copy the skill folder (.claude/skills/run-doctor in Othmane-Khadri/YALC-the-GTM-operating-system) into .agents/skills/run-doctor in your project. Codex loads it when a task matches its description.

Can I use Run Doctor 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 Othmane-Khadri/YALC-the-GTM-operating-system --skill run-doctor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/run-doctor, .gemini/skills/run-doctor, .github/skills/run-doctor and .opencode/skills/run-doctor in your project.

What does Run Doctor need to run?

Going by SKILL.md and its folder, Run Doctor needs the command-line tools its instructions call (npx) and credentials named ANTHROPIC_API_KEY. Our summary lists: Node.js; A credential in ANTHROPIC_API_KEY.

Does Run Doctor access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Run Doctor safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Run Doctor use?

Run Doctor is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Run Doctor use?

About 1.9k tokens (SKILL.md is roughly 7.7k 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 897 tokens, read only when the agent opens those files.

What are the alternatives to Run Doctor?

Skills that share tags, products or a category with Run Doctor: Marketing Plan (Nexus-JPF/note-companion, 870 stars), Revenue Centric Design (heliocosta-dev/revenue-centric-design, 740 stars), Startup Design (ferdinandobons/startup-skill, 1.2k stars) and Jaredrhod Marketing (jaredrhod/ai-marketing-skills, 282 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Run Doctor?

Othmane-Khadri (a GitHub user) maintains it in Othmane-Khadri/YALC-the-GTM-operating-system, which has 318 GitHub stars. The repository holds 57 skills in this directory. The repository was last updated on August 20, 2026.

Source: Othmane-Khadri/YALC-the-GTM-operating-system on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.