AgentSkillsCN

aglit-workflow

在带有`.aglit/`的仓库中使用AGLIT问题/项目工作流。可用于规划与跟踪工作、创建/更新/列出问题或项目、选择下一个问题、验证AGLIT状态,或编辑`.aglit/issues/*.md`与`.aglit/projects/*.md`,确保正确填写frontmatter,并以`projectId`链接相关项目。

SKILL.md
--- frontmatter
name: aglit-workflow
description: Use AGLIT issue/project workflow in repos with `.aglit/`. Trigger for planning/tracking work, creating/updating/listing issues or projects, choosing next issue, validating AGLIT state, or editing `.aglit/issues/*.md` and `.aglit/projects/*.md` with correct frontmatter and `projectId` linking.

AGLIT Workflow

Use aglit for create/list/validate actions. Edit issue/project markdown files directly for content changes.

Runbook

  1. If .aglit/ is missing, run aglit init --prefix <PREFIX>.
  2. If asked what to work on, run aglit list (or aglit list --group none).
  3. If project context is needed, run aglit projects and filter by slug if needed.
  4. If no matching issue exists, create one with aglit new.
  5. Edit .aglit/issues/*.md or .aglit/projects/*.md with file tools.
  6. While implementing, keep the active issue updated (status plus ## Plan/## Verification) so progress is visible in the issue file.
  7. Before handoff on major updates, run aglit check.

Invariants

  • Keep required frontmatter keys valid and YAML parseable.
  • id and projectId must be UUIDv7 strings.
  • Link issue to project with projectId only (never slug).
  • Resolve slug -> id via aglit new --project <slug> or project frontmatter.
  • Update issue status and body sections as work progresses; do not leave progress tracking only in chat.
  • Treat aglit check warnings/errors as action items unless the user explicitly defers.

Common Flows

  • Create project + first issue: aglit project new "<Title>" -> aglit new "<Issue Title>" --project <slug> -> aglit list --project <slug>.
  • Choose next issue: run aglit list; prefer active, then planned, unless user says otherwise; keep ## Plan and ## Verification updated.
  • Validate handoff: run aglit check; if clean, report issue/project counts and key updates; if not clean, fix and rerun.

References

  • references/commands.md
  • references/file-format.md