captainphantasy/floyd-v5/grammar-gate
Claude Code and agent skill by captainphantasy/floyd-v5
- community
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-gateSKILL.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=BUILDafter generating or modifying code to verify it follows project conventions - WHEN
mode=DEBUGwhen 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
| Parameter | Type | Required | Description | |
|---|---|---|---|---|
| code | string | yes | The code snippet or file path to validate | |
| rules | string[] | no | Specific rules to check (default: all project rules) | |
| auto_fix | boolean | no | Whether 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
Failure Modes
- IF no linter is configured: fall back to built-in checks (naming conventions, indentation, missing error handling) using
greppattern matching - IF auto_fix creates a loop (fixing one violation creates another): halt after 3 iterations and report the cycle
Examples
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
- SKILL.md in the repositoryCheckingextensibility/skills/core/grammar-gate/SKILL.md
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
[](https://verified-skill.com/skills/captainphantasy/floyd-v5/grammar-gate)