Comprehensive developer toolkit providing reusable skills for Java/Spring Boot, TypeScript/NestJS/React/Next.js, Python, PHP, AWS CloudFormation, AI/RAG, DevOps, and more.
82
82%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Risky
Do not use without reviewing
Complete reference for Blade templating in Sage WordPress themes.
@extends: Inherit from a layout
@extends('layouts.app')@section: Define content section
@section('content')
<h1>Page Content</h1>
@endsection@yield: Display content section
@yield('content')
@yield('content', 'Default content if not provided')@if/@else/@elseif/@endif
@if (condition)
<p>True</p>
@elseif (other_condition)
<p>Other</p>
@else
<p>False</p>
@endif@unless: Negative if
@unless ($user->logged_in)
<a href="/login">Login</a>
@endunless@isset/null: Check variable existence
@isset($variable)
{{ $variable }}
@endisset
@empty($collection)
<p>No items</p>
@endempty@auth/@guest: User authentication
@auth
<a href="/dashboard">Dashboard</a>
@endauth
@guest
<a href="/login">Login</a>
@endguest@while: WordPress loop
@while (have_posts())
@php the_post() @endphp
<h2>{{ the_title() }}</h2>
@endwhile@foreach: Iterate arrays
@foreach ($items as $item)
<li>{{ $item->name }}</li>
@endforeach@for: Standard for loop
@for ($i = 0; $i < 10; $i++)
<span>{{ $i }}</span>
@endfor@break/@continue: Loop control
@foreach ($items as $item)
@if ($item->skip)
@continue
@endif
{{ $item->name }}
@if ($item->last)
@break
@endif
@endforeach@include: Include template
@include('components.card')@includeIf: Include if exists
@includeIf('components.optional')@includeWhen: Include conditionally
@includeWhen($condition, 'components.featured')@includeIf: With variables
@include('components.button', ['text' => 'Click', 'url' => '/page'])Anonymous Components (resources/views/components/alert.blade.php):
@props(['type' => 'info', 'message' => ''])
<div class="alert alert-{{ $type }}">
{{ $message }}
</div>Usage:
<x-alert type="warning" message="Warning message" />Indexed Components (resources/views/components/button.blade.php):
@props(['variant' => 'primary'])
<button class="btn btn-{{ $variant }}">
{{ $slot }}
</button>Usage:
<x-button variant="secondary">
Click Me
</x-button>Dynamic Components:
@php $component = 'button' @endphp
<x-dynamic-component :component="$component" :variant="'primary'" />@php: Execute PHP
@php
$data = get_field('data');
$formatted = format_data($data);
@endphp@verbatim: Disable Blade parsing
@verbatim
{{ This won't be parsed }}
@endverbatim@once: Execute once per rendering
@once
<script src="https://cdn.example.com/widget.js"></script>
@endonce@csrf: CSRF token (rarely used in WP)
@csrf@method: Form method spoofing
@method('PUT'){{ the_title() }} // Post title
{{ the_content() }} // Post content
{{ the_excerpt() }} // Post excerpt
{{ the_permalink() }} // Post URL
{{ the_post_thumbnail_url() }} // Featured image URL
{{ the_date() }} // Post date
{{ the_author() }} // Author name
{{ the_category() }} // Categories
{{ the_tags() }} // Tags@if (is_front_page()) @endif
@if (is_home()) @endif
@if (is_single()) @endif
@if (is_page()) @endif
@if (is_category()) @endif
@if (is_archive()) @endif
@if (is_search()) @endif
@if (is_404()) @endif{{ get_template_directory_uri() }} // Theme URL
{{ get_stylesheet_directory_uri() }} // Child theme URL
{{ home_url('/') }} // Site URL
{{ site_url('/') }} // Site URL
{{ wp_get_attachment_url($id) }} // Attachment URL@extends('layouts.app')
@section('content')
<div class="posts">
@while (have_posts())
@php the_post() @endphp
@include('components.post-card')
@endwhile
</div>
{{ the_posts_pagination() }}
@endsection@if (is_active_sidebar('sidebar'))
<aside class="sidebar">
{{ dynamic_sidebar('sidebar') }}
</aside>
@endif@if (has_nav_menu('primary'))
<nav class="primary-nav">
{{ wp_nav_menu([
'theme_location' => 'primary',
'container' => false,
'menu_class' => 'nav-menu'
]) }}
</nav>
@endif{{ }}: Auto-escaped (safe for user content)
{{ $user_input }}{!! !!}: Unescaped (use with caution)
{!! $html_content !!}@verbatim: Multiple unescaped lines
@verbatim
<div class="example">
{{ This won't be escaped }}
</div>
@endverbatimplugins
developer-kit-ai
skills
chunking-strategy
prompt-engineering
developer-kit-aws
skills
aws
aws-cli-beast
aws-cost-optimization
aws-drawio-architecture-diagrams
aws-sam-bootstrap
aws-cloudformation
aws-cloudformation-auto-scaling
references
aws-cloudformation-bedrock
references
aws-cloudformation-cloudfront
references
aws-cloudformation-cloudwatch
references
aws-cloudformation-dynamodb
references
aws-cloudformation-ec2
aws-cloudformation-ecs
references
aws-cloudformation-elasticache
aws-cloudformation-iam
references
aws-cloudformation-lambda
references
aws-cloudformation-rds
aws-cloudformation-s3
references
aws-cloudformation-security
references
aws-cloudformation-task-ecs-deploy-gh
aws-cloudformation-vpc
developer-kit-core
skills
developer-kit-java
skills
aws-lambda-java-integration
aws-rds-spring-boot-integration
aws-sdk-java-v2-bedrock
aws-sdk-java-v2-core
aws-sdk-java-v2-dynamodb
aws-sdk-java-v2-kms
aws-sdk-java-v2-lambda
aws-sdk-java-v2-messaging
aws-sdk-java-v2-rds
aws-sdk-java-v2-s3
aws-sdk-java-v2-secrets-manager
graalvm-native-image
langchain4j
langchain4j-mcp-server-patterns
langchain4j-ai-services-patterns
references
langchain4j-mcp-server-patterns
references
langchain4j-rag-implementation-patterns
references
langchain4j-spring-boot-integration
langchain4j-testing-strategies
langchain4j-tool-function-calling-patterns
langchain4j-vector-stores-configuration
references
qdrant
references
spring-ai-mcp-server-patterns
references
spring-boot-actuator
spring-boot-cache
spring-boot-crud-patterns
spring-boot-dependency-injection
spring-boot-event-driven-patterns
spring-boot-openapi-documentation
spring-boot-project-creator
spring-boot-resilience4j
spring-boot-rest-api-standards
spring-boot-saga-pattern
spring-boot-security-jwt
assets
references
scripts
spring-boot-test-patterns
spring-data-jpa
references
spring-data-neo4j
references
unit-test-application-events
unit-test-bean-validation
unit-test-boundary-conditions
unit-test-caching
unit-test-config-properties
unit-test-controller-layer
unit-test-exception-handler
unit-test-json-serialization
unit-test-mapper-converter
unit-test-parameterized
unit-test-scheduled-async
unit-test-service-layer
unit-test-utility-methods
unit-test-wiremock-rest-api
developer-kit-php
skills
aws-lambda-php-integration
developer-kit-python
skills
aws-lambda-python-integration
developer-kit-tools
developer-kit-typescript
skills
aws-lambda-typescript-integration
better-auth
drizzle-orm-patterns
dynamodb-toolbox-patterns
references
nestjs
nestjs-best-practices
nestjs-code-review
nestjs-drizzle-crud-generator
scripts
nextjs-app-router
nextjs-authentication
nextjs-code-review
nextjs-data-fetching
references
nextjs-deployment
nextjs-performance
nx-monorepo
react-code-review
react-patterns
references
shadcn-ui
tailwind-css-patterns
references
tailwind-design-system
references
turborepo-monorepo
typescript-docs
typescript-security-review
zod-validation-utilities