with one click
change-request-ops
// Use this skill when Codex needs to pull the next or current Prism change request, inspect request state, update board status, or create and update execution records through the Prism Agent API.
// Use this skill when Codex needs to pull the next or current Prism change request, inspect request state, update board status, or create and update execution records through the Prism Agent API.
| name | change-request-ops |
| description | Use this skill when Codex needs to pull the next or current Prism change request, inspect request state, update board status, or create and update execution records through the Prism Agent API. |
Use this skill when Codex is operating on tracked change requests instead of freeform chat.
Required environment:
PRISM_AGENT_API_BASE_URLPRISM_AGENT_SERVICE_TOKENPRISM_TARGET_APP_IDAlways send x-service-token: $PRISM_AGENT_SERVICE_TOKEN.
Core endpoints:
GET /api/internal/target-appsPOST /api/internal/change-board/requestsGET /api/internal/change-board/requests/nextGET /api/internal/change-board/requests/currentGET /api/internal/change-board/requests/by-number/:requestNumber/reviewGET /api/internal/change-board/requests/:idPATCH /api/internal/change-board/requests/:idGET /api/internal/change-board/requests/:id/external-refsPOST /api/internal/change-board/requests/:id/external-refsGET /api/internal/change-board/requests/:id/executionsPOST /api/internal/change-board/requests/:id/executionsPATCH /api/internal/change-board/executions/:executionIdGET /api/internal/change-board/requests/:id/deploy-planQueue reads:
curl -fsSL \
-H "x-service-token: $PRISM_AGENT_SERVICE_TOKEN" \
"$PRISM_AGENT_API_BASE_URL/api/internal/change-board/requests/next${PRISM_TARGET_APP_ID:+?targetAppId=$PRISM_TARGET_APP_ID}"
curl -fsSL \
-H "x-service-token: $PRISM_AGENT_SERVICE_TOKEN" \
"$PRISM_AGENT_API_BASE_URL/api/internal/change-board/requests/current${PRISM_TARGET_APP_ID:+?targetAppId=$PRISM_TARGET_APP_ID}"
Review a completed or stuck workflow run by request number:
curl -fsSL \
-H "x-service-token: $PRISM_AGENT_SERVICE_TOKEN" \
"$PRISM_AGENT_API_BASE_URL/api/internal/change-board/requests/by-number/$REQUEST_NUMBER/review"
Use this endpoint when a user asks what happened to request #10, why a workflow got stuck, or what should improve next time. It returns the request, workflow definition, workflow run, executions, workflow events, artifacts, external refs, latest linked agent session, and agent messages. Review the timeline before recommending changes.
Create request pattern:
List target apps:
curl -fsSL \
-H "x-service-token: $PRISM_AGENT_SERVICE_TOKEN" \
"$PRISM_AGENT_API_BASE_URL/api/internal/target-apps"
Create tracked change request:
curl -fsSL \
-X POST \
-H "content-type: application/json" \
-H "x-service-token: $PRISM_AGENT_SERVICE_TOKEN" \
"$PRISM_AGENT_API_BASE_URL/api/internal/change-board/requests" \
-d '{
"title": "'"$TITLE"'",
"description": "'"$DESCRIPTION"'",
"requestType": "'"$REQUEST_TYPE"'",
"targetAppId": "'"$TARGET_APP_ID"'",
"priority": "'"${PRIORITY:-normal}"'",
"status": "submitted",
"source": "chat"
}'
Start-of-run pattern:
current.current.changeRequest is null, fetch next.changeRequest, targetApp, targetEnvironment, deployPlan, latestExecution, and externalRefs.triageSummary and agentRecommendation before routing the request onward.triaging only while actively triaging a request that has not been approved for execution yet.in-progress only while actively making changes after a request is already ready-for-agent, changes-requested, or awaiting-review.submitted, triaging, or needs-human-input, the current turn is triage-only. End the turn after updating triage details and moving the request to ready-for-agent.Create execution:
curl -fsSL \
-X POST \
-H "content-type: application/json" \
-H "x-service-token: $PRISM_AGENT_SERVICE_TOKEN" \
"$PRISM_AGENT_API_BASE_URL/api/internal/change-board/requests/$CHANGE_REQUEST_ID/executions" \
-d '{
"status": "running",
"actorType": "codex",
"startedAt": "'"$(date -u +"%Y-%m-%dT%H:%M:%SZ")"'"
}'
Update request status:
curl -fsSL \
-X PATCH \
-H "content-type: application/json" \
-H "x-service-token: $PRISM_AGENT_SERVICE_TOKEN" \
"$PRISM_AGENT_API_BASE_URL/api/internal/change-board/requests/$CHANGE_REQUEST_ID" \
-d '{"status":"in-progress"}'
Attach external records when the request interacts with a live system outside Prism. Use this for GitHub issues, GitHub pull requests, Discord messages or threads, deployments, publishing targets, or DAO proposal pages. Do not leave these only in comments if later workflow steps need to inspect or sync them.
curl -fsSL \
-X POST \
-H "content-type: application/json" \
-H "x-service-token: $PRISM_AGENT_SERVICE_TOKEN" \
"$PRISM_AGENT_API_BASE_URL/api/internal/change-board/requests/$CHANGE_REQUEST_ID/external-refs" \
-d '{
"provider": "github",
"kind": "pull_request",
"externalId": "42",
"title": "'"$PR_TITLE"'",
"url": "'"$PR_URL"'",
"state": "open",
"metadata": {
"repo": "'"$GITHUB_REPO"'",
"branch": "'"$BRANCH_NAME"'",
"base": "main"
}
}'
For richer triage updates, patch the request with both status and suggested changes:
curl -fsSL \
-X PATCH \
-H "content-type: application/json" \
-H "x-service-token: $PRISM_AGENT_SERVICE_TOKEN" \
"$PRISM_AGENT_API_BASE_URL/api/internal/change-board/requests/$CHANGE_REQUEST_ID" \
-d '{
"status": "ready-for-agent",
"triageSummary": "'"$TRIAGE_SUMMARY"'",
"agentRecommendation": "'"$SUGGESTED_CHANGES"'"
}'
Update execution with results:
curl -fsSL \
-X PATCH \
-H "content-type: application/json" \
-H "x-service-token: $PRISM_AGENT_SERVICE_TOKEN" \
"$PRISM_AGENT_API_BASE_URL/api/internal/change-board/executions/$EXECUTION_ID" \
-d '{
"status": "completed",
"branchName": "'"$BRANCH_NAME"'",
"commitSha": "'"$COMMIT_SHA"'",
"deployUrl": "'"$DEPLOY_URL"'",
"summary": "'"$SUMMARY"'",
"finishedAt": "'"$(date -u +"%Y-%m-%dT%H:%M:%SZ")"'"
}'
End-of-run pattern:
ready-for-agent once triage details are complete.awaiting-review, changes-requested, approved, or closed as appropriate.Rules:
submitted, then stop at ready-for-agent after triage review. It should not auto-run implementation.agentRecommendation should describe the suggested changes, touched areas, and intended outcome, not just say "ready for agent".[HINT] Download the complete skill directory including SKILL.md and all related files