Custom Resource
In Alchemy, a Resource is “just a function”. This makes it super easy to generate resources for your use-cases using Agentic IDEs like Cursor, Claude Code, Windsurf, etc.
Cursorrules
Section titled “Cursorrules”To start generating resources, copy Alchemy’s .cursorrules into your repo
Simple Prompt Example
Section titled “Simple Prompt Example”As an example, let’s show how easy it is to generate a resource for Neon’s famous serverless Database
Resource.
It usually doesn’t take much to get 90% of the way there - a simple prompt with a link to the API docs is a good start:
Create a Resource for managing a Neon Database See: https://api-docs.neon.tech/reference/createprojectbranchdatabase
This will generate the Resource implementation and tests.
Resource Implememtation
Section titled “Resource Implememtation”See the Resource Documentation for a comprehensive overview of a Resource.
Test Suite Implementation
Section titled “Test Suite Implementation”See the Testing Documentation for a comprehensive overview of how to test your Resources.