/acc:yii-knowledgefrom acc
Provides Yii3 framework knowledge including modular architecture, DDD integration, PSR compliance, security (RBAC, auth), event system, queue/jobs, infrastructure components, and antipattern detection for PHP projects.
Ships in acc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Quick reference for Yii3 framework patterns and PHP implementation guidelines. Yii3 is a complete rewrite — modular, PSR-compliant, and designed for modern PHP 8.4+ applications with clean architecture support.
Yii3 implements PSR-3 (log), PSR-4 (autoload), PSR-7/PSR-17 (HTTP messages/factories via yiisoft/http-message), PSR-11 (DI via yiisoft/di), PSR-12 (coding style), PSR-15 (middleware via yiisoft/middleware-dispatcher).
Request → [Router] → [Auth] → [CORS] → [Action] → Response
↓ ↓
yiisoft/router Application Logic
Rule: All HTTP handling flows through the PSR-15 middleware pipeline. No global state.
Yii3 is split into independent packages (yiisoft/*). Install only what you need. No monolithic framework dependency.
use Yiisoft\ importsEventDispatcherInterface port (not PSR-14 directly)Yiisoft\ActiveRecord in Domain or Application layersServerRequestInterface) in Application layer| Violation | Where to Look | Severity |
|---|---|---|
| ActiveRecord in Domain | use Yiisoft\ActiveRecord in Domain layer | Critical |
| Service Locator usage | $container->get() outside composition root | Critical |
| Business logic in Action | if/switch on domain state in Controller/Action | Critical |
| Framework in Domain | use Yiisoft\ in Domain namespace | Warning |
| Fat middleware | Middleware doing business logic | Warning |
| Missing input validation | Action without request validation | Warning |
| IdentityInterface in Domain | use Yiisoft\Auth in Domain layer | Critical |
| RBAC logic in Domain | use Yiisoft\Rbac in Domain layer | Critical |
| Queue in Domain | QueueInterface in Domain layer | Critical |
| Cache/HTTP Client in Domain | CacheInterface or PSR-18 in Domain layer | Critical |
| Yii2 patterns in Yii3 | Yii::$app->, global helpers | Critical |
declare(strict_types=1);
namespace Presentation\Api\Order;
final readonly class CreateOrderAction
{
public function __construct(
private CreateOrderUseCase $createOrder,
private OrderRequestMapper $mapper,
) {}
public function __invoke(ServerRequestInterface $request): ResponseInterface
{
$dto = $this->mapper->fromRequest($request);
$result = $this->createOrder->execute($dto);
return $this->responseFactory->createJson($result->toArray(), 201);
}
}
declare(strict_types=1);
namespace Infrastructure\Http\Middleware;
final readonly class CorrelationIdMiddleware implements MiddlewareInterface
{
public function process(
ServerRequestInterface $request,
RequestHandlerInterface $handler,
): ResponseInterface {
$correlationId = $request->getHeaderLine('X-Correlation-ID') ?: Uuid::v4();
$request = $request->withAttribute('correlationId', $correlationId);
return $handler->handle($request)
->withHeader('X-Correlation-ID', $correlationId);
}
}
declare(strict_types=1);
namespace Application\Order\UseCase;
final readonly class CreateOrderUseCase
{
public function __construct(
private OrderRepositoryInterface $orders,
private EventDispatcherInterface $events,
) {}
public function execute(CreateOrderDTO $dto): OrderResultDTO
{
$order = Order::create(
id: $this->orders->nextIdentity(),
customerId: $dto->customerId,
lines: $dto->lines,
);
$this->orders->save($order);
$this->events->dispatch(...$order->releaseEvents());
return OrderResultDTO::fromEntity($order);
}
}
For detailed information, load these reference files:
references/architecture.md — Yii3 modular architecture, middleware pipeline, config systemreferences/ddd-integration.md — Extracting Domain from Yii, Repository pattern, Domain Eventsreferences/routing-http.md — Routing, Actions, PSR-7/PSR-15 middlewarereferences/persistence.md — ActiveRecord, Cycle ORM, migrations, Repository patternreferences/dependency-injection.md — yiisoft/di container, service providers, PSR-11references/testing.md — PHPUnit, fixtures, functional testing, middleware testingreferences/security.md — RBAC, authentication, IdentityInterface adapter, password hashing, CSRFreferences/event-system.md — PSR-14 dispatcher, listeners, domain event bridge, stoppable eventsreferences/queue.md — yii-queue, messages, handlers, middleware pipelines, retry, channelsreferences/infrastructure-components.md — Cache (PSR-16), Rate Limiter, HTTP Client (PSR-18), Mailer with DDD portsreferences/antipatterns.md — Yii2-in-Yii3 detection, framework coupling, fat controllers, RBAC in Domain, missing queue resiliencereferences/antipatterns.md (opens in a new tab)references/architecture.md (opens in a new tab)references/ddd-integration.md (opens in a new tab)references/dependency-injection.md (opens in a new tab)references/event-system.md (opens in a new tab)references/infrastructure-components.md (opens in a new tab)references/persistence.md (opens in a new tab)references/queue.md (opens in a new tab)references/routing-http.md (opens in a new tab)references/security.md (opens in a new tab)references/testing.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dykyi-roman/awesome-claude-code --plugin acc283 skills in this plugin
/access-control-knowledgeAccess Control knowledge base. Provides ACL, RBAC, ABAC, ReBAC models, multi-tenancy patterns, and PHP implementations (Symfony Voters, Laravel Gates) for security audits and generation./adr-knowledgeAction-Domain-Responder pattern knowledge base. Provides patterns, antipatterns, and PHP-specific guidelines for ADR (web-specific MVC alternative) audits./adr-templateGenerates Architecture Decision Records (ADR) for PHP projects. Creates structured decision documentation with context, decision, and consequences.Other plugins' skills for the same job