rails-webhooks▌
marckohlbrugge/37signals-skills · updated Jun 11, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
Build and review Rails webhook systems with safe delivery, retries, observability, and tenant-aware security controls. Use when adding webhook endpoints, outbound deliveries, retry logic, or webhook admin tooling.
| name | rails-webhooks |
| description | Build and review Rails webhook systems with safe delivery, retries, observability, and tenant-aware security controls. Use when adding webhook endpoints, outbound deliveries, retry logic, or webhook admin tooling. |
| disable-model-invocation | true |
Rails Webhooks
Use for outbound/inbound webhook architecture and reliability. Modeled on Fizzy's event-driven webhook pipeline (with Campfire's simpler bot webhooks as contrast).
Delivery Model (outbox pattern)
- Domain events enqueue one dispatch job; the dispatch job fans out, creating one persisted
Deliveryrow per webhook, each with a state enum (pending in_progress completed errored— string-backed viaindex_by(&:itself)). - Each delivery row auto-enqueues its own send via
after_create_commit :deliver_later— persist first, deliver second, so state survives crashes and retries. - Fan-out is crash-safe with
ActiveJob::Continuable: cursor over matching webhooks (find_each(start: step.cursor)+step.advance!) so a mid-batch crash resumes, not restarts. - Record request metadata (headers, payload) and response (status, body) on the delivery row for audit/debugging. Cap stored/streamed response bodies (~100KB) with a running byte count.
- Use a dedicated
webhooksqueue so slow destinations can't starve other work.
Failure Classification (the key distinction)
- Expected destination failures (timeout, TLS, DNS, connection refused, HTTP 4xx/5xx): rescue, mark delivery
completedwith a symbolic error (response: { error: :connection_timeout }). The delivery ran; the destination failed. Do not retry the job. - Unexpected exceptions (our bug): mark
errored!, re-raise so ActiveJob retries. - This split keeps retry behavior, dashboards, and delinquency tracking honest.
Delinquency Circuit Breaker
- Track consecutive failures +
first_failure_atper webhook; auto-deactivate after N failures spanning a minimum window (Fizzy: 10 failures over 1+ hour). - Reset the counter on success.
- Surface inactive state in the UI with a manual reactivation endpoint (
resource :activation).
Security Baseline
- Treat webhook URLs as untrusted input; apply full SSRF protections (resolve + validate IP, block private ranges, pin IP, re-validate per redirect — see rails-security-multitenancy).
- Revalidate destination at send time, not just on create.
- Destination URL is immutable after create — updates permit name/subscriptions only. Retargeting requires a new webhook (and new secret).
- Sign payloads: HMAC signature header + timestamp header.
- Whitelist subscribable events at the model layer:
normalizes :subscribed_actions, with: ->(v) { Array.wrap(v).map(&:to_s).uniq & PERMITTED_ACTIONS }. - Require admin-level auth for webhook management endpoints.
Integration Adapters
- One delivery pipeline can serve multiple destination types: detect by URL pattern (
for_slack?,for_campfire?), then vary content type, payload format (JSON/form/HTML), and rendering template per destination. Don't fork the delivery code per integration. - Render payload URLs with tenant-correct
script_nameso links in payloads work.
Inbound Webhooks (receiving)
- Verify the signature first (
construct_event-style), then re-fetch canonical state from the provider's API instead of trusting payload content or ordering. - For chat-bot style callbacks: gate what responses can do by content type (only
text/plain/text/htmlbecome replies), and prevent loops — never trigger a bot from its own messages.
Tenant Safety
- Keep webhook records and delivery queries tenant-scoped.
- Ensure event fan-out cannot leak cross-tenant data.
Operational Hygiene
- Recurring cleanup of old delivery records by retention policy (e.g. every 4 hours,
delete_allon a stale scope). - Surface delivery status/history in the webhook admin UI.
- Emit useful logs/metrics for success rate, retries, and latency.
Red Flags
- Fire-and-forget delivery with no persisted audit trail.
- Retrying destination failures the same way as code errors.
- Mutable webhook destination URLs.
- No circuit breaker — hammering dead endpoints forever.
- Unbounded reads of destination responses.
- No tenant scoping in delivery creation/lookup.
- No backpressure or queue isolation for high-volume events.
How to use rails-webhooks on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add rails-webhooks
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches rails-webhooks from GitHub repository marckohlbrugge/37signals-skills and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate rails-webhooks. Access the skill through slash commands (e.g., /rails-webhooks) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
Task Automation & Efficiency
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Knowledge Enhancement
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Quality Improvement
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client with skill support
- ›Clear understanding of task or problem to solve
- ›Willingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Installation Steps
- 1.Install skill using provided installation command
- 2.Test with simple use case relevant to your work
- 3.Evaluate output quality and relevance
- 4.Iterate on prompts to improve results
- 5.Integrate into regular workflow if valuable
Common Pitfalls
- ⚠Expecting perfect results without iteration
- ⚠Not providing enough context in prompts
- ⚠Using skill for tasks outside its intended scope
- ⚠Accepting outputs without review and validation
Best Practices▌
✓ Do
- +Start with clear, specific prompts
- +Provide relevant context and constraints
- +Review and refine all outputs before using
- +Iterate to improve output quality
- +Document successful prompt patterns
✗ Don't
- −Don't use without understanding skill limitations
- −Don't skip validation of outputs
- −Don't share sensitive information in prompts
- −Don't expect skill to replace human judgment
💡 Pro Tips
- ★Be specific about desired format and style
- ★Ask for multiple options to choose from
- ★Request explanations to understand reasoning
- ★Combine AI efficiency with human expertise
When to Use This▌
✓ Use When
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid When
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path▌
- 1Familiarize yourself with skill capabilities and limitations
- 2Start with low-risk, non-critical tasks
- 3Progress to more complex and valuable use cases
- 4Build expertise through regular use and experimentation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.5★★★★★75 reviews- ★★★★★Amelia Gill· Dec 16, 2024
rails-webhooks has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Mateo Singh· Dec 12, 2024
rails-webhooks fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Charlotte Garcia· Dec 12, 2024
rails-webhooks fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Aanya Chen· Dec 8, 2024
I recommend rails-webhooks for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Pratham Ware· Dec 4, 2024
Registry listing for rails-webhooks matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Jin Abbas· Dec 4, 2024
rails-webhooks reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Sofia Desai· Nov 27, 2024
rails-webhooks fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Yash Thakker· Nov 23, 2024
rails-webhooks reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Henry Park· Nov 23, 2024
Registry listing for rails-webhooks matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Aanya Huang· Nov 11, 2024
Solid pick for teams standardizing on skills: rails-webhooks is focused, and the summary matches what you get after install.
showing 1-10 of 75