Cliq is an AI coding assistant CLI built with Effect-TS, supporting multiple AI providers. It helps developers automate coding tasks, generate code, and integrate with various AI models. Ideal for operations teams looking to streamline development workflows.
git clone https://github.com/kpritam/cliq.gitCliq is an AI coding assistant CLI built with Effect-TS, supporting multiple AI providers. It helps developers automate coding tasks, generate code, and integrate with various AI models. Ideal for operations teams looking to streamline development workflows.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/kpritam/cliqCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Generate a TypeScript function using Cliq that connects to a PostgreSQL database and performs a CRUD operation for [COMPANY]'s [INDUSTRY] application. Use the following [DATA] schema: [SCHEMA]. Ensure the code follows best practices and includes error handling.
# PostgreSQL CRUD Operations for Retail Inventory Management
```typescript
import { Effect, Layer } from 'effect'
import * as Postgres from '@effect/platform-postgres'
// Define the inventory item type
type InventoryItem = {
id: string
name: string
quantity: number
price: number
}
// Create a PostgreSQL layer
const postgresLayer = Postgres.layer(
Postgres.config(
Postgres.url('postgres://user:password@localhost:5432/retail_db')
)
)
// Define CRUD operations
const InventoryService = {
// Create
createItem: (item: InventoryItem) =>
Effect.gen(function* (_) {
const client = yield* _(Postgres.client(postgresLayer))
const result = yield* _(client.query(
'INSERT INTO inventory (name, quantity, price) VALUES ($1, $2, $3) RETURNING *',
[item.name, item.quantity, item.price]
))
return result.rows[0]
}),
// Read
getItem: (id: string) =>
Effect.gen(function* (_) {
const client = yield* _(Postgres.client(postgresLayer))
const result = yield* _(client.query(
'SELECT * FROM inventory WHERE id = $1',
[id]
))
return result.rows[0]
}),
// Update
updateItem: (id: string, item: Omit<InventoryItem, 'id'>) =>
Effect.gen(function* (_) {
const client = yield* _(Postgres.client(postgresLayer))
const result = yield* _(client.query(
'UPDATE inventory SET name = $1, quantity = $2, price = $3 WHERE id = $4 RETURNING *',
[item.name, item.quantity, item.price, id]
))
return result.rows[0]
}),
// Delete
deleteItem: (id: string) =>
Effect.gen(function* (_) {
const client = yield* _(Postgres.client(postgresLayer))
const result = yield* _(client.query(
'DELETE FROM inventory WHERE id = $1 RETURNING *',
[id]
))
return result.rowCount > 0
})
}
// Example usage
const program = Effect.gen(function* (_) {
const newItem = yield* _(InventoryService.createItem({
id: '1',
name: 'Laptop',
quantity: 10,
price: 999.99
}))
console.log('Created item:', newItem)
const fetchedItem = yield* _(InventoryService.getItem('1'))
console.log('Fetched item:', fetchedItem)
const updatedItem = yield* _(InventoryService.updateItem('1', {
name: 'Premium Laptop',
quantity: 5,
price: 1299.99
}))
console.log('Updated item:', updatedItem)
const isDeleted = yield* _(InventoryService.deleteItem('1'))
console.log('Item deleted:', isDeleted)
})
// Run the program
Effect.runPromise(program).catch(console.error)
```
## Key Features
- **Type-Safe Operations**: Uses Effect-TS for type-safe database operations.
- **CRUD Functionality**: Supports Create, Read, Update, and Delete operations.
- **Error Handling**: Includes robust error handling for database operations.
- **Modular Design**: Easily extendable for additional database operations.Cloud ETL platform for non-technical data integration
IronCalc is a spreadsheet engine and ecosystem
Business communication and collaboration hub
Customer feedback management made simple
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan