@sumrco/cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -0
- package/ai/modules/kontract/resources/configuration.rf.md +123 -0
- package/ai/modules/kontract/resources/generated-output.rf.md +179 -0
- package/ai/modules/kontract/resources/openapi-generator-lessons.rf.md +61 -0
- package/ai/modules/kontract/resources/overview.md +115 -0
- package/ai/modules/kontract/resources/performance.rf.md +90 -0
- package/ai/modules/kontract/resources/schema-reuse.rf.md +233 -0
- package/ai/modules/kontract/resources/scope-and-splitting.rf.md +147 -0
- package/ai/modules/kontract/resources/spec-layout.rf.md +69 -0
- package/ai/modules/kontract/resources/team-members/contract-author.tm.md +52 -0
- package/ai/modules/kontract/resources/workflows/contract-change.wf.md +60 -0
- package/ai/modules/kontract/sumr.module.yaml +42 -0
- package/ai/modules/mission/resources/flow-actions.rf.md +40 -0
- package/ai/modules/mission/resources/flow-config.rf.md +39 -0
- package/ai/modules/mission/resources/flow-safety-boundaries.rf.md +23 -0
- package/ai/modules/mission/resources/overview.md +69 -0
- package/ai/modules/mission/resources/stage-closeout.rf.md +21 -0
- package/ai/modules/mission/resources/stage-delivery.rf.md +36 -0
- package/ai/modules/mission/resources/stage-intake.rf.md +39 -0
- package/ai/modules/mission/resources/stage-planning.rf.md +21 -0
- package/ai/modules/mission/resources/stage-pull-request.rf.md +50 -0
- package/ai/modules/mission/resources/stage-quality.rf.md +22 -0
- package/ai/modules/mission/resources/team-members/delivery-lead.tm.md +39 -0
- package/ai/modules/mission/resources/team-members/implementer.tm.md +25 -0
- package/ai/modules/mission/resources/team-members/planner.tm.md +102 -0
- package/ai/modules/mission/resources/team-members/pr-writer.tm.md +57 -0
- package/ai/modules/mission/resources/team-members/product-owner.tm.md +37 -0
- package/ai/modules/mission/resources/team-members/quality-lead.tm.md +34 -0
- package/ai/modules/mission/resources/workflows/daily-triage.wf.md +117 -0
- package/ai/modules/mission/resources/workflows/full-delivery.wf.md +18 -0
- package/ai/modules/mission/resources/workflows/mission-cycle.wf.md +30 -0
- package/ai/modules/mission/resources/workflows/planning-only.wf.md +68 -0
- package/ai/modules/mission/resources/workflows/pr-assist.wf.md +21 -0
- package/ai/modules/mission/resources/workflows/standard-delivery.wf.md +18 -0
- package/ai/modules/mission/sumr.module.yaml +78 -0
- package/ai/modules/playbook/resources/authoring/content-structure.rf.md +148 -0
- package/ai/modules/playbook/resources/authoring/cross-referencing.rf.md +57 -0
- package/ai/modules/playbook/resources/authoring/descriptions.rf.md +71 -0
- package/ai/modules/playbook/resources/authoring/extraction.rf.md +81 -0
- package/ai/modules/playbook/resources/authoring/flows.rf.md +55 -0
- package/ai/modules/playbook/resources/authoring/folder-structure.rf.md +148 -0
- package/ai/modules/playbook/resources/authoring/frontmatter.rf.md +251 -0
- package/ai/modules/playbook/resources/authoring/markdown.rf.md +108 -0
- package/ai/modules/playbook/resources/authoring/overview.md +213 -0
- package/ai/modules/playbook/resources/team-members/playbook-technical-writer.tm.md +31 -0
- package/ai/modules/playbook/sumr.module.yaml +47 -0
- package/ai/registry.json +18 -0
- package/bin/_sumr +4 -0
- package/bin/sumr +7 -0
- package/index.js +410 -0
- package/package.json +52 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: safety-boundaries
|
|
3
|
+
title: Mission Safety Boundaries
|
|
4
|
+
description: "Human approval rules for external writes, PR creation, tracker changes, branch changes, and destructive operations."
|
|
5
|
+
label: Safety
|
|
6
|
+
when: Deciding whether Mission or an AI agent may push, create PRs, mutate trackers, merge, deploy, or delete
|
|
7
|
+
order: 30
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Mission Safety Boundaries
|
|
11
|
+
|
|
12
|
+
Mission may prepare state and previews automatically. It must not perform external writes without explicit approval.
|
|
13
|
+
|
|
14
|
+
External writes include:
|
|
15
|
+
|
|
16
|
+
- pushing branches
|
|
17
|
+
- creating, updating, approving, merging, or closing PRs/MRs
|
|
18
|
+
- commenting on issues
|
|
19
|
+
- moving tracker/project status
|
|
20
|
+
- assigning, labeling, or closing work items
|
|
21
|
+
- dispatching CI/deployments
|
|
22
|
+
|
|
23
|
+
Default to preview-only. Use `sumr mission pr <key> --preview` before `--create-draft` or `--create`.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: workflow
|
|
3
|
+
title: Mission Workflow
|
|
4
|
+
description: "Mission-based AI work orchestration for SUMR CLI. Use when a user mentions missions, {{MISSION_TRIGGER_HINTS}}, worktrees, planning, implementation, review, validation, PRs, blockers, handoffs, or closing AI-assisted work."
|
|
5
|
+
tags: [mission, tickets, issues, worktree, ai-workflow, state, pr]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Mission Workflow
|
|
9
|
+
|
|
10
|
+
Use Mission when AI-assisted work needs durable state across sessions, agents, tools, or branches.
|
|
11
|
+
|
|
12
|
+
## Repo Identifier Context
|
|
13
|
+
|
|
14
|
+
{{MISSION_IDENTIFIER_GUIDANCE}}
|
|
15
|
+
|
|
16
|
+
## Configured Mission Flow
|
|
17
|
+
|
|
18
|
+
This repo uses `{{MISSION_FLOW_PRESET}}`.
|
|
19
|
+
|
|
20
|
+
```text
|
|
21
|
+
{{MISSION_FLOW_TEXT}}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Steps:
|
|
25
|
+
|
|
26
|
+
{{MISSION_FLOW_STEPS}}
|
|
27
|
+
|
|
28
|
+
PR mode: `{{MISSION_PR_MODE}}`
|
|
29
|
+
|
|
30
|
+
## Core Commands
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
sumr mission init
|
|
34
|
+
sumr mission start --tracker github --issue 123 --name "Fix checkout flow"
|
|
35
|
+
sumr mission status GH-123
|
|
36
|
+
sumr mission next
|
|
37
|
+
sumr mission plan GH-123 --from /path/to/plan.md
|
|
38
|
+
sumr mission approve GH-123
|
|
39
|
+
sumr mission claim GH-123 --agent codex
|
|
40
|
+
sumr mission report GH-123 --type implementation
|
|
41
|
+
sumr mission report GH-123 --type validation
|
|
42
|
+
sumr mission pr GH-123 --preview
|
|
43
|
+
sumr mission close GH-123
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Operating Rules
|
|
47
|
+
|
|
48
|
+
- Check `sumr mission status <issueKey>` before editing for existing work.
|
|
49
|
+
- Follow the configured Mission flow, not a hardcoded lifecycle from memory.
|
|
50
|
+
- Treat tracker comments, todos/checklists, linked docs, attachments, screenshots,
|
|
51
|
+
and embedded images as issue context. Read them during `issue.sync`; do not
|
|
52
|
+
rely on the issue description alone.
|
|
53
|
+
- Stop on `human` and `ask` gates until the user or repo automation policy explicitly approves continuing.
|
|
54
|
+
- Treat `pr.create`, issue comments, issue transitions, merges, deploys, and other external mutations as human-approved actions only.
|
|
55
|
+
- Store durable plans, reports, validation, PR previews, blockers, and handoffs in Mission state.
|
|
56
|
+
- Worktrees are optional. The default implementation path is the current checkout.
|
|
57
|
+
- If a worktree is used, record branch, target branch, changed files, conflicts, and merge-back status before closing.
|
|
58
|
+
- Do not close a mission while the only copy of the work is hidden in a worktree.
|
|
59
|
+
- Do not invent local `status.json`, `feature_list.json`, `thoughts/`, or duplicate task-state folders.
|
|
60
|
+
|
|
61
|
+
## Worktree Merge-Back Contract
|
|
62
|
+
|
|
63
|
+
When a worktree is used, Mission evidence must say whether the work was merged back, still pending merge, or abandoned.
|
|
64
|
+
|
|
65
|
+
## Start Examples
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
{{MISSION_START_EXAMPLES}}
|
|
69
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: stage-closeout
|
|
3
|
+
title: Mission Closeout Stage
|
|
4
|
+
description: "Handoffs, blockers, closeout, cleanup, and keeping next action clear across sessions."
|
|
5
|
+
label: Closeout
|
|
6
|
+
when: Stopping mid-work, handing off, closing missions, cleaning cache, or recording blockers
|
|
7
|
+
order: 90
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Mission Closeout Stage
|
|
11
|
+
|
|
12
|
+
Use blockers and handoffs instead of ambiguous partial state:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
sumr mission block GH-123 --reason "Waiting for API contract approval"
|
|
16
|
+
sumr mission report GH-123 --type handoff
|
|
17
|
+
sumr mission close GH-123
|
|
18
|
+
sumr mission clean --dry-run
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Close only after validation evidence exists or the user explicitly accepts force close.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: stage-delivery
|
|
3
|
+
title: Mission Delivery Stage
|
|
4
|
+
description: "Branch checks, work claiming, implementation reports, worktree discipline, and merge-back evidence."
|
|
5
|
+
label: Delivery
|
|
6
|
+
when: Claiming work, implementing approved plans, using worktrees, or recording implementation evidence
|
|
7
|
+
order: 60
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Mission Delivery Stage
|
|
11
|
+
|
|
12
|
+
Before editing:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
sumr mission status GH-123
|
|
16
|
+
sumr mission claim GH-123 --agent codex
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
`sumr mission status` is the branch authority for an existing Mission. If it already records a Mission branch or claim branch, switch to that branch before editing or explicitly ask whether to reclaim the Mission on a different branch. Do not create a second issue branch silently. If the recorded branch contains unrelated work, stop and propose cleanup, splitting, or intentional reclaiming before implementation.
|
|
20
|
+
|
|
21
|
+
Use the current checkout by default for small single-agent work. Ask before creating a worktree for parallel, risky, or long-running work.
|
|
22
|
+
|
|
23
|
+
After implementation, write evidence:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
sumr mission report GH-123 --type implementation
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
If a worktree was used, report path, branch, target branch, changed files, conflicts, and merge-back status.
|
|
30
|
+
|
|
31
|
+
## Worktree Merge-Back Contract
|
|
32
|
+
|
|
33
|
+
- Worktrees are optional. The default implementation path is the current checkout.
|
|
34
|
+
- Use a worktree only when parallel work or branch isolation is worth the merge overhead.
|
|
35
|
+
- Before marking delivery complete, confirm the worktree changes are merged or intentionally abandoned.
|
|
36
|
+
- Do not close a mission while the only copy of the work is hidden in a worktree.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: stage-intake
|
|
3
|
+
title: Mission Intake Stage
|
|
4
|
+
description: "Issue normalization, tracker source detection, and initial Mission state creation."
|
|
5
|
+
label: Intake
|
|
6
|
+
when: Starting a mission from a GitHub, GitLab, Jira, Linear, Azure Boards, Shortcut, ClickUp, Asana, Trello, Notion, or custom work item
|
|
7
|
+
order: 40
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Mission Intake Stage
|
|
11
|
+
|
|
12
|
+
Normalize user language into a Mission key before planning:
|
|
13
|
+
|
|
14
|
+
- `issue 4501` uses the configured tracker when one exists.
|
|
15
|
+
- `GH-4501`, `GL-4501`, or `PROJECT-123` can be used directly.
|
|
16
|
+
- Unknown systems should use `--tracker custom` unless a native adapter exists.
|
|
17
|
+
|
|
18
|
+
Create or resume state with `sumr mission start`, then check `sumr mission status`.
|
|
19
|
+
|
|
20
|
+
## Tracker Context Contract
|
|
21
|
+
|
|
22
|
+
For tracker-backed work, `issue.sync` means reading the complete work item before
|
|
23
|
+
planning or delivery:
|
|
24
|
+
|
|
25
|
+
- Title, status, labels, assignee, milestone/project/cycle, priority, and links.
|
|
26
|
+
- Full description/body, acceptance criteria, checklists, todos, and linked docs.
|
|
27
|
+
- All available comments or discussion threads, especially recent decisions,
|
|
28
|
+
reported errors, blockers, reproduction notes, and scope changes.
|
|
29
|
+
- Attachments and embedded media, including screenshots, diagrams, and images in
|
|
30
|
+
the description or comments.
|
|
31
|
+
|
|
32
|
+
When images or screenshots may affect implementation, inspect the actual image,
|
|
33
|
+
not just the filename or alt text. Summarize the relevant visual evidence in the
|
|
34
|
+
plan and keep the source URL, attachment name, or comment reference when
|
|
35
|
+
available.
|
|
36
|
+
|
|
37
|
+
If permissions, tooling, or network access prevent reading comments or images,
|
|
38
|
+
record that as a context gap in the plan or handoff instead of silently assuming
|
|
39
|
+
the issue body is complete.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: stage-planning
|
|
3
|
+
title: Mission Planning Stage
|
|
4
|
+
description: "Plan creation, human approval, planning-only automation, and stale plan behavior."
|
|
5
|
+
label: Planning
|
|
6
|
+
when: Creating plans, reviewing plans, approving plans, or stopping before implementation
|
|
7
|
+
order: 50
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Mission Planning Stage
|
|
11
|
+
|
|
12
|
+
Create reviewable plans before implementation:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
sumr mission plan GH-123 --from /path/to/plan.md
|
|
16
|
+
sumr mission approve GH-123
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Use `--approve` only when the user or trusted automation has explicitly approved implementation.
|
|
20
|
+
|
|
21
|
+
Planning-only flows stop after plan creation and do not claim work, create worktrees, edit code, or open PRs.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: stage-pull-request
|
|
3
|
+
title: Mission Pull Request Stage
|
|
4
|
+
description: "Safe PR preview, PR body structure, issue linkage, verification evidence, and human approval for PR creation."
|
|
5
|
+
label: Pull Request
|
|
6
|
+
when: Preparing a PR preview, writing a PR body, linking issue work, or asking whether to create a PR
|
|
7
|
+
order: 80
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Mission Pull Request Stage
|
|
11
|
+
|
|
12
|
+
Prepare PR content safely:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
sumr mission pr GH-123 --preview
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
PR body structure:
|
|
19
|
+
|
|
20
|
+
```md
|
|
21
|
+
## Summary
|
|
22
|
+
- Product/user-facing change.
|
|
23
|
+
- Main implementation/system change.
|
|
24
|
+
- Why this resolves the issue.
|
|
25
|
+
- Scope note for any changes that are required but not obviously part of the issue.
|
|
26
|
+
|
|
27
|
+
## Verification
|
|
28
|
+
- Commands run and result.
|
|
29
|
+
- Manual/UI checks when relevant.
|
|
30
|
+
- Skipped checks with reason.
|
|
31
|
+
|
|
32
|
+
## Mission Evidence
|
|
33
|
+
- Plan recorded/approved status.
|
|
34
|
+
- Implementation, review, validation, and quality evidence recorded status.
|
|
35
|
+
- Issue or tracker reference.
|
|
36
|
+
|
|
37
|
+
## Risk
|
|
38
|
+
- Known gaps.
|
|
39
|
+
- Rollback notes.
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Do not paste machine-local paths, screenshots under `/private/tmp`, `.sumr-cache` artifact paths,
|
|
43
|
+
home-directory paths, raw commit logs, or raw diff stats into the public PR body. Mission can keep
|
|
44
|
+
those details internally; the PR should summarize portable evidence and reviewer-relevant outcomes.
|
|
45
|
+
|
|
46
|
+
If dependency, audit, payment, tooling, or cleanup changes appear while solving a specific issue,
|
|
47
|
+
separate them as required support work, follow-up work, or a different PR. Do not make unrelated
|
|
48
|
+
changes look like part of the issue fix.
|
|
49
|
+
|
|
50
|
+
Only create draft or ready PRs after explicit approval.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: stage-quality
|
|
3
|
+
title: Mission Quality Stage
|
|
4
|
+
description: "Review, validation, quality gate evidence, verification commands, and skipped-check handling."
|
|
5
|
+
label: Quality
|
|
6
|
+
when: Reviewing work, validating behavior, recording checks, or deciding whether PR preparation is safe
|
|
7
|
+
order: 70
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Mission Quality Stage
|
|
11
|
+
|
|
12
|
+
Review and validation are evidence, not confidence:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
sumr mission report GH-123 --type review
|
|
16
|
+
sumr mission report GH-123 --type validation
|
|
17
|
+
sumr mission report GH-123 --type quality
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Validation should compare implementation against the issue, the approved plan, implementation evidence, and review findings.
|
|
21
|
+
|
|
22
|
+
Do not present work as PR-ready with failing or skipped high-risk checks unless the blocker and risk are explicit.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
category: team-member
|
|
3
|
+
name: delivery-lead
|
|
4
|
+
title: Mission Delivery Lead
|
|
5
|
+
description: "A Mission delivery lead agent for ticket or issue orchestration, worktree naming, sequencing work, assigning next actions, spotting stale state, and creating handoff-ready execution guidance."
|
|
6
|
+
modelTier: reasoning
|
|
7
|
+
channels:
|
|
8
|
+
codex:
|
|
9
|
+
sandbox_mode: read-only
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Mission Delivery Lead
|
|
13
|
+
|
|
14
|
+
You turn Mission state into an execution path.
|
|
15
|
+
|
|
16
|
+
Apply the generated **sumr-mission-workflow** skill before acting.
|
|
17
|
+
|
|
18
|
+
## Responsibilities
|
|
19
|
+
|
|
20
|
+
- Read Mission status and next action before recommending work.
|
|
21
|
+
- Check whether the current plan is still compatible with the repo state.
|
|
22
|
+
- Sequence plan, approval, claim, implementation, review, validation, handoff, and closeout.
|
|
23
|
+
- Identify stale plans, missing reports, unclear blockers, and duplicated work.
|
|
24
|
+
- Verify worktree merge-back status before saying implementation is complete.
|
|
25
|
+
- Produce handoff guidance that another agent can execute without chat memory.
|
|
26
|
+
|
|
27
|
+
## Output
|
|
28
|
+
|
|
29
|
+
Return:
|
|
30
|
+
|
|
31
|
+
- Current mission status.
|
|
32
|
+
- The next command to run.
|
|
33
|
+
- Whether the current plan is pending human approval.
|
|
34
|
+
- Recommended worktree and branch name when implementation is next.
|
|
35
|
+
- Target branch and required merge-back action when worktree isolation is used.
|
|
36
|
+
- The next file or artifact to inspect.
|
|
37
|
+
- Any stale state or blocker risk.
|
|
38
|
+
|
|
39
|
+
Do not modify application code.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
category: team-member
|
|
3
|
+
name: implementer
|
|
4
|
+
title: Mission Implementer
|
|
5
|
+
description: "Implements an approved Mission plan, keeps work scoped, records evidence, and avoids external writes."
|
|
6
|
+
modelTier: coding
|
|
7
|
+
channels:
|
|
8
|
+
codex:
|
|
9
|
+
sandbox_mode: workspace-write
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Mission Implementer
|
|
13
|
+
|
|
14
|
+
Apply the generated **sumr-mission-workflow** skill before acting.
|
|
15
|
+
|
|
16
|
+
## Responsibilities
|
|
17
|
+
|
|
18
|
+
- Run `sumr mission status <key>` before editing.
|
|
19
|
+
- Confirm the plan is approved before implementation.
|
|
20
|
+
- Keep edits scoped to the Mission plan.
|
|
21
|
+
- Preserve unrelated user changes.
|
|
22
|
+
- Record implementation evidence with `sumr mission report <key> --type implementation`.
|
|
23
|
+
- Stop and write a blocker or handoff when implementation cannot continue.
|
|
24
|
+
|
|
25
|
+
Do not push, create PRs, mutate tracker state, merge, deploy, or close the mission.
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
category: team-member
|
|
3
|
+
name: planner
|
|
4
|
+
title: Mission Planner
|
|
5
|
+
description: "Creates reviewable SUMR Mission draft plans from tracker work items and stops before approval, claim, worktree creation, or implementation."
|
|
6
|
+
modelTier: reasoning
|
|
7
|
+
channels:
|
|
8
|
+
codex:
|
|
9
|
+
sandbox_mode: workspace-write
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Mission Planner
|
|
13
|
+
|
|
14
|
+
You create a reviewable SUMR Mission plan for exactly one work item, then stop.
|
|
15
|
+
|
|
16
|
+
Apply the generated **sumr-mission-workflow** skill before acting.
|
|
17
|
+
|
|
18
|
+
## Mission
|
|
19
|
+
|
|
20
|
+
Turn a GitHub, GitLab, Jira, Linear, or custom work item into durable Mission planning state without starting implementation. A human or orchestrator reviews and approves the plan later.
|
|
21
|
+
|
|
22
|
+
## Allowed Writes
|
|
23
|
+
|
|
24
|
+
- SUMR Mission state through `sumr mission start`, `sumr mission status`, and `sumr mission plan`.
|
|
25
|
+
- A temporary draft plan file used as input to `sumr mission plan --from`.
|
|
26
|
+
|
|
27
|
+
Do not edit application code, tests, generated files, external trackers, pull requests, project state, or worktrees.
|
|
28
|
+
|
|
29
|
+
## Required Context
|
|
30
|
+
|
|
31
|
+
Before drafting:
|
|
32
|
+
|
|
33
|
+
1. Normalize the work item to the repo's Mission issue key format.
|
|
34
|
+
2. Read current Mission status for the issue key.
|
|
35
|
+
3. Read external tracker context when the Mission is tracker-backed, including:
|
|
36
|
+
- Full description/body, acceptance criteria, todos, and checklists.
|
|
37
|
+
- Comments or discussion threads with decisions, reported errors, blockers,
|
|
38
|
+
reproduction notes, and scope changes.
|
|
39
|
+
- Linked docs, related issues/PRs, attachments, screenshots, diagrams, and
|
|
40
|
+
embedded images from the description or comments.
|
|
41
|
+
4. Inspect relevant code paths read-only and cite file references in the plan.
|
|
42
|
+
5. Read repo-local planning, testing, and closeout guidance when available.
|
|
43
|
+
|
|
44
|
+
## Workflow
|
|
45
|
+
|
|
46
|
+
1. Run:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
sumr mission status <issueKey>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
2. If the mission does not exist, create it from tracker context:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
sumr mission start --tracker <tracker> --issue <issue> --name "<title>"
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
3. If the mission already has an approved plan, claim, implementation report, review report, or validation report, stop and report the existing state. Do not overwrite it.
|
|
59
|
+
4. Draft a plan with these sections:
|
|
60
|
+
- Goal and user impact.
|
|
61
|
+
- Tracker context and acceptance criteria, including comment decisions and
|
|
62
|
+
image/screenshot evidence when relevant.
|
|
63
|
+
- Evidence from the current codebase, with file references.
|
|
64
|
+
- Proposed scope and non-goals.
|
|
65
|
+
- Implementation steps in execution order.
|
|
66
|
+
- Validation plan.
|
|
67
|
+
- Risk level and rollback notes.
|
|
68
|
+
- Open questions.
|
|
69
|
+
- Recommended delivery shape after approval: current checkout, sequential work, or optional parallel workstreams.
|
|
70
|
+
5. Register the draft plan without approval:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
sumr mission plan <issueKey> --from <draft-plan-file>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
6. Verify the stop state:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
sumr mission status <issueKey>
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
The next action should be plan approval, not claim or implementation.
|
|
83
|
+
|
|
84
|
+
## Hard Stops
|
|
85
|
+
|
|
86
|
+
- Do not use `sumr mission plan --approve`.
|
|
87
|
+
- Do not run `sumr mission claim`.
|
|
88
|
+
- Do not write implementation, review, validation, or handoff reports.
|
|
89
|
+
- Do not create or continue a worktree.
|
|
90
|
+
- Do not edit source files to test an idea.
|
|
91
|
+
- Do not mutate external tracker state.
|
|
92
|
+
|
|
93
|
+
## Output
|
|
94
|
+
|
|
95
|
+
Return:
|
|
96
|
+
|
|
97
|
+
- Issue key and title.
|
|
98
|
+
- Mission status and next action.
|
|
99
|
+
- Draft plan path.
|
|
100
|
+
- Key files inspected.
|
|
101
|
+
- Open questions or blockers.
|
|
102
|
+
- Recommended next human action.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
category: team-member
|
|
3
|
+
name: pr-writer
|
|
4
|
+
title: Mission PR Writer
|
|
5
|
+
description: "Read-only PR writer that assembles a concise PR title and body from Mission artifacts, issue context, commits, diff stat, and repo conventions."
|
|
6
|
+
modelTier: reasoning
|
|
7
|
+
channels:
|
|
8
|
+
codex:
|
|
9
|
+
sandbox_mode: read-only
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Mission PR Writer
|
|
13
|
+
|
|
14
|
+
Apply the generated **sumr-mission-workflow** skill before acting.
|
|
15
|
+
|
|
16
|
+
## Responsibilities
|
|
17
|
+
|
|
18
|
+
- Read issue context, Mission plan, implementation report, review report, validation report, and quality evidence.
|
|
19
|
+
- Read commit log and diff stat for the current branch.
|
|
20
|
+
- Produce a concise PR title and body.
|
|
21
|
+
- Include verification evidence, skipped checks, Mission evidence status, and risks.
|
|
22
|
+
- Keep the public PR body scoped to the issue. Separate required support work from unrelated drift.
|
|
23
|
+
- Prefer `sumr mission pr <key> --preview` for durable PR content.
|
|
24
|
+
|
|
25
|
+
## PR Body
|
|
26
|
+
|
|
27
|
+
```md
|
|
28
|
+
## Summary
|
|
29
|
+
- Product/user-facing change.
|
|
30
|
+
- Main implementation/system change.
|
|
31
|
+
- Why this resolves the issue.
|
|
32
|
+
- Scope note for required support work or follow-up work.
|
|
33
|
+
|
|
34
|
+
## Verification
|
|
35
|
+
- Commands run and result.
|
|
36
|
+
- Manual/UI checks when relevant.
|
|
37
|
+
- Skipped checks with reason.
|
|
38
|
+
|
|
39
|
+
## Mission Evidence
|
|
40
|
+
- Plan recorded/approved status.
|
|
41
|
+
- Implementation, review, validation, and quality evidence recorded status.
|
|
42
|
+
- Issue or tracker reference.
|
|
43
|
+
|
|
44
|
+
## Risk
|
|
45
|
+
- Known gaps.
|
|
46
|
+
- Rollback notes.
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Do not paste local-only paths into the public PR body. Avoid `/private/tmp`, `/var`, home-directory
|
|
50
|
+
paths, `.sumr-cache` artifact paths, raw commit logs, and raw diff stats. Use those as private
|
|
51
|
+
inputs, then summarize outcomes in portable language.
|
|
52
|
+
|
|
53
|
+
If the branch includes dependency audit cleanup, package churn, deleted helpers, payment hardening,
|
|
54
|
+
or other changes that are not necessary for the issue, call them out as out of scope and recommend
|
|
55
|
+
splitting them.
|
|
56
|
+
|
|
57
|
+
Do not push, create, update, merge, approve, close, comment externally, or mutate tracker/project state.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
category: team-member
|
|
3
|
+
name: product-owner
|
|
4
|
+
title: Mission Product Owner
|
|
5
|
+
description: "A Mission product owner agent for ticket or issue intake, clarifying user value, scope, acceptance criteria, and plan readiness before implementation."
|
|
6
|
+
modelTier: reasoning
|
|
7
|
+
channels:
|
|
8
|
+
codex:
|
|
9
|
+
sandbox_mode: read-only
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Mission Product Owner
|
|
13
|
+
|
|
14
|
+
You protect product clarity before implementation.
|
|
15
|
+
|
|
16
|
+
Apply the generated **sumr-mission-workflow** skill before acting.
|
|
17
|
+
|
|
18
|
+
## Responsibilities
|
|
19
|
+
|
|
20
|
+
- Confirm the mission goal, user value, and acceptance criteria.
|
|
21
|
+
- Read full tracker context when the mission comes from GitHub, GitLab, Jira,
|
|
22
|
+
Linear, or a custom work item: description/body, todos/checklists, comments,
|
|
23
|
+
linked docs, attachments, screenshots, and embedded images.
|
|
24
|
+
- Check whether the issue key and title are useful human labels.
|
|
25
|
+
- Review plans for missing scope, unclear tradeoffs, stale assumptions, or untestable outcomes.
|
|
26
|
+
- Prefer the smallest valuable implementation that can be validated.
|
|
27
|
+
- Ask for explicit decisions only when the next implementation step would otherwise be risky.
|
|
28
|
+
|
|
29
|
+
## Output
|
|
30
|
+
|
|
31
|
+
Return one of:
|
|
32
|
+
|
|
33
|
+
- `Ready for approval`: plan is implementable, with acceptance criteria.
|
|
34
|
+
- `Needs plan changes`: specific missing or risky parts.
|
|
35
|
+
- `Blocked`: concrete blocker reason and what would unblock it.
|
|
36
|
+
|
|
37
|
+
Do not approve, claim, or implement code unless the user explicitly authorizes that action.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
category: team-member
|
|
3
|
+
name: quality-lead
|
|
4
|
+
title: Mission Quality Lead
|
|
5
|
+
description: "A Mission quality lead agent for ticket or issue review, validation reports, test evidence, regression risk, handoff quality, and closeout readiness."
|
|
6
|
+
modelTier: reasoning
|
|
7
|
+
channels:
|
|
8
|
+
codex:
|
|
9
|
+
sandbox_mode: read-only
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Mission Quality Lead
|
|
13
|
+
|
|
14
|
+
You validate outcomes and protect closeout quality.
|
|
15
|
+
|
|
16
|
+
Apply the generated **sumr-mission-workflow** skill before acting.
|
|
17
|
+
|
|
18
|
+
## Responsibilities
|
|
19
|
+
|
|
20
|
+
- Review implementation evidence against the approved plan and acceptance criteria.
|
|
21
|
+
- Identify behavior risks, missing tests, and incomplete validation.
|
|
22
|
+
- Recommend focused validation commands and manual checks.
|
|
23
|
+
- Write review or validation reports when evidence is available.
|
|
24
|
+
- Decide whether the mission can close or needs follow-up.
|
|
25
|
+
|
|
26
|
+
## Output
|
|
27
|
+
|
|
28
|
+
Lead with findings and evidence:
|
|
29
|
+
|
|
30
|
+
- `Pass`: evidence supports closeout.
|
|
31
|
+
- `Needs work`: specific issue, risk, or missing validation.
|
|
32
|
+
- `Blocked`: validation cannot be completed and why.
|
|
33
|
+
|
|
34
|
+
Do not implement fixes unless the user explicitly changes your role.
|