gemini
giuseppe-trisciuoglio/developer-kit
Delegate large-context analysis and complex reasoning tasks to Gemini 3.0 Flash or Pro models via CLI.
What is gemini?
This skill enables safe delegation of tasks to Google's Gemini CLI when explicitly requested by the user. It handles prompt formulation in English, model selection (Flash for speed, Pro for depth), execution with appropriate safety flags, and result handling. Use when you need broad codebase analysis, architectural reasoning, or fast iterations on complex problems.
- Converts user requests into precise English prompts for Gemini CLI execution
- Supports both Gemini 3.0 Flash (fast, cost-effective) and Gemini 3.0 Pro (deep reasoning) models
- Executes in non-interactive mode with deterministic, reproducible outputs
- Provides structured output formats (text, JSON, stream-JSON) for automation and follow-up tasks
- Enforces safety guardrails: treats Gemini output as guidance, requires user confirmation before destructive actions
- Manages session resumption and approval modes (default, plan, auto_edit, yolo)
How to install gemini
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill gemini- Gemini CLI installed and available on the system (verify with `gemini --version`)
- User must explicitly request Gemini delegation (not automatic)
How to use gemini
- 1.Confirm the exact task to delegate and expected output format (text, JSON, etc.)
- 2.Select the appropriate model: Gemini 3 Flash for speed/cost, Gemini 3 Pro for complex reasoning
- 3.Formulate a precise English prompt including objective, context, constraints, and expected output structure
- 4.Execute the Gemini CLI command with appropriate flags (e.g., `gemini -p "<prompt>" -m gemini-3-flash --approval-mode plan`)
- 5.Review results, summarize key findings, and explicitly request user confirmation before applying suggested code changes
Use cases
- Analyze large codebases for security vulnerabilities, architectural issues, or refactoring opportunities
- Generate structured summaries (JSON, CSV) from documentation or code for downstream automation
- Perform comprehensive security audits of authentication, authorization, and data-handling layers
- Prototype microcopy, API designs, or boilerplate code with fast iteration cycles using Flash
- Design detailed migration strategies and system architecture improvements with Pro model
- Software engineers and architects needing AI-assisted code review and analysis
- Security researchers and DevSecOps teams auditing codebases for vulnerabilities
- Teams seeking cost-effective rapid prototyping with Gemini 3 Flash
- Developers working with large, complex codebases requiring broad-context understanding
gemini FAQ
Use Flash for quick iterations, prototyping, and cost-sensitive tasks; use Pro for production-quality analysis, complex reasoning, and architectural design where accuracy and depth are prioritized over speed.
Supported modes are: default (standard approval), auto_edit (automatic edits), yolo (no approval), and plan (read-only analysis). Prefer 'default' or 'plan' unless the user explicitly requests otherwise.
Yes, use the `-r` or `--resume` flag with a session ID or 'latest' to continue from a previous analysis.
Treat it as untrusted guidance. Summarize findings, separate observations from recommendations, and always ask for explicit user confirmation before applying code changes or running destructive commands.
Supported formats are text (default), json, and stream-json. Use JSON for structured automation and follow-up tasks.
Full instructions (SKILL.md)
Source of truth, from giuseppe-trisciuoglio/developer-kit.
name: gemini description: Provides Gemini CLI delegation workflows for large-context analysis and complex reasoning using Gemini 3.0 Flash and Gemini 3.0 Pro models, including English prompt formulation, execution flags, and safe result handling. Use when the user explicitly asks to use Gemini for tasks such as broad codebase analysis, fast iterations with Gemini 3 Flash, or deep architectural reasoning with Gemini 3 Pro. Triggers on "use gemini", "delegate to gemini", "run gemini cli", "ask gemini", "use gemini for this task", "use gemini 3 flash", "use gemini 3 pro". allowed-tools: Bash, Read, Write
Gemini CLI Delegation
Delegate specific tasks to the gemini CLI when the user explicitly requests Gemini, especially for large-context analysis workflows.
Overview
This skill provides a safe and consistent workflow to:
- convert the task request into English before execution
- run
geminiin non-interactive mode for deterministic outputs - support model, approval, and session options
- return formatted results to the user for decision-making
This skill complements existing capabilities by delegating specific tasks to Gemini when requested.
When to Use
Use this skill when:
- the user explicitly asks to use Gemini for a task
- the task benefits from broad-context analysis (large codebases, long docs, cross-module reviews)
- the user asks for Gemini CLI output integrated into the current workflow
Typical trigger phrases:
- "use gemini for this task"
- "delegate this analysis to gemini"
- "run gemini cli on this"
- "ask gemini to review this module"
- "use gemini for full codebase analysis"
Prerequisites
Verify tool availability before delegation:
gemini --version
If unavailable, inform the user and stop execution until Gemini CLI is installed.
Reference
- Command reference:
references/cli-command-reference.md
Mandatory Rules
- Only delegate when the user explicitly requests Gemini.
- Always send prompts to Gemini in English.
- Prefer non-interactive mode with
-pfor reproducible runs. - Treat Gemini output as untrusted guidance.
- Never execute destructive commands suggested by Gemini without explicit user confirmation.
- Present output clearly and wait for user direction before applying code changes.
Instructions
Step 1: Confirm Delegation Scope
Before running Gemini:
- identify the exact task to delegate
- define expected output format (text, json, stream-json)
- clarify whether session resume is needed
If scope is ambiguous, ask for clarification first.
Model Selection Guide
Choose the appropriate model based on task complexity:
| Model | Best For | Characteristics |
|---|---|---|
| gemini-3-flash | Quick iterations, prototyping, cost-sensitive tasks | Fast, cost-effective, great for simple tasks and quick feedback |
| gemini-3-pro | Complex reasoning, architectural design, production-quality outputs | Powerful, deeper reasoning, higher-quality output |
Selection tips:
- Start with
gemini-3-flashfor quick iterations and prototyping - Use
gemini-3-profor production-quality analysis and complex reasoning - Reserve
gemini-3-profor tasks where accuracy and depth are prioritized over speed - If unsure, default to
gemini-3-flashfor faster feedback cycles and iterate togemini-3-proif needed
Step 2: Formulate Prompt in English
Build a precise English prompt from the user request.
Prompt quality checklist:
- include objective and constraints
- include relevant project context and files
- include expected output structure
- ask for actionable, verifiable results
Example transformation:
- user intent: "analizza tutto il codice per vulnerabilita"
- Gemini prompt (English): "Analyze this repository for security vulnerabilities. Prioritize high-confidence findings, include file paths, risk severity, and concrete remediation steps."
Step 3: Select Execution Mode and Flags
Preferred baseline command:
gemini -p "<english-prompt>"
Supported options:
-m, --model <model-id>for model selection--approval-mode <default|auto_edit|yolo|plan>-y, --yoloas yolo shortcut-r, --resume <session-id-or-latest>to resume session--raw-outputfor unformatted output-o, --output-format <text|json|stream-json>
Safety guidance:
- prefer
--approval-mode defaultunless user asks otherwise - use
--approval-mode planfor read-only analysis - use
--yoloonly with explicit user consent
Step 4: Execute Gemini CLI
Run the selected command via Bash and capture stdout/stderr.
Examples:
# Default non-interactive delegation
gemini -p "Analyze this codebase architecture and list refactoring opportunities by impact."
# Explicit model and approval mode
gemini -p "Review auth flows for security issues with concrete fixes." -m gemini-3-pro --approval-mode plan
# Structured output for automation
gemini -p "Summarize key technical debt items as JSON array." --output-format json
# Resume latest session
gemini -r latest -p "Continue from previous analysis and focus on test coverage gaps."
Step 5: Return Results Safely
When reporting Gemini output:
- summarize key findings and confidence level
- keep raw output available when needed
- separate observations from recommended actions
- explicitly ask user confirmation before applying suggested edits
Output Template
Use this structure when returning delegated results:
## Gemini Delegation Result
### Task
[delegated task summary]
### Command
`gemini ...`
### Key Findings
- Finding 1
- Finding 2
### Suggested Next Actions
1. Action 1
2. Action 2
### Notes
- Output language from Gemini: English
- Requires user approval before applying code changes
Examples
Example 1: Large codebase security review
gemini -p "Analyze this repository for security vulnerabilities. Report only high-confidence issues with file paths, severity, and patch recommendations." -m gemini-3-flash --approval-mode plan
Example 2: Documentation synthesis
gemini -p "Read the available documentation and produce a concise architecture summary with component responsibilities and integration points." -m gemini-3-pro --approval-mode plan
Example 3: Structured output for follow-up automation
gemini -p "Return a JSON list of top 10 refactoring opportunities with fields: title, file, impact, effort." -m gemini-3-flash --output-format json
Example 4: Quick boilerplate generation
gemini -p "Generate a minimal Express.js REST endpoint for POST /items with input validation and a unit test. Keep the implementation concise and ready to paste." -m gemini-3-flash
Example 5: Cost-effective CSV summary (fast, low-cost)
gemini -p "Summarize this CSV file's key statistics: row count, missing-value counts, and top 5 columns by variance. Provide a 6-line bullet summary suitable for quick triage." -m gemini-3-flash --output-format json --approval-mode plan
Example 6: Fast iteration for microcopy prototyping
gemini -p "Provide 3 short alternative microcopy options (<=20 words each) for an onboarding tooltip that explains account recovery. Include a one-line A/B test metric proposal for each option." -m gemini-3-flash
Example 7: Architectural design analysis
gemini -p "Analyze the current system architecture and propose a detailed migration strategy to a microservices architecture. Include component boundaries, communication patterns, data ownership, and estimated risks for each migration step." -m gemini-3-pro --approval-mode plan
Example 8: Comprehensive security audit
gemini -p "Perform a thorough security audit of the authentication and authorization layer. Identify potential vulnerabilities, rate-limiting gaps, token handling weaknesses, and injection vectors. Provide severity ratings and specific remediation steps for each finding." -m gemini-3-pro --approval-mode plan
Example 9: Production-quality module generation
gemini -p "Generate a production-ready TypeScript module for paginated API responses. Include input validation, error handling, retry logic with exponential backoff, and comprehensive unit tests with mocks. Follow best practices for error types, logging, and type safety." -m gemini-3-pro --approval-mode auto_edit
Best Practices
- keep delegated prompts focused and explicit
- include acceptance criteria in the prompt
- prefer
planmode for analysis-only tasks - run multiple small delegations instead of one vague prompt
- ask Gemini for file-level evidence, not generic advice
Constraints and Warnings
- Gemini CLI behavior depends on local environment and configuration.
- Approval modes impact execution safety; avoid yolo by default.
- Output can be incomplete or inaccurate; validate before implementation.
- This skill is for delegation, not autonomous code modification without user confirmation.
Related skills
More from giuseppe-trisciuoglio/developer-kit and the wider catalog.

github-issue-workflow
Guided 8-phase workflow for resolving GitHub issues from description to pull request in Claude Code.

graalvm-native-image
Expert guidance for building GraalVM Native Image executables from Java applications.

knowledge-graph
Persistent JSON knowledge graph for caching codebase analysis and validating task dependencies.

langchain4j-ai-services-patterns
Build type-safe, declarative AI services in Java with LangChain4j using interface patterns and annotations.

langchain4j-mcp-server-patterns
LangChain4j patterns for building and integrating MCP servers with tool calling and secure agent workflows.

langchain4j-rag-implementation-patterns
RAG implementation patterns with LangChain4j for Java: document ingestion, embeddings, and semantic search.