Skip to content
Back to skills

Code Quality

ASecurity

Enable the Code Quality Advisor. When on, SQL files written during tool use are automatically analyzed for anti-patterns (SELECT *, missing WHERE, unbounded results, cartesian products, deprecated functions) and findings are logged.

  • 724 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
ai-agentssql

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add Snowflake-Labs/cocoplus --skill code-quality --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Quality?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Quality
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/snowflake-labs-code-quality-cocoplus/badge)](https://www.skillsdirectory.com/skills/snowflake-labs-code-quality-cocoplus)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "quality-on"
description: "Enable the Code Quality Advisor. When on, SQL files written during tool use are automatically analyzed for anti-patterns (SELECT *, missing WHERE, unbounded results, cartesian products, deprecated functions) and findings are logged."
version: "1.0.0"
author: "CocoPlus"
tags:
  - cocoplus
  - code-quality
---

Your objective is to enable the Code Quality Advisor.

Before proceeding, verify that `.cocoplus/` exists.
If not: output "CocoPlus not initialized in this directory. Run `$pod init` to begin." Then stop.

Create mode flag: create the file `.cocoplus/modes/quality.on` with empty content using the Write tool (cross-platform: do not use `touch`)
Update AGENTS.md (keep ≤200 lines): replace Quality line with `- Quality: ON (auto-review SQL writes)`

Output: "✓ Code Quality Advisor enabled. SQL files written during this session will be automatically reviewed for anti-patterns. Findings are written to .cocoplus/quality-findings-[timestamp].md."

## Anti-Rationalization

| Shortcut / Temptation | Why It Fails |
|-----------------------|--------------|
| Skip updating AGENTS.md since the mode flag is already set | AGENTS.md is the hot context; if it still says "Quality: off" the AI will behave as if quality is off |

## Exit Criteria

- [ ] `.cocoplus/modes/quality.on` flag exists
- [ ] `.cocoplus/AGENTS.md` Quality line reads `- Quality: ON (auto-review SQL writes)`

Files in this skill

  • quality-off.skill.md1.3 KB
  • quality-on.skill.md1.4 KB
  • quality-run.skill.md2.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…