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.
Files changed (49) hide show
  1. package/README.md +131 -0
  2. package/dist/index.d.ts +2 -0
  3. package/dist/index.js +1013 -0
  4. package/package.json +49 -0
  5. package/sections/opencode/agents/identity/adversarial-reviewer.md +98 -0
  6. package/sections/opencode/agents/identity/architect.md +122 -0
  7. package/sections/opencode/agents/identity/docs-writer.md +53 -0
  8. package/sections/opencode/agents/identity/fullstack-dev.md +79 -0
  9. package/sections/opencode/agents/identity/memory-keeper.md +192 -0
  10. package/sections/opencode/agents/identity/po.md +102 -0
  11. package/sections/opencode/agents/identity/qa.md +90 -0
  12. package/sections/opencode/agents/identity/reviewer.md +84 -0
  13. package/sections/opencode/agents/identity/teamlead.md +101 -0
  14. package/sections/opencode/agents/identity/ux-ui.md +87 -0
  15. package/sections/opencode/agents/standards/generic.md +36 -0
  16. package/sections/opencode/agents/standards/nextjs.md +29 -0
  17. package/sections/opencode/agents/standards/python.md +217 -0
  18. package/sections/opencode/agents/standards/react.md +130 -0
  19. package/sections/opencode/agents/standards/typescript.md +30 -0
  20. package/sections/opencode/agents/workflow/context.md +24 -0
  21. package/sections/opencode/agents/workflow/memory.md +32 -0
  22. package/sections/opencode/agents/workflow/sessions.md +38 -0
  23. package/sections/opencode/agents/workflow/tasks.md +40 -0
  24. package/sections/opencode/config/agents.md +11 -0
  25. package/sections/opencode/context/nextjs/architecture.md +13 -0
  26. package/sections/opencode/context/nextjs/conventions.md +20 -0
  27. package/sections/opencode/context/nextjs/stack.md +14 -0
  28. package/sections/opencode/context/python/architecture.md +13 -0
  29. package/sections/opencode/context/python/conventions.md +19 -0
  30. package/sections/opencode/context/python/stack.md +14 -0
  31. package/sections/opencode/workflow/context.md +14 -0
  32. package/sections/opencode/workflow/memory.md +12 -0
  33. package/sections/opencode/workflow/sessions.md +20 -0
  34. package/sections/opencode/workflow/state.md +20 -0
  35. package/sections/opencode/workflow/tasks.md +13 -0
  36. package/sections/shared/frontmatter/adversarial-reviewer.yaml +7 -0
  37. package/sections/shared/frontmatter/architect.yaml +7 -0
  38. package/sections/shared/frontmatter/docs-writer.yaml +7 -0
  39. package/sections/shared/frontmatter/fullstack-dev.yaml +7 -0
  40. package/sections/shared/frontmatter/memory-keeper.yaml +7 -0
  41. package/sections/shared/frontmatter/po.yaml +7 -0
  42. package/sections/shared/frontmatter/qa.yaml +7 -0
  43. package/sections/shared/frontmatter/reviewer.yaml +7 -0
  44. package/sections/shared/frontmatter/teamlead.yaml +8 -0
  45. package/sections/shared/frontmatter/ux-ui.yaml +7 -0
  46. package/sections/shared/memory/conventions.md +10 -0
  47. package/sections/shared/memory/decisions.md +13 -0
  48. package/sections/shared/memory/patterns.md +12 -0
  49. 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,7 @@
1
+ name: squad-adversarial-reviewer
2
+ description: >-
3
+ Adversarial Reviewer for ${PROJECT_NAME}. Second-pass review hunting for missed bugs.
4
+ Use after the first reviewer has passed the code.
5
+ mode: subagent
6
+ hidden: true
7
+ color: "#EF4444"
@@ -0,0 +1,7 @@
1
+ name: squad-architect
2
+ description: >-
3
+ System Architect for ${PROJECT_NAME}. Designs systems, data flows, type contracts.
4
+ Use for system design, architecture decisions.
5
+ mode: subagent
6
+ hidden: true
7
+ color: "#8B5CF6"
@@ -0,0 +1,7 @@
1
+ name: squad-docs-writer
2
+ description: >-
3
+ Documentation Writer for ${PROJECT_NAME}. Maintains project context documentation.
4
+ Use for updating project docs and context files.
5
+ mode: subagent
6
+ hidden: true
7
+ color: "#06B6D4"
@@ -0,0 +1,7 @@
1
+ name: squad-fullstack-dev
2
+ description: >-
3
+ Full-Stack Developer for ${PROJECT_NAME}. Implements features end-to-end.
4
+ Use for implementing features, fixing bugs, or writing code.
5
+ mode: subagent
6
+ hidden: true
7
+ color: "#4A90D9"
@@ -0,0 +1,7 @@
1
+ name: squad-memory-keeper
2
+ description: >-
3
+ Memory Keeper for ${PROJECT_NAME}. Manages project memory across sessions.
4
+ Use for recording decisions, conventions, and session logs.
5
+ mode: subagent
6
+ hidden: true
7
+ color: "#10B981"
@@ -0,0 +1,7 @@
1
+ name: squad-po
2
+ description: >-
3
+ Product Owner for ${PROJECT_NAME}. Creates and manages task files.
4
+ Use for scoping features, creating tasks, or validating requirements.
5
+ mode: subagent
6
+ hidden: true
7
+ color: "#D4845F"
@@ -0,0 +1,7 @@
1
+ name: squad-qa
2
+ description: >-
3
+ QA Engineer for ${PROJECT_NAME}. Tests implementations and verifies acceptance criteria.
4
+ Use after implementation, before closing tasks.
5
+ mode: subagent
6
+ hidden: true
7
+ color: "#F59E0B"
@@ -0,0 +1,7 @@
1
+ name: squad-reviewer
2
+ description: >-
3
+ Code Reviewer for ${PROJECT_NAME}. GREEN/RED review of completed code.
4
+ Use after implementation is complete.
5
+ mode: subagent
6
+ hidden: true
7
+ color: "#50C878"
@@ -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,7 @@
1
+ name: squad-ux-ui
2
+ description: >-
3
+ UX/UI Reviewer for ${PROJECT_NAME}. Reviews UI against design standards.
4
+ Use for reviewing UI implementation quality.
5
+ mode: subagent
6
+ hidden: true
7
+ color: "#EC4899"
@@ -0,0 +1,10 @@
1
+ # Convention Log — ${PROJECT_NAME}
2
+
3
+ Discovered and established conventions that agents should follow. Appended over time as patterns emerge.
4
+
5
+ ## Format
6
+
7
+ ### YYYY-MM-DD — Convention Name
8
+ Description of the convention and why it exists.
9
+
10
+ ---
@@ -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"]