ai-squad 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 +131 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1013 -0
- package/package.json +49 -0
- package/sections/opencode/agents/identity/adversarial-reviewer.md +98 -0
- package/sections/opencode/agents/identity/architect.md +122 -0
- package/sections/opencode/agents/identity/docs-writer.md +53 -0
- package/sections/opencode/agents/identity/fullstack-dev.md +79 -0
- package/sections/opencode/agents/identity/memory-keeper.md +192 -0
- package/sections/opencode/agents/identity/po.md +102 -0
- package/sections/opencode/agents/identity/qa.md +90 -0
- package/sections/opencode/agents/identity/reviewer.md +84 -0
- package/sections/opencode/agents/identity/teamlead.md +101 -0
- package/sections/opencode/agents/identity/ux-ui.md +87 -0
- package/sections/opencode/agents/standards/generic.md +36 -0
- package/sections/opencode/agents/standards/nextjs.md +29 -0
- package/sections/opencode/agents/standards/python.md +217 -0
- package/sections/opencode/agents/standards/react.md +130 -0
- package/sections/opencode/agents/standards/typescript.md +30 -0
- package/sections/opencode/agents/workflow/context.md +24 -0
- package/sections/opencode/agents/workflow/memory.md +32 -0
- package/sections/opencode/agents/workflow/sessions.md +38 -0
- package/sections/opencode/agents/workflow/tasks.md +40 -0
- package/sections/opencode/config/agents.md +11 -0
- package/sections/opencode/context/nextjs/architecture.md +13 -0
- package/sections/opencode/context/nextjs/conventions.md +20 -0
- package/sections/opencode/context/nextjs/stack.md +14 -0
- package/sections/opencode/context/python/architecture.md +13 -0
- package/sections/opencode/context/python/conventions.md +19 -0
- package/sections/opencode/context/python/stack.md +14 -0
- package/sections/opencode/workflow/context.md +14 -0
- package/sections/opencode/workflow/memory.md +12 -0
- package/sections/opencode/workflow/sessions.md +20 -0
- package/sections/opencode/workflow/state.md +20 -0
- package/sections/opencode/workflow/tasks.md +13 -0
- package/sections/shared/frontmatter/adversarial-reviewer.yaml +7 -0
- package/sections/shared/frontmatter/architect.yaml +7 -0
- package/sections/shared/frontmatter/docs-writer.yaml +7 -0
- package/sections/shared/frontmatter/fullstack-dev.yaml +7 -0
- package/sections/shared/frontmatter/memory-keeper.yaml +7 -0
- package/sections/shared/frontmatter/po.yaml +7 -0
- package/sections/shared/frontmatter/qa.yaml +7 -0
- package/sections/shared/frontmatter/reviewer.yaml +7 -0
- package/sections/shared/frontmatter/teamlead.yaml +8 -0
- package/sections/shared/frontmatter/ux-ui.yaml +7 -0
- package/sections/shared/memory/conventions.md +10 -0
- package/sections/shared/memory/decisions.md +13 -0
- package/sections/shared/memory/patterns.md +12 -0
- package/sections/shared/task-template.md +44 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Session Management
|
|
2
|
+
|
|
3
|
+
## Session Logs
|
|
4
|
+
Each development session is recorded in `.agent/sessions/` as `YYYY-MM-DD.md`.
|
|
5
|
+
|
|
6
|
+
## When to Write
|
|
7
|
+
At the end of each session, the `squad-memory-keeper` writes a session log.
|
|
8
|
+
|
|
9
|
+
## Format
|
|
10
|
+
```markdown
|
|
11
|
+
# Session YYYY-MM-DD
|
|
12
|
+
- **Agent:** [which agent ran]
|
|
13
|
+
- **Tasks worked:** [task IDs with status changes]
|
|
14
|
+
- **Decisions made:** [links to decision log entries]
|
|
15
|
+
- **Files changed:** [key files modified]
|
|
16
|
+
- **Next steps:** [what to do in the next session]
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Purpose
|
|
20
|
+
Session logs provide continuity across sessions so agents can pick up where they left off.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ${PROJECT_NAME} — Current State
|
|
2
|
+
|
|
3
|
+
## Active Tasks
|
|
4
|
+
[List active tasks with status]
|
|
5
|
+
|
|
6
|
+
## Recently Completed
|
|
7
|
+
[List recently completed tasks]
|
|
8
|
+
|
|
9
|
+
## Blocked Items
|
|
10
|
+
[List blocked items with reason]
|
|
11
|
+
|
|
12
|
+
## Quality Gates
|
|
13
|
+
| Gate | Status |
|
|
14
|
+
|------|--------|
|
|
15
|
+
| Tests | — |
|
|
16
|
+
| Lint | — |
|
|
17
|
+
| Build | — |
|
|
18
|
+
|
|
19
|
+
## Next Session Priority
|
|
20
|
+
1. [Most important next task]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Task Management
|
|
2
|
+
|
|
3
|
+
## Finding the Current Task
|
|
4
|
+
Check `state.md` for active tasks. Open the task file at `.agent/tasks/`.
|
|
5
|
+
|
|
6
|
+
## Updating Task Status
|
|
7
|
+
When starting work, mark status `in_progress`. When done, mark `completed`. Blocked tasks should note the blocker reason.
|
|
8
|
+
|
|
9
|
+
## Creating New Tasks
|
|
10
|
+
The PO agent (`squad-po`) creates tasks in `.agent/tasks/` using `task-template.md` as the base. Each task gets a numeric ID (e.g., `task-01.md`). The PO validates acceptance criteria are concrete and verifiable.
|
|
11
|
+
|
|
12
|
+
## Task Lifecycle
|
|
13
|
+
`pending` → `in_progress` → (reviewed by `squad-reviewer`) → `completed`
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
name: squad-teamlead
|
|
2
|
+
description: >-
|
|
3
|
+
${PROJECT_NAME} Team Lead. Orchestrates the squad. Only agent that talks to the user.
|
|
4
|
+
Assesses work type, dispatches agents in the right pipeline, synthesizes results.
|
|
5
|
+
Delegation-only — never writes code, never fixes issues directly.
|
|
6
|
+
mode: primary
|
|
7
|
+
hidden: false
|
|
8
|
+
color: "#D4845F"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Decision Log — ${PROJECT_NAME}
|
|
2
|
+
|
|
3
|
+
Architecture Decision Records. Each entry records a significant technical decision, why it was made, and its consequences.
|
|
4
|
+
|
|
5
|
+
## Format
|
|
6
|
+
|
|
7
|
+
### YYYY-MM-DD — Decision Title
|
|
8
|
+
- **Context:** Why this decision was needed
|
|
9
|
+
- **Decision:** What was decided
|
|
10
|
+
- **Alternatives considered:** What other options were evaluated
|
|
11
|
+
- **Consequences:** Positive and negative outcomes of this decision
|
|
12
|
+
|
|
13
|
+
---
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Pattern Library — ${PROJECT_NAME}
|
|
2
|
+
|
|
3
|
+
Reusable code patterns and architectural templates discovered in the codebase.
|
|
4
|
+
|
|
5
|
+
## Format
|
|
6
|
+
|
|
7
|
+
### Pattern Name
|
|
8
|
+
- **Use when:** Description of when to apply this pattern
|
|
9
|
+
- **Structure:** Code or diagram showing the pattern
|
|
10
|
+
- **Example:** Reference to where this pattern is used in the codebase
|
|
11
|
+
|
|
12
|
+
---
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: task-XX
|
|
3
|
+
status: pending
|
|
4
|
+
priority: medium
|
|
5
|
+
assigned: squad-fullstack-dev
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Task XX: [Task Title]
|
|
9
|
+
|
|
10
|
+
## Product Context
|
|
11
|
+
- Problem / user need: [What problem, for whom, and why now]
|
|
12
|
+
- Desired outcome: [The user or business outcome this task should create]
|
|
13
|
+
- Success measure: [Observable metric, behavior, or validation signal]
|
|
14
|
+
- Decision owner: [Person or role accountable for material product decisions]
|
|
15
|
+
|
|
16
|
+
## Priority
|
|
17
|
+
[Critical / High / Medium / Low] — [Why this should be done now, including relevant trade-offs]
|
|
18
|
+
|
|
19
|
+
## Scope
|
|
20
|
+
What this task covers. Be specific about the boundaries.
|
|
21
|
+
|
|
22
|
+
## Out of Scope
|
|
23
|
+
Explicit exclusions to prevent scope creep.
|
|
24
|
+
|
|
25
|
+
## Acceptance Criteria
|
|
26
|
+
1. [Concrete, verifiable statement]
|
|
27
|
+
2. [Given/When/Then format preferred]
|
|
28
|
+
|
|
29
|
+
## Technical Notes
|
|
30
|
+
- Relevant files: path/to/file.ts
|
|
31
|
+
- Patterns to follow: [reference to existing convention]
|
|
32
|
+
- Constraints: [API limits, performance targets, etc.]
|
|
33
|
+
|
|
34
|
+
## Dependencies
|
|
35
|
+
- Task IDs that must be completed before this one
|
|
36
|
+
|
|
37
|
+
## Assumptions & Risks
|
|
38
|
+
- Assumptions: [Confirmed assumptions that materially affect the task]
|
|
39
|
+
- Risks / open decisions: [Risk, unresolved decision, owner, and required action]
|
|
40
|
+
|
|
41
|
+
## Delivery & Follow-up
|
|
42
|
+
- Rollout / migration / rollback: [Required approach, or "Not applicable"]
|
|
43
|
+
- Observability / support / documentation: [Required work, or "Not applicable"]
|
|
44
|
+
- Outcome review: [When and how to assess the success measure, or "Not applicable"]
|