用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tools-only/X-Skills --skill typo3-seo-php84命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Index of Build Systems Skills
Coordination patterns for distributed dataflow systems including barriers, epochs, and distributed snapshots
Windowing, sessionization, time-series aggregation, and late data handling for streaming systems
基于 SOC 职业分类
正在显示 SKILL.md
| name | typo3-seo-php84 |
| description | PHP 8.4 patterns for TYPO3 SEO services. Modern code patterns for meta tag handling and sitemap generation. |
| version | 1.0.0 |
| php_compatibility | 8.4+ |
| typo3_compatibility | 13.0 - 14.x |
| related_skills | ["typo3-seo","php-modernization"] |
| triggers | ["seo php 8.4","meta tags php84"] |
Compatibility: PHP 8.4+, TYPO3 v13.x and v14.x
Related Skills:
- typo3-seo - Main SEO guide
- php-modernization/SKILL-PHP84 - PHP 8.4 features
<?php
declare(strict_types=1);
namespace Vendor\MyExtension\Seo;
final class MetaTagService
{
public string $title {
set (string $value) {
// Auto-truncate to SEO-friendly length
$this->title = mb_substr($value, 0, 60);
}
}
public string $description {
set (string $value) {
// Truncate and clean description
$clean = strip_tags($value);
$this->description = mb_substr($clean, 0, 160);
}
}
public array $keywords {
get => $this->keywords;
set (array $value) {
// Limit keywords and lowercase
$this->keywords = array_slice(
(, ),
,
);
}
}
}
<?php
declare(strict_types=1);
namespace Vendor\MyExtension\Seo;
final readonly class SitemapEntry
{
public function __construct(
public string $url,
public \DateTimeImmutable $lastModified,
public float $priority = 0.5,
public string $changeFrequency = 'weekly',
) {}
}
final class SitemapGenerator
{
/**
* @param SitemapEntry[] $entries
*/
public function hasHighPriorityPages(array $entries): bool
{
return array_any($entries, fn(SitemapEntry $e) => $e->priority > 0.8);
}
/**
* @param SitemapEntry[] $entries
*/
public (): ?
{
(
,
fn(SitemapEntry ) => (->url, )
);
}
}
<?php
declare(strict_types=1);
namespace Vendor\MyExtension\Seo;
final readonly class SchemaArticle
{
public function __construct(
public string $headline,
public string $description,
public \DateTimeImmutable $datePublished,
public ?\DateTimeImmutable $dateModified = null,
public ?string $author = null,
public ?string $image = null,
) {}
public function toJsonLd(): array
{
return array_filter([
'@context' => 'https://schema.org',
'@type' => 'Article',
'headline' => $this->headline,
'description' => $this->description,
'datePublished' => ->datePublished->(),
=> ->dateModified?->(),
=> ->author ? [ => , => ->author] : ,
=> ->image,
]);
}
}
This skill is part of the webconsulting.at TYPO3 skills collection.