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 interactive AI coding assistant CLI built on Effect-TS that enables developers to automate coding tasks and generate code through a functional programming architecture. It supports multiple AI providers including Anthropic, OpenAI, and Google, configurable via environment variables. The tool includes file operations, glob pattern search, ripgrep integration, and persistent session management stored locally. Developers can use slash commands to switch models and manage sessions within the chat interface. Cliq targets Bun 1.1+ and emphasizes pure functional patterns with explicit error handling and dependency injection through Effect layers.
[{"step":"Install Cliq globally via npm: `npm install -g @cliq/cli`","tip":"Ensure you have Node.js v18+ installed. Use `node -v` to check your version."},{"step":"Configure your preferred AI provider in Cliq: `cliq config set provider [PROVIDER_NAME]` (e.g., 'claude', 'openai', 'gemini')","tip":"Authenticate with your API key first: `cliq auth login [PROVIDER_NAME]`"},{"step":"Run a task using the template: `cliq run \"[YOUR_PROMPT]\"`","tip":"Use the `--language` flag to specify the target language if not obvious from context (e.g., `--language typescript`)."},{"step":"Review the generated code/output and iterate if needed by running `cliq run` again with refined instructions.","tip":"For complex tasks, break them into smaller chunks using multiple Cliq commands."},{"step":"Integrate the output into your project and test thoroughly.","tip":"Use Cliq's `--output` flag to save results directly to a file: `cliq run \"[PROMPT]\" --output path/to/file.ts`"}]
Automating repetitive coding tasks and code generation across multiple AI models
Interactive code reviews and refactoring with file editing and diff preview
Searching and analyzing codebases using glob patterns and ripgrep
Building development workflows with persistent session and message history
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.
Use Cliq to [TASK] for [PROJECT/LANGUAGE] with [AI_PROVIDER]. Example: 'Use Cliq to generate a TypeScript function that calculates Fibonacci numbers using the Claude 3.5 Sonnet model.'
```typescript
/**
* Calculates the nth Fibonacci number using an iterative approach.
* @param n - The index of the Fibonacci number to compute (must be >= 0)
* @returns The nth Fibonacci number
* @example
* fibonacci(10) // returns 55
*/
function fibonacci(n: number): number {
if (n < 0) throw new Error('Input must be a non-negative integer');
if (n <= 1) return n;
let a = 0;
let b = 1;
let temp: number;
for (let i = 2; i <= n; i++) {
temp = a + b;
a = b;
b = temp;
}
return b;
}
// Example usage:
console.log(fibonacci(10)); // Output: 55
console.log(fibonacci(20)); // Output: 6765
```
**Implementation Notes:**
1. **Performance**: This O(n) solution avoids recursion to prevent stack overflow for large n.
2. **Edge Cases**: Explicitly handles n=0 and n=1, and throws an error for negative inputs.
3. **Type Safety**: Uses TypeScript for compile-time type checking.
4. **Testing**: You can verify with:
```bash
npx ts-node fibonacci.ts 10 # Should output 55
npx ts-node fibonacci.ts 20 # Should output 6765
```
**Next Steps:**
- Add unit tests using Jest or Vitest
- Consider memoization for repeated calls with the same n
- Add JSDoc comments for API documentationCloud ETL platform for non-technical data integration
IronCalc is a spreadsheet engine and ecosystem
Get more done every day with Microsoft Teams – powered by AI
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