greppable/greppable-cc-plugin/managing-gdl-rules

Claude Code and agent skill by greppable/greppable-cc-plugin

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when creating, reviewing, or maintaining @rule records in rules.gdl files — provides format reference, quality criteria for what makes a rule worth writing, severity calibration, and the gdl_rules_for_file helper. Triggers on: rules.gdl files, 'add a rule', 'create a coding rule', 'enforce this convention', observing a strong codebase convention. NOT for @memory observations, .gdlm files, or general code review.

Install

npx vskill@latest install greppable/greppable-cc-plugin/managing-gdl-rules

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as greppable/greppable-cc-plugin/managing-gdl-rules.

GDL Rules Reference

Current Rules

!bash -c 'if [ -f rules.gdl ]; then echo "From rules.gdl:"; echo ""; grep "^@rule" rules.gdl 2>/dev/null; else echo "No rules.gdl found in project root."; fi'

What Makes a Rule Worth Writing

A rule captures a project-specific convention with codebase evidence. Not a generic best practice.

Good rule (project-specific)Bad rule (generic)
"API routes must validate input with zod schemas""Use descriptive variable names"
"Never modify existing migrations — create new ones""Write clean code"
"React components use PascalCase filenames""Follow naming conventions"

The test: Can you point to 3+ files that follow this convention? If yes, it's a rule. If it's advice you'd give on any project, it's not.

When to Write vs Observe

  • Write a @rule when: you've seen the convention in 3+ files, or the user explicitly confirms it
  • Write a @memory observation when: you've noticed a pattern but aren't sure it's intentional
  • Don't write anything when: it's a language-level best practice that any linter would catch

Format

@rule|scope:GLOB|severity:LEVEL|desc:TEXT
FieldValuesMeaning
scopeGlob pattern (*.ts, src/api/**, **/*.test.*)Which files this rule applies to
severityerrorWill break things if violated — wrong behavior, data loss, security
warnConvention that should be followed — consistency, maintainability
infoTeam preference — style, approach
descFree textWhat the rule requires (imperative form)

Tool Function

bash
source "${CLAUDE_PLUGIN_ROOT}/scripts/gdl-tools.sh"
# Check which rules apply to a file
gdl_rules_for_file "src/api/routes.ts" rules.gdl

Grep Patterns

bash
# All rules
grep "^@rule" rules.gdl
# Rules for a specific scope
grep "^@rule|scope:src/api" rules.gdl
# All error-severity rules
grep "severity:error" rules.gdl
# Rules matching a file (fuzzy)
grep "^@rule" rules.gdl | grep "\.ts"

Where Rules Live

<gdl_root>/data/rules.gdl or rules.gdl in the project root.

Lifecycle

  1. Discovery — agent proposes initial rules based on observed conventions, user confirms
  2. Sessions — Claude notices a strong convention while working, proposes a rule
  3. Review — user or agent adjusts severity, scope, or removes outdated rules

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/greppable/greppable-cc-plugin/managing-gdl-rules/badge)](https://verified-skill.com/skills/greppable/greppable-cc-plugin/managing-gdl-rules)

Something wrong with this skill or its page? Tell us.