sam
Health Gecti
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 14 GitHub stars
Code Gecti
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
SAM - Autonomous TDD agent system for Claude Code, Cursor, Gemini CLI, GitHub Copilot, and Antigravity. PRD in, working tested app out.
SAM - Smart Agent Manager
Autonomous TDD agent system for Claude Code, Cursor, Gemini CLI, GitHub Copilot, and Antigravity.
SAM orchestrates a team of specialized AI agents that transform an idea or PRD into working, tested code using strict Test-Driven Development (RED-GREEN-REFACTOR). Don't have a PRD yet? Start with quick-prd (one-pass draft) or scope (full discovery) — SAM will help you draft one.
See it work — sam-agents/example-todo
A working todo app built by SAM in 14 minutes from a single markdown PRD. Every artifact is committed: PRD, contracts, stories, source, tests, and the post-integration screenshots + network log + video that Lens captured. Browse it in 90 seconds to see exactly what SAM produces.
Quick Start
# Interactive mode (choose your platform)
npx sam-agents
# Or specify platform directly
npx sam-agents --platform claude # Claude Code
npx sam-agents --platform cursor # Cursor IDE
npx sam-agents --platform antigravity # Google Antigravity
npx sam-agents --platform gemini # Gemini CLI
npx sam-agents --platform copilot # GitHub Copilot
npx sam-agents --platform all # All platforms
Supported Platforms
| Platform | Install Command | Skill Format |
|---|---|---|
| Claude Code | npx sam-agents --platform claude |
/sam: commands |
| Cursor | npx sam-agents --platform cursor |
@agent mentions |
| Gemini CLI | npx sam-agents --platform gemini |
.gemini/skills/ |
| GitHub Copilot | npx sam-agents --platform copilot |
copilot-integration/ |
| Antigravity | npx sam-agents --platform antigravity |
/sam- skills |
Why SAM?
| Feature | SAM | Traditional AI Coding |
|---|---|---|
| TDD-First | Tests written before code | Code first, tests maybe |
| BYOA | Use your own AI subscription | Pay per API call (5-10x cost) |
| Transparency | Watch agents work in real-time | Black box |
| Autonomous | Minimal intervention after PRD | Constant hand-holding |
| Multi-Platform | Claude Code + Cursor + Gemini + Copilot + Antigravity | Single platform lock-in |
Available Agents
| Agent | Role | Claude Code | Cursor | Gemini | Copilot | Antigravity |
|---|---|---|---|---|---|---|
| SAM | Orchestrator | /sam:core:agents:sam |
@sam |
sam-orchestrator |
Act as sam-orchestrator |
/sam-orchestrator |
| Quill | Product Manager (PRD) | /sam:sam:agents:quill |
@quill |
sam-quill |
Act as sam-quill |
/sam-quill |
| Iris | UX Designer | /sam:sam:agents:iris |
@iris |
sam-iris |
Act as sam-iris |
/sam-iris |
| Atlas | System Architect | /sam:sam:agents:atlas |
@atlas |
sam-atlas |
Act as sam-atlas |
/sam-atlas |
| Titan | Test Architect (RED) | /sam:sam:agents:titan |
@titan |
sam-titan |
Act as sam-titan |
/sam-titan |
| Dyna | Developer (GREEN) | /sam:sam:agents:dyna |
@dyna |
sam-dyna |
Act as sam-dyna |
/sam-dyna |
| Argus | Code Reviewer (REFACTOR) | /sam:sam:agents:argus |
@argus |
sam-argus |
Act as sam-argus |
/sam-argus |
| Cosmo | CSS Reviewer (web apps) | /sam:sam:agents:cosmo |
@cosmo |
sam-cosmo |
Act as sam-cosmo |
/sam-cosmo |
| Aria | Accessibility Reviewer (web apps) | /sam:sam:agents:aria |
@aria |
sam-aria |
Act as sam-aria |
/sam-aria |
| Sentinel | Security Reviewer (optional) | /sam:sam:agents:sentinel |
@sentinel |
sam-sentinel |
Act as sam-sentinel |
/sam-sentinel |
| Upkeep | Dependency Maintenance (on demand) | /sam:sam:agents:upkeep |
@upkeep |
sam-upkeep |
Act as sam-upkeep |
/sam-upkeep |
| Sage | Technical Writer | /sam:sam:agents:sage |
@sage |
sam-sage |
Act as sam-sage |
/sam-sage |
Workflows
SAM ships five composable workflows. Run any of them on its own, or use plan-n-build for the one-shot experience (add --from-idea if you don't have a PRD yet).
| Workflow | Goal | Output |
|---|---|---|
| quick-prd | Idea → draft PRD in one pass (Quill, with explicit assumptions for unstated details) | sdocs/prd.md (+ ## Assumptions) |
| scope | Idea, rough notes, or nothing → PRD via full UX + technical discovery | sdocs/prd.md (+ ## Open Questions) |
| plan | Validate a PRD and decompose it into epics and stories | sdocs/epics/, sdocs/stories/, sdocs/architecture-ref.md |
| build-tdd | Implement a single story via RED-GREEN-REFACTOR + conditional review | Working code, tests, changelog entry |
| plan-n-build | Compose plan + build-tdd over every story + comprehensive docs | Full project + docs/features/ + release notes |
Typical flow: quick-prd or scope → plan → build-tdd (manual stepping), or plan-n-build end-to-end. With --from-idea, plan-n-build prepends scope automatically (non-interactive).
quick-prd vs scope
Both produce a valid PRD conforming to prd-schema.md. They differ in how they handle unknowns.
quick-prd (Quill) |
scope (Iris + Atlas + Sage) |
|
|---|---|---|
| Discovery depth | 0–5 focused questions | Full UX + technical Q&A |
| Unknown handling | Default + label as Assumption | Capture as Open Question |
| Time | Minutes | Working session |
| Best for | "Give me a starting PRD I can react to" | "Let's work this out properly" |
Quick-PRD's ## Assumptions block lets you scan the defaults and reject any that are wrong in seconds. Scope's ## Open Questions block surfaces things the discovery loop couldn't resolve.
Invocation per platform
| Platform | quick-prd | scope | plan | build-tdd | plan-n-build |
|---|---|---|---|---|---|
| Claude Code | /sam:core:workflows:quick-prd <idea> |
/sam:core:workflows:scope <idea> |
/sam:core:workflows:plan <prd> |
/sam:core:workflows:build-tdd <story> |
/sam:core:workflows:plan-n-build <prd> |
| Cursor | @sam-quick-prd |
@sam-scope |
@sam-plan |
@sam-build-tdd |
@sam-plan-n-build |
| Gemini CLI | sam-quick-prd |
sam-scope |
sam-plan |
sam-build-tdd |
sam-plan-n-build |
| GitHub Copilot | Run sam-quick-prd |
Run sam-scope |
Run sam-plan |
Run sam-build-tdd |
Run sam-plan-n-build |
| Antigravity | /sam-quick-prd |
/sam-scope |
/sam-plan |
/sam-build-tdd |
/sam-plan-n-build |
Inside build-tdd: the TDD loop
For each story, in order:
- RED — Titan writes failing tests covering every acceptance criterion
- GREEN — Dyna writes the minimum code to make tests pass, then verifies the build
- REFACTOR — Argus runs an adversarial review and auto-fixes issues
- UI — Iris validates UX against design standards (web apps only)
- CSS — Cosmo checks styling consistency (web apps only)
- A11y — Aria reviews semantics, keyboard, and contrast (web apps only)
- Security — Sentinel audits secrets, CVEs, and secure coding (opt-in via
--security) - Docs — Sage appends a changelog entry for the story
Story status (in YAML frontmatter: ready → in-progress → done / blocked) is the single source of truth. Interrupted runs resume cleanly with plan-n-build --resume.
What Gets Installed
your-project/
├── _sam/ # Agent and workflow definitions (shared across platforms)
│ ├── agents/ # Atlas, Titan, Dyna, Argus, ...
│ ├── core/agents/ # SAM orchestrator
│ ├── core/resources/ # prd-schema, story-schema, epic-schema, design defaults
│ └── core/workflows/ # quick-prd/, scope/, plan/, build-tdd/, plan-n-build/
├── .claude/commands/sam/ # Claude Code slash commands
├── .cursor/rules/ # Cursor @mention rules
├── .gemini/skills/ # Gemini CLI skills
├── copilot-integration/ # GitHub Copilot instructions
└── .agent/skills/ # Antigravity skills
Workflows write their output to sdocs/ in your project root (prd.md, epics, stories, architecture refs, run reports). This is generated content — not installed by the CLI.
Requirements
- Node.js 16+
- One of:
Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
License
MIT - see LICENSE for details.
Built with AI. Powered by TDD.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi