بنقرة واحدة
ci
Generate or update CI/CD pipeline configuration for the current stack.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generate or update CI/CD pipeline configuration for the current stack.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Write a structured handoff at session end. Preserves context so the next agent can resume without human briefing. Invoke before ending any feature session longer than 30 minutes.
Multi-perspective code review against project standards with P1/P2/P3 severity classification. Works in Claude Code (Agent + optional GitHub MCP) and Cursor (Task subagents + gh/git). Use when the user invokes /review, asks for a PR or diff review, or wants a standards-aligned review with severity tags.
Multi-perspective code review (P1/P2/P3) for Cursor: inline checklists plus three parallel Task subagents (perf-auditor, security-reviewer, simplicity-reviewer with combined data-integrity prompt). Use when the user invokes /review, asks for a PR review, or wants repo-standard findings with severity.
Create well-formatted git commits following conventional commit standards.
Red→green→refactor discipline for new behavior — forces a failing test before implementation and a passing test before any claim of done.
Create or manage a git worktree for isolated parallel development — lets multiple agents work in the repo simultaneously without branch collisions.
| name | ci |
| description | Generate or update CI/CD pipeline configuration for the current stack. |
Generate or update CI/CD pipeline configuration for the current stack.
/ci [action] [--platform <platform>] [--fix]
action: generate, update, fix, status (default: generate)--platform: CI platform — github (default), gitlab, bitbucket--fix: Diagnose and fix a failing CI pipelineWhen this skill is invoked:
Autonomy:
Safety:
/ci generate)Create CI/CD pipeline from scratch:
prd/00_technology.md for commands and tools.github/workflows/README.md for pipeline documentationci.yml.example as the base template{placeholders} with actual commands.github/workflows/ci.ymlPipeline stages (required):
jobs:
lint: # Lint + format check
typecheck: # Static type checking
test: # Tests with coverage (fail if below minimum)
security: # Dependency + code security scan
build: # Build application / container
Pipeline stages (optional, add if applicable):
deploy-staging: # Deploy to staging (on push to main)
deploy-production: # Deploy to production (on release tag)
e2e: # End-to-end tests (after staging deploy)
/ci update)Update existing pipeline:
.github/workflows/ci.ymlprd/00_technology.md for any command changes/ci fix)Diagnose and fix failing CI:
gh run list --limit 5
gh run view {run_id} --log-failed
/ci status)Show current CI pipeline health:
gh run list --limit 10
gh workflow list
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: {setup_action} # e.g., actions/setup-node@v4
- run: {install_command}
- run: {lint_check_command}
- run: {format_check_command}
iOS (Fastlane):
build-ios:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- run: bundle install
- run: bundle exec fastlane test
- run: bundle exec fastlane build
Android (Gradle):
build-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- run: ./gradlew test
- run: ./gradlew assembleRelease
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v5
with:
context: .
push: false
tags: app:test
cache-from: type=gha
cache-to: type=gha,mode=max
$ /ci generate --platform github
Reading tech stack...
Language: Python 3.13
Package Manager: uv
Test: pytest
Lint: ruff
Type Check: mypy
Generating .github/workflows/ci.yml...
Pipeline:
1. lint → uv run ruff check src/ tests/
2. typecheck → uv run mypy src/
3. test → uv run pytest --cov=src --cov-fail-under=66
4. security → uv run pip-audit && uv run bandit -r src/
5. build → docker build -t app:test .
Created .github/workflows/ci.yml
Validated YAML syntax: OK
Next steps:
1. Review the generated pipeline
2. Add repository secrets (if needed): Settings → Secrets
3. Push to trigger first run