2.0 KiB
2.0 KiB
name: maintain description: SDLC maintenance stage. Gate on model capability tags for the maintenance stage, 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.
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 capability gate: check the 「SDLC 階段需求」 table from
jsc-cli:modelsand confirm the current model qualifies for maintenance (any tag qualifies, but the model must be listed in the mapping table). If not, block the flow and tell the user which model to switch to. Re-check only when the stage changes. - Read
MAINTAIN_CONTENTSviajsc-gitea:wikiand filter projects still inside their maintenance window: start date ≤ today, and (end date is NULL or ≥ today). - Every project MUST run as a sub agent with this flow:
- Switch the project to the
developbranch, falling back tomaster, and pull to latest. - Propose at least five maintenance methods and apply the ones that fit the project, for example:
- 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
- dependency updates (reuse
- Commit the changes to a new branch per
jsc-git:commit, push, then open a PR back to develop or master perjsc-git:pr. - Update the project's last-maintained field (the zh-TW column 「前次維護時間」) in
MAINTAIN_CONTENTSto today.
- Switch the project to the
- 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.