What:依 jsc-meta:skill-check 的稽核結果修正技能與工具——補上每個步驟的可檢核完成條件、 把留在內文的標準輸入輸出流程下放 tools/、修正查表與退碼路由造成的誤判。 Why:稽核發現這些缺失會讓技能在實際執行時走錯分支或靜默通過。 完成條件缺漏是最常被違反的一項;退碼誤判與查表錯誤則會讓良性狀況被當成失敗。 How:逐項對照 references/guidelines.md 的審核檢查清單修正,新增的工具都有 documented exit codes,並以真實執行驗證每條路徑。 Who:jsc-meta:skill-check 例行稽核(2026-08-25)。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
3.7 KiB
name: maintain description: SDLC maintenance stage. Gate on capability tags enforced in code by sdlc-gate (maintenance requires no specific tag, but the actual model id must be determinable from the transcript), read projects still inside their maintenance window from MAINTAIN_CONTENTS, then run one sub agent per project: switch to develop or master, propose at least five maintenance actions, commit to a new branch, push, and PR. Update the last-maintained timestamp afterward. Use for periodic upkeep of delivered projects inside their maintenance window; not for projects still mid-implementation or not yet registered in MAINTAIN_CONTENTS.
maintain
Goal: run routine maintenance for every project in the maintenance contents page.
All wiki reads and writes go through jsc-gitea:wiki.
Steps
- Model gate and stage lock — run
jsc-cli/tools/model-tags.sh sync, thenjsc-hooks/hooks/sdlc-gate.sh lock maintain. This stage requires no specific capability tag; the gate passes as long as the script can determine the actual model id. Rules:references/model-gate.md. Completion condition: the script exited 0, and you have reported the stage, the required tag, the actual model id it read from the transcript, and the verdict. - Read
MAINTAIN_CONTENTSviajsc-gitea:wikiand filter projects still inside their maintenance window: start date ≤ today, and (end date is NULL or ≥ today). Completion condition: you have listed every in-window project with its{owner}/{repo}and window dates, or reported that none is in window and stopped. - Every project MUST run as a sub agent with this flow. Completion condition: every project listed in step 2 has its sub agent finished, and each one ends in either a PR link or a recorded skip reason.
-
Run
git fetch --prune origin, then put the project on its maintenance branch and align it withorigin/{branch}. Which branch that is, the remote-is-the-basis rule, the diverged case and the never-pull-never-reset rule all live inreferences/branch.md; never guess the branch name. Completion condition: the project's HEAD points at the same commit asorigin/{branch}, or you have reported the gap and skipped this project. -
Propose at least five maintenance methods, then let the user pick per
jsc-ask:askrules — every option states its impact scope (which files it touches, whether it can break the build, how much review it costs). Candidates:- dependency updates (reuse
jsc-pkg:pkg-update) - security vulnerability scan and patching
- dead code and stale comment cleanup
- test coverage reinforcement
- docs and README synchronization
- build warning elimination
Completion condition: the user has picked the methods to apply, and every picked method is either applied or reported with the reason it could not be.
- dependency updates (reuse
-
Commit the changes to a new branch per
jsc-git:commit, push, then open a PR perjsc-git:prback to the branch of step 3.1, passing it explicitly as the base. Completion condition: the PR exists, and you have reported its URL and number. -
Update the project's last-maintained field (the zh-TW column 「前次維護時間」) in
MAINTAIN_CONTENTSto today. Completion condition:MAINTAIN_CONTENTSshows today's date in 「前次維護時間」 for that project, saved on the wiki.
-
- The main agent reports the summary: maintenance methods applied per project, PR links, and failure reasons. The report and all generated wiki content, commits, and PR descriptions stay Traditional Chinese per the STE100 rule. Completion condition: the summary names every project read in step 2, each with its applied methods and either a PR link or the reason it was skipped.