shadow-cljs-debug

Skill: Shadow-CLJS Debug

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "shadow-cljs-debug" with this command: npx skills add riatzukiza/devel/riatzukiza-devel-shadow-cljs-debug

Skill: Shadow-CLJS Debug

Goal

To systematically identify and fix compilation errors, dependency issues, and configuration problems in shadow-cljs projects.

Use This Skill When

  • shadow-cljs compile fails.

  • The build hangs or loops indefinitely.

  • You see "Undeclared Var", "No such namespace", or "Analysis Error".

  • You suspect a dependency is missing.

Do Not Use This Skill When

  • The error is clearly a syntax error (use clojure-syntax-rescue ).

Steps

  • Analyze Error:

  • Read the error message fully. Is it a compilation error or a dependency error?

  • Undeclared Var: You forgot to (:require [namespace :as alias]) or are using a function that doesn't exist.

  • No such namespace: The file path does not match the namespace declaration, or the package is not installed.

  • Check Config:

  • Read shadow-cljs.edn . Is the build ID correct? Are source paths included?

  • Read deps.edn (if used). Is the dependency listed?

  • Read package.json . Is the npm package installed?

  • Clean State:

  • If behavior is weird or inconsistent, delete the cache: rm -rf .shadow-cljs .cpcache .

  • Restart the watch process.

  • Verify Interop:

  • npm: Ensure you use (:require ["package-name" :as pkg]) for npm packages.

  • Globals: Use js/window or js/console for globals, do not require them.

  • Fix & Retry:

  • Apply the fix.

  • Run npx shadow-cljs compile <build-id> (or release for production).

Output

  • A successful compilation (exit code 0).

Strong Hints

  • Constraint: Never edit the output files (for example public/js/main.js ). Only edit .cljs source.

  • Tip: Shadow-CLJS relies heavily on package.json for JS deps. If an npm import fails, check node_modules first (workspace-dependency-check ).

  • Tip: (:require [foo.bar :as bar]) requires a file at src/foo/bar.cljs . Check file paths match namespaces exactly.

Suggested Next Skills

Check the Skill Graph for the full workflow.

  • clojure-syntax-rescue

  • workspace-dependency-check

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

testing-clojure-cljs

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

openclaw-version-monitor

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Archived SourceRecently Updated
Coding

ask-claude

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).

Archived SourceRecently Updated
Coding

ai-dating

This skill enables dating and matchmaking workflows. Use it when a user asks to make friends, find a partner, run matchmaking, or provide dating preferences/profile updates. The skill should execute `dating-cli` commands to complete profile setup, task creation/update, match checking, contact reveal, and review.

Archived SourceRecently Updated