AGENT SKILL

error-report-sdlc

Internal skill for reporting actionable SDLC errors to GitHub. Captures context, gets user consent, and creates tracking issues in rnagrodzki/sdlc-marketplace. NOT user-invocable.

License 许可
MIT
最近更新
2026-05-09
Stars
★ 0
Forks
0

01 前言 Front Matter

name
error-report-sdlc
description
Internal skill for reporting actionable SDLC errors to GitHub. Captures context, gets user consent, and creates tracking issues in rnagrodzki/sdlc-marketplace. NOT user-invocable.
user-invocable
false
disable-model-invocation
true

02 资源文件 2

03 SKILL.md 正文

Error-to-GitHub Issue Proposal

Internal procedure invoked by SDLC skills when an actionable error occurs. Captures error context, verifies gh CLI availability, gets user consent, and creates a tracking issue in rnagrodzki/sdlc-marketplace.

Procedure

Step 2 — Consent Gate 1: Offer (main context)

Use ask_user: dispatch error-report-sdlc | cancel.

Step 3 — Run the Prepare Script (main context)

SCRIPT="scripts/skill/error-report-prepare.js"
[ ! -f "$SCRIPT" ] && { echo "ERROR: Could not locate $SCRIPT. Is the sdlc extension installed?" >&2; exit 2; }

ERROR_CONTEXT_FILE=$(node "$SCRIPT" \
  --skill "$SKILL_NAME" \
  --step "$STEP_NAME" \
  --operation "$OPERATION" \
  --error-text "$ERROR_TEXT" \
  --output-file)
EXIT_CODE=$?
# Single canonical cleanup
trap 'rm -f "$ERROR_CONTEXT_FILE"' EXIT INT TERM

Step 4 — Dispatch the error-report-orchestrator Agent

Use the invoke_agent tool with agent_name: error-report-orchestrator. Capture the returned JSON object as PROPOSAL = { title, body }.

Step 5 — Consent Gate 2: Review (main context)

Use ask_user for the yes / edit / cancel choice.

Step 6 — Create the GitHub Issue (main context)

gh issue create \
  --repo "rnagrodzki/sdlc-marketplace" \
  --title "$PROPOSAL_TITLE" \
  --body "$PROPOSAL_BODY" \
  --label "tooling-error" \
  --label "$SKILL_NAME"

04 同仓库更多 Skills