agentleFS
ivangrynenkoivangrynenko/cursorrules/.cursor/rules/third-party-integration.mdc

cursorrules / rules

Cursor rule88 starsChanged 13 months agoMITView on GitHub

Standards for integrating external services

  • Reads credentials

The file

Files
third-party-integration.mdc
---
description: Standards for integrating external services
globs: *.php, *.js, *.ts
---
# Third-Party Integration Standards

Ensures consistent and secure third-party service integration.

<rule>
name: third_party_integration
description: Enforce standards for external service integration
filters:
  - type: file_extension
    pattern: "\\.(php|js|ts)$"

actions:
  - type: enforce
    conditions:
      - pattern: "new\\s+[A-Z][a-zA-Z]*Client\\("
        message: "Implement proper error handling for external services"

      - pattern: "process\\.env\\.|getenv\\("
        message: "Use configuration management for API credentials"

  - type: suggest
    message: |
      Integration Best Practices:
      - Implement proper error handling
      - Use environment variables
      - Create service abstractions
      - Implement retry mechanisms
      - Monitor integration health

metadata:
  priority: high
  version: 1.0
</rule> 

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.