Power Ci Invoker
Enterprise-grade command for manage, automate, pipeline, configuration. Includes structured workflows, validation checks, and reusable patterns for automation.
Power Ci Invoker
Trigger and manage CI pipeline runs with intelligent job selection and parallel execution controls.
When to Use This Command
Run this command when you need to:
- Trigger specific CI pipeline jobs or stages from your terminal without navigating the CI platform UI
- Re-run failed CI jobs with modified parameters or environment overrides
- Orchestrate multiple CI pipelines across repositories or branches in a single invocation
Consider alternatives when:
- You need to set up a new CI pipeline from scratch (use ci-setup-rapid instead)
- Your CI system requires interactive browser-based authentication that cannot be handled via CLI tokens
Quick Start
Configuration
name: power-ci-invoker type: command category: automation
Example Invocation
claude command:run power-ci-invoker --pipeline build-test --branch feature/auth --jobs lint,test,build
Example Output
[CI Invoker] Authenticating with CI platform... OK
[CI Invoker] Pipeline: build-test | Branch: feature/auth
[Trigger] Job 'lint' queued (#4521) .......... PASSED (42s)
[Trigger] Job 'test' queued (#4522) .......... PASSED (1m 38s)
[Trigger] Job 'build' queued (#4523) ......... PASSED (2m 12s)
[Summary] 3/3 jobs passed | Total: 4m 32s
[Artifacts] Build output available at: /tmp/ci-artifacts/4523/
Core Concepts
CI Invocation Overview
| Aspect | Details |
|---|---|
| Supported Platforms | GitHub Actions, GitLab CI, Jenkins, CircleCI, Azure Pipelines |
| Auth Methods | API tokens, SSH keys, OAuth via environment variables |
| Job Selection | Filter by name, stage, tag, or dependency graph position |
| Output Modes | Streaming logs, summary-only, or JSON for scripting |
Invocation Workflow
[User Command]
|
[Authenticate] --> API token / SSH key
|
[Resolve Pipeline] --> Branch + commit
|
[Select Jobs] --> Filter by name/stage
|
[Trigger + Poll] --> Stream logs
|
[Collect Results] --> Artifacts + status
Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
| pipeline | string | required | Name or ID of the CI pipeline to trigger |
| branch | string | current | Git branch to run the pipeline against |
| jobs | string | all | Comma-separated list of specific jobs to run |
| wait | boolean | true | Block until all jobs complete and return exit code |
| env-override | string | none | KEY=VALUE pairs to inject into the CI environment |
Best Practices
-
Use Selective Job Targeting - Invoke only the jobs you need rather than the full pipeline. This reduces CI minutes consumed and provides faster feedback during iterative development.
-
Cache Authentication Tokens - Store CI platform tokens in environment variables or a secure credential store. Avoid re-authenticating on every invocation to minimize latency.
-
Stream Logs for Debugging - Enable log streaming mode when diagnosing failures so you see output in real time rather than waiting for the entire job to complete before reviewing.
-
Set Timeouts on Long Pipelines - Always specify a
--timeoutvalue for pipelines that might hang. This prevents the command from blocking your terminal indefinitely on stuck jobs. -
Combine with Git Hooks - Wire the invoker into pre-push hooks to automatically validate critical CI jobs before code reaches the remote, catching failures before they affect the team.
Common Issues
-
Authentication Token Expired - CI platform tokens have expiration dates. Regenerate your token from the platform settings and update the
CI_TOKENenvironment variable. -
Pipeline Not Found on Branch - The specified pipeline configuration must exist on the target branch. Ensure the CI config file is committed to that branch before invoking.
-
Rate Limiting on Rapid Invocations - CI platforms throttle API calls. Add a brief delay between batch invocations or use the
--batchflag to group multiple triggers into one API request.
Reviews
No reviews yet. Be the first to review this template!
Similar Templates
Git Commit Message Generator
Generates well-structured conventional commit messages by analyzing staged changes. Follows Conventional Commits spec with scope detection.
React Component Scaffolder
Scaffolds a complete React component with TypeScript types, Tailwind styles, Storybook stories, and unit tests. Follows project conventions automatically.
CI/CD Pipeline Generator
Generates GitHub Actions workflows for CI/CD including linting, testing, building, and deploying. Detects project stack automatically.