con un clic
pipeline-flow-audit
Compare actual pipeline execution against expected flow from config
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Compare actual pipeline execution against expected flow from config
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
| name | pipeline-flow-audit |
| description | Compare actual pipeline execution against expected flow from config |
| user_invocable | true |
| args | <pipeline_run_id> |
You are auditing a pipeline run to compare its actual execution against the expected flow defined in config. The user's argument is: $ARGUMENTS.
If no run ID was provided, find recent pipeline runs first:
curl -s "http://localhost:9200/pipeline-runs-*/_search" -H 'Content-Type: application/json' -d '{"query":{"match_all":{}},"sort":[{"started_at":"desc"}],"size":10}' | jq '.hits.hits[]._source | {id, project, board, status, issue_number, issue_title}'
Then ask the user which run to audit.
curl -s "http://localhost:9200/pipeline-runs-*/_search" -H 'Content-Type: application/json' -d '{
"query": {"term": {"id": "<RUN_ID>"}},
"size": 1
}' | jq '.hits.hits[]._source'
Determine the pipeline type from the board field:
planning_designsdlc_executionenvironment_supportRead the pipeline config to understand expected stages:
cat config/foundations/pipelines.yaml
cat config/foundations/workflows.yaml
sdlc_execution:
implementation → agent: senior_software_engineer, timeout: 1800s, retries: 5implementation review cycle → reviewer: code_reviewer, max 5 iterations, escalate at 1 blocking findingtesting → agent: senior_software_engineer, repair cycle, max 100 agent calls, checkpoint every 5staging → agent: senior_software_engineer, timeout: 7200sBoard columns: Backlog → Development → Code Review → Testing → Staged → Done
planning_design:
research → agent: idea_researcher (conversational, feedback timeout: 3600s)requirements → agent: business_analyst (conversational)design → agent: software_architect (conversational)work_breakdown → agent: work_breakdown_agent (conversational)pr_review → agent: pr_review_agentdocumentation → agent: technical_writerdocumentation review → reviewer: documentation_editor, max 3 iterationsBoard columns: Backlog → Research → Requirements → Design → Work Breakdown → In Development → In Review → Documentation → Documentation Review → Done
environment_support:
environment_setup → agent: dev_environment_setup, timeout: 1800s, retries: 3environment_verification → agent: dev_environment_verifierBoard columns: Backlog → In Progress → Verification → Done
Decision events:
curl -s "http://localhost:9200/decision-events-*/_search" -H 'Content-Type: application/json' -d '{
"query": {"term": {"pipeline_run_id": "<RUN_ID>"}},
"sort": [{"timestamp": "asc"}],
"size": 500
}' | jq '.hits.hits[]._source | {timestamp, event_type, agent, data}'
Agent events:
curl -s "http://localhost:9200/agent-events-*/_search" -H 'Content-Type: application/json' -d '{
"query": {"term": {"pipeline_run_id": "<RUN_ID>"}},
"sort": [{"timestamp": "asc"}],
"size": 100
}' | jq '.hits.hits[]._source | {timestamp, agent_name, event_type, success, duration_ms}'
From events, reconstruct:
status_progression_* events)review_cycle_iteration events, count per stage)repair_cycle_iteration events)Build a comparison table:
| Stage | Expected Agent | Actual Agent | Expected Behavior | Actual Behavior | Status |
|---|---|---|---|---|---|
| implementation | senior_software_engineer | ... | Initial execution | ... | ... |
| code_review | code_reviewer (max 5 iter) | ... | Review cycle | ... | ... |
| testing | senior_software_engineer (max 100 calls) | ... | Repair cycle | ... | ... |
| staging | senior_software_engineer | ... | Final stage | ... | ... |
Status values: matched, deviated, skipped, extra, failed
For each deviation, explain:
agent_routing_decision events.gh issue view <ISSUE_NUMBER> --repo <ORG>/<REPO> --json title,labels,state,body | jq '{title, labels: [.labels[].name], state}'
Verify:
pipeline:sdlc-execution)Present the audit as:
## Pipeline Flow Audit: <RUN_ID>
### Pipeline: <type> | Issue: #<number> <title>
### Status: <completed|failed|active> | Duration: <time>
### Flow Comparison
<side-by-side table from step 5>
### Deviations
<numbered list of deviations with explanations>
### Assessment
<overall assessment: clean run, minor deviations, significant issues>
Reference for correctly querying GitHub issue state - board status, parent/child links, sub-issues. Use these patterns instead of `gh issue view --json projectItems` which does not reliably return status field values.
Analyze recommendations from pipeline run analyses — filter by priority, target (orchestrator/project), pipeline run ID, or project
Deep-dive into agent execution - Docker logs, Claude stream events, tool calls, errors
Search and analyze Claude Code live execution logs captured in Elasticsearch - tool calls, tool results, API usage, and errors for a specific task or pipeline run
Quick reference for Elasticsearch indices, event types, Docker patterns, and pipeline flows
Investigate a pipeline run - timeline, Docker logs, decision events, root cause analysis