@yemi33/minions 0.1.1959 → 0.1.1960

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/docs/skills.md ADDED
@@ -0,0 +1,43 @@
1
+ # Skill Block Format
2
+
3
+ Agents emit a fenced `skill` block when they discover a durable, reusable workflow that future agents are likely to need. See [`playbooks/shared-rules.md`](../playbooks/shared-rules.md) for the eligibility threshold and the "zero skills is the default" rule.
4
+
5
+ The engine extracts valid blocks from agent stdout and from inbox findings (`notes/inbox/*.md`) and writes them into the selected runtime's native personal skills directory (e.g. `~/.claude/skills/<name>/SKILL.md` for Claude, the equivalent personal skills directory for Copilot). Project-scoped skills are landed via PR into the matching project's playbook tree.
6
+
7
+ ## Block format
8
+
9
+ ````
10
+ ```skill
11
+ ---
12
+ name: short-descriptive-name
13
+ description: One-line description of when to trigger this skill
14
+ scope: minions
15
+ ---
16
+
17
+ # Skill Title
18
+
19
+ ## Steps
20
+ 1. ...
21
+ 2. ...
22
+
23
+ ## Notes
24
+ ...
25
+ ```
26
+ ````
27
+
28
+ ### Frontmatter fields
29
+
30
+ - `name` (**required**) — kebab-case identifier; becomes the on-disk directory name.
31
+ - `description` (**required**) — one-line "when to use this" hint shown in skill listings.
32
+ - `scope` — `minions` (default; user-level skill, available in any runtime window) or `project` (repo-local skill, landed via PR into that project).
33
+ - `project` — required when `scope: project`; the project name the skill belongs to.
34
+ - `allowed-tools` (optional) — comma-separated tools the skill is permitted to call (e.g. `Bash, Read, Edit`).
35
+ - `trigger` (optional) — natural-language phrase describing when an agent should invoke the skill.
36
+
37
+ ### Body
38
+
39
+ Plain Markdown. Include the steps, commands, file paths, and notes another agent needs to follow the workflow without reading the original task context. Cite source files and PR numbers where useful — the body is what future agents actually read.
40
+
41
+ ## When not to emit a skill
42
+
43
+ See [`playbooks/shared-rules.md`](../playbooks/shared-rules.md) for the full threshold. In short: do not emit a skill for one-off bug fixes, isolated command output, obvious repo facts, or anything already covered by existing docs, playbooks, or skills.
@@ -488,16 +488,6 @@ function renderPlaybook(type, vars) {
488
488
  content += `- Gotchas or warnings for future agents\n`;
489
489
  content += `- Conventions to follow\n`;
490
490
  content += `- **SOURCE REFERENCES for every finding** — file paths with line numbers, PR URLs, API endpoints, config keys. Format: \`(source: path/to/file.ts:42)\` or \`(source: PR-12345)\`. Without references, findings cannot be verified.\n\n`;
491
- content += `### Skill Extraction (IMPORTANT)\n\n`;
492
- content += `If during this task you discovered a **repeatable workflow** — a multi-step procedure, workaround, build process, or pattern that other agents should follow in similar situations — only output it as a fenced skill block when **all** of these are true: (1) you had to discover it during this task, (2) it is not already captured in team memory, repo docs, existing playbooks, or existing skills, and (3) another agent is likely to reuse it on future tasks. **Zero skills is the default.** Prefer the inbox findings for one-off notes, repo facts, and task-specific observations.\n\n`;
493
- content += `Format your skill as a fenced code block with the \`skill\` language tag:\n\n`;
494
- content += '````\n```skill\n';
495
- content += `---\nname: short-descriptive-name\ndescription: One-line description of what this skill does\nallowed-tools: Bash, Read, Edit\ntrigger: when should an agent use this\nscope: minions\nproject: any\n---\n\n# Skill Title\n\n## Steps\n1. ...\n2. ...\n\n## Notes\n...\n`;
496
- content += '```\n````\n\n';
497
- content += `- Set \`scope: minions\` for cross-project or Minions-wide skills; the engine writes them to the selected runtime's native personal skills directory so they are available in normal runtime windows too\n`;
498
- content += `- Set \`scope: project\` + \`project: <name>\` only for repo-specific skills; the engine queues a PR to the selected runtime's native project skills directory\n`;
499
- content += `- Emit at most one skill block per task unless you uncovered two clearly distinct reusable workflows\n`;
500
- content += `- Do NOT create a skill for one-off bug fixes, isolated command output, obvious repo facts, or anything already covered by existing docs/playbooks/skills\n`;
501
491
 
502
492
  // Inject project-level variables from config
503
493
  const config = getConfig();
@@ -604,7 +594,7 @@ function buildSystemPrompt(agentId, config, project) {
604
594
  // Agent identity
605
595
  prompt += `# You are ${agent.name} (${agent.role})\n\n`;
606
596
  prompt += `Agent ID: ${agentId}\n`;
607
- prompt += `Skills: ${(agent.skills || []).join(', ')}\n\n`;
597
+ prompt += `Expertise: ${(agent.skills || []).join(', ')}\n\n`;
608
598
 
609
599
  // Charter (detailed instructions — typically 1-2KB)
610
600
  if (charter) {
@@ -624,8 +614,7 @@ function buildSystemPrompt(agentId, config, project) {
624
614
  prompt += `2. ${getRepoHostToolRule(project)}\n`;
625
615
  prompt += `3. Follow the project conventions in CLAUDE.md if present\n`;
626
616
  prompt += `4. Write learnings to the path specified in the task prompt (format: \`notes/inbox/{agent}-{work-item-id}-{date}-{time}.md\`)\n`;
627
- prompt += `5. Agent status is managed by the engine via dispatch.json — agents do not need to track their own status\n`;
628
- prompt += `6. If you discover a repeatable workflow, output it as a \\\`\\\`\\\`skill fenced block — minions-scoped skills are auto-extracted to the selected runtime's native personal skills directory\n\n`;
617
+ prompt += `5. Agent status is managed by the engine via dispatch.json — agents do not need to track their own status\n\n`;
629
618
 
630
619
  return prompt;
631
620
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.1959",
3
+ "version": "0.1.1960",
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"
@@ -60,7 +60,6 @@ Use subagents only for genuinely parallel, independent tasks. For reading files,
60
60
  - Use the appropriate repo-host tooling for PR creation. For Azure DevOps, prefer the `az` CLI first and use ADO MCP only as a fallback when `az` is unavailable or insufficient.
61
61
  - Do NOT checkout branches in the main working tree — use worktrees.
62
62
  - Read `notes.md` for all team rules before starting.
63
- - Only emit a ```skill block if you uncovered a durable reusable workflow that is not already documented and is likely to help future tasks; zero skills is the default, and one-off findings belong in the inbox notes instead.
64
63
 
65
64
  ## When to Stop
66
65
 
@@ -46,20 +46,7 @@ Bias toward senior-engineer restraint:
46
46
  5. Previous agent output in `agents/*/live-output.log` for related tasks
47
47
  6. Work item descriptions and `resultSummary` for prior completed work on the same topic
48
48
  Only after exhausting team memory should you look outside (web search, codebase exploration, external docs). This avoids duplicating research another agent already completed and ensures team decisions are respected.
49
- - Only output a fenced skill block when **all** of these are true: (1) you discovered a durable multi-step workflow that was not already documented in team memory, repo docs, existing playbooks, or existing skills, (2) another agent is likely to need it on future tasks, and (3) the workflow is specific enough to be actionable but general enough to stand alone. **Zero skills is the default.** Prefer writing one-off findings, repo facts, or task-specific notes to the inbox findings instead of creating a skill. Emit **at most one skill block per task** unless the task clearly uncovered two unrelated reusable workflows. The engine auto-extracts valid skill blocks to `~/.claude/skills/<name>/SKILL.md`, so `scope: minions` skills become user-level Claude skills available in normal Claude windows too. Required format:
50
- ````
51
- ```skill
52
- ---
53
- name: skill-name-here
54
- description: One-line description of when to trigger this skill
55
- scope: minions
56
- ---
57
-
58
- Instructions for the skill go here.
59
- ```
60
- ````
61
- The `name` and `description` fields are required. `scope` defaults to `minions` (global). Use `scope: minions` for user-level reusable skills; use `scope: project` + `project: ProjectName` only for repo-specific skills that should land in that project via PR.
62
- Do **not** create a skill for one-off bug fixes, isolated command outputs, obvious repo facts, or anything already covered by existing docs/playbooks/skills.
49
+ - Only output a fenced skill block when **all** of these are true: (1) you discovered a durable multi-step workflow that was not already documented in team memory, repo docs, existing playbooks, or existing skills, (2) another agent is likely to need it on future tasks, and (3) the workflow is specific enough to be actionable but general enough to stand alone. **Zero skills is the default.** Prefer writing one-off findings, repo facts, or task-specific notes to the inbox findings instead of creating a skill. Emit at most one skill block per task unless the task clearly uncovered two unrelated reusable workflows. The engine auto-extracts valid skill blocks to the selected runtime's native personal skills directory, so `scope: minions` skills become user-level Claude/Copilot skills available in normal runtime windows too. See [`docs/skills.md`](../docs/skills.md) for the skill block format. Do not create a skill for one-off bug fixes, isolated command output, obvious repo facts, or anything already covered by existing docs/playbooks/skills.
63
50
  - Do TDD where it makes sense — write failing tests first, then implement, then verify tests pass. Especially for bug fixes (write a test that reproduces the bug) and new utility functions.
64
51
 
65
52
  ## Completion Reports