chore: adopt repo-first agent workflow
Add CLAUDE.md, AGENTS.md, docs (context, ADR, runbooks, handoffs), coordination docs and Gitea issue/PR templates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# Coordination
|
||||
|
||||
How humans and coding agents coordinate work on this repository.
|
||||
|
||||
- `workflow.md` → the standard sequence for any task
|
||||
- `labels.md` → Gitea label set and meaning
|
||||
- `issue-lifecycle.md` → how an issue moves through states
|
||||
@@ -0,0 +1,9 @@
|
||||
# Issue lifecycle
|
||||
|
||||
1. The issue is created with `type/*` + `status/todo` + a `priority/*` label.
|
||||
2. When an agent or human starts, set the assignee, `agent/*` and `status/in-progress`.
|
||||
3. If a real blocker emerges, switch to `status/blocked` and explain it in a comment.
|
||||
4. When the code is ready but needs human or another agent's review, use `status/review`.
|
||||
5. When it is merged and verified, close the issue (or mark `status/done`).
|
||||
|
||||
Only one `status/*` label at a time.
|
||||
@@ -0,0 +1,16 @@
|
||||
# Labels
|
||||
|
||||
## type/*
|
||||
Feature classification: `type/feature`, `type/bug`, `type/refactor`, `type/docs`, `type/chore`
|
||||
|
||||
## status/*
|
||||
Workflow state: `status/todo`, `status/in-progress`, `status/blocked`, `status/review`, `status/done`
|
||||
|
||||
## priority/*
|
||||
Business/technical urgency: `priority/p0` (highest) … `priority/p3` (lowest)
|
||||
|
||||
## agent/*
|
||||
Who is currently leading the task: `agent/claude`, `agent/codex`, `agent/human`
|
||||
|
||||
## area/* (optional)
|
||||
`area/frontend`, `area/backend`, `area/infra`, `area/docs`, `area/automation`
|
||||
@@ -0,0 +1,13 @@
|
||||
# Workflow
|
||||
|
||||
## Core rule
|
||||
No non-trivial work starts without a Gitea issue.
|
||||
|
||||
## Sequence
|
||||
1. Pick issue
|
||||
2. Read repo instructions and relevant docs
|
||||
3. Implement within scope
|
||||
4. Run checks
|
||||
5. Update docs if needed
|
||||
6. Write handoff if task is not trivial
|
||||
7. Open/update PR
|
||||
Reference in New Issue
Block a user