[TERMINAL · SKILLS]
> mounting /skills...
> indexing skill manifests...
> linking agents: claude · codex · gemini · cursor
> ready.
[░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0%
Use Cases/Set Up AI Terminal Coding Agents for Your Team

Set Up AI Terminal Coding Agents for Your Team

Configure a team-wide AI coding workflow using Claude Code for complex architecture tasks, OpenAI Codex CLI for autonomous issue resolution in CI, and Gemini CLI for codebase-wide analysis — standardizing how a 6-person engineering team delegates work to AI agents while maintaining code quality and security.

Development#ai-coding#cli#terminal#pair-programming#agentic
Works with:claude-codeopenai-codexgemini-clicursor

Skills stack · 7 skills

Avg quality 86/100·All SAFE
>

claude-code

v1.1.0

Claude Code is Anthropic's AI coding agent for the terminal, IDEs, desktop and web: it reads a codebase, edits files, runs commands and tests, and iterates. Use when a user asks to install or set up Claude Code, write CLAUDE.md or rules, set permissions, add MCP servers, create hooks, or run claude -p in scripts and CI.

77/100 quality
9.20× impact
SAFE· stale score
View skill
>

openai-codex-cli

v1.1.0

OpenAI Codex CLI is an open-source terminal coding agent that reads your repository, edits files and runs commands inside an OS-enforced sandbox. Use when someone asks to "install Codex CLI", "run codex in CI", "use codex exec", "set Codex approval and sandbox modes", "write AGENTS.md for Codex", "review my diff with Codex", or "configure ~/.codex/config.toml".

93/100 quality
3.30× impact
SAFE· stale score
View skill
>

gemini-cli

v1.1.0

Gemini CLI is Google's open-source AI agent for the terminal: it reads and edits code, runs shell commands, and connects to MCP servers using Gemini models. Use when someone asks to "install Gemini CLI", "run gemini in a script", "set up GEMINI.md", "add an MCP server to Gemini CLI", "sandbox Gemini CLI", or "log in to Gemini CLI". Covers current install, authentication (the unpaid Google-account tier ended 18 June 2026), headless mode, GEMINI.md, MCP, and sandboxing.

87/100 quality
3.22× impact
SAFE· stale score
View skill
>

openspec

v1.0.0

OpenSpec is a command-line tool plus a set of slash commands that make an AI coding agent write a reviewable plan — proposal, requirements with scenarios, design and task list — before it changes any code. Use when a user asks to set up spec-driven development, run openspec init, propose a change with /opsx:propose, write a spec before coding, validate or archive an OpenSpec change, or keep requirements in the repository for Claude Code, Codex, Gemini CLI or Cursor.

93/100 quality
8.30× impact
SAFE· stale score
View skill
>

kilo-code

v1.0.0

Kilo Code is an open-source AI coding agent that runs in the terminal, VS Code and JetBrains, reads and edits a codebase, runs commands, and works with 500+ models from any provider, including local Ollama. Use it to script the `kilo` CLI: one-shot `kilo run` tasks, CI jobs with `--auto`, provider and model setup in `kilo.jsonc`, permission rules, and custom agents in `.kilo/agents/`. Triggers: "set up Kilo Code", "kilo run in CI", "use Kilo with Ollama", "Kilo custom agent", "open-source coding agent that works with any model".

100/100 quality
8.30× impact
SAFE· stale score
View skill
>

opencode

v1.0.0

OpenCode is an open-source AI coding agent that runs in the terminal, reads a codebase, edits files and runs shell commands using any of 75+ model providers or a local model. Use it to set up OpenCode, write opencode.json, choose models and providers, restrict permissions, create custom agents and slash commands, add MCP servers, or script it with `opencode run` in CI. Trigger phrases: "install opencode", "configure opencode.json", "use opencode with Ollama", "opencode run in CI", "opencode plan mode", "create an opencode agent", "open-source alternative to Claude Code".

70/100 quality
7.30× impact
SAFE· stale score
View skill
>

earendil-pi

v1.0.0

Pi is a minimal, open-source terminal coding agent from Earendil Works that works with many model providers and is customised through extensions, skills and prompt templates. Use when the user asks to install Pi, run `pi` in a repository, log in to a provider, script Pi with `--print` or `--mode json`, point it at a local Ollama model, add MCP servers, or sandbox an agent that has no built-in permission prompts.

80/100 quality
4.88× impact
SAFE
View skill
$

Sam is an engineering manager at a Series A startup with 6 developers. Each developer uses AI differently — some copy-paste into ChatGPT, some use Copilot suggestions they don't review, and one developer doesn't use AI at all. The result: inconsistent code quality, no shared conventions for AI-generated code, and security concerns about code being sent to different providers.

Sam standardizes the team on three terminal-based AI agents, each for a specific workflow: Claude Code for complex architecture and multi-file tasks, Codex CLI for autonomous issue processing in CI, and Gemini CLI for codebase analysis and documentation.

Step 1: Claude Code for Complex Tasks

Claude Code is the team's primary tool for tasks requiring deep understanding: architecture decisions, complex refactoring, feature implementation across multiple files.

markdown
# CLAUDE.md — Team conventions (committed to repo)

## Project
TypeScript monorepo: apps/web (Next.js 14), apps/api (Hono on Cloudflare Workers),
packages/db (Drizzle ORM + PostgreSQL), packages/ui (shadcn components).

## Coding Standards
- Strict TypeScript everywhere (no `any`, no `as` casts without comment)
- Server components by default; 'use client' only when needed
- All API endpoints: Zod input validation + typed responses
- Database: Drizzle queries in packages/db/src/queries/, never raw SQL in app code
- Tests: Vitest + MSW for API mocking, Testing Library for components

## Architecture Rules
- New features: create a design doc in docs/decisions/ before implementing
- Database changes: always create a migration with `drizzle-kit generate`
- New API endpoints: add OpenAPI schema in packages/api-spec/
- Shared types: define in packages/types/, never duplicate across apps

## Security
- Never commit secrets; use environment variables
- All user input goes through Zod validation
- SQL queries only via Drizzle ORM (prevents injection)
- Rate limiting on all public endpoints

## Don't
- Don't use `useEffect` for data fetching (use server components or TanStack Query)
- Don't add new npm dependencies without checking bundle size
- Don't modify the CI pipeline without Sam's review
bash
# Daily developer workflow with Claude Code
claude                                    # Start interactive session

# Complex feature: "Add team billing"
# Claude reads CLAUDE.md, understands the monorepo structure,
# creates migration, API endpoints, UI components, and tests

# Architecture review
claude "Review the authentication flow end-to-end. Are there any
security issues? Check token handling, session management, and
CORS configuration."

Step 2: Codex CLI for Autonomous CI Tasks

Codex CLI runs in full-auto mode within CI pipelines — automatically fixing lint errors, generating missing tests, and resolving simple issues from the backlog.

yaml
# .github/workflows/ai-assist.yml — Codex in CI
name: AI Auto-Fix
on:
  issues:
    types: [labeled]
  push:
    branches: [main]

jobs:
  auto-fix-lint:
    if: github.event_name == 'push'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with: { node-version: 20 }
      - run: npm ci

      - name: Run linter
        id: lint
        run: npm run lint 2>&1 | tee lint-output.txt || true

      - name: Auto-fix with Codex
        if: failure()
        env:
          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
        run: |
          npx @openai/codex --approval-mode full-auto \
            --message "Fix all lint errors reported in lint-output.txt. Only modify the files that have errors. Run 'npm run lint' after fixing to verify."

      - name: Create PR with fixes
        if: failure()
        uses: peter-evans/create-pull-request@v5
        with:
          title: "fix: auto-fix lint errors"
          branch: ai/auto-lint-fix
          body: "Automated lint fixes by Codex CLI"

  resolve-issue:
    if: github.event.label.name == 'ai-ready'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with: { node-version: 20 }
      - run: npm ci

      - name: Resolve issue with Codex
        env:
          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
          ISSUE_TITLE: ${{ github.event.issue.title }}
          ISSUE_BODY: ${{ github.event.issue.body }}
        run: |
          npx @openai/codex --approval-mode auto-edit \
            --auto-test --test-cmd "npm test" \
            --message "Resolve this issue: ${ISSUE_TITLE}. Details: ${ISSUE_BODY}. Follow the conventions in codex.md. Run tests after changes."

      - name: Create PR
        uses: peter-evans/create-pull-request@v5
        with:
          title: "fix: resolve #${{ github.event.issue.number }} — ${{ github.event.issue.title }}"
          branch: "ai/issue-${{ github.event.issue.number }}"
          body: "Closes #${{ github.event.issue.number }}\n\nAutomated by Codex CLI."

Step 3: Gemini CLI for Codebase Analysis

Gemini's 1M+ token context window makes it ideal for whole-codebase analysis — architecture reviews, dependency audits, documentation generation, and finding patterns across hundreds of files.

bash
# Weekly codebase health check (runs Monday morning)
gemini "Analyze the entire codebase. Report:
1. Dead code (exported functions never imported elsewhere)
2. Circular dependencies between packages
3. Files over 300 lines that should be split
4. TODO/FIXME comments older than the last 20 commits
5. API endpoints without test coverage
Output as a markdown checklist."

# Security audit
gemini "Review all files in apps/api/src/ for:
- Input validation gaps (endpoints without Zod schemas)
- Authentication bypass possibilities
- Rate limiting coverage
- SQL injection risks (even with ORM)
- Exposed error details in responses
Rate each finding as Critical/High/Medium/Low."

# Generate architecture docs
gemini "Create an architecture document for this project:
1. System overview diagram (mermaid)
2. Data flow for key user journeys (signup, create project, invite team)
3. Database schema relationships
4. API endpoint inventory with auth requirements
5. External service dependencies
Save as docs/ARCHITECTURE.md"

Team Guidelines

markdown
# docs/AI_CODING_GUIDELINES.md

## Which tool when?

| Task | Tool | Mode |
|------|------|------|
| Complex features (multi-file) | Claude Code | Interactive |
| Architecture decisions | Claude Code | Interactive |
| Simple bug fixes | Codex CLI | auto-edit |
| Lint/test fixes in CI | Codex CLI | full-auto |
| Codebase analysis | Gemini CLI | Interactive |
| Documentation generation | Gemini CLI | Interactive |
| Code review prep | Gemini CLI | Interactive |

## Rules
1. Always review AI-generated code before merging
2. AI-generated PRs need human review (label: `ai-generated`)
3. Never share API keys between personal and CI use
4. Run tests after every AI code change
5. Complex tasks: Claude Code interactive. Simple tasks: Codex auto.

Results After 90 Days

  • Developer velocity: 28 story points/sprint → 47 story points/sprint (+68%)
  • Issue resolution: 32 issues auto-resolved by Codex in CI (41% of labeled issues)
  • Code quality: Lint errors in CI dropped to 0 (auto-fixed on every push)
  • Documentation: Architecture docs auto-generated and kept up-to-date by Gemini
  • Security: 3 medium-severity issues found by Gemini audit that human review missed
  • AI cost: ~$180/month across all three tools for a 6-person team

Related Skills

  • openspec — choose it when Claude Code, Codex CLI and Gemini CLI should all plan work the same way: one spec folder in the repository and the same propose, apply and archive steps in every agent, reviewed before code is written
  • kilo-code — Choose kilo-code when the team wants one open-source agent across the terminal, VS Code and JetBrains, with any provider or local Ollama models instead of one CLI per vendor, and kilo run --auto for the CI lane.
  • opencode — Choose opencode when the team wants one open-source terminal agent that can switch between Anthropic, OpenAI, Google or a local Ollama model, with shared permissions and agents committed in opencode.json and .opencode/.
  • earendil-pi — Choose earendil-pi when the team wants a minimal open-source terminal agent that works with any provider or a local Ollama model, scripts cleanly with pi --print and --mode json for the CI lane, and is run inside a container because it has no built-in permission prompts.

Related use cases