dicklesworthstone/pi_agent_rust/windsurf-policy-guardrails
Claude Code and agent skill by dicklesworthstone/pi_agent_rust
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Implement Windsurf lint rules, policy enforcement, and automated guardrails. Use when setting up code quality rules for Windsurf integrations, implementing pre-commit hooks, or configuring CI policy checks for Windsurf best practices. Trigger with phrases like "windsurf policy", "windsurf lint", "windsurf guardrails", "windsurf best practices check", "windsurf eslint".
Install
npx vskill@latest install dicklesworthstone/pi_agent_rust/windsurf-policy-guardrailsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as dicklesworthstone/pi_agent_rust/windsurf-policy-guardrails.
Windsurf Policy & Guardrails
Overview
Automated policy enforcement and guardrails for Windsurf integrations.
Prerequisites
- ESLint configured in project
- Pre-commit hooks infrastructure
- CI/CD pipeline with policy checks
- TypeScript for type enforcement
ESLint Rules
Custom Windsurf Plugin
ESLint Configuration
Pre-Commit Hooks
TypeScript Strict Patterns
Architecture Decision Records
ADR Template
Policy-as-Code (OPA)
CI Policy Checks
Runtime Guardrails
Instructions
Step 1: Create ESLint Rules
Implement custom lint rules for Windsurf patterns.
Step 2: Configure Pre-Commit Hooks
Set up hooks to catch issues before commit.
Step 3: Add CI Policy Checks
Implement policy-as-code in CI pipeline.
Step 4: Enable Runtime Guardrails
Add production safeguards for dangerous operations.
Output
- ESLint plugin with Windsurf rules
- Pre-commit hooks blocking secrets
- CI policy checks passing
- Runtime guardrails active
Error Handling
| Issue | Cause | Solution | |
|---|---|---|---|
| ESLint rule not firing | Wrong config | Check plugin registration | |
| Pre-commit skipped | --no-verify | Enforce in CI | |
| Policy false positive | Regex too broad | Narrow pattern match | |
| Guardrail triggered | Actual issue | Fix or whitelist |
Examples
Quick ESLint Check
Resources
Next Steps
For architecture blueprints, see windsurf-architecture-variants.
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 repositoryCheckingtests/ext_conformance/artifacts/plugins-community/plugins/saas-packs/windsurf-pack/skills/windsurf-policy-guardrails/SKILL.md
Popularity
- Repository stars
- 1,831
- Repository forks
- 217
- 7-day trend score
- 43
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
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/dicklesworthstone/pi_agent_rust/windsurf-policy-guardrails)