@yemi33/minions 0.1.1679 → 0.1.1680
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/CHANGELOG.md +5 -0
- package/engine/copilot-models.json +1 -1
- package/package.json +1 -1
- package/playbooks/fix.md +9 -0
- package/playbooks/implement.md +11 -0
- package/playbooks/plan.md +2 -0
- package/playbooks/review.md +28 -3
- package/playbooks/shared-rules.md +2 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1680",
|
|
4
4
|
"description": "Multi-agent AI dev team that runs from ~/.minions/ — five autonomous agents share a single engine, dashboard, and knowledge base",
|
|
5
5
|
"bin": {
|
|
6
6
|
"minions": "bin/minions.js"
|
package/playbooks/fix.md
CHANGED
|
@@ -17,6 +17,14 @@ Branch: `{{pr_branch}}`
|
|
|
17
17
|
|
|
18
18
|
{{review_note}}
|
|
19
19
|
|
|
20
|
+
## Finding Triage
|
|
21
|
+
|
|
22
|
+
Before editing, split the feedback into:
|
|
23
|
+
|
|
24
|
+
- **Blocking findings to fix:** correctness, safety, build/test failure, missing requested behavior, broken compatibility, or review comments explicitly required for approval.
|
|
25
|
+
- **Findings to answer with rationale:** comments where the current approach is intentionally correct, the reviewer misunderstood the code, or the requested change would broaden the PR beyond its purpose.
|
|
26
|
+
- **Non-blocking suggestions:** style, optional refactors, extra docs, or enhancements that are not required for approval. Do not implement these unless they are necessary to resolve a blocking issue.
|
|
27
|
+
|
|
20
28
|
## Health Check
|
|
21
29
|
|
|
22
30
|
Before starting work, run `git status` and verify the worktree is clean and on the expected branch (`{{pr_branch}}`). If the worktree is dirty or on the wrong branch, report the issue and stop.
|
|
@@ -42,6 +50,7 @@ Before pushing, prove the review fix did not break the branch:
|
|
|
42
50
|
|
|
43
51
|
- Use the project's source of truth for commands: `CLAUDE.md`, README, package scripts, Makefile, or equivalent build config.
|
|
44
52
|
- Run checks that are relevant to the addressed findings. Prefer the full suite when practical.
|
|
53
|
+
- Capture the exact commands run and meaningful results in the PR comment and completion report.
|
|
45
54
|
- Fix regressions you introduced. If failures are pre-existing or unrelated, capture the evidence and include it in the PR comment.
|
|
46
55
|
- Do not push code that breaks existing tests or the build because of your changes.
|
|
47
56
|
|
package/playbooks/implement.md
CHANGED
|
@@ -34,11 +34,21 @@ Before starting work, run `git status` and verify the worktree is clean and on t
|
|
|
34
34
|
|
|
35
35
|
Use subagents only for genuinely parallel, independent tasks (e.g., editing files in unrelated modules simultaneously). For sequential work, single-file edits, searches, and file reads, work directly — do not spawn subagents.
|
|
36
36
|
|
|
37
|
+
## Context Discovery
|
|
38
|
+
|
|
39
|
+
Before editing, assemble a small, dependency-aware context pack:
|
|
40
|
+
|
|
41
|
+
- Read project instructions first (`CLAUDE.md`, README, package scripts, Makefile, or equivalent).
|
|
42
|
+
- Identify candidate files from the task text, existing symbols, comparable implementations, direct imports/callers, and corresponding tests.
|
|
43
|
+
- Read the smallest useful set of files first (usually 5-8). Expand only when a concrete question, failing validation, or missing pattern requires it.
|
|
44
|
+
- For large files, read imports, exported/public entry points, and task-relevant sections before reading the whole file.
|
|
45
|
+
|
|
37
46
|
## Delivery Contract
|
|
38
47
|
|
|
39
48
|
Deliver this as if the user asked you directly in a CLI:
|
|
40
49
|
|
|
41
50
|
- Understand the requested behavior and relevant acceptance criteria before editing.
|
|
51
|
+
- State the likely files to touch, patterns to follow, and main risks to yourself before making the first code change.
|
|
42
52
|
- Read the smallest useful set of source, tests, docs, and comparable implementations needed to make the change correctly.
|
|
43
53
|
- Follow existing project conventions, including logging, typing, error handling, and test structure.
|
|
44
54
|
- Make the complete change required by the task; do not add unrelated cleanups or speculative improvements.
|
|
@@ -55,6 +65,7 @@ Before publishing, prove the change with the repo's own documented checks:
|
|
|
55
65
|
|
|
56
66
|
- Use the project's source of truth for commands: `CLAUDE.md`, README, package scripts, Makefile, or equivalent build config.
|
|
57
67
|
- Run the checks that are relevant to this task, including tests that cover the changed behavior. Prefer the full suite when practical.
|
|
68
|
+
- Capture the exact commands run and the meaningful result in the PR description or completion report. Do not summarize validation as "tests passed" without naming what ran.
|
|
58
69
|
- Fix regressions you introduced. If failures are pre-existing or outside the task, capture the evidence and make that explicit in the PR.
|
|
59
70
|
- Do not publish changes with a broken build or failing tests that you introduced.
|
|
60
71
|
|
package/playbooks/plan.md
CHANGED
|
@@ -28,12 +28,14 @@ A user has described a feature they want built. Your job is to create a detailed
|
|
|
28
28
|
- Map the areas of code that this feature will touch
|
|
29
29
|
- Identify existing patterns, conventions, and extension points
|
|
30
30
|
- Note dependencies and potential conflicts with in-progress work
|
|
31
|
+
- Build a concise context pack before planning: start with 5-15 candidate files from paths, symbols, comparable implementations, imports/callers, and tests; read the smallest useful set (usually 5-8 files) and expand only for specific unknowns
|
|
31
32
|
|
|
32
33
|
### 3. Design the Approach
|
|
33
34
|
- Outline the high-level architecture for the feature
|
|
34
35
|
- Identify what needs to be created vs modified
|
|
35
36
|
- Consider edge cases, error handling, and backwards compatibility
|
|
36
37
|
- Note any prerequisites or migrations needed
|
|
38
|
+
- Record non-obvious design decisions with the alternatives considered and why the chosen option best fits existing architecture
|
|
37
39
|
|
|
38
40
|
### 4. Break Down into Work Items
|
|
39
41
|
- Decompose into discrete, PR-sized chunks of work
|
package/playbooks/review.md
CHANGED
|
@@ -23,7 +23,14 @@ Use subagents only for genuinely parallel, independent tasks (e.g., reviewing un
|
|
|
23
23
|
git diff {{main_branch}}...origin/{{pr_branch}}
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
2.
|
|
26
|
+
2. Think about deploy risk before commenting:
|
|
27
|
+
- What user-visible behavior changed?
|
|
28
|
+
- What dependencies, callers, or tests could be affected?
|
|
29
|
+
- What security, data-loss, concurrency, or compatibility risks are plausible for this diff?
|
|
30
|
+
|
|
31
|
+
3. Run or inspect the repo's documented checks when practical. Use `CLAUDE.md`, README, package scripts, Makefile, or equivalent as the command source of truth, and record the exact commands/results in the review body.
|
|
32
|
+
|
|
33
|
+
4. For each changed file, verify:
|
|
27
34
|
- Does it follow existing patterns?
|
|
28
35
|
- Are file paths and imports correct?
|
|
29
36
|
- Follows the project's logging conventions (check CLAUDE.md)?
|
|
@@ -31,14 +38,19 @@ Use subagents only for genuinely parallel, independent tasks (e.g., reviewing un
|
|
|
31
38
|
- Tests cover the important logic?
|
|
32
39
|
- No security issues (injection, unsanitized input)?
|
|
33
40
|
|
|
34
|
-
|
|
41
|
+
5. Classify findings by ship risk:
|
|
42
|
+
- **Blocking:** failing checks, security/data-loss risk, broken existing behavior, missing requested behavior, invalid API/schema/data migration, or tests that do not cover changed critical logic.
|
|
43
|
+
- **Non-blocking:** style preferences, minor refactors, optional documentation, low-risk performance ideas, or additional tests that are useful but not required for safety.
|
|
44
|
+
|
|
45
|
+
6. Do NOT blindly approve. If you find real blocking issues:
|
|
35
46
|
- Verdict: **REQUEST_CHANGES**
|
|
36
47
|
- List specific issues with file paths and line numbers
|
|
37
48
|
- Describe what needs to change
|
|
38
49
|
|
|
39
|
-
|
|
50
|
+
7. If the code is genuinely ready:
|
|
40
51
|
- Verdict: **APPROVE**
|
|
41
52
|
- Note any minor non-blocking suggestions
|
|
53
|
+
- Do not request changes for nits, speculative edge cases, or unrelated improvements
|
|
42
54
|
|
|
43
55
|
## Post Review — Submit your verdict
|
|
44
56
|
|
|
@@ -55,6 +67,19 @@ Your review body **MUST** start with one of these verdict lines (exactly as show
|
|
|
55
67
|
Follow the verdict line with your detailed review findings, then sign off:
|
|
56
68
|
- Sign: `Review by Minions ({{agent_name}} — {{agent_role}})`
|
|
57
69
|
|
|
70
|
+
Use this structure after the verdict:
|
|
71
|
+
|
|
72
|
+
```markdown
|
|
73
|
+
Automated checks:
|
|
74
|
+
- `<command>`: pass/fail/skipped — short result or reason
|
|
75
|
+
|
|
76
|
+
Blocking issues:
|
|
77
|
+
- None, or `path:line` — issue and required fix
|
|
78
|
+
|
|
79
|
+
Non-blocking suggestions:
|
|
80
|
+
- None, or `path:line` — suggestion
|
|
81
|
+
```
|
|
82
|
+
|
|
58
83
|
After running the command, confirm it succeeded (check the command output for errors). If it fails, retry once.
|
|
59
84
|
|
|
60
85
|
## Handling Merge Conflicts
|
|
@@ -13,6 +13,8 @@ Treat a Minions assignment like the user typed the same task directly into a cap
|
|
|
13
13
|
- Optimize for the requested outcome, not for mechanically completing checklist steps.
|
|
14
14
|
- Use judgment to choose the smallest reliable workflow that fully satisfies the task.
|
|
15
15
|
- Read only the context needed to make correct decisions; do not perform broad archaeology unless the task requires it.
|
|
16
|
+
- Build an initial context pack before editing: start from repo docs and team memory, identify 5-15 candidate files by path names, symbols, imports, tests, and comparable implementations, then read the smallest useful pack (usually 5-8 files). Expand beyond that only when a specific gap or failure proves more context is needed.
|
|
17
|
+
- Prefer dependency-aware context over keyword-only searching: when touching a file, also check its direct imports, direct callers when easy to find, and corresponding tests. For small repos, a simple repo map plus targeted search is enough.
|
|
16
18
|
- Validate with the repo's own documented commands and acceptance criteria. If full validation is impossible or pre-existing failures block it, explain that precisely instead of inventing a green result.
|
|
17
19
|
- Prefer direct work over ceremony. Branches, PRs, inbox notes, completion reports/blocks, and status comments exist for traceability; they should not change what "done" means for the user.
|
|
18
20
|
- Safety and observability rules still win: stay in the engine-created worktree, do not self-merge, do not edit engine-managed status files, do not hide failures, and leave enough evidence for the human and engine to track the result.
|