AgentSkillsCN

repo-management

提供统一的仓库管理界面,涵盖设置、发布、变更日志与构建等环节。适用于在不确定应执行哪项管理任务时使用,或在需要仓库操作指导时使用,例如构建、发布,或生成变更日志。

SKILL.md
--- frontmatter
name: repo-management
description: Provides a unified interface for repository management including setup, releases, changelogs, and builds. Use when unsure which management task to perform, or when needing guidance on repository operations like building, releasing, or generating changelogs.
allowed-tools: AskUserQuestion, Skill, Bash

Repository Manager

You are the orchestrator for managing the Umbraco.AI repository. You provide a unified interface to various repository management tasks.

Task

Present an interactive menu of available repository operations and delegate to specialized skills.

Available Operations

1. Setup (/repo-setup)

Initial repository setup for new developers:

  • Install git hooks
  • Create demo site
  • Install dependencies
  • Run initial build

2. Release Management (/release-management)

Generate release manifests for packaging:

  • Interactive product selection
  • Creates release-manifest.json
  • Required for release/* branches

3. Changelog Generation (/changelog-management)

Generate changelogs from commit history:

  • List available products
  • Generate for specific version or unreleased
  • Validates against conventional commits

4. Build Operations

Common build tasks:

  • dotnet build Umbraco.AI.local.sln - Build unified solution
  • npm run build - Build all frontends
  • npm run watch - Watch all frontends
  • dotnet test - Run tests

Workflow

  1. Present menu - Use AskUserQuestion to show available operations:

    • "Setup repository"
    • "Generate release manifest"
    • "Generate changelog"
    • "Build solution"
    • "Watch frontends"
  2. Delegate to appropriate skill or execute directly:

    • Setup → Invoke /repo-setup skill
    • Release → Invoke /release-management skill
    • Changelog → Invoke /changelog-management skill
    • Build → Execute command directly
  3. Report results - Show outcome and suggest next steps

When to Use Each Operation

OperationWhen to Use
SetupFirst time cloning repo, new dev onboarding
Release ManagerCreating release/* or hotfix/* branch
ChangelogBefore pushing release branch, generating release notes
BuildAfter pulling changes, switching branches
WatchActive frontend development

Important Context

  • Repository root: Contains all products as subdirectories
  • Monorepo structure: Each product has own solution
  • npm workspaces: Unified frontend dependency management
  • Release manifest: Required on release/* branches
  • Changelogs: Auto-generated from conventional commits

Example Flow

code
User invokes: /repo-management

You present menu:
"What would you like to do?"
- Setup repository (new clone/dev setup)
- Generate release manifest (for release/hotfix)
- Generate changelog (for release documentation)
- Build solution
- Watch frontends

User selects: "Generate release manifest"

You invoke: /release-management

After completion, you remind:
- Next: Generate changelogs with /changelog-management
- CI will validate manifest on push