Slash commands
By settinginvokable
to true
, you make the markdown file a prompt, which will be available when you type / in Chat, Plan, and Agent mode.
explain-invokable.md
Example: Create Supabase functions
prompt
Here is a prompt that generates high-quality PostgreSQL functions that adhere to best practices:
supabase-create-functions.md
You can read the rest of the
Create Supabase functions
prompt hereconfig.yaml
, you can add it to your agent like this:
config.yaml
Using a prompt with cn (TUI mode)
You can run this command to start cn with the Create Supabase functions prompt.
Using a prompt to kick off a Continuous AI workflow with `cn (Headless mode)
You can kick off Continuous AI workflows using a prompt with cn by adding the-p
flag.
For example, say you are building a SaaS application and must repeatedly create custom Supabase validation functions for each new feature that accepts user input.
These functions require you to interpret business requirements, implement complex cross-table logic (like checking user permissions, tier limits, and time-based restrictions), and make judgment calls about edge cases.
Each function is unique enough that it can’t be templated or scripted. This is where kicking off a Continuous AI workflow to get you started can be quite helpful.
Here is a command that you could run whenever you have a new feature:
You can see the entire
Create Supabase functions
prompt here