소스 정보
- 저장소
- github/gh-aw
- 최근 소스 활동
- 2026년 5월 12일 22:45
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4,937
- 포크
- 497
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/github/gh-aw --skill temporary-id-safe-output명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | temporary-id-safe-output |
| description | Add temporary ID support to safe-output jobs end to end. |
Use this implementation plan for temporary ID support in safe output jobs. Temporary IDs let agents reference newly created issues in the same run before real issue numbers exist.
When an agent creates a parent issue and immediately links sub-issues in the same run, it does not know the real issue number until create_issue completes. Temporary IDs bridge this gap with placeholders resolved at execution time.
Temporary IDs follow the pattern aw_[A-Za-z0-9]{3,8} where:
aw_ is a fixed prefix identifying agentic workflow temporary IDsXXXXXXXX is a 3-8 character alphanumeric string (A-Za-z0-9)Example: aw_abc, aw_abc123, aw_Test123
temporary_id.cjsLocation: pkg/workflow/js/temporary_id.cjs
This module provides shared utilities for temporary ID handling:
// Core functions
generateTemporaryId() // Generate new temporary ID
isTemporaryId(value) // Check if value is a temporary ID
normalizeTemporaryId(tempId) // Normalize to lowercase for map lookups
loadTemporaryIdMap() // Load map from GH_AW_TEMPORARY_ID_MAP env var
resolveIssueNumber(value, map) // Resolve value to issue number (supports temp IDs)
replaceTemporaryIdReferences(text, map) // Replace #aw_XXX references in text
create_issueThe create_issue job outputs a temporary ID map that other jobs can consume:
Go changes (pkg/workflow/create_issue.go):
temporary_id_mapJavaScript changes (pkg/workflow/js/create_issue.cjs):
temporary_id -> issue_numbercore.setOutput("temporary_id_map", JSON.stringify(map))For each safe output job that needs to resolve temporary IDs:
In pkg/workflow/<job_name>.go:
createIssueJobName parameter to the build function:func (c *Compiler) build<JobName>Job(data *WorkflowData, mainJobName string, createIssueJobName string) (*Job, error) {
if createIssueJobName != "" {
customEnvVars = append(customEnvVars, fmt.Sprintf(" GH_AW_TEMPORARY_ID_MAP: ${{ needs.%s.outputs.temporary_id_map }}\n", createIssueJobName))
}
create_issue to the job's needs array:needs := []string{mainJobName}
if createIssueJobName != "" {
needs = append(needs, createIssueJobName)
}
SafeOutputJobConfig to use the dynamic needs:return c.buildSafeOutputJob(data, SafeOutputJobConfig{
// ...
Needs: needs,
// ...
})
In pkg/workflow/compiler_jobs.go:
Pass the createIssueJobName when building the job:
job, err := c.build<JobName>Job(data, mainJobName, createIssueJobName)
In pkg/workflow/js/<job_name>.cjs:
const { loadTemporaryIdMap, resolveIssueNumber } = require("./temporary_id.cjs");
const temporaryIdMap = loadTemporaryIdMap();
if (temporaryIdMap.size > 0) {
core.info(`Loaded temporary ID map with ${temporaryIdMap.size} entries`);
}
resolveIssueNumber() to resolve issue numbers:const resolved = resolveIssueNumber(item.issue_number, temporaryIdMap);
if (resolved.errorMessage) {
core.warning(`Failed to resolve issue: ${resolved.errorMessage}`);
continue;
}
const issueNumber = resolved.resolved;
if (resolved.wasTemporaryId) {
core.info(`Resolved temporary ID '${item.issue_number}' to issue #${issueNumber}`);
}
In pkg/workflow/js/collect_ndjson_output.cjs:
Add validation for fields that accept temporary IDs:
function isValidIssueNumberOrTemporaryId(value) {
if (typeof value === "number" && Number.isInteger(value) && value > 0) {
return true;
}
if (typeof value === "string" && /^aw_[0-9a-f]{12}$/i.test(value)) {
return true;
}
return false;
}
Use this validation for fields like parent_issue_number, sub_issue_number, etc.
When temporary ID resolution fails, the job should:
core.warning() instead of failing with core.setFailed()This ensures that:
safe-outputs:
create-issue:
title-prefix: "[Parent] "
labels: [tracking]
max: 3
link-sub-issue:
max: 10
{"type": "create_issue", "temporary_id": "aw_abc123", "title": "Parent: Feature X", "body": "..."}
{"type": "link_sub_issue", "parent_issue_number": "aw_abc123", "sub_issue_number": 42}
{"type": "link_sub_issue", "parent_issue_number": "aw_abc123", "sub_issue_number": 43}
main job: Agent generates output with temporary ID aw_abc123create_issue job: Creates issue #100, outputs {"aw_abc123": 100}link_sub_issue job:
aw_abc123 → 100| Job | Field(s) | Status |
|---|---|---|
link_sub_issue | parent_issue_number, sub_issue_number | ✅ Implemented |
add_comment | issue_number (via text replacement) | ✅ Implemented |
update_issue | issue_number | 🔄 Can be added |
close_pull_request | - | N/A (uses PR numbers) |
Add tests in pkg/workflow/js/temporary_id.test.cjs for:
isTemporaryId() with valid and invalid inputsresolveIssueNumber() with temporary IDs and regular numbersloadTemporaryIdMap() with various JSON inputsAdd tests in pkg/workflow/<job_name>_dependencies_test.go to verify:
create_issue in needs when configuredGH_AW_TEMPORARY_ID_MAP env var is set correctlycreate_issue dependencycreateIssueJobName parameterGH_AW_TEMPORARY_ID_MAP environment variablecreate_issue conditionallycreateIssueJobNameresolveIssueNumber() for issue number fieldscollect_ndjson_output.cjs if needed