desktop-sonar
Skill by YosemiteCrew
Gives an AI assistant the rules and fix patterns for resolving SonarCloud issues in the apps/desktop project. Also covers writing Electron and renderer code that passes Sonar checks.
Install desktop-sonar
Built from the published package, never by AI.
git clone --depth 1 https://github.com/YosemiteCrew/Yosemite-Crew /tmp/Yosemite-Crew && mkdir -p ~/.claude/skills && cp -r /tmp/Yosemite-Crew/.agents/skills/desktop-sonar ~/.claude/skills/desktop-sonarRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/YosemiteCrew/Yosemite-Crew /tmp/Yosemite-Crew && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Yosemite-Crew/.agents/skills/desktop-sonar ~/.gemini/antigravity-cli/skills/desktop-sonarAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The desktop-sonar skill gives an AI assistant the rules and fix patterns used to resolve SonarCloud issues in the apps/desktop project. It also helps with writing new Electron and renderer code that must pass Sonar checks. It covers the rule categories enforced on the desktop project, the accepted role=dialog deferral, CSP and page-asset rules, and fix patterns that recur in this codebase. It points to the live SonarCloud project yosemitecrew_Yosemite-Crew_Desktop as the source of truth for open issues, instead of a fixed snapshot. The skill lists mandatory checks to run from apps/desktop after each change, including type-check, lint, archlint and the Jest test suite. It is aimed at developers working on the YosemiteCrew desktop app.
Written from the project's SKILL.md and checked against it.
What it can do
- Sonar rule categoriesDescribes the rule categories enforced on the desktop SonarCloud project.
- TypeScript and JS fix patternsMaps common Sonar rules such as S1874, S6606 and S3776 to one-line fixes.
- CSP fix guidanceExplains moving inline styles and scripts to external files to avoid unsafe-inline.
- Page asset registrationReminds to register new page files in scripts/copy-static.js so they ship.
- Accepted deferralDocuments why Web:S6819 role=dialog instances in tabbar.html are intentionally left as-is.
- Coverage gate notesExplains the source map setting needed for v8 coverage and a canary check to test it.
- Mandatory checksLists type-check, lint, archlint and test commands to run from apps/desktop after changes.
What you need
- Access to the SonarCloud project yosemitecrew_Yosemite-Crew_Desktop
- The YosemiteCrew repository with the apps/desktop project
Try asking
- Fix the open SonarCloud issues in apps/desktop for CSP unsafe-inline.
- Refactor this renderer function to stay under Sonar cognitive complexity 15.
- Replace deprecated webContents.goBack calls in apps/desktop with navigationHistory.
Good to know
- Does not contain a fixed list of current issues. The live SonarCloud project is the source of truth.
- There is no eslint-plugin-sonarjs in desktop. archlint is a local proxy for complexity checks.
- Web:S6819 role=dialog instances should match the existing deferral unless the show and hide mechanism is migrated.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/desktop-sonar/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to desktop-sonar
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
desktop-sonar: common questions
Does this skill list the current SonarCloud issues?
No. The skill says the live SonarCloud project is the source of truth and documents rule categories and fix patterns instead of a frozen issue count.
Should role=dialog warnings in the desktop app always be fixed?
No. Web:S6819 is deferred in src/pages/tabbar.html because converting to native dialog would change show and hide behavior. Match the existing deferral unless the mechanism is also migrated.
What does the CSP rule require for desktop pages?
Inline style, script and style attributes should move to .css or .js files. The source says to keep style-src file: and script-src file: and to register new files in scripts/copy-static.js pageAssets.
How do I install desktop-sonar?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is desktop-sonar free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is desktop-sonar safe to use?
It scores 73 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to desktop-sonar?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
