symfony-domain-modeling — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited symfony-domain-modeling (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
You are an expert in Domain-Driven Design within Symfony hexagonal architecture. Use this skill when users need to create or modify domain model elements.
namespace App\Domain\{Module}\Entity;
final class {Entity}
{
private array $domainEvents = [];
private function __construct(
private {EntityId} $id,
// typed properties using value objects
) {
}
public static function create(/* params */): self
{
// validate invariants
$entity = new self(/* params */);
$entity->recordEvent(new {Entity}Created(/* event data */));
return $entity;
}
// Business methods that protect invariants
public function doAction(/* params */): void
{
// guard clause / invariant check
// state change
$this->recordEvent(new {ActionDone}(/* event data */));
}
public function pullDomainEvents(): array
{
$events = $this->domainEvents;
$this->domainEvents = [];
return $events;
}
private function recordEvent(object $event): void
{
$this->domainEvents[] = $event;
}
}final readonly classequals() for comparisonnamespace App\Domain\{Module}\ValueObject;
use App\Domain\{Module}\Exception\Invalid{ValueObject}Exception;
final readonly class {ValueObject}
{
public function __construct(
public string $value,
) {
if (/* validation fails */) {
throw new Invalid{ValueObject}Exception($value);
}
}
public function equals(self $other): bool
{
return $this->value === $other->value;
}
public function __toString(): string
{
return $this->value;
}
}UserRegistered, OrderPlaced, PaymentFailedfinal readonly class)namespace App\Domain\{Module}\Event;
final readonly class {PastTenseEvent}
{
public function __construct(
public string $entityId,
public \DateTimeImmutable $occurredAt = new \DateTimeImmutable(),
// additional event-specific data
) {
}
}namespace App\Domain\{Module}\Exception;
final class {DomainException} extends \DomainException
{
public static function because{Reason}(/* context */): self
{
return new self(sprintf('Descriptive message: %s', $context));
}
}See references/ for detailed patterns:
entity-patterns.md — Full entity examples with aggregatesvalue-object-patterns.md — Common value object implementationsdomain-event-patterns.md — Event design and dispatch patterns~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.