supabase
Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...
Creates a rule file that triggers when specified files change. Use when setting up documentation sync, code review requirements, or automated commands.
Full skill instructions
Standalone skill - can be run anytime
Creates file-change rules that enforce guidelines during AI sessions. Use when automating documentation sync or code review triggers.
Goal: Creates a rule file that triggers when specified files change. Use when setting up documentation sync, code review requirements, or automated commands.
Create a new rule file in the .deepwork/rules/ directory to enforce team guidelines, documentation requirements, or other constraints when specific files change.
Guide the user through defining a new rule by asking structured questions. Do not create the rule without first understanding what they want to enforce.
Important: Use the AskUserQuestion tool to ask structured questions when gathering information from the user. This provides a better user experience with clear options and guided choices.
Start by asking structured questions to understand what the user wants to enforce:
What guideline or constraint should this rule enforce?
What action should be taken?
Are there any "safety" conditions?
Help the user select the appropriate detection mode:
Trigger/Safety Mode (most common):
Set Mode (bidirectional correspondence):
src/foo.py and tests/foo_test.py should change togetherPair Mode (directional correspondence):
Help the user define glob patterns for files.
Common patterns:
src/**/*.py - All Python files in src directory (recursive)app/config/**/* - All files in app/config directory*.md - All markdown files in rootsrc/api/**/* - All files in the API directorymigrations/**/*.sql - All SQL migrationsVariable patterns (for set/pair modes):
src/{path}.py - Captures path variable (e.g., foo/bar from src/foo/bar.py)tests/{path}_test.py - Uses same path variable in corresponding file{name} matches single segment, {path} matches multiple segmentsPattern syntax:
* - Matches any characters within a single path segment** - Matches any characters across multiple path segments (recursive)? - Matches a single characterThe compare_to field controls what baseline is used when detecting "changed files":
Options:
base (default) - Compares to the base of the current branch (merge-base with main/master). Best for feature branches.default_tip - Compares to the current tip of the default branch. Useful for seeing difference from production.prompt - Compares to the state at the start of each prompt. For rules about very recent changes.Most rules should use the default (base) and don't need to specify compare_to.
Create clear, actionable instructions for what the agent should do when the rule fires.
Good instructions include:
Template variables available in instructions:
{trigger_files} - Files that triggered the rule{expected_files} - Expected corresponding files (for set/pair modes)Create a new file in .deepwork/rules/ with a kebab-case filename:
File Location: .deepwork/rules/{rule-name}.md
Format for Trigger/Safety Mode:
---
name: Friendly Name for the Rule
trigger: "glob/pattern/**/*" # or array: ["pattern1", "pattern2"]
safety: "optional/pattern" # optional, or array
compare_to: base # optional: "base" (default), "default_tip", or "prompt"
---
Instructions for the agent when this rule fires.
Multi-line markdown content is supported.
Format for Set Mode (bidirectional):
---
name: Source/Test Pairing
set:
- src/{path}.py
- tests/{path}_test.py
---
Source and test files should change together.
Modified: {trigger_files}
Expected: {expected_files}
Format for Pair Mode (directional):
---
name: API Documentation
pair:
trigger: api/{path}.py
expects: docs/api/{path}.md
---
API code requires documentation updates.
Changed API: {trigger_files}
Update docs: {expected_files}
After creating the rule:
.deepwork/rules/config-docs.md:
---
name: Update Install Guide on Config Changes
trigger: app/config/**/*
safety: docs/install_guide.md
---
Configuration files have been modified. Please review docs/install_guide.md
and update it if any installation instructions need to change based on the
new configuration.
.deepwork/rules/security-review.md:
---
name: Security Review for Authentication Changes
trigger:
- src/auth/**/*
- src/security/**/*
safety:
- SECURITY.md
- docs/security_audit.md
---
Authentication or security code has been changed. Please:
1. Review for hardcoded credentials or secrets
2. Check input validation on user inputs
3. Verify access control logic is correct
4. Update security documentation if needed
.deepwork/rules/source-test-pairing.md:
---
name: Source/Test Pairing
set:
- src/{path}.py
- tests/{path}_test.py
---
Source and test files should change together.
When modifying source code, ensure corresponding tests are updated.
When adding tests, ensure they test actual source code.
Modified: {trigger_files}
Expected: {expected_files}
.deepwork/rules/api-docs.md:
---
name: API Documentation Update
pair:
trigger: src/api/{path}.py
expects: docs/api/{path}.md
---
API code has changed. Please verify that API documentation in docs/api/
is up to date with the code changes. Pay special attention to:
- New or changed endpoints
- Modified request/response schemas
- Updated authentication requirements
Changed API: {trigger_files}
Update: {expected_files}
Create a new file with the rule definition using YAML frontmatter and markdown body.
Rules are evaluated automatically when the agent finishes a task. The system:
compare_to settingYou can mark a rule as addressed by including <promise>Rule Name</promise> in your response (replace Rule Name with the actual rule name from the name field). This tells the system you've already handled that rule's requirements.
Manages rules that automatically trigger when certain files change during an AI agent session. Rules help ensure that code changes follow team guidelines, documentation is updated, and architectural decisions are respected.
IMPORTANT: Rules are evaluated at the "Stop" hook, which fires when an agent finishes its turn. This includes when sub-agents complete their work. Rules are NOT evaluated immediately after each file edit - they batch up and run once at the end of the agent's response cycle.
uv sync) when the agent stopsRules are stored as individual markdown files with YAML frontmatter in the .deepwork/rules/
directory. Each rule file specifies:
Example use cases:
uv sync when pyproject.toml changes (command action)User Parameters - Gather from user before starting:
Use branch format: deepwork/deepwork_rules-[instance]-YYYYMMDD
git checkout -b deepwork/deepwork_rules-[instance]-$(date +%Y%m%d)Required outputs:
.deepwork/rules/{rule-name}.mdThis standalone skill can be re-run anytime.
Reference files: .deepwork/jobs/deepwork_rules/job.yml, .deepwork/jobs/deepwork_rules/steps/define.md
Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...
Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.
Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.
A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.
Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.
Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.
Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.
Send, read, and manage Gmail messages, drafts, labels, and account settings.
Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.
Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.
Discover your celebrity doppelgänger with StarByFace!
GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams
Detect AI-generated voices to protect against audio fraud.
Ensure Your Content's Originality with AI Plagiarism Checker
Upscale images by 400% without quality loss
Protect your social media from copyright disputes
Accurately Detect AI-Generated Content with TheChecker.AI
Chrome extension that detects and flags AI-generated content