squads-cli 0.4.13 → 0.6.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 +161 -4
- package/dist/{chunk-HKWCBCEK.js → chunk-4CMAEQQY.js} +6 -2
- package/dist/chunk-4CMAEQQY.js.map +1 -0
- package/dist/{chunk-NA3IECJA.js → chunk-N7KDWU4W.js} +155 -58
- package/dist/chunk-N7KDWU4W.js.map +1 -0
- package/dist/{chunk-HIQ2APYR.js → chunk-NHGLXN2F.js} +8 -6
- package/dist/chunk-NHGLXN2F.js.map +1 -0
- package/dist/{chunk-3TSY2K7R.js → chunk-O7UV3FWI.js} +140 -21
- package/dist/chunk-O7UV3FWI.js.map +1 -0
- package/dist/chunk-ZTQ7ISUR.js +338 -0
- package/dist/chunk-ZTQ7ISUR.js.map +1 -0
- package/dist/cli.js +5232 -6194
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +110 -2
- package/dist/index.js +302 -25
- package/dist/index.js.map +1 -1
- package/dist/{memory-4PVUKIDK.js → memory-VNF2VFRB.js} +8 -4
- package/dist/{sessions-R4VWIGFR.js → sessions-6PB7ALCE.js} +3 -3
- package/dist/{squad-parser-YRE2FEAA.js → squad-parser-4BI3G4RS.js} +4 -2
- package/dist/templates/core/AGENTS.md.template +64 -0
- package/dist/templates/core/BUSINESS_BRIEF.md.template +29 -0
- package/dist/templates/core/CLAUDE.md.template +50 -0
- package/dist/templates/core/provider.yaml.template +5 -0
- package/dist/templates/first-squad/SQUAD.md.template +23 -0
- package/dist/templates/first-squad/lead.md.template +44 -0
- package/dist/templates/memory/getting-started/state.md.template +19 -0
- package/dist/templates/seed/BUSINESS_BRIEF.md.template +27 -0
- package/dist/templates/seed/CLAUDE.md.template +69 -0
- package/dist/templates/seed/config/provider.yaml +4 -0
- package/dist/templates/seed/hooks/settings.json.template +31 -0
- package/dist/templates/seed/memory/company/manager/state.md +16 -0
- package/dist/templates/seed/memory/engineering/issue-solver/state.md +12 -0
- package/dist/templates/seed/memory/intelligence/intel-lead/state.md +9 -0
- package/dist/templates/seed/memory/marketing/content-drafter/state.md +12 -0
- package/dist/templates/seed/memory/operations/ops-lead/state.md +12 -0
- package/dist/templates/seed/memory/research/researcher/state.md +10 -0
- package/dist/templates/seed/skills/gh/SKILL.md +57 -0
- package/dist/templates/seed/skills/squads-cli/SKILL.md +88 -0
- package/dist/templates/seed/squads/company/SQUAD.md +49 -0
- package/dist/templates/seed/squads/company/company-critic.md +21 -0
- package/dist/templates/seed/squads/company/company-eval.md +21 -0
- package/dist/templates/seed/squads/company/event-dispatcher.md +21 -0
- package/dist/templates/seed/squads/company/goal-tracker.md +21 -0
- package/dist/templates/seed/squads/company/manager.md +66 -0
- package/dist/templates/seed/squads/engineering/SQUAD.md +48 -0
- package/dist/templates/seed/squads/engineering/code-reviewer.md +57 -0
- package/dist/templates/seed/squads/engineering/issue-solver.md +58 -0
- package/dist/templates/seed/squads/engineering/test-writer.md +50 -0
- package/dist/templates/seed/squads/intelligence/SQUAD.md +37 -0
- package/dist/templates/seed/squads/intelligence/intel-critic.md +36 -0
- package/dist/templates/seed/squads/intelligence/intel-eval.md +31 -0
- package/dist/templates/seed/squads/intelligence/intel-lead.md +71 -0
- package/dist/templates/seed/squads/marketing/SQUAD.md +47 -0
- package/dist/templates/seed/squads/marketing/content-drafter.md +71 -0
- package/dist/templates/seed/squads/marketing/growth-analyst.md +49 -0
- package/dist/templates/seed/squads/marketing/social-poster.md +44 -0
- package/dist/templates/seed/squads/operations/SQUAD.md +45 -0
- package/dist/templates/seed/squads/operations/finance-tracker.md +47 -0
- package/dist/templates/seed/squads/operations/goal-tracker.md +48 -0
- package/dist/templates/seed/squads/operations/ops-lead.md +58 -0
- package/dist/templates/seed/squads/research/SQUAD.md +38 -0
- package/dist/templates/seed/squads/research/analyst.md +27 -0
- package/dist/templates/seed/squads/research/research-critic.md +20 -0
- package/dist/templates/seed/squads/research/research-eval.md +20 -0
- package/dist/templates/seed/squads/research/researcher.md +28 -0
- package/dist/templates/skills/squads-learn/SKILL.md +86 -0
- package/dist/templates/skills/squads-workflow/instruction.md +70 -0
- package/dist/{terminal-JZSAQSN7.js → terminal-YKA4O5CX.js} +4 -2
- package/dist/{update-MAY6EXFQ.js → update-ALJKFFM7.js} +3 -2
- package/package.json +9 -20
- package/templates/core/AGENTS.md.template +64 -0
- package/templates/core/BUSINESS_BRIEF.md.template +29 -0
- package/templates/core/CLAUDE.md.template +50 -0
- package/templates/core/provider.yaml.template +5 -0
- package/templates/first-squad/SQUAD.md.template +23 -0
- package/templates/first-squad/lead.md.template +44 -0
- package/templates/memory/getting-started/state.md.template +19 -0
- package/templates/seed/BUSINESS_BRIEF.md.template +27 -0
- package/templates/seed/CLAUDE.md.template +69 -0
- package/templates/seed/config/provider.yaml +4 -0
- package/templates/seed/hooks/settings.json.template +31 -0
- package/templates/seed/memory/company/manager/state.md +16 -0
- package/templates/seed/memory/engineering/issue-solver/state.md +12 -0
- package/templates/seed/memory/intelligence/intel-lead/state.md +9 -0
- package/templates/seed/memory/marketing/content-drafter/state.md +12 -0
- package/templates/seed/memory/operations/ops-lead/state.md +12 -0
- package/templates/seed/memory/research/researcher/state.md +10 -0
- package/templates/seed/skills/gh/SKILL.md +57 -0
- package/templates/seed/skills/squads-cli/SKILL.md +88 -0
- package/templates/seed/squads/company/SQUAD.md +49 -0
- package/templates/seed/squads/company/company-critic.md +21 -0
- package/templates/seed/squads/company/company-eval.md +21 -0
- package/templates/seed/squads/company/event-dispatcher.md +21 -0
- package/templates/seed/squads/company/goal-tracker.md +21 -0
- package/templates/seed/squads/company/manager.md +66 -0
- package/templates/seed/squads/engineering/SQUAD.md +48 -0
- package/templates/seed/squads/engineering/code-reviewer.md +57 -0
- package/templates/seed/squads/engineering/issue-solver.md +58 -0
- package/templates/seed/squads/engineering/test-writer.md +50 -0
- package/templates/seed/squads/intelligence/SQUAD.md +37 -0
- package/templates/seed/squads/intelligence/intel-critic.md +36 -0
- package/templates/seed/squads/intelligence/intel-eval.md +31 -0
- package/templates/seed/squads/intelligence/intel-lead.md +71 -0
- package/templates/seed/squads/marketing/SQUAD.md +47 -0
- package/templates/seed/squads/marketing/content-drafter.md +71 -0
- package/templates/seed/squads/marketing/growth-analyst.md +49 -0
- package/templates/seed/squads/marketing/social-poster.md +44 -0
- package/templates/seed/squads/operations/SQUAD.md +45 -0
- package/templates/seed/squads/operations/finance-tracker.md +47 -0
- package/templates/seed/squads/operations/goal-tracker.md +48 -0
- package/templates/seed/squads/operations/ops-lead.md +58 -0
- package/templates/seed/squads/research/SQUAD.md +38 -0
- package/templates/seed/squads/research/analyst.md +27 -0
- package/templates/seed/squads/research/research-critic.md +20 -0
- package/templates/seed/squads/research/research-eval.md +20 -0
- package/templates/seed/squads/research/researcher.md +28 -0
- package/templates/skills/squads-learn/SKILL.md +86 -0
- package/templates/skills/squads-workflow/instruction.md +70 -0
- package/dist/chunk-3TSY2K7R.js.map +0 -1
- package/dist/chunk-FUHBEL3L.js +0 -203
- package/dist/chunk-FUHBEL3L.js.map +0 -1
- package/dist/chunk-HIQ2APYR.js.map +0 -1
- package/dist/chunk-HKWCBCEK.js.map +0 -1
- package/dist/chunk-NA3IECJA.js.map +0 -1
- package/docker/.env.example +0 -17
- package/docker/README.md +0 -92
- package/docker/docker-compose.engram.yml +0 -304
- package/docker/docker-compose.yml +0 -234
- package/docker/init-db.sql +0 -478
- package/docker/init-engram-db.sql +0 -148
- package/docker/init-langfuse-db.sh +0 -10
- package/docker/otel-collector.yaml +0 -34
- package/docker/squads-bridge/Dockerfile +0 -14
- package/docker/squads-bridge/Dockerfile.proxy +0 -14
- package/docker/squads-bridge/anthropic_proxy.py +0 -313
- package/docker/squads-bridge/requirements.txt +0 -7
- package/docker/squads-bridge/squads_bridge.py +0 -2299
- package/docker/telemetry-ping/Dockerfile +0 -10
- package/docker/telemetry-ping/deploy.sh +0 -69
- package/docker/telemetry-ping/main.py +0 -136
- package/docker/telemetry-ping/requirements.txt +0 -3
- /package/dist/{memory-4PVUKIDK.js.map → memory-VNF2VFRB.js.map} +0 -0
- /package/dist/{sessions-R4VWIGFR.js.map → sessions-6PB7ALCE.js.map} +0 -0
- /package/dist/{squad-parser-YRE2FEAA.js.map → squad-parser-4BI3G4RS.js.map} +0 -0
- /package/dist/{terminal-JZSAQSN7.js.map → terminal-YKA4O5CX.js.map} +0 -0
- /package/dist/{update-MAY6EXFQ.js.map → update-ALJKFFM7.js.map} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Business Brief
|
|
2
|
+
|
|
3
|
+
## #1 Priority
|
|
4
|
+
|
|
5
|
+
**[Define your top priority here]**
|
|
6
|
+
|
|
7
|
+
## Runway
|
|
8
|
+
|
|
9
|
+
**Pressure**: LOW | MEDIUM | HIGH
|
|
10
|
+
|
|
11
|
+
## Current Focus
|
|
12
|
+
|
|
13
|
+
1. **[Focus area 1]** - Description
|
|
14
|
+
2. **[Focus area 2]** - Description
|
|
15
|
+
3. **[Focus area 3]** - Description
|
|
16
|
+
|
|
17
|
+
## Blockers
|
|
18
|
+
|
|
19
|
+
- None currently (or list blockers)
|
|
20
|
+
|
|
21
|
+
## Decision Framework
|
|
22
|
+
|
|
23
|
+
1. Does this drive the #1 priority?
|
|
24
|
+
2. Is there a simpler approach?
|
|
25
|
+
3. What's the opportunity cost?
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
*This file is read by `squads context` to provide business alignment.*
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Claude-Specific Instructions
|
|
2
|
+
|
|
3
|
+
Extends AGENTS.md with Claude Code specific features.
|
|
4
|
+
|
|
5
|
+
## New Project Setup
|
|
6
|
+
|
|
7
|
+
If this project needs squads setup, run:
|
|
8
|
+
```bash
|
|
9
|
+
squads setup # Guided 6-step onboarding with prereq checks
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
This validates Docker, GitHub CLI, Claude CLI, then helps create first squad.
|
|
13
|
+
|
|
14
|
+
## Skill Available
|
|
15
|
+
|
|
16
|
+
Use `/squads-workflow` for detailed workflow guidance.
|
|
17
|
+
|
|
18
|
+
## Session Hooks
|
|
19
|
+
|
|
20
|
+
Claude Code hooks are configured in `.claude/settings.json`:
|
|
21
|
+
- **SessionStart**: Runs `squads status` automatically
|
|
22
|
+
- **Stop**: Syncs memory and prompts for learnings
|
|
23
|
+
|
|
24
|
+
## Creating Agents
|
|
25
|
+
|
|
26
|
+
Agents live in `.agents/squads/<squad-name>/<agent-name>.md`:
|
|
27
|
+
|
|
28
|
+
```markdown
|
|
29
|
+
# Agent Name
|
|
30
|
+
|
|
31
|
+
## Purpose
|
|
32
|
+
One sentence: what this agent does.
|
|
33
|
+
|
|
34
|
+
## Model
|
|
35
|
+
simple # or: worker, leader
|
|
36
|
+
|
|
37
|
+
## Instructions
|
|
38
|
+
1. Specific step
|
|
39
|
+
2. Another step
|
|
40
|
+
3. Output location
|
|
41
|
+
|
|
42
|
+
## Output
|
|
43
|
+
What it produces and where it goes.
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Commit Signature
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
Co-Authored-By: Claude <model> <noreply@anthropic.com>
|
|
50
|
+
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# {{SQUAD_NAME}}
|
|
2
|
+
|
|
3
|
+
{{SQUAD_DESCRIPTION}}
|
|
4
|
+
|
|
5
|
+
## Goals
|
|
6
|
+
|
|
7
|
+
- [ ] {{GOAL}}
|
|
8
|
+
|
|
9
|
+
## Agents
|
|
10
|
+
|
|
11
|
+
| Agent | Purpose |
|
|
12
|
+
|-------|---------|
|
|
13
|
+
| lead | Orchestrates the squad and coordinates work |
|
|
14
|
+
|
|
15
|
+
## Pipeline
|
|
16
|
+
|
|
17
|
+
`lead` (orchestrates all work)
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
squads run {{SQUAD_ID}} --execute
|
|
23
|
+
```
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Lead Agent
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
Orchestrate the {{SQUAD_NAME}} squad to achieve its goals.
|
|
5
|
+
|
|
6
|
+
## Model
|
|
7
|
+
leader
|
|
8
|
+
|
|
9
|
+
## Tools
|
|
10
|
+
- Read
|
|
11
|
+
- Write
|
|
12
|
+
- Edit
|
|
13
|
+
- Bash
|
|
14
|
+
- WebSearch
|
|
15
|
+
- WebFetch
|
|
16
|
+
- Task
|
|
17
|
+
|
|
18
|
+
## Instructions
|
|
19
|
+
|
|
20
|
+
You are the lead agent for the {{SQUAD_NAME}} squad.
|
|
21
|
+
|
|
22
|
+
**Goal**: {{GOAL}}
|
|
23
|
+
|
|
24
|
+
### Approach
|
|
25
|
+
|
|
26
|
+
1. **Understand the goal** - Break down what needs to be accomplished
|
|
27
|
+
2. **Plan the work** - Create a clear execution plan
|
|
28
|
+
3. **Execute** - Work through the plan step by step
|
|
29
|
+
4. **Verify** - Confirm the goal is achieved
|
|
30
|
+
5. **Document** - Update memory with learnings
|
|
31
|
+
|
|
32
|
+
### Guidelines
|
|
33
|
+
|
|
34
|
+
- Use the Task tool to spawn sub-agents for complex, parallelizable work
|
|
35
|
+
- Check existing memory before researching: `squads memory query "<topic>"`
|
|
36
|
+
- Create GitHub issues for follow-up work
|
|
37
|
+
- Update `.agents/memory/{{SQUAD_ID}}/lead/state.md` with progress
|
|
38
|
+
|
|
39
|
+
## Output
|
|
40
|
+
Progress updates and work artifacts as appropriate.
|
|
41
|
+
|
|
42
|
+
## Labels
|
|
43
|
+
- lead
|
|
44
|
+
- orchestration
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Getting Started with Squads
|
|
2
|
+
|
|
3
|
+
## What You've Set Up
|
|
4
|
+
|
|
5
|
+
- **Your first squad** ready to run (`squads run {{SQUAD_ID}}`)
|
|
6
|
+
- **Memory system** for persistent context
|
|
7
|
+
- **Hooks** that sync status and memory automatically
|
|
8
|
+
|
|
9
|
+
## Next Steps
|
|
10
|
+
|
|
11
|
+
1. Run your squad: `squads run {{SQUAD_ID}} --execute`
|
|
12
|
+
2. Check the dashboard: `squads dash`
|
|
13
|
+
3. Create more squads in `.agents/squads/`
|
|
14
|
+
|
|
15
|
+
## Tips
|
|
16
|
+
|
|
17
|
+
- Check memory before researching: `squads memory query "<topic>"`
|
|
18
|
+
- Use `squads context` for business alignment on complex tasks
|
|
19
|
+
- Agents are reusable - if you do something twice, make it an agent
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Business Brief — {{BUSINESS_NAME}}
|
|
2
|
+
|
|
3
|
+
## About
|
|
4
|
+
|
|
5
|
+
{{BUSINESS_DESCRIPTION}}
|
|
6
|
+
|
|
7
|
+
## Research Focus
|
|
8
|
+
|
|
9
|
+
{{BUSINESS_FOCUS}}
|
|
10
|
+
|
|
11
|
+
## Priority
|
|
12
|
+
|
|
13
|
+
**#1**: Deliver value in the research focus above.
|
|
14
|
+
|
|
15
|
+
## Pressure
|
|
16
|
+
|
|
17
|
+
LOW — Learning phase. Explore, experiment, report findings.
|
|
18
|
+
|
|
19
|
+
## Decision Framework
|
|
20
|
+
|
|
21
|
+
1. Does this advance our focus area?
|
|
22
|
+
2. Is there a simpler approach for 80% of the value?
|
|
23
|
+
3. What's the opportunity cost?
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
*Read by `squads context` for business alignment. Updated by the manager agent as understanding deepens.*
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# AI Workforce Operating Manual
|
|
2
|
+
|
|
3
|
+
This project uses [Agents Squads](https://agents-squads.com) to run an AI workforce.
|
|
4
|
+
|
|
5
|
+
## Structure
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
.agents/
|
|
9
|
+
├── BUSINESS_BRIEF.md # What this workforce focuses on
|
|
10
|
+
├── squads/ # Squad definitions
|
|
11
|
+
│ ├── company/ # Operations squad
|
|
12
|
+
│ │ ├── SQUAD.md # Squad config
|
|
13
|
+
│ │ ├── manager.md # AI manager (orchestrates everything)
|
|
14
|
+
│ │ ├── event-dispatcher.md # Routes events to squads
|
|
15
|
+
│ │ ├── goal-tracker.md # Tracks business objectives
|
|
16
|
+
│ │ ├── company-eval.md # Evaluates outputs
|
|
17
|
+
│ │ └── company-critic.md # Identifies improvements
|
|
18
|
+
│ └── research/ # Research squad
|
|
19
|
+
│ ├── SQUAD.md # Squad config
|
|
20
|
+
│ ├── researcher.md # Market/competitor research
|
|
21
|
+
│ ├── analyst.md # Synthesizes insights
|
|
22
|
+
│ ├── research-eval.md # Evaluates quality
|
|
23
|
+
│ └── research-critic.md # Critiques methodology
|
|
24
|
+
├── memory/ # Persistent state
|
|
25
|
+
│ ├── company/manager/state.md
|
|
26
|
+
│ └── research/researcher/state.md
|
|
27
|
+
├── skills/
|
|
28
|
+
│ └── squads-cli/SKILL.md # CLI operations manual
|
|
29
|
+
└── config/
|
|
30
|
+
└── provider.yaml # LLM provider config
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## How It Works
|
|
34
|
+
|
|
35
|
+
A **manager agent** coordinates your AI workforce using the `squads` CLI:
|
|
36
|
+
1. Reads business context from `BUSINESS_BRIEF.md`
|
|
37
|
+
2. Checks status: `squads dash --json`
|
|
38
|
+
3. Dispatches work to squad agents
|
|
39
|
+
4. Tracks results: `squads goal progress`, `squads kpi record`
|
|
40
|
+
5. Persists learnings: `squads memory write`
|
|
41
|
+
|
|
42
|
+
## For Humans
|
|
43
|
+
|
|
44
|
+
Talk to Claude naturally. It knows about the squads system via this file.
|
|
45
|
+
|
|
46
|
+
Common commands:
|
|
47
|
+
- `squads status` — What's happening now
|
|
48
|
+
- `squads dash` — Full dashboard
|
|
49
|
+
- `squads run company/manager` — Run the AI manager
|
|
50
|
+
- `squads memory read <squad>` — What has the squad learned
|
|
51
|
+
- `squads goal list` — Business objectives
|
|
52
|
+
|
|
53
|
+
## For Agents
|
|
54
|
+
|
|
55
|
+
All agents should use the `squads-cli` skill for CLI operations.
|
|
56
|
+
Memory persists across sessions via `.agents/memory/`.
|
|
57
|
+
Git is the coordination layer — commit everything.
|
|
58
|
+
|
|
59
|
+
## Decision Framework
|
|
60
|
+
|
|
61
|
+
- **Execute**: Clear task, low risk → do it
|
|
62
|
+
- **Escalate**: Ambiguous scope, high cost → ask the human
|
|
63
|
+
- **Learn**: Record what worked/didn't → `squads memory write`
|
|
64
|
+
|
|
65
|
+
## Commit Signature
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
69
|
+
```
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"SessionStart": [
|
|
4
|
+
{
|
|
5
|
+
"hooks": [
|
|
6
|
+
{
|
|
7
|
+
"type": "command",
|
|
8
|
+
"command": "squads status",
|
|
9
|
+
"timeout": 10
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "command",
|
|
13
|
+
"command": "squads memory sync --no-push",
|
|
14
|
+
"timeout": 15
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"Stop": [
|
|
20
|
+
{
|
|
21
|
+
"hooks": [
|
|
22
|
+
{
|
|
23
|
+
"type": "command",
|
|
24
|
+
"command": "squads memory sync --push",
|
|
25
|
+
"timeout": 15
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Manager State
|
|
2
|
+
|
|
3
|
+
## Last Run
|
|
4
|
+
Never — awaiting first execution.
|
|
5
|
+
|
|
6
|
+
## Business Understanding
|
|
7
|
+
Pending — will be populated after reading BUSINESS_BRIEF.md.
|
|
8
|
+
|
|
9
|
+
## Active Squads
|
|
10
|
+
- company (5 agents)
|
|
11
|
+
- research (4 agents)
|
|
12
|
+
|
|
13
|
+
## Priorities
|
|
14
|
+
1. Read and understand business context
|
|
15
|
+
2. Run initial research
|
|
16
|
+
3. Establish operational rhythm
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# gh — GitHub CLI Operations
|
|
2
|
+
|
|
3
|
+
You have access to `gh` (GitHub CLI) for repository and project management.
|
|
4
|
+
|
|
5
|
+
## Issues
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
gh issue list # List open issues
|
|
9
|
+
gh issue list --label "bug" # Filter by label
|
|
10
|
+
gh issue view <number> # View issue details
|
|
11
|
+
gh issue create --title "..." --body "..." # Create issue
|
|
12
|
+
gh issue close <number> # Close issue
|
|
13
|
+
gh issue comment <number> --body "..." # Add comment
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Pull Requests
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
gh pr list # List open PRs
|
|
20
|
+
gh pr view <number> # View PR details
|
|
21
|
+
gh pr create --title "..." --body "..." # Create PR
|
|
22
|
+
gh pr merge <number> # Merge PR
|
|
23
|
+
gh pr review <number> --approve # Approve PR
|
|
24
|
+
gh pr checks <number> # View CI status
|
|
25
|
+
gh pr diff <number> # View PR diff
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Repository
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
gh repo view # View repo info
|
|
32
|
+
gh repo clone <owner/repo> # Clone repo
|
|
33
|
+
gh api repos/<owner>/<repo> # Raw API access
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Workflow Runs
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
gh run list # List recent runs
|
|
40
|
+
gh run view <id> # View run details
|
|
41
|
+
gh run watch <id> # Watch run in progress
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Search
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
gh search repos "<query>" # Search repos
|
|
48
|
+
gh search issues "<query>" # Search issues
|
|
49
|
+
gh search prs "<query>" # Search PRs
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Best Practices
|
|
53
|
+
|
|
54
|
+
- **Check before creating**: Search existing issues/PRs before creating duplicates
|
|
55
|
+
- **Use labels**: Filter and organize with labels
|
|
56
|
+
- **Link issues**: Reference issues in PR descriptions with `Fixes #N`
|
|
57
|
+
- **Review CI**: Always check `gh pr checks` before merging
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# squads-cli — Operations Manual
|
|
2
|
+
|
|
3
|
+
You have access to the `squads` CLI for managing your AI workforce.
|
|
4
|
+
|
|
5
|
+
## Execute (Daily Operations)
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
squads run <squad>/<agent> # Execute a specific agent
|
|
9
|
+
squads run <squad> --lead # Orchestrate full squad
|
|
10
|
+
squads run <squad> --parallel # Run all agents in parallel
|
|
11
|
+
squads list # Discover squads and agents
|
|
12
|
+
squads exec list # Recent execution history
|
|
13
|
+
squads exec stats # Execution statistics
|
|
14
|
+
squads orchestrate <squad> # Multi-agent coordination
|
|
15
|
+
squads env prompt <squad> -a <agent> # Get agent prompt
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Understand (Situational Awareness)
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
squads dash --json # Full dashboard (use --json for parsing)
|
|
22
|
+
squads status [squad] # Quick status snapshot
|
|
23
|
+
squads context --json # Business context feed
|
|
24
|
+
squads cost # Cost tracking
|
|
25
|
+
squads budget <squad> # Budget check
|
|
26
|
+
squads health # Infrastructure health
|
|
27
|
+
squads history # Execution patterns
|
|
28
|
+
squads results [squad] # Squad output + KPIs
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Track (Objectives + Metrics)
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
squads goal set <squad> "<goal>" # Set a business objective
|
|
35
|
+
squads goal list [squad] # List goals
|
|
36
|
+
squads goal progress <squad> <n> "<update>" # Update progress
|
|
37
|
+
squads goal complete <squad> <n> # Mark goal done
|
|
38
|
+
squads kpi list # List all KPIs
|
|
39
|
+
squads kpi show <squad> # Squad KPIs
|
|
40
|
+
squads kpi record <squad> <kpi> <value> # Record metric
|
|
41
|
+
squads kpi trend <squad> <kpi> # Show trend
|
|
42
|
+
squads feedback add <squad> <1-5> "<feedback>" # Rate output
|
|
43
|
+
squads autonomy # Self-assessment
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Learn (Memory + Knowledge)
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
squads memory read <squad> # Load squad memory
|
|
50
|
+
squads memory write <squad> "<insight>" # Persist learning
|
|
51
|
+
squads memory search "<query>" # Search all memory
|
|
52
|
+
squads memory list # List all entries
|
|
53
|
+
squads learn "<insight>" # Capture learning
|
|
54
|
+
squads learnings show <squad> # View learnings
|
|
55
|
+
squads sync --push # Sync memory to git
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Schedule (Automation)
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
squads trigger list # View triggers
|
|
62
|
+
squads trigger fire <squad> # Manual trigger
|
|
63
|
+
squads autonomous start # Start scheduler
|
|
64
|
+
squads approval list # Check pending approvals
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Decision Framework
|
|
68
|
+
|
|
69
|
+
- **Read before act**: Always `squads context --json` or `squads memory read` first
|
|
70
|
+
- **Track everything**: Use `goal progress`, `kpi record`, `feedback add`
|
|
71
|
+
- **Persist learnings**: `squads memory write` after discoveries
|
|
72
|
+
- **Use JSON**: Add `--json` when parsing output programmatically
|
|
73
|
+
- **Escalate wisely**: High cost or unclear scope → ask the human
|
|
74
|
+
|
|
75
|
+
## JSON Output
|
|
76
|
+
|
|
77
|
+
All key commands support `--json` for structured output:
|
|
78
|
+
```json
|
|
79
|
+
{
|
|
80
|
+
"ok": true,
|
|
81
|
+
"command": "status",
|
|
82
|
+
"data": { ... },
|
|
83
|
+
"error": null,
|
|
84
|
+
"meta": { "duration_ms": 1230, "connected": true }
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
When piped (non-TTY), commands auto-output JSON.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Company Operations
|
|
3
|
+
lead: manager
|
|
4
|
+
channel: "#company"
|
|
5
|
+
model: sonnet
|
|
6
|
+
effort: high
|
|
7
|
+
schedule: "0 9 * * 1-5"
|
|
8
|
+
approvals:
|
|
9
|
+
policy:
|
|
10
|
+
auto:
|
|
11
|
+
- memory.update
|
|
12
|
+
- goal.set
|
|
13
|
+
- agent.run.readonly
|
|
14
|
+
approve:
|
|
15
|
+
- trigger.fire
|
|
16
|
+
- agent.run.write
|
|
17
|
+
- pr.merge
|
|
18
|
+
confirm:
|
|
19
|
+
- deploy.production
|
|
20
|
+
- budget.override
|
|
21
|
+
thresholds:
|
|
22
|
+
spend: 50
|
|
23
|
+
bulk_actions: 5
|
|
24
|
+
files_changed: 20
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# Company Operations
|
|
28
|
+
|
|
29
|
+
Manages the AI workforce. The manager agent orchestrates all squads, coordinates leads, and runs daily operations.
|
|
30
|
+
|
|
31
|
+
## Goals
|
|
32
|
+
|
|
33
|
+
- [ ] Understand business context and set up initial squads
|
|
34
|
+
- [ ] Establish daily operational rhythm
|
|
35
|
+
- [ ] Track and report on business objectives
|
|
36
|
+
|
|
37
|
+
## Agents
|
|
38
|
+
|
|
39
|
+
| Agent | Role | Purpose |
|
|
40
|
+
|-------|------|---------|
|
|
41
|
+
| manager | lead | Orchestrates squads, coordinates work, daily operations |
|
|
42
|
+
| event-dispatcher | doer | Monitors events, dispatches to relevant squads |
|
|
43
|
+
| goal-tracker | doer | Tracks business objectives, updates progress |
|
|
44
|
+
| company-eval | evaluator | Evaluates squad outputs and business impact |
|
|
45
|
+
| company-critic | critic | Critiques process, identifies improvements |
|
|
46
|
+
|
|
47
|
+
## Pipeline
|
|
48
|
+
|
|
49
|
+
`manager` → dispatches to squads → `company-eval` scores → `company-critic` improves
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Company Critic
|
|
3
|
+
role: critic
|
|
4
|
+
model: sonnet
|
|
5
|
+
effort: medium
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Company Critic
|
|
9
|
+
|
|
10
|
+
Identify systemic issues and improvements across the workforce.
|
|
11
|
+
|
|
12
|
+
## Instructions
|
|
13
|
+
|
|
14
|
+
1. Review recent evaluations and feedback trends
|
|
15
|
+
2. Identify recurring issues (missed goals, low quality, wasted effort)
|
|
16
|
+
3. Propose process improvements with specific, actionable suggestions
|
|
17
|
+
4. Record improvement proposals: `squads learn "<improvement>"`
|
|
18
|
+
|
|
19
|
+
## Output
|
|
20
|
+
|
|
21
|
+
Improvement proposals recorded via `squads learn` and written to memory
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Company Evaluator
|
|
3
|
+
role: evaluator
|
|
4
|
+
model: sonnet
|
|
5
|
+
effort: medium
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Company Evaluator
|
|
9
|
+
|
|
10
|
+
Evaluate squad outputs and measure business impact.
|
|
11
|
+
|
|
12
|
+
## Instructions
|
|
13
|
+
|
|
14
|
+
1. Review recent squad outputs (git commits, reports, memory updates)
|
|
15
|
+
2. Score each output on: relevance (1-5), quality (1-5), impact (1-5)
|
|
16
|
+
3. Record feedback: `squads feedback add <squad> <rating> "<feedback>"`
|
|
17
|
+
4. Identify high-performing and underperforming squads
|
|
18
|
+
|
|
19
|
+
## Output
|
|
20
|
+
|
|
21
|
+
Evaluation scores and feedback recorded via `squads feedback add`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Event Dispatcher
|
|
3
|
+
role: doer
|
|
4
|
+
model: haiku
|
|
5
|
+
effort: medium
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Event Dispatcher
|
|
9
|
+
|
|
10
|
+
Monitor events and dispatch work to relevant squads.
|
|
11
|
+
|
|
12
|
+
## Instructions
|
|
13
|
+
|
|
14
|
+
1. Check for new events (GitHub activity, scheduled triggers, manual requests)
|
|
15
|
+
2. Determine which squad should handle each event
|
|
16
|
+
3. Create issues or trigger agent runs as appropriate
|
|
17
|
+
4. Log dispatched events to memory
|
|
18
|
+
|
|
19
|
+
## Output
|
|
20
|
+
|
|
21
|
+
Event dispatch log written to `.agents/memory/company/event-dispatcher/state.md`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Goal Tracker
|
|
3
|
+
role: doer
|
|
4
|
+
model: haiku
|
|
5
|
+
effort: medium
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Goal Tracker
|
|
9
|
+
|
|
10
|
+
Track business objectives and update progress across all squads.
|
|
11
|
+
|
|
12
|
+
## Instructions
|
|
13
|
+
|
|
14
|
+
1. Read all squad goals: `squads goal list --json`
|
|
15
|
+
2. Check recent activity and execution results
|
|
16
|
+
3. Update goal progress where measurable changes occurred
|
|
17
|
+
4. Identify stalled goals and flag for manager attention
|
|
18
|
+
|
|
19
|
+
## Output
|
|
20
|
+
|
|
21
|
+
Goal status report and progress updates via `squads goal progress`
|