Complete working examples demonstrating AI-SDLC SDK usage.
| Example | Description |
|---|---|
| builder-examples.ts | All 5 resource builders with validation |
| gate-enforcement.ts | Programmatic quality gate evaluation with override and failure scenarios |
| adapter-implementation.ts | Custom adapter from scratch, registry, webhook bridge, EventBus (RFC-0003 §3 example — IssueTracker pattern extended to the five infrastructure interfaces) |
| orchestration-patterns.ts | All 5 orchestration patterns with execution and handoff validation |
| Example | Description |
|---|---|
| complete-pipeline.yaml | Full pipeline with all resource types configured together (RFC-0002 §6 example) |
The TypeScript examples can be run directly:
npx tsx docs/examples/builder-examples.ts
npx tsx docs/examples/gate-enforcement.ts
npx tsx docs/examples/adapter-implementation.ts
npx tsx docs/examples/orchestration-patterns.tsVerify examples compile without errors:
cd docs/examples
npx tsc --noEmitOr validate YAML examples against the schemas:
pnpm --filter @ai-sdlc/reference validate-schemas