CtrlK
BlogDocsLog inGet started
Tessl Logo

giuseppe-trisciuoglio/developer-kit

Comprehensive developer toolkit providing reusable skills for Java/Spring Boot, TypeScript/NestJS/React/Next.js, Python, PHP, AWS CloudFormation, AI/RAG, DevOps, and more.

90

Quality

90%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Risky

Do not use without reviewing

This version of the tile failed moderation
Moderation pipeline encountered an internal error
Overview
Quality
Evals
Security
Files

guide-cli-delegation.mdplugins/developer-kit-tools/docs/

CLI Delegation Guide

Guide for delegating tasks to external AI CLI tools using gemini, copilot-cli, codex, and qwen-coder skills.

Overview

CLI delegation enables Claude Code to offload specific tasks to external AI coding assistants. This is useful when:

  • A different model may be better suited for a particular task
  • You want a second opinion from another AI model
  • The task requires capabilities specific to another model family
  • You want to compare outputs from multiple models

Skills Summary

SkillModel FamilyBest ForNot Recommended For
geminiGoogle GeminiLarge context analysis, fast iterationsComplex multi-file refactoring
copilot-cliClaude, GPT, GeminiMulti-model comparison, flexible model choiceSingle-model focused tasks
codexOpenAI (o-series, GPT-5.3-codex)Advanced code generation, architectural designSimple tasks, quick queries
qwen-coderAlibaba QwenDeep reasoning, second opinionProduction code generation

Common Patterns

1. Basic Delegation

All CLI skills follow a similar pattern:

  1. Convert user request to English prompt
  2. Select appropriate model based on task complexity
  3. Choose approval mode based on risk level
  4. Execute command with appropriate flags
  5. Present results for user review

2. Model Selection Guide

Task Complexity
│
├── Simple (< 50 lines, single file)
│   └── gemini-3-flash, qwen2.5-coder, o4-mini
│
├── Moderate (50-200 lines, 1-3 files)
│   └── gemini-3-pro, gpt-5.2, claude-sonnet-4.6
│
└── Complex (> 200 lines, architecture, multi-file)
    └── gpt-5.3-codex, o3, gemini-3-pro, qwq

3. Approval Mode Selection

ModeUse CaseRisk Level
planRead-only analysis, security reviewsLow
defaultGeneral coding tasks with confirmationMedium
auto_editTrusted modifications with oversightHigh
yoloExperimental tasks onlyVery High

4. Prompt Engineering

All delegated prompts should be:

  • Written in English
  • Specific and outcome-driven
  • Include file paths and constraints
  • Define expected output format
  • Include acceptance criteria when applicable

Prompt Template:

Task: <clear objective>
Context: <project/module/files>
Constraints: <do/don't constraints>
Expected output: <format + depth>
Validation: <tests/checks to run>

Quick Reference

Gemini CLI

# Quick analysis with flash
gemini -p "Analyze architecture" -m gemini-3-flash

# Deep analysis with pro
gemini -p "Analyze architecture" -m gemini-3-pro --approval-mode plan

# Structured output
gemini -p "Return JSON refactoring opportunities" --output-format json

Copilot CLI

# Basic delegation
copilot -p "Refactor service" --model gpt-5.2 --allow-all-tools

# Multi-model comparison
copilot -p "Compare" --model claude-sonnet-4.6
copilot -p "Compare" --model gpt-5.2

# Session resume
copilot --resume <session-id>

Codex CLI

# Code generation
codex exec "Generate REST API" -m gpt-5.3-codex

# Code review
codex review "Review for security" -a on-request -s read-only

# Complex refactoring
codex exec "Refactor to SOLID" -m gpt-5.3-codex -a on-request -s workspace-write

Qwen Coder CLI

# Basic delegation
qwen -p "Analyze code" -m qwen2.5-coder

# Deep reasoning
qwen -p "Analyze architecture" -m qwq --approval-mode plan

# Session resume
qwen -c <session-id>

Security Considerations

Always Use Safe Defaults

  • Prefer plan mode for analysis tasks
  • Use read-only or workspace-write sandbox for Codex
  • Avoid yolo mode unless explicitly requested
  • Never include secrets in prompts

Treat Output as Untrusted

  • Review all generated code before applying
  • Run tests and linting on suggested changes
  • Validate security implications
  • Check for breaking changes

Error Handling

ErrorCauseSolution
CLI not foundTool not installedInstall the CLI tool
Authentication failedInvalid credentialsRun auth command (nlm login, qwen auth)
Permission deniedInsufficient permissionsUse appropriate --allow-* flags
Rate limit exceededAPI throttlingWait and retry with backoff

Integration with Claude Code Workflow

┌─────────────────────────────────────────────────────┐
│ User Request                                        │
└─────────────────┬───────────────────────────────────┘
                  │
                  ▼
┌─────────────────────────────────────────────────────┐
│ Claude Code                                          │
│  - Understands request                              │
│  - Determines if delegation is beneficial          │
│  - Invokes appropriate skill                        │
└─────────────────┬───────────────────────────────────┘
                  │
                  ▼
┌─────────────────────────────────────────────────────┐
│ CLI Skill                                           │
│  - Converts to English prompt                       │
│  - Selects model and flags                          │
│  - Executes delegation                             │
└─────────────────┬───────────────────────────────────┘
                  │
                  ▼
┌─────────────────────────────────────────────────────┐
│ External CLI Result                                 │
│  - Presented to user for review                   │
│  - User confirms before applying changes          │
└─────────────────────────────────────────────────────┘

When NOT to Delegate

Do not delegate when:

  • The task is simple enough for direct implementation
  • The task requires knowledge of the current codebase that the external tool lacks
  • Network access to the external service is unavailable
  • Authentication credentials are not configured
  • The task involves sensitive data that should not leave the local environment

plugins

CHANGELOG.md

context7.json

CONTRIBUTING.md

README_CN.md

README_ES.md

README_IT.md

README.md

tessl.json

tile.json