AGENT SKILL

issue-title-convention

Lint and autofix open Gitee issue titles to the four team prefixes.

License 许可
MIT
所属仓库
kipyin/kstack
最近更新
2026-11-14
Stars
★ 0
Forks
0

01 前言 Front Matter

name
issue-title-convention
description
Lint and autofix open Gitee issue titles to the four team prefixes.
disable-model-invocation
true

03 SKILL.md 正文

Issue Title Convention

Every open Gitee issue title starts with exactly one team prefix in square brackets:

  • [精算逻辑] — solvency / actuarial calculation
  • [大模型] — agent core: orchestration, skills, analysis engine
  • [平台功能] — product shell: client, server, build, chat UI
  • [工程质量] — trust layer: tests, guardrails, mutation, CI quality gates

This skill is an autofixing linter: scan open issues, find bad titles, rename. Run when titles pile up without prefixes or still carry legacy prefixes.

Spec (SSOT)

One prefix, first, square brackets, space after ]:

[精算逻辑] <rest>
[大模型] <rest>
[平台功能] <rest>
[工程质量] <rest>

Compliant iff the title starts with one of those four. Everything else is a violation.

Strip legacy prefixes first

Noise once team prefixes exist (details live in body/parent):

  • Solvency(P1): / Solvency(P2):
  • cq:
  • Discuss:
  • Later wave:

Assign a team

Read title + body; classify by the work, not the tooling:

团队 Work is… Signals
精算逻辑 solvency calc: reserves, curves, IFRS17, risk factors crs_pfs_*, 偿付能力, whatif
大模型 agent intelligence: orchestration, skills, reconcile/verify engine analysis/agent.py, policy graph
平台功能 product shell around the agent agent-ui, build --all, server lifecycle
工程质量 making code trustworthy mutation, registry stability, quality-gate CI

Settled edges (do not reopen):

  • agent-ui / thin client / chat → [平台功能]
  • reconcile/verify analysis engine → [大模型]
  • cq enhancements for actuarial scenarios → [精算逻辑]
  • tests that lock business numbers → [精算逻辑]; tests that guard structure/scaffolding → [工程质量]
  • build/ship/release CI → [平台功能]; quality-gate CI → [工程质量]

If title + body still do not fit a team, do not guess — hold for step 4.

Steps

1. Probe

gitee --remote gitee issue list --state open --json --jq '.[] | "\(.number)\t\(.title)"'

Done when: every open issue is listed.

2. Sort

Compliant (one of the four prefixes) → skip. Violation (missing or legacy prefix) → fix.

Done when: every issue is labeled compliant or violation; none pending.

3. Propose fixes

For each violation: strip legacy prefix → assign team → new title = [<team>] <remainder>.

Done when: every violation has a proposed title.

4. Hold low confidence

Ambiguous team → do not rename; collect for human. Only rename titles you would defend.

Done when: queued renames are high-confidence; the rest are listed as needs-human.

5. Rename

gitee --remote gitee issue edit <编号> --title "<新标题>"

--title replaces the whole title; body unchanged. Print old → new as you go.

Done when: every queued rename returned success.

6. Verify

gitee --remote gitee issue list --state open --json --jq '.[].title' \
  | grep -cvE '^\[(精算逻辑|大模型|平台功能|工程质量)\] '

Expect 0. Then legacy residue must be empty:

gitee --remote gitee issue list --state open --json --jq '.[].title' \
  | grep -E 'Solvency\(P|cq: |Discuss: |Later wave: ' || true

Done when: zero violating open titles, zero legacy prefixes, held items reported.

04 同仓库更多 Skills

kipyin
kipyin/kstack

solvency-agent-playbook

solvency playbook: use at the start of any solvency/ work — develop, debug, test, refactor, or query. Covers edits under solvency/, solvency pytest, Postgres reads/writes for solvency tables, and solvency diffs.

★ 0
kipyin
kipyin/kstack

pr-debrief

给 PR 出一份业务验收 debrief:在做什么 / 做对了吗 / 真人要验什么,人话,贴到 Gitee。

★ 0
kipyin
kipyin/kstack

issue-summary

Add a Chinese nav summary + HITL checklist to a ready-for-agent Gitee issue.

★ 0
kipyin
kipyin/kstack

gitee-pr-workflow

End-to-end workflow for landing a change on both Gitee and GitHub using the `gitee` Rust CLI. Delegates commit + PR creation to `gitee-pr-submit` (plain-language body, HITL verification, `Linked: #IKxxxx`), then approves it, squash-merges with `--no-close-issue`, adds an evidence comment and closes the linked issue, syncs Gitee main back to local, pushes local main to GitHub, then watches GitHub Actions Build py_total and replaces artifacts/py_total.exe. Post-land CI failures use a hotfix PR; never push new commits directly to main. Trigger: "gitee pr workflow", "commit and pr to gitee", "land changes on gitee and github", "create gitee pr", "approve and merge gitee pr", "watch py_total", "download py_total artifact".

★ 0
kipyin
kipyin/kstack

gitee-pr-submit

Commit local changes in logical chunks, push a feature branch to Gitee, and open a PR whose body is plain language: what we did, what we verified, with human-in-the-loop (HITL) verification called out explicitly. Links the related issue with `#IKxxxx` in the body (the # is mandatory; without it Gitee neither links nor autocloses the issue). Submit only: do not approve, merge, or sync here. Trigger: "submit pr", "提交 PR", "create gitee pr", "开个 PR", "commit and pr", "提交评审".

★ 0
kipyin
kipyin/kstack

gitee-pr-review

Adversarial two-axis review of a Gitee PR, then post ONE PR-level review comment. Sets up an isolated worktree off main, delegates the Standards+Spec review to the code-review skill, explains findings two ways (CEO = plain user-facing value; intern = file:line mechanics assuming no codebase familiarity), drafts the comment in the PR's language, shows it for approval, then posts via the gitee CLI after a --preview dry run. Never attempts inline/diff line comments (broken in this toolchain, see Pitfalls). Review-only: never approve or merge. Trigger: "review gitee pr", "评审 PR", "adversarial review pr", "pr review", "review PR <number>", "review this branch".

★ 0