Skip to content

Commit 03e87bd

Browse files
feat(agentos): bootstrap Lambda AgentOS v0.1 skeleton (standards, constitution, prompts, scripts, CI)
Includes: - .agentos/standards (tech-stack, code-style, best-practices, medusa-guidelines) - .agentos/product (mission, architecture, roadmap, decisions/) - .agentos/memory/constitution.md (non-negotiable gates) - .agentos/templates (docs + prompts) - .agentos/scripts (preflight/postflight/spec helpers) - .agentos/agents/AGENTS.md - .github/workflows/lambda-agentos.yml + PR template Co-authored-by: Jake Ruesink <jaruesink@gmail.com>
1 parent 52e6729 commit 03e87bd

27 files changed

Lines changed: 402 additions & 0 deletions

.agentos/agents/AGENTS.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Lambda AgentOS — Agents (v0.1)
2+
3+
- Product Spec Agent
4+
- templates/prompts/specify.md
5+
- Technical Planner
6+
- templates/prompts/plan.md
7+
- Task Orchestrator
8+
- templates/prompts/tasks.md
9+
- Implementer
10+
- templates/prompts/implement.md
11+
- Reviewer (PR Gatekeeper)
12+
- templates/prompts/review.md
13+
- Medusa Integrator
14+
- templates/prompts/medusa-plugin.md
15+
16+
Scripts
17+
- .agentos/scripts/preflight.sh
18+
- .agentos/scripts/postflight.sh
19+
- .agentos/scripts/create-spec.sh
20+
- .agentos/scripts/generate-tasks.sh
21+
- .agentos/scripts/implement-tasks.sh
22+
- .agentos/scripts/medusa-checks.sh (noop here)
23+

.agentos/memory/constitution.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Lambda AgentOS Constitution (v0.1)
2+
3+
Articles (non‑negotiables)
4+
5+
I. Simplicity Gate
6+
- Prefer framework primitives; no custom abstractions until repeated ≥3×.
7+
8+
II. Contract‑first
9+
- Define contracts/tests before source code; keep failing tests visible until satisfied.
10+
11+
III. Typed data flow
12+
- Route loaders/actions and components must be typed end‑to‑end; no `any`/`unknown` leaks.
13+
14+
IV. Separation of concerns
15+
- UI never calls DB directly; data access behind services/APIs. (In this repo, mock services only.)
16+
17+
V. Spec traceability
18+
- Every change references a spec path under .agentos/specs; PR template must link it.
19+
20+
VI. Drift control
21+
- If contracts change, regenerate tasks and update plan/spec; do not “patch” code silently.
22+
23+
VII. Review gates
24+
- Pre-flight must pass before implementation; post-flight must pass before merge.
25+

.agentos/product/architecture.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Architecture Overview
2+
3+
- Monorepo (Turborepo + Bun)
4+
- React Router 7 app in apps/* with file-based route modules
5+
- Shared packages in packages/* with proper exports
6+
- Styling via Tailwind; component patterns via shadcn/ui (optional)
7+
- Testing via Vitest; lint via Biome; typechecking via tsc
8+
- CI via GitHub Actions; see .github/workflows
9+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Decisions (ADR Index)

.agentos/product/mission.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Mission
2+
3+
Provide a high-quality React Router 7 starter showcasing route modules, loaders/actions, type-safe data flows, Tailwind styling, and workspace ergonomics suitable for AI-assisted, spec-driven development.
4+

.agentos/product/roadmap.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Roadmap (Starter)
2+
3+
- 001: Add Lambda AgentOS skeleton (this PR)
4+
- 002: Example feature spec demonstrating contract-first data flow
5+
- 003: Optional Medusa integration sample (service API stub + UI)
6+

.agentos/scripts/create-spec.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
# Usage: ./create-spec.sh "Feature Title"
5+
6+
TITLE_RAW=${1:-sample-feature}
7+
TITLE_SLUG=$(echo "$TITLE_RAW" | tr '[:upper:]' '[:lower:]' | sed -E 's/[^a-z0-9]+/-/g; s/^-|-$//g')
8+
NEXT_NUM=$(printf "%03d" 1)
9+
10+
# Compute next number by counting existing dirs
11+
if [ -d .agentos/specs ]; then
12+
COUNT=$(find .agentos/specs -maxdepth 1 -mindepth 1 -type d | wc -l | xargs)
13+
NEXT_NUM=$(printf "%03d" $((COUNT + 1)))
14+
fi
15+
16+
DIR=".agentos/specs/${NEXT_NUM}-${TITLE_SLUG}"
17+
mkdir -p "$DIR/contracts"
18+
19+
cp .agentos/templates/docs/spec-template.md "$DIR/spec.md"
20+
cp .agentos/templates/docs/plan-template.md "$DIR/plan.md"
21+
cp .agentos/templates/docs/tasks-template.md "$DIR/tasks.md"
22+
23+
echo "Created spec at $DIR"
24+

.agentos/scripts/generate-tasks.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
# Usage: ./generate-tasks.sh PATH_TO_SPEC_DIR
5+
SPEC_DIR=${1:-}
6+
if [ -z "$SPEC_DIR" ]; then
7+
echo "Usage: $0 .agentos/specs/NNN-feature" >&2
8+
exit 1
9+
fi
10+
11+
# Here we would invoke an agent to read plan.md and produce tasks.md.
12+
# For v0.1, we ensure the file exists and print a hint.
13+
if [ ! -f "$SPEC_DIR/plan.md" ]; then
14+
echo "Missing $SPEC_DIR/plan.md" >&2
15+
exit 1
16+
fi
17+
18+
[ -f "$SPEC_DIR/tasks.md" ] || cp .agentos/templates/docs/tasks-template.md "$SPEC_DIR/tasks.md"
19+
echo "Tasks prepared at $SPEC_DIR/tasks.md"
20+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
# Usage: ./implement-tasks.sh PATH_TO_SPEC_DIR
5+
SPEC_DIR=${1:-}
6+
if [ -z "$SPEC_DIR" ]; then
7+
echo "Usage: $0 .agentos/specs/NNN-feature" >&2
8+
exit 1
9+
fi
10+
11+
.agentos/scripts/preflight.sh
12+
13+
# Placeholder: v0.1 does not auto‑apply code changes.
14+
# Implementers follow tasks.md and commit step-by-step.
15+
16+
.agentos/scripts/postflight.sh
17+

.agentos/scripts/medusa-checks.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
echo "[medusa-checks] This repo is frontend-only. For Medusa projects, implement container registration checks, event/subscriber validation, and version pinning here."
5+

0 commit comments

Comments
 (0)