captainphantasy/floyd-v5/grammar-gate

Claude Code and agent skill by captainphantasy/floyd-v5

Trust tier 3
  • community
Source check pending

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

Validate generated code against project-specific structural rules, naming conventions, and idiomatic patterns

Install

npx vskill@latest install captainphantasy/floyd-v5/grammar-gate

SKILL.md

The same SKILL.md was published earlier as captainphantasy/floyd-v5/grammar-gate.

Grammar Gate

Validate generated code against project-specific structural rules, naming conventions, and idiomatic patterns.

When to Use

  • WHEN mode=BUILD after generating or modifying code to verify it follows project conventions
  • WHEN mode=DEBUG when a generated patch fails linting or formatting checks
  • WHEN onboarding to a new codebase and needing to understand its structural constraints

Actions

'validate' | 'lint' | 'fix'

Parameters

ParameterTypeRequiredDescription
codestringyesThe code snippet or file path to validate
rulesstring[]noSpecific rules to check (default: all project rules)
auto_fixbooleannoWhether to automatically apply fixes for violations (default: false)

Execution Pipeline

Step 1: Detect Project Grammar

Use glob to find project configuration files (.eslintrc, .golangci.yml, .prettierrc, pyproject.toml). Use view to read the relevant config and extract the active rules. If no config exists, fall back to language-default idiomatic patterns.

Step 2: Validate

Run the project's configured linter via mcp_floyd-runner_lint or bash with the appropriate lint command. If rules is specified, scope the check to only those rules. Capture all violations with file, line, and rule name.

Step 3: Fix (if auto_fix=true)

For each violation, apply the fix using edit or multiedit. Re-run the linter to confirm zero violations. If a fix introduces a new violation, revert and report the conflict.

Output Shape

json
{
"valid": true,
"violations": [
{
"file": "string — file path",
"line": 42,
"rule": "string — rule name",
"severity": "ERROR | WARNING | INFO",
"message": "string — human-readable description",
"auto_fixed": true
}
],
"total_violations": 3,
"files_checked": 5
}

Failure Modes

  • IF no linter is configured: fall back to built-in checks (naming conventions, indentation, missing error handling) using grep pattern matching
  • IF auto_fix creates a loop (fixing one violation creates another): halt after 3 iterations and report the cycle

Examples

json
{
"action": "validate",
"code": "internal/engine/planner.go",
"auto_fix": true
}

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

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

Source

Popularity

7-day trend score
5

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/captainphantasy/floyd-v5/grammar-gate/badge)](https://verified-skill.com/skills/captainphantasy/floyd-v5/grammar-gate)

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