feat(skills): curate code workflow skills

Add a Gitea CI triage skill with legacy web-log fallback, document first-party and third-party skill roles, and register selected third-party code workflow sources.

Remove the first-party bulk refactor workflow in favor of the registered codebase migration replacement.
This commit is contained in:
csh
2026-05-29 12:55:10 +08:00
parent d8eb418277
commit 3023aef8a0
12 changed files with 476 additions and 123 deletions
+15 -8
View File
@@ -7,8 +7,8 @@ ROOT = Path(__file__).resolve().parents[1]
SKILLS_ROOT = ROOT / "skills"
FIRST_PARTY_SKILLS = {
"commit-message": SKILLS_ROOT / "commit-message" / "SKILL.md",
"gitea-fix-ci": SKILLS_ROOT / "gitea-fix-ci" / "SKILL.md",
"style-cleanup": SKILLS_ROOT / "style-cleanup" / "SKILL.md",
"bulk-refactor-workflow": SKILLS_ROOT / "bulk-refactor-workflow" / "SKILL.md",
}
@@ -92,13 +92,20 @@ class FirstPartySkillsQualityTests(unittest.TestCase):
self.assertIn("formatter -> lint/check -> lint --fix -> final check", text)
self.assertIn("second formatter run produces no additional diff", text)
def test_bulk_refactor_skill_is_dirty_aware_and_delegates_final_cleanup(self):
text = normalize_space(read_text(FIRST_PARTY_SKILLS["bulk-refactor-workflow"]))
self.assertIn("Dirty worktrees are allowed", text)
self.assertIn("Do not revert unrelated changes", text)
self.assertIn("Use `style-cleanup` for the final formatting/lint pass", text)
self.assertIn("apply the transformation in bounded batches", text)
def test_gitea_fix_ci_skill_is_gitea_specific_and_plan_gated(self):
text = normalize_space(read_text(FIRST_PARTY_SKILLS["gitea-fix-ci"]))
self.assertIn("Gitea Actions", text)
self.assertIn("tea", text)
self.assertIn("tea actions runs", text)
self.assertIn("Gitea API", text)
self.assertIn("Gitea 1.21", text)
self.assertIn("workflow runs", text)
self.assertIn("job logs", text)
self.assertIn("/actions/runs/<run>/jobs/<job-index>/logs", text)
self.assertIn("Do not implement before the user approves the fix plan", text)
self.assertIn("not a standalone executor", text)
self.assertNotIn("gh pr checks", text)
self.assertNotIn("GitHub Actions", text)
if __name__ == "__main__":
unittest.main()