Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
445 changes: 445 additions & 0 deletions action/build-sdlc-prompt.sh

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions docs/templates/analysis.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Analysis: [Issue Title]

> Issue: #[number] | Phase: refine

## Problem Statement

[Describe the problem or feature request. What is the current state? What is the desired outcome?]

## Current Behavior

[Describe how the system currently works in the relevant area. Include code references where helpful.]

## Constraints

- [Technical constraints (compatibility, performance, security)]
- [Business constraints (timeline, scope)]
- [Dependencies on other systems or features]

## Options Considered

### Option A: [Name]

**Approach**: [Brief description]

**Pros**:
- [Advantage 1]
- [Advantage 2]

**Cons**:
- [Disadvantage 1]
- [Disadvantage 2]

### Option B: [Name]

**Approach**: [Brief description]

**Pros**:
- [Advantage 1]
- [Advantage 2]

**Cons**:
- [Disadvantage 1]
- [Disadvantage 2]

## Recommended Approach

[Which option is recommended and why. Reference the option above.]

## Open Questions

- [ ] [Question 1 that needs human input]
- [ ] [Question 2 that needs human input]

---

*Authored-by: egg*
58 changes: 58 additions & 0 deletions docs/templates/plan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Plan: [Issue Title]

> Issue: #[number] | Phase: plan

## Summary

[2-3 sentence overview of the implementation approach. Reference the analysis document if applicable.]

## Implementation Phases

### Phase 1: [Phase Name]

**Goal**: [What this phase achieves]

**Tasks**:
- [TASK-1-1] [Task description] — Acceptance: [Criteria for completion]
- [TASK-1-2] [Task description] — Acceptance: [Criteria for completion]

**Dependencies**: [What must be completed before this phase]

**Exit criteria**: [How we know this phase is complete]

### Phase 2: [Phase Name]

**Goal**: [What this phase achieves]

**Tasks**:
- [TASK-2-1] [Task description] — Acceptance: [Criteria for completion]
- [TASK-2-2] [Task description] — Acceptance: [Criteria for completion]

**Dependencies**: Phase 1

**Exit criteria**: [How we know this phase is complete]

## Test Strategy

- **Unit tests**: [What unit tests will be added]
- **Integration tests**: [What integration tests will be added]
- **Manual testing**: [Steps for manual verification]

## Rollback Plan

[How to revert if something goes wrong. Include specific commands or steps.]

## Risk Assessment

| Risk | Likelihood | Impact | Mitigation |
|------|------------|--------|------------|
| [Risk 1] | Low/Med/High | Low/Med/High | [How to mitigate] |
| [Risk 2] | Low/Med/High | Low/Med/High | [How to mitigate] |

## Migration Notes

[If applicable: database migrations, config changes, breaking changes for users]

---

*Authored-by: egg*
29 changes: 29 additions & 0 deletions sandbox/.claude/rules/contract.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# SDLC Contract

When working in the SDLC pipeline, use the `egg-contract` CLI to track progress.

## Commands

| Command | Purpose |
|---------|---------|
| `egg-contract show` | View current contract state |
| `egg-contract add-commit --task <id> --commit <sha>` | Link commit to task |
| `egg-contract update-notes --task <id> --notes <text>` | Add implementation notes |
| `egg-contract mark-task --task <id> --status <status>` | Mark task status (reviewer) |
| `egg-contract mark-phase --phase <id> --passed <bool>` | Mark phase status (reviewer) |
| `egg-contract add-decision --question <text>` | Create HITL decision |

## Workflow

1. Check current phase and tasks: `egg-contract show`
2. Work on assigned tasks
3. Link commits as you complete work: `egg-contract add-commit --task task-1 --commit abc1234`
4. Add notes if needed: `egg-contract update-notes --task task-1 --notes "Implemented X"`
5. If blocked, create a decision point: `egg-contract add-decision --question "How should X be handled?"`

## Environment

- `EGG_ISSUE_NUMBER` — current issue (auto-set)
- `EGG_REPO_PATH` — repository path (auto-set)

See contract schema docs at `.egg/schemas/contract.schema.json`.
Loading
Loading