Loading...
Loading...
Use this when you need to initialize a new Spec Pack in the AI SDLC workflow of this repository (create a three-digit numbered branch and the `.aisdlc/specs/{num}-{short-name}` directory), or when you are unsure about input parsing, short name rules, UTF-8 BOM file path parameter passing, script invocation methods, or output artifacts when executing `spec-init`.
npx skill4agent add zixun-github/aisdlc spec-initspec-init{num}-{short-name}.aisdlc/specs/{num}-{short-name}/requirements/raw.md{num}-{short-name}.aisdlc/specs/...spec-product-clarify{num}-{short-name}.aisdlc/specs/{num}-{short-name}/{num}-{short-name}numshort-name.aisdlc/specs/{num}-{short-name}/requirements/design/implementation/verification/release/requirements/raw.mdMainspec-create-branch.ps1-ShortName-SourceFilePath-TitleSourceFilePathgit rev-parse --show-toplevel#Requires -Version 7.0$sourceFilePath$sourceFilePath$raw = @"
为现有后台系统新增‘批量导出订单’功能:支持按时间范围/状态筛选、CSV 与 XLSX 两种格式、导出任务异步执行并在导出中心可下载,权限仅管理员可见。
"@
$utf8Bom = [System.Text.UTF8Encoding]::new($true)
$tmp = Join-Path ([System.IO.Path]::GetTempPath()) ("sdlc-raw-{0}.md" -f ([guid]::NewGuid().ToString("N")))
[System.IO.File]::WriteAllText($tmp, $raw, $utf8Bom)
$sourceFilePath = $tmpshort-nameoauth2jwtapiexport-orders-batchadd-order-exportexport-ordersMain$repoRoot = (git rev-parse --show-toplevel)
. (Join-Path $repoRoot "skills\spec-init\spec-create-branch.ps1")
$shortName = "export-orders"
$title = ""
$result = Main -ShortName $shortName -SourceFilePath $sourceFilePath -Title $title
$result$result.branchName{num}-{short-name}.aisdlc/specs/$($result.branchName)/.aisdlc/specs/$($result.branchName)/requirements/raw.md$sourceFilePathraw.mdEF BB BF$repoRoot = (git rev-parse --show-toplevel)
$rawPath = (Join-Path $repoRoot ".aisdlc\specs\$($result.branchName)\requirements\raw.md")
$bytes = [System.IO.File]::ReadAllBytes((Resolve-Path $rawPath))
($bytes.Length -ge 3) -and ($bytes[0] -eq 0xEF) -and ($bytes[1] -eq 0xBB) -and ($bytes[2] -eq 0xBF)spec-product-clarifyspec-initrequirements/solution.mdFEATURE_DIRDo not manually write/guess thepath; must use the output of.aisdlc/specs/....spec-context
$repoRoot = (git rev-parse --show-toplevel)
. (Join-Path $repoRoot "skills\spec-context\spec-common.ps1")
$context = Get-SpecContext
$FEATURE_DIR = $context.FEATURE_DIR
Write-Host "FEATURE_DIR=$FEATURE_DIR"requirements/*.mdspec-product-clarifyspec-product-clarify$FEATURE_DIR/requirements/raw.md## Clarification Records$FEATURE_DIR/requirements/raw.md$FEATURE_DIR/requirements/solution.mdKey Prohibition: Do not write "pending confirmation question list"; all uncertainties should be unified into the "verification checklist" in(Owner/Deadline/Signal/Action).solution.md
spec/<slug>feature/<slug>features/<slug>{num}-{short-name}.aisdlc/specs/...SourceFilePath--