google-agents-cli-scaffold
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
acc-create-outbox-pattern
Generates Transactional Outbox pattern components for PHP 8.5. Creates OutboxMessage entity, repository, publisher, and processor with unit tests.
Full skill instructions
Creates Transactional Outbox pattern infrastructure for reliable event publishing.
Path: src/Domain/Shared/Outbox/
OutboxMessage.php — Immutable message entityOutboxRepositoryInterface.php — Repository contractPath: src/Application/Shared/
Port/Output/MessagePublisherInterface.php — Publisher portPort/Output/DeadLetterRepositoryInterface.php — Dead letter portOutbox/ProcessingResult.php — Result value objectOutbox/MessageResult.php — Result enumOutbox/OutboxProcessor.php — Processing servicePath: src/Infrastructure/
Persistence/Doctrine/Repository/DoctrineOutboxRepository.phpConsole/OutboxProcessCommand.phptests/Unit/Domain/Shared/Outbox/OutboxMessageTest.phptests/Unit/Application/Shared/Outbox/OutboxProcessorTest.php// In UseCase - save outbox message in SAME transaction
$this->connection->transactional(function () use ($order, $event) {
$this->orderRepository->save($order);
$this->outboxRepository->save(
OutboxMessage::create(
id: Uuid::uuid4()->toString(),
aggregateType: 'Order',
aggregateId: $order->id()->toString(),
eventType: 'order.placed',
payload: $event->toArray()
)
);
});
Include metadata for tracing:
| Layer | Path |
|---|---|
| Domain Entity | src/Domain/Shared/Outbox/ |
| Domain Interface | src/Domain/Shared/Outbox/ |
| Application Service | src/Application/Shared/Outbox/ |
| Application Port | src/Application/Shared/Port/Output/ |
| Infrastructure Repo | src/Infrastructure/Persistence/Doctrine/Repository/ |
| Infrastructure Console | src/Infrastructure/Console/ |
| Unit Tests | tests/Unit/{Layer}/{Path}/ |
| Component | Pattern | Example |
|---|---|---|
| Entity | {Name} | OutboxMessage |
| Repository Interface | {Name}RepositoryInterface | OutboxRepositoryInterface |
| Repository Impl | Doctrine{Name}Repository | DoctrineOutboxRepository |
| Service | {Name}Processor | OutboxProcessor |
| Command | {Name}Command | OutboxProcessCommand |
| Test | {ClassName}Test | OutboxMessageTest |
final readonly class OutboxMessage
{
public static function create(
string $id,
string $aggregateType,
string $aggregateId,
string $eventType,
array $payload,
?string $correlationId = null,
?string $causationId = null
): self;
public function isProcessed(): bool;
public function isPoisoned(int $maxRetries): bool;
public function payloadAsArray(): array;
public function withProcessed(): self;
public function withRetryIncremented(): self;
}
interface OutboxRepositoryInterface
{
public function save(OutboxMessage $message): void;
public function findUnprocessed(int $limit = 100): array;
public function markAsProcessed(string $id): void;
public function incrementRetry(string $id): void;
public function delete(string $id): void;
}
final readonly class OutboxProcessor
{
public function process(int $batchSize = 100): ProcessingResult;
}
// In UseCase
$message = OutboxMessage::create(
id: Uuid::uuid4()->toString(),
aggregateType: 'Order',
aggregateId: $order->id()->toString(),
eventType: 'order.placed',
payload: [
'order_id' => $order->id()->toString(),
'customer_id' => $order->customerId()->toString(),
'total' => $order->total()->amount(),
],
correlationId: $command->correlationId
);
$this->outboxRepository->save($message);
# One-shot processing
php bin/console outbox:process --batch-size=100
# Daemon mode
php bin/console outbox:process --daemon --interval=1000
# Symfony services.yaml
Domain\Shared\Outbox\OutboxRepositoryInterface:
alias: Infrastructure\Persistence\Doctrine\Repository\DoctrineOutboxRepository
Application\Shared\Port\Output\MessagePublisherInterface:
alias: Infrastructure\Messaging\RabbitMq\RabbitMqPublisher
Application\Shared\Outbox\OutboxProcessor:
arguments:
$maxRetries: 5
CREATE TABLE outbox_messages (
id VARCHAR(36) PRIMARY KEY,
aggregate_type VARCHAR(255) NOT NULL,
aggregate_id VARCHAR(255) NOT NULL,
event_type VARCHAR(255) NOT NULL,
payload JSONB NOT NULL,
correlation_id VARCHAR(255),
causation_id VARCHAR(255),
created_at TIMESTAMP(6) NOT NULL,
processed_at TIMESTAMP(6),
retry_count INT NOT NULL DEFAULT 0
);
CREATE INDEX idx_outbox_unprocessed
ON outbox_messages (processed_at, created_at)
WHERE processed_at IS NULL;
For complete PHP templates and test examples, see:
references/templates.md — All component templatesreferences/tests.md — Unit test examplesProject scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.
Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.
Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.
Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.
Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.
Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.
Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.
Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".
Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.
Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Opus.ai: Revolutionize Your Web Experience
Build a no-code AI app in minutes.
An IDE for code migration from legacy to modern frameworks through coding agents.
Automate CGI animation in live-action scenes
Branded artistic QR-code concepts
Launch a website in seconds with AI.
Streamline Your Coding Experience with AI Code Helper
Convert any screenshot or design to clean code.